# HG changeset patch # User Maciej Seroka # Date 1284712678 -3600 # Node ID 7d36b1d361d25cd3b74b454b019810bcb0557944 # Parent 3c3a10a3f974a99ff1c8a7ebce983b3160d5904f# Parent d8ef7a232001e0c07421a1053f9f7ec27e465847 Catchup merge diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/_ccmwaid.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/_ccmwaid.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +/nokia/bh_nmp/groups/gscm/dbs/bh1test/db +1321165 +bh1test#1/project/bcdrivers/skovvuri7 diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/Bmarm/BCTestPbkDataAddEditU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/Bmarm/BCTestPbkDataAddEditU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/Bwins/BCTestPbkDataAddEditU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/Bwins/BCTestPbkDataAddEditU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/EABI/BCTestPbkDataAddEditU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/EABI/BCTestPbkDataAddEditU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/BCTestPbkDataAddEdit.mmp --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/BCTestPbkDataAddEdit.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/BCTestPbkDataAddEdit.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -59,6 +59,7 @@ #endif // SBSV2 SYSTEMINCLUDE /epoc32/include +SYSTEMINCLUDE /epoc32/include/Platform SYSTEMINCLUDE /epoc32/include/middleware SYSTEMINCLUDE /epoc32/include/domain/middleware SYSTEMINCLUDE /epoc32/include/osextensions diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/Pbkae.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/Pbkae.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Phonebook Data AddEdit API +STIF + +The tests involve the contacts Phonebook Data Add/Edit API + + + +C:\TestFramework\TestFramework_PbkDataAddEdit.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkDataAddEdit.cfg -engineini C:\TestFramework\TestFramework.ini + + + 11 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Contacts_PbkDataAddEdit.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/pbkaddedit.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/group/pbkaddedit.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkDataAddEdit.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkDataAddEdit.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\Contacts_PbkDataAddEdit.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/sis/Contacts_PbkDataAddEdit.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/sis/Contacts_PbkDataAddEdit.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"PIM_PbkDataAddEdit"},(0x20015B11),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestPbkDataAddEdit.dll"-"!:\sys\bin\BCTestPbkDataAddEdit.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkDataAddEdit.ini"-"!:\TestFramework\TestFramework_PbkDataAddEdit.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkDataAddEdit.cfg"-"!:\TestFramework\tcBCTestPbkDataAddEdit.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkDataAddEdit.cfg"-"!:\TestFramework\UI_BCTestPbkDataAddEdit.cfg" -"\epoc32\winscw\c\pbkaddedit.bat"-"!:\pbkaddedit.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/sis/Contacts_PbkDataAddEdit.sis Binary file apicompatanamdw/bcdrivers/app/contacts/phonebook_data_addedit_ui_api/sis/Contacts_PbkDataAddEdit.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/Bmarm/MTPbkContactChangeNotifierU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/Bmarm/MTPbkContactChangeNotifierU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/Bwins/MTPbkContactChangeNotifierU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/Bwins/MTPbkContactChangeNotifierU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/EABI/MTPbkContactChangeNotifierU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/EABI/MTPbkContactChangeNotifierU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI11CFixedQueueI23TContactDbObserverEventE @ 2 NONAME + _ZTI24CContactEngineEventQueue @ 3 NONAME + _ZTV11CFixedQueueI23TContactDbObserverEventE @ 4 NONAME + _ZTV24CContactEngineEventQueue @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/group/PbkNotifier.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/group/PbkNotifier.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkNotifier.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkNotifier.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkNotifier.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/sis/BCTestPbkNotifier.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactChangeNotifier/sis/BCTestPbkNotifier.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkContactChangeNotifier"},(0x20025A28),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkContactChangeNotifier.dll"-"!:\sys\bin\MTPbkContactChangeNotifier.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkNotifier.ini"-"!:\TestFramework\TestFramework_PbkNotifier.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkNotifier.cfg"-"!:\TestFramework\tcBCTestPbkNotifier.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkPbkNotifier.cfg"-"!:\TestFramework\UI_BCTestPbkPbkNotifier.cfg" -"\epoc32\winscw\c\PbkNotifier_c.bat"-"!:\PbkNotifier.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/Bmarm/MTPbkContactEngineU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/Bmarm/MTPbkContactEngineU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/Bwins/MTPbkContactEngineU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/Bwins/MTPbkContactEngineU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/EABI/MTPbkContactEngineU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/EABI/MTPbkContactEngineU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,9 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI11CFixedQueueI23TContactDbObserverEventE @ 2 NONAME + _ZTI24CContactEngineEventQueue @ 3 NONAME + _ZTIN19CMTPbkContactEngine13CFindObserverE @ 4 NONAME + _ZTV11CFixedQueueI23TContactDbObserverEventE @ 5 NONAME + _ZTV24CContactEngineEventQueue @ 6 NONAME + _ZTVN19CMTPbkContactEngine13CFindObserverE @ 7 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/group/CEngine.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/group/CEngine.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_CEngine.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestCEngine.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestCEngine.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/group/MTPbkContactEngine.mmp --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/group/MTPbkContactEngine.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/group/MTPbkContactEngine.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -58,6 +58,9 @@ SOURCEPATH ../src #endif // SBSV2 +SYSTEMINCLUDE /epoc32/include/app +SYSTEMINCLUDE /epoc32/include/platform + SOURCE MTPbkContactEngine.cpp SOURCE MTPbkContactEngineBlocks.cpp SOURCE CContactEngineEventQueue.cpp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/sis/BCTestCEngine.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactEngine/sis/BCTestCEngine.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkContactEngine"},(0x20025A10),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkContactEngine.dll"-"!:\sys\bin\MTPbkContactEngine.dll" -"\Epoc32\winscw\c\testframework\TestFramework_CEngine.ini"-"!:\TestFramework\TestFramework_CEngine.ini" -"\Epoc32\winscw\c\testframework\tcBCTestCEngine.cfg"-"!:\TestFramework\tcBCTestCEngine.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestCEngine.cfg"-"!:\TestFramework\UI_BCTestCEngine.cfg" -"\epoc32\winscw\c\CEngine_c.bat"-"!:\CEngine.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/Bmarm/MTPbkContactItemU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/Bmarm/MTPbkContactItemU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/Bwins/MTPbkContactItemU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/Bwins/MTPbkContactItemU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/EABI/MTPbkContactItemU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/EABI/MTPbkContactItemU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI18TDefaultPocTestApi @ 2 NONAME + _ZTI18TMmsDefaultTestApi @ 3 NONAME + _ZTI18TSmsDefaultTestApi @ 4 NONAME + _ZTI19TDefaultVoipTestApi @ 5 NONAME + _ZTI20TDefaultEmailTestApi @ 6 NONAME + _ZTI26TDefaultVideoNumberTestApi @ 7 NONAME + _ZTI26TPhoneNumberDefaultTestApi @ 8 NONAME + _ZTI27TDefaultEmailOverSmsTestApi @ 9 NONAME + _ZTV18TDefaultPocTestApi @ 10 NONAME + _ZTV18TMmsDefaultTestApi @ 11 NONAME + _ZTV18TSmsDefaultTestApi @ 12 NONAME + _ZTV19TDefaultVoipTestApi @ 13 NONAME + _ZTV20TDefaultEmailTestApi @ 14 NONAME + _ZTV26TDefaultVideoNumberTestApi @ 15 NONAME + _ZTV26TPhoneNumberDefaultTestApi @ 16 NONAME + _ZTV27TDefaultEmailOverSmsTestApi @ 17 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/group/PbkCItem.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/group/PbkCItem.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkCItem.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkCItem.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkCItem.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/sis/BCTestPbkContactItem.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItem/sis/BCTestPbkContactItem.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkContactItem"},(0x20025A26),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkContactItem.dll"-"!:\sys\bin\MTPbkContactItem.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkCItem.ini"-"!:\TestFramework\TestFramework_PbkCItem.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkCItem.cfg"-"!:\TestFramework\tcBCTestPbkCItem.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkCItem.cfg"-"!:\TestFramework\UI_BCTestPbkCItem.cfg" -"\epoc32\winscw\c\PbkCItem_c.bat"-"!:\PbkCItem.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/Bmarm/MTPbkContactItemFieldU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/Bmarm/MTPbkContactItemFieldU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/Bwins/MTPbkContactItemFieldU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/Bwins/MTPbkContactItemFieldU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/EABI/MTPbkContactItemFieldU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/EABI/MTPbkContactItemFieldU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/group/PbkCIF.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/group/PbkCIF.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkCIF.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkCIF.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkCIF.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/sis/BCTestPbkContactItemField.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactItemField/sis/BCTestPbkContactItemField.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkContactItemField"},(0x20025A19),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkContactItemField.dll"-"!:\sys\bin\MTPbkContactItemField.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkCIF.ini"-"!:\TestFramework\TestFramework_PbkCIF.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkCIF.cfg"-"!:\TestFramework\tcBCTestPbkCIF.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkCIF.cfg"-"!:\TestFramework\UI_BCTestPbkCIF.cfg" -"\epoc32\winscw\c\PbkCIF_c.bat"-"!:\PbkCIF.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/Bmarm/MTPbkContactIterU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/Bmarm/MTPbkContactIterU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/Bwins/MTPbkContactIterU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/Bwins/MTPbkContactIterU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/EABI/MTPbkContactIterU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/EABI/MTPbkContactIterU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/sis/BCTestPbkContactIter.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkContactIter/sis/BCTestPbkContactIter.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkContactIter"},(0x20025A22),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkContactIter.dll"-"!:\sys\bin\MTPbkContactIter.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkIter.ini"-"!:\TestFramework\TestFramework_PbkIter.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkIter.cfg"-"!:\TestFramework\tcBCTestPbkIter.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkIter.cfg"-"!:\TestFramework\UI_BCTestPbkIter.cfg" -"\epoc32\winscw\c\PbkIter_c.bat"-"!:\PbkIter.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/Bmarm/MTPbkFieldDataU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/Bmarm/MTPbkFieldDataU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/Bwins/MTPbkFieldDataU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/Bwins/MTPbkFieldDataU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/EABI/MTPbkFieldDataU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/EABI/MTPbkFieldDataU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/group/PbkFData.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/group/PbkFData.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkFData.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkFData.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkFData.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/sis/BCTestPbkFData.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldData/sis/BCTestPbkFData.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkFieldData"},(0x20025A15),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkFieldData.dll"-"!:\sys\bin\MTPbkFieldData.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkFData.ini"-"!:\TestFramework\TestFramework_PbkFData.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkFData.cfg"-"!:\TestFramework\tcBCTestPbkFData.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkFData.cfg"-"!:\TestFramework\UI_BCTestPbkFData.cfg" -"\epoc32\winscw\c\PbkFData_c.bat"-"!:\PbkFData.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/Bmarm/MTPbkFieldsU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/Bmarm/MTPbkFieldsU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/Bwins/MTPbkFieldsU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/Bwins/MTPbkFieldsU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/EABI/MTPbkFieldsU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/EABI/MTPbkFieldsU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/group/PbkFeilds.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/group/PbkFeilds.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkFeilds.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkFeilds.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkFeilds.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/sis/BCTestPbkFields.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFields/sis/BCTestPbkFields.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkFields"},(0x20025A20),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkFields.dll"-"!:\sys\bin\MTPbkFields.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkFeilds.ini"-"!:\TestFramework\TestFramework_PbkFeilds.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkFeilds.cfg"-"!:\TestFramework\tcBCTestPbkFeilds.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkFeilds.cfg"-"!:\TestFramework\UI_BCTestPbkFeilds.cfg" -"\epoc32\winscw\c\PbkFeilds_c.bat"-"!:\PbkFeilds.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/Bmarm/MTPbkFieldsInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/Bmarm/MTPbkFieldsInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/Bwins/MTPbkFieldsInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/Bwins/MTPbkFieldsInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/EABI/MTPbkFieldsInfoU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/EABI/MTPbkFieldsInfoU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/group/PbkFInfo.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/group/PbkFInfo.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkFInfo.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkFInfo.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkFInfo.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/sis/BCTestPbkFieldsInfo.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkFieldsInfo/sis/BCTestPbkFieldsInfo.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkFieldsInfo"},(0x20025A31),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkFieldsInfo.dll"-"!:\sys\bin\MTPbkFieldsInfo.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkFInfo.ini"-"!:\TestFramework\TestFramework_PbkFInfo.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkFInfo.cfg"-"!:\TestFramework\tcBCTestPbkFInfo.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkFInfo.cfg"-"!:\TestFramework\UI_BCTestPbkFInfo.cfg" -"\epoc32\winscw\c\PbkFInfo_c.bat"-"!:\PbkFInfo.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/Bmarm/MTPbkIconIdU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/Bmarm/MTPbkIconIdU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/Bwins/MTPbkIconIdU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/Bwins/MTPbkIconIdU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/EABI/MTPbkIconIdU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/EABI/MTPbkIconIdU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/group/PbkIcon.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/group/PbkIcon.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkIcon.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkIcon.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkIcon.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/sis/BCTestPbkIcon.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconId/sis/BCTestPbkIcon.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkIconId"},(0x20025A16),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkIconId.dll"-"!:\sys\bin\MTPbkIconId.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkIcon.ini"-"!:\TestFramework\TestFramework_PbkIcon.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkIcon.cfg"-"!:\TestFramework\tcBCTestPbkIcon.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkIcon.cfg"-"!:\TestFramework\UI_BCTestPbkIcon.cfg" -"\epoc32\winscw\c\PbkIcon_c.bat"-"!:\PbkIcon.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/Bmarm/MTPbkIconInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/Bmarm/MTPbkIconInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/Bwins/MTPbkIconInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/Bwins/MTPbkIconInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/EABI/MTPbkIconInfoU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/EABI/MTPbkIconInfoU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/group/PbkInfo.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/group/PbkInfo.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkInfo.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkInfo.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkInfo.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/sis/BCTestPbkIconInfo.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIconInfo/sis/BCTestPbkIconInfo.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkIconInfo"},(0x20025A17),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkIconInfo.dll"-"!:\sys\bin\MTPbkIconInfo.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkInfo.ini"-"!:\TestFramework\TestFramework_PbkInfo.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkInfo.cfg"-"!:\TestFramework\tcBCTestPbkInfo.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkInfo.cfg"-"!:\TestFramework\UI_BCTestPbkInfo.cfg" -"\epoc32\winscw\c\PbkInfo_c.bat"-"!:\PbkInfo.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/Bmarm/MTPbkIdleFinderU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/Bmarm/MTPbkIdleFinderU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/Bwins/MTPbkIdleFinderU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/Bwins/MTPbkIdleFinderU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/EABI/MTPbkIdleFinderU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/EABI/MTPbkIdleFinderU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTIN16CMTPbkIdleFinder13CFindObserverE @ 2 NONAME + _ZTVN16CMTPbkIdleFinder13CFindObserverE @ 3 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/group/PbkIFinder.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/group/PbkIFinder.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PbkIFinder.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkIFinder.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkIFinder.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/sis/BCTestPbkIFinder.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTPbkIdleFinder/sis/BCTestPbkIFinder.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkIdleFinder"},(0x20025A14),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkIdleFinder.dll"-"!:\sys\bin\MTPbkIdleFinder.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkIFinder.ini"-"!:\TestFramework\TestFramework_PbkIFinder.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkIFinder.cfg"-"!:\TestFramework\tcBCTestPbkIFinder.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkIFinder.cfg"-"!:\TestFramework\UI_BCTestPbkIFinder.cfg" -"\epoc32\winscw\c\PbkIFinder_c.bat"-"!:\PbkIFinder.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/Bmarm/MTRPbkViewResourceFileU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/Bmarm/MTRPbkViewResourceFileU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/Bwins/MTRPbkViewResourceFileU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/Bwins/MTRPbkViewResourceFileU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/EABI/MTRPbkViewResourceFileU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/EABI/MTRPbkViewResourceFileU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/group/Pbkvrsc.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/group/Pbkvrsc.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_Pbkvrsc.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkvrsc.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\tcBCTestPbkvrsc.cfg - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/sis/BCTestPbkvrsc.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/MTRPbkViewResourceFile/sis/BCTestPbkvrsc.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTRPbkViewResourceFile"},(0x20025A12),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTRPbkViewResourceFile.dll"-"!:\sys\bin\MTRPbkViewResourceFile.dll" -"\Epoc32\winscw\c\testframework\TestFramework_Pbkvrsc.ini"-"!:\TestFramework\TestFramework_Pbkvrsc.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkvrsc.cfg"-"!:\TestFramework\tcBCTestPbkvrsc.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkvrsc.cfg"-"!:\TestFramework\UI_BCTestPbkvrsc.cfg" -"\epoc32\winscw\c\Pbkvrsc_c.bat"-"!:\Pbkvrsc.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/group/PBKDMngt.bat --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/group/PBKDMngt.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_PBKDMngt.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkDataMngt.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\Contacts_PbkDataMngt.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/group/PbkDm.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/group/PbkDm.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Phonebook Data Management API +STIF + +The tests involve the Contacts Phonebook Data Management API + + + +C:\TestFramework\TestFramework_PBKDMngt.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkDataMngt.cfg -engineini C:\TestFramework\TestFramework.ini + + + 189 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Contacts_PbkDataMngt.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/sis/Contacts_PbkDataMgmt.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/sis/Contacts_PbkDataMgmt.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,121 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkDataManagement"},(0x20025A32),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where - -"\Epoc32\winscw\c\testframework\TestFramework_PBKDMngt.ini"-"!:\TestFramework\TestFramework_PBKDMngt.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkDataMngt.cfg"-"!:\TestFramework\tcBCTestPbkDataMngt.cfg" -"\epoc32\winscw\c\PBKDMngt.bat"-"!:\PBKDMngt.bat" - -;MTRPbkViewResourceFile -"\Epoc32\Release\armv5\urel\MTRPbkViewResourceFile.dll"-"!:\sys\bin\MTRPbkViewResourceFile.dll" -"\Epoc32\winscw\c\testframework\TestFramework_Pbkvrsc.ini"-"!:\TestFramework\TestFramework_Pbkvrsc.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkvrsc.cfg"-"!:\TestFramework\tcBCTestPbkvrsc.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkvrsc.cfg"-"!:\TestFramework\UI_BCTestPbkvrsc.cfg" -"\epoc32\winscw\c\Pbkvrsc.bat"-"!:\Pbkvrsc.bat" - -;MTPbkIdleFinder -"\Epoc32\Release\armv5\urel\MTPbkIdleFinder.dll"-"!:\sys\bin\MTPbkIdleFinder.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkIFinder.ini"-"!:\TestFramework\TestFramework_PbkIFinder.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkIFinder.cfg"-"!:\TestFramework\tcBCTestPbkIFinder.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkIFinder.cfg"-"!:\TestFramework\UI_BCTestPbkIFinder.cfg" -"\epoc32\winscw\c\PbkIFinder.bat"-"!:\PbkIFinder.bat" - -;MTPbkIconInfo -"\Epoc32\Release\armv5\urel\MTPbkIconInfo.dll"-"!:\sys\bin\MTPbkIconInfo.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkInfo.ini"-"!:\TestFramework\TestFramework_PbkInfo.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkInfo.cfg"-"!:\TestFramework\tcBCTestPbkInfo.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkInfo.cfg"-"!:\TestFramework\UI_BCTestPbkInfo.cfg" -"\epoc32\winscw\c\PbkInfo.bat"-"!:\PbkInfo.bat" - -;MTPbkIconId -"\Epoc32\Release\armv5\urel\MTPbkIconId.dll"-"!:\sys\bin\MTPbkIconId.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkIcon.ini"-"!:\TestFramework\TestFramework_PbkIcon.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkIcon.cfg"-"!:\TestFramework\tcBCTestPbkIcon.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkIcon.cfg"-"!:\TestFramework\UI_BCTestPbkIcon.cfg" -"\epoc32\winscw\c\PbkIcon.bat"-"!:\PbkIcon.bat" - -;MTPbkFields -"\Epoc32\Release\armv5\urel\MTPbkFields.dll"-"!:\sys\bin\MTPbkFields.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkFeilds.ini"-"!:\TestFramework\TestFramework_PbkFeilds.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkFeilds.cfg"-"!:\TestFramework\tcBCTestPbkFeilds.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkFeilds.cfg"-"!:\TestFramework\UI_BCTestPbkFeilds.cfg" -"\epoc32\winscw\c\PbkFeilds.bat"-"!:\PbkFeilds.bat" - -;MTPbkFieldData -"\Epoc32\Release\armv5\urel\MTPbkFieldData.dll"-"!:\sys\bin\MTPbkFieldData.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkFData.ini"-"!:\TestFramework\TestFramework_PbkFData.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkFData.cfg"-"!:\TestFramework\tcBCTestPbkFData.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkFData.cfg"-"!:\TestFramework\UI_BCTestPbkFData.cfg" -"\epoc32\winscw\c\PbkFData.bat"-"!:\PbkFData.bat" - -;MTPbkContactIter -"\Epoc32\Release\armv5\urel\MTPbkContactIter.dll"-"!:\sys\bin\MTPbkContactIter.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkIter.ini"-"!:\TestFramework\TestFramework_PbkIter.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkIter.cfg"-"!:\TestFramework\tcBCTestPbkIter.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkIter.cfg"-"!:\TestFramework\UI_BCTestPbkIter.cfg" -"\epoc32\winscw\c\PbkIter.bat"-"!:\PbkIter.bat" - -;MTPbkContactItemField -"\Epoc32\Release\armv5\urel\MTPbkContactItemField.dll"-"!:\sys\bin\MTPbkContactItemField.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkCIF.ini"-"!:\TestFramework\TestFramework_PbkCIF.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkCIF.cfg"-"!:\TestFramework\tcBCTestPbkCIF.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkCIF.cfg"-"!:\TestFramework\UI_BCTestPbkCIF.cfg" -"\epoc32\winscw\c\PbkCIF.bat"-"!:\PbkCIF.bat" - -;MTPbkContactEngine -"\Epoc32\Release\armv5\urel\MTPbkContactEngine.dll"-"!:\sys\bin\MTPbkContactEngine.dll" -"\Epoc32\winscw\c\testframework\TestFramework_CEngine.ini"-"!:\TestFramework\TestFramework_CEngine.ini" -"\Epoc32\winscw\c\testframework\tcBCTestCEngine.cfg"-"!:\TestFramework\tcBCTestCEngine.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestCEngine.cfg"-"!:\TestFramework\UI_BCTestCEngine.cfg" -"\epoc32\winscw\c\CEngine.bat"-"!:\CEngine.bat" - -;MTPbkFieldsInfo -"\Epoc32\Release\armv5\urel\MTPbkFieldsInfo.dll"-"!:\sys\bin\MTPbkFieldsInfo.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkFInfo.ini"-"!:\TestFramework\TestFramework_PbkFInfo.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkFInfo.cfg"-"!:\TestFramework\tcBCTestPbkFInfo.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkFInfo.cfg"-"!:\TestFramework\UI_BCTestPbkFInfo.cfg" -"\epoc32\winscw\c\PbkFInfo.bat"-"!:\PbkFInfo.bat" - -;MTPbkContactItem -"\Epoc32\Release\armv5\urel\MTPbkContactItem.dll"-"!:\sys\bin\MTPbkContactItem.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkCItem.ini"-"!:\TestFramework\TestFramework_PbkCItem.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkCItem.cfg"-"!:\TestFramework\tcBCTestPbkCItem.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkCItem.cfg"-"!:\TestFramework\UI_BCTestPbkCItem.cfg" -"\epoc32\winscw\c\PbkCItem.bat"-"!:\PbkCItem.bat" - -;MTPbkContactChangeNotifier -"\Epoc32\Release\armv5\urel\MTPbkContactChangeNotifier.dll"-"!:\sys\bin\MTPbkContactChangeNotifier.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkNotifier.ini"-"!:\TestFramework\TestFramework_PbkNotifier.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkNotifier.cfg"-"!:\TestFramework\tcBCTestPbkNotifier.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkPbkNotifier.cfg"-"!:\TestFramework\UI_BCTestPbkPbkNotifier.cfg" -"\epoc32\winscw\c\PbkNotifier.bat"-"!:\PbkNotifier.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/sis/Contacts_PbkDataMgmt.sis Binary file apicompatanamdw/bcdrivers/app/contacts/phonebook_data_management_api/sis/Contacts_PbkDataMgmt.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/Bmarm/MTPbkAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/Bmarm/MTPbkAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/Bwins/MTPbkAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/Bwins/MTPbkAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + ?AddressField@CAddressSelect@@EBEHABVTPbkContactItemField@@@Z @ 2 NONAME ; int CAddressSelect::AddressField(class TPbkContactItemField const &) const + ?QuerySoftkeysResource@CAddressSelect@@EBEHXZ @ 3 NONAME ; int CAddressSelect::QuerySoftkeysResource(void) const + ?QueryTitleL@CAddressSelect@@EAEABVTDesC16@@XZ @ 4 NONAME ; class TDesC16 const & CAddressSelect::QueryTitleL(void) + ?NoAddressesL@CAddressSelect@@EAEXXZ @ 5 NONAME ; void CAddressSelect::NoAddressesL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/EABI/MTPbkAddressSelectU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/EABI/MTPbkAddressSelectU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,13 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZN14CAddressSelect11QueryTitleLEv @ 2 NONAME + _ZN14CAddressSelect12NoAddressesLEv @ 3 NONAME + _ZNK14CAddressSelect12AddressFieldERK20TPbkContactItemField @ 4 NONAME + _ZNK14CAddressSelect21QuerySoftkeysResourceEv @ 5 NONAME + _ZTI14CAddressSelect @ 6 NONAME + _ZTI16CSimulateKeyBase @ 7 NONAME + _ZTI18CSimulateKeyEvents @ 8 NONAME + _ZTV14CAddressSelect @ 9 NONAME + _ZTV16CSimulateKeyBase @ 10 NONAME + _ZTV18CSimulateKeyEvents @ 11 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/sis/BCTestPbkAddSel.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkAddressSelect/sis/BCTestPbkAddSel.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkAddressSelect"},(0x20015A1D),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkAddressSelect.dll"-"!:\sys\bin\MTPbkAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkAddSel.ini"-"!:\TestFramework\TestFramework_PbkAddSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkAddSel.cfg"-"!:\TestFramework\tcBCTestPbkAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkAddSel.cfg"-"!:\TestFramework\UI_BCTestPbkAddSel.cfg" -"\epoc32\winscw\c\PbkAddSel_c.bat"-"!:\PbkAddSel_c.bat" -"\epoc32\data\z\resource\PbkAddressSelect.rsc"-"!:\resource\PbkAddressSelect.rsc" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/Bmarm/MTPbkEmailAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/Bmarm/MTPbkEmailAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/Bwins/MTPbkEmailAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/Bwins/MTPbkEmailAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/EABI/MTPbkEmailAddressSelectU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/EABI/MTPbkEmailAddressSelectU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/sis/BCTestEmailAddSel.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailAddressSelect/sis/BCTestEmailAddSel.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkEmailAddressSelect"},(0x20015A1C),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkEmailAddressSelect.dll"-"!:\sys\bin\MTPbkEmailAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_AddEmailSel.ini"-"!:\TestFramework\TestFramework_AddEmailSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestEmailAddSel.cfg"-"!:\TestFramework\tcBCTestEmailAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestEmailAddSel.cfg"-"!:\TestFramework\UI_BCTestEmailAddSel.cfg" -"\epoc32\winscw\c\EmailSel_c.bat"-"!:\EmailSel_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/Bmarm/MTPbkEmailOverSmsU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/Bmarm/MTPbkEmailOverSmsU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/Bwins/MTPbkEmailOverSmsU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/Bwins/MTPbkEmailOverSmsU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/EABI/MTPbkEmailOverSmsU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/EABI/MTPbkEmailOverSmsU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/sis/BCTestEmailOverSMS.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkEmailOverSms/sis/BCTestEmailOverSMS.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkEmailOverSms"},(0x20015A1E),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkEmailOverSms.dll"-"!:\sys\bin\MTPbkEmailOverSms.dll" -"\Epoc32\winscw\c\testframework\TestFramework_EmailOverSMS.ini"-"!:\TestFramework\TestFramework_EmailOverSMS.ini" -"\Epoc32\winscw\c\testframework\tcBCTestEmaiOVerSMS.cfg"-"!:\TestFramework\tcBCTestEmaiOVerSMS.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestEmaiOVerSMS.cfg"-"!:\TestFramework\UI_BCTestEmaiOVerSMS.cfg" -"\epoc32\winscw\c\EmailOVerSMS_c.bat"-"!:\EmailOVerSMS_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/Bmarm/MTPbkFetchCallbacksU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/Bmarm/MTPbkFetchCallbacksU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/Bwins/MTPbkFetchCallbacksU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/Bwins/MTPbkFetchCallbacksU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/EABI/MTPbkFetchCallbacksU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/EABI/MTPbkFetchCallbacksU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,9 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI14CFetchCallback @ 2 NONAME + _ZTI16CSimulateKeyBase @ 3 NONAME + _ZTI18CSimulateKeyEvents @ 4 NONAME + _ZTV14CFetchCallback @ 5 NONAME + _ZTV16CSimulateKeyBase @ 6 NONAME + _ZTV18CSimulateKeyEvents @ 7 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/sis/BCTestFcallback.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchCallbacks/sis/BCTestFcallback.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkFetchCallbacks"},(0x20015A29),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkFetchCallbacks.dll"-"!:\sys\bin\MTPbkFetchCallbacks.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FCallback.ini"-"!:\TestFramework\TestFramework_FCallback.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFCallback.cfg"-"!:\TestFramework\tcBCTestFCallback.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFCallback.cfg"-"!:\TestFramework\UI_BCTestFCallback.cfg" -"\epoc32\winscw\c\FCallback_c.bat"-"!:\FCallback_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/Bmarm/MTPbkFetchDlgSelectionU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/Bmarm/MTPbkFetchDlgSelectionU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/Bwins/MTPbkFetchDlgSelectionU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/Bwins/MTPbkFetchDlgSelectionU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/EABI/MTPbkFetchDlgSelectionU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/EABI/MTPbkFetchDlgSelectionU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,9 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTI23CFetchSelectionAccepter @ 4 NONAME + _ZTV16CSimulateKeyBase @ 5 NONAME + _ZTV18CSimulateKeyEvents @ 6 NONAME + _ZTV23CFetchSelectionAccepter @ 7 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/sis/BCTestFetchSel.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkFetchDlgSelection/sis/BCTestFetchSel.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkFetchDlgSelection"},(0x20015A28),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkFetchDlgSelection.dll"-"!:\sys\bin\MTPbkFetchDlgSelection.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FetchSel.ini"-"!:\TestFramework\TestFramework_FetchSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFetchSel.cfg"-"!:\TestFramework\tcBCTestFetchSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFetchSel.cfg"-"!:\TestFramework\UI_BCTestFetchSel.cfg" -"\epoc32\winscw\c\FetchSel_c.bat"-"!:\FetchSel_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/Bmarm/MTPbkMemoryEntryAddItemDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/Bmarm/MTPbkMemoryEntryAddItemDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/Bwins/MTPbkMemoryEntryAddItemDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/Bwins/MTPbkMemoryEntryAddItemDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/EABI/MTPbkMemoryEntryAddItemDlgU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/EABI/MTPbkMemoryEntryAddItemDlgU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/sis/BCTestPbkAddItemDlg.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMemoryEntryAddItemDlg/sis/BCTestPbkAddItemDlg.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkMemoryEntryAddItemDlg"},(0x20015A1F),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkMemoryEntryAddItemDlg.dll"-"!:\sys\bin\MTPbkMemoryEntryAddItemDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkAddItemDlg.ini"-"!:\TestFramework\TestFramework_PbkAddItemDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkAddItemDlg.cfg"-"!:\TestFramework\tcBCTestPbkAddItemDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkAddItemDlg.cfg"-"!:\TestFramework\UI_BCTestPbkAddItemDlg.cfg" -"\epoc32\winscw\c\PbkAddItemDlg_c.bat"-"!:\PbkAddItemDlg_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/Bmarm/MTPbkMmsAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/Bmarm/MTPbkMmsAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/Bwins/MTPbkMmsAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/Bwins/MTPbkMmsAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/EABI/MTPbkMmsAddressSelectU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/EABI/MTPbkMmsAddressSelectU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/sis/BCTestMMSAddSel.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMmsAddressSelect/sis/BCTestMMSAddSel.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkMmsAddressSelect"},(0x20015A2E),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkMmsAddressSelect.dll"-"!:\sys\bin\MTPbkMmsAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_MMSAddSel.ini"-"!:\TestFramework\TestFramework_MMSAddSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestMMSAddSel.cfg"-"!:\TestFramework\tcBCTestMMSAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestMMSAddSel.cfg"-"!:\TestFramework\UI_BCTestMMSAddSel.cfg" -"\epoc32\winscw\c\MMSAddSel_c.bat"-"!:\MMSAddSel_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/Bmarm/MTPbkMultipleEntryFetchDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/Bmarm/MTPbkMultipleEntryFetchDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/Bwins/MTPbkMultipleEntryFetchDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/Bwins/MTPbkMultipleEntryFetchDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/EABI/MTPbkMultipleEntryFetchDlgU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/EABI/MTPbkMultipleEntryFetchDlgU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/sis/BCTestFetchDlg.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkMultipleEntryFetchDlg/sis/BCTestFetchDlg.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkMultipleEntryFetchDlg"},(0x20015A21),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkMultipleEntryFetchDlg.dll"-"!:\sys\bin\MTPbkMultipleEntryFetchDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FetchDlg.ini"-"!:\TestFramework\TestFramework_FetchDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFetchDlg.cfg"-"!:\TestFramework\tcBCTestFetchDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFetchDlg.cfg"-"!:\TestFramework\UI_BCTestFetchDlg.cfg" -"\epoc32\winscw\c\FetchDlg_C.bat"-"!:\FetchDlg_C.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/Bmarm/MTPbkPhoneNumberSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/Bmarm/MTPbkPhoneNumberSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/Bwins/MTPbkPhoneNumberSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/Bwins/MTPbkPhoneNumberSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/EABI/MTPbkPhoneNumberSelectU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/EABI/MTPbkPhoneNumberSelectU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/sis/BCTestPhoneNumber.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelect/sis/BCTestPhoneNumber.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkPhoneNumberSelect"},(0x20015A22),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkPhoneNumberSelect.dll"-"!:\sys\bin\MTPbkPhoneNumberSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PhoneNumber.ini"-"!:\TestFramework\TestFramework_PhoneNumber.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPhoneNumber.cfg"-"!:\TestFramework\tcBCTestPhoneNumber.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPhoneNumber.cfg"-"!:\TestFramework\UI_BCTestPhoneNumber.cfg" -"\epoc32\winscw\c\PhoneNumber_c.bat"-"!:\PhoneNumber_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/Bmarm/MTPbkPhoneNumberSelectBaseU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/Bmarm/MTPbkPhoneNumberSelectBaseU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/Bwins/MTPbkPhoneNumberSelectBaseU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/Bwins/MTPbkPhoneNumberSelectBaseU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,6 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + ?QuerySoftkeysResource@CPhoneNumberSelectBase@@EBEHXZ @ 2 NONAME ; int CPhoneNumberSelectBase::QuerySoftkeysResource(void) const + ?PbkControlKeyEventL@CPhoneNumberSelectBase@@EAE?AW4TKeyResponse@@ABUTKeyEvent@@W4TEventCode@@@Z @ 3 NONAME ; enum TKeyResponse CPhoneNumberSelectBase::PbkControlKeyEventL(struct TKeyEvent const &, enum TEventCode) + ?QueryTitleL@CPhoneNumberSelectBase@@EAEABVTDesC16@@XZ @ 4 NONAME ; class TDesC16 const & CPhoneNumberSelectBase::QueryTitleL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/EABI/MTPbkPhoneNumberSelectBaseU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/EABI/MTPbkPhoneNumberSelectBaseU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,12 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZN22CPhoneNumberSelectBase11QueryTitleLEv @ 2 NONAME + _ZN22CPhoneNumberSelectBase19PbkControlKeyEventLERK9TKeyEvent10TEventCode @ 3 NONAME + _ZNK22CPhoneNumberSelectBase21QuerySoftkeysResourceEv @ 4 NONAME + _ZTI16CSimulateKeyBase @ 5 NONAME + _ZTI18CSimulateKeyEvents @ 6 NONAME + _ZTI22CPhoneNumberSelectBase @ 7 NONAME + _ZTV16CSimulateKeyBase @ 8 NONAME + _ZTV18CSimulateKeyEvents @ 9 NONAME + _ZTV22CPhoneNumberSelectBase @ 10 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/sis/BCTestNumSel.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPhoneNumberSelectBase/sis/BCTestNumSel.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkPhoneNumberSelectBase"},(0x20015A31),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkPhoneNumberSelectBase.dll"-"!:\sys\bin\MTPbkPhoneNumberSelectBase.dll" -"\Epoc32\winscw\c\testframework\TestFramework_NumSel.ini"-"!:\TestFramework\TestFramework_NumSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestNumSel.cfg"-"!:\TestFramework\tcBCTestNumSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestNumSel.cfg"-"!:\TestFramework\UI_BCTestNumSel.cfg" -"\epoc32\data\z\resource\MT_CPbkPhoneNumberSelectBase.rsc"-"!:\resource\MT_CPbkPhoneNumberSelectBase.rsc" -"\epoc32\winscw\c\NumSel_c.bat"-"!:\NumSel_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/Bmarm/MTPbkPocAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/Bmarm/MTPbkPocAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/Bwins/MTPbkPocAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/Bwins/MTPbkPocAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/EABI/MTPbkPocAddressSelectU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/EABI/MTPbkPocAddressSelectU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/sis/BCTestPocAddr.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkPocAddressSelect/sis/BCTestPocAddr.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkPocAddressSelect"},(0x20015A23),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkPocAddressSelect.dll"-"!:\sys\bin\MTPbkPocAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PocAdd.ini"-"!:\TestFramework\TestFramework_PocAdd.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPocAdd.cfg"-"!:\TestFramework\tcBCTestPocAdd.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPocAdd.cfg"-"!:\TestFramework\UI_BCTestPocAdd.cfg" -"\epoc32\winscw\c\PocAdd_c.bat"-"!:\PocAdd_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/Bmarm/MTPbkSelectFieldDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/Bmarm/MTPbkSelectFieldDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/Bwins/MTPbkSelectFieldDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/Bwins/MTPbkSelectFieldDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/EABI/MTPbkSelectFieldDlgU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/EABI/MTPbkSelectFieldDlgU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/sis/BCTestFieldDlg.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSelectFieldDlg/sis/BCTestFieldDlg.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkSelectFieldDlg"},(0x20015A49),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkSelectFieldDlg.dll"-"!:\sys\bin\MTPbkSelectFieldDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FieldDlg.ini"-"!:\TestFramework\TestFramework_FieldDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFieldDlg.cfg"-"!:\TestFramework\tcBCTestFieldDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFieldDlg.cfg"-"!:\TestFramework\UI_BCTestFieldDlg.cfg" -"\epoc32\winscw\c\FieldDlg_c.bat"-"!:\FieldDlg_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/Bmarm/MTPbkSingleEntryFetchDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/Bmarm/MTPbkSingleEntryFetchDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/Bwins/MTPbkSingleEntryFetchDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/Bwins/MTPbkSingleEntryFetchDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/EABI/MTPbkSingleEntryFetchDlgU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/EABI/MTPbkSingleEntryFetchDlgU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/sis/BCTestSEFieldDlg.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleEntryFetchDlg/sis/BCTestSEFieldDlg.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkSingleEntryFetchDlg"},(0x20015A25),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkSingleEntryFetchDlg.dll"-"!:\sys\bin\MTPbkSingleEntryFetchDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_SEFieldDlg.ini"-"!:\TestFramework\TestFramework_SEFieldDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestSEFieldDlg.cfg"-"!:\TestFramework\tcBCTestSEFieldDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestSEFieldDlg.cfg"-"!:\TestFramework\UI_BCTestSEFieldDlg.cfg" -"\epoc32\winscw\c\SEFieldDlg_c.bat"-"!:\SEFieldDlg_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/Bmarm/MTPbkSingleItemFetchDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/Bmarm/MTPbkSingleItemFetchDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/Bwins/MTPbkSingleItemFetchDlgU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/Bwins/MTPbkSingleItemFetchDlgU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/EABI/MTPbkSingleItemFetchDlgU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/EABI/MTPbkSingleItemFetchDlgU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/sis/BCTestSIFetchDlg.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSingleItemFetchDlg/sis/BCTestSIFetchDlg.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkSingleItemFetchDlg"},(0x20015A48),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkSingleItemFetchDlg.dll"-"!:\sys\bin\MTPbkSingleItemFetchDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_SIFieldDlg.ini"-"!:\TestFramework\TestFramework_SIFieldDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestSIFieldDlg.cfg"-"!:\TestFramework\tcBCTestSIFieldDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestSIFieldDlg.cfg"-"!:\TestFramework\UI_BCTestSIFieldDlg.cfg" -"\epoc32\winscw\c\SIFieldDlg_c.bat"-"!:\SIFieldDlg_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/Bmarm/MTPbkSmsAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/Bmarm/MTPbkSmsAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/Bwins/MTPbkSmsAddressSelectU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/Bwins/MTPbkSmsAddressSelectU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/EABI/MTPbkSmsAddressSelectU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/EABI/MTPbkSmsAddressSelectU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16CSimulateKeyBase @ 2 NONAME + _ZTI18CSimulateKeyEvents @ 3 NONAME + _ZTV16CSimulateKeyBase @ 4 NONAME + _ZTV18CSimulateKeyEvents @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/sis/BCTestSMSAddSel.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/MTPbkSmsAddressSelect/sis/BCTestSMSAddSel.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkSmsAddressSelect"},(0x20015A27),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\MTPbkSmsAddressSelect.dll"-"!:\sys\bin\MTPbkSmsAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_SMSAddSel.ini"-"!:\TestFramework\TestFramework_SMSAddSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestSMSAddSel.cfg"-"!:\TestFramework\tcBCTestSMSAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestSMSAddSel.cfg"-"!:\TestFramework\UI_BCTestSMSAddSel.cfg" -"\epoc32\winscw\c\SMSAddSel_c.bat"-"!:\SMSAddSel_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/group/PbkFet.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/group/PbkFet.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Phonebook Fetch UI API +STIF + +The tests involve the Contacts Phonebook Fetch UI API + + + +C:\TestFramework\TestFramework_Pbkfetch.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkfetch.cfg -engineini C:\TestFramework\TestFramework.ini + + + 157 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Contacts_Pbkfetch.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/sis/Contacts_PbkFetchAPI.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/sis/Contacts_PbkFetchAPI.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MTPbkFetch"},(0x20015A4A),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where - -"\Epoc32\winscw\c\testframework\TestFramework_PBKFetch.ini"-"!:\TestFramework\TestFramework_PBKFetch.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkfetch.cfg"-"!:\TestFramework\tcBCTestPbkfetch.cfg" -"\epoc32\winscw\c\PBKFetch_c.bat"-"!:\PBKFetch.bat" - - - - - -;MTPbkSmsAddressSelect -"\Epoc32\Release\armv5\urel\MTPbkSmsAddressSelect.dll"-"!:\sys\bin\MTPbkSmsAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_SMSAddSel.ini"-"!:\TestFramework\TestFramework_SMSAddSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestSMSAddSel.cfg"-"!:\TestFramework\tcBCTestSMSAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestSMSAddSel.cfg"-"!:\TestFramework\UI_BCTestSMSAddSel.cfg" -"\epoc32\winscw\c\SMSAddSel_c.bat"-"!:\SMSAddSel_c.bat" - -;MTPbkSingleEntryFetchDlg -"\Epoc32\Release\armv5\urel\MTPbkSingleEntryFetchDlg.dll"-"!:\sys\bin\MTPbkSingleEntryFetchDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_SEFieldDlg.ini"-"!:\TestFramework\TestFramework_SEFieldDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestSEFieldDlg.cfg"-"!:\TestFramework\tcBCTestSEFieldDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestSEFieldDlg.cfg"-"!:\TestFramework\UI_BCTestSEFieldDlg.cfg" -"\epoc32\winscw\c\SEFieldDlg_c.bat"-"!:\SEFieldDlg_c.bat" - -;MTPbkPocAddressSelect -"\Epoc32\Release\armv5\urel\MTPbkPocAddressSelect.dll"-"!:\sys\bin\MTPbkPocAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PocAdd.ini"-"!:\TestFramework\TestFramework_PocAdd.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPocAdd.cfg"-"!:\TestFramework\tcBCTestPocAdd.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPocAdd.cfg"-"!:\TestFramework\UI_BCTestPocAdd.cfg" -"\epoc32\winscw\c\PocAdd_c.bat"-"!:\PocAdd_c.bat" - -;MTPbkPhoneNumberSelect -"\Epoc32\Release\armv5\urel\MTPbkPhoneNumberSelect.dll"-"!:\sys\bin\MTPbkPhoneNumberSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PhoneNumber.ini"-"!:\TestFramework\TestFramework_PhoneNumber.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPhoneNumber.cfg"-"!:\TestFramework\tcBCTestPhoneNumber.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPhoneNumber.cfg"-"!:\TestFramework\UI_BCTestPhoneNumber.cfg" -"\epoc32\winscw\c\PhoneNumber_c.bat"-"!:\PhoneNumber_c.bat" - -;MTPbkMultipleEntryFetchDlg -"\Epoc32\Release\armv5\urel\MTPbkMultipleEntryFetchDlg.dll"-"!:\sys\bin\MTPbkMultipleEntryFetchDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FetchDlg.ini"-"!:\TestFramework\TestFramework_FetchDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFetchDlg.cfg"-"!:\TestFramework\tcBCTestFetchDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFetchDlg.cfg"-"!:\TestFramework\UI_BCTestFetchDlg.cfg" -"\epoc32\winscw\c\FetchDlg_C.bat"-"!:\FetchDlg_C.bat" - -;MTPbkMmsAddressSelect -"\Epoc32\Release\armv5\urel\MTPbkMmsAddressSelect.dll"-"!:\sys\bin\MTPbkMmsAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_MMSAddSel.ini"-"!:\TestFramework\TestFramework_MMSAddSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestMMSAddSel.cfg"-"!:\TestFramework\tcBCTestMMSAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestMMSAddSel.cfg"-"!:\TestFramework\UI_BCTestMMSAddSel.cfg" -"\epoc32\winscw\c\MMSAddSel_c.bat"-"!:\MMSAddSel_c.bat" - -;MTPbkMemoryEntryAddItemDlg -"\Epoc32\Release\armv5\urel\MTPbkMemoryEntryAddItemDlg.dll"-"!:\sys\bin\MTPbkMemoryEntryAddItemDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkAddItemDlg.ini"-"!:\TestFramework\TestFramework_PbkAddItemDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkAddItemDlg.cfg"-"!:\TestFramework\tcBCTestPbkAddItemDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkAddItemDlg.cfg"-"!:\TestFramework\UI_BCTestPbkAddItemDlg.cfg" -"\epoc32\winscw\c\PbkAddItemDlg_c.bat"-"!:\PbkAddItemDlg_c.bat" - -;MTPbkFetchDlgSelection -"\Epoc32\Release\armv5\urel\MTPbkFetchDlgSelection.dll"-"!:\sys\bin\MTPbkFetchDlgSelection.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FetchSel.ini"-"!:\TestFramework\TestFramework_FetchSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFetchSel.cfg"-"!:\TestFramework\tcBCTestFetchSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFetchSel.cfg"-"!:\TestFramework\UI_BCTestFetchSel.cfg" -"\epoc32\winscw\c\FetchSel_c.bat"-"!:\FetchSel_c.bat" - -;MTPbkFetchCallbacks -"\Epoc32\Release\armv5\urel\MTPbkFetchCallbacks.dll"-"!:\sys\bin\MTPbkFetchCallbacks.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FCallback.ini"-"!:\TestFramework\TestFramework_FCallback.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFCallback.cfg"-"!:\TestFramework\tcBCTestFCallback.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFCallback.cfg"-"!:\TestFramework\UI_BCTestFCallback.cfg" -"\epoc32\winscw\c\FCallback_c.bat"-"!:\FCallback_c.bat" - -;MTPbkEmailOverSms -"\Epoc32\Release\armv5\urel\MTPbkEmailOverSms.dll"-"!:\sys\bin\MTPbkEmailOverSms.dll" -"\Epoc32\winscw\c\testframework\TestFramework_EmailOverSMS.ini"-"!:\TestFramework\TestFramework_EmailOverSMS.ini" -"\Epoc32\winscw\c\testframework\tcBCTestEmaiOVerSMS.cfg"-"!:\TestFramework\tcBCTestEmaiOVerSMS.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestEmaiOVerSMS.cfg"-"!:\TestFramework\UI_BCTestEmaiOVerSMS.cfg" -"\epoc32\winscw\c\EmailOVerSMS_c.bat"-"!:\EmailOVerSMS_c.bat" - -;MTPbkEmailAddressSelect -"\Epoc32\Release\armv5\urel\MTPbkEmailAddressSelect.dll"-"!:\sys\bin\MTPbkEmailAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_AddEmailSel.ini"-"!:\TestFramework\TestFramework_AddEmailSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestEmailAddSel.cfg"-"!:\TestFramework\tcBCTestEmailAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestEmailAddSel.cfg"-"!:\TestFramework\UI_BCTestEmailAddSel.cfg" -"\epoc32\winscw\c\EmailSel_c.bat"-"!:\EmailSel_c.bat" - -;MTPbkAddressSelect -"\Epoc32\Release\armv5\urel\MTPbkAddressSelect.dll"-"!:\sys\bin\MTPbkAddressSelect.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkAddSel.ini"-"!:\TestFramework\TestFramework_PbkAddSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkAddSel.cfg"-"!:\TestFramework\tcBCTestPbkAddSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkAddSel.cfg"-"!:\TestFramework\UI_BCTestPbkAddSel.cfg" -"\epoc32\data\z\resource\PbkAddressSelect.rsc"-"!:\resource\PbkAddressSelect.rsc" -"\epoc32\winscw\c\PbkAddSel_c.bat"-"!:\PbkAddSel_c.bat" - - -;MTPbkPhoneNumberSelectBase -"\Epoc32\Release\armv5\urel\MTPbkPhoneNumberSelectBase.dll"-"!:\sys\bin\MTPbkPhoneNumberSelectBase.dll" -"\Epoc32\winscw\c\testframework\TestFramework_NumSel.ini"-"!:\TestFramework\TestFramework_NumSel.ini" -"\Epoc32\winscw\c\testframework\tcBCTestNumSel.cfg"-"!:\TestFramework\tcBCTestNumSel.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestNumSel.cfg"-"!:\TestFramework\UI_BCTestNumSel.cfg" -"\epoc32\data\z\resource\MT_CPbkPhoneNumberSelectBase.rsc"-"!:\resource\MT_CPbkPhoneNumberSelectBase.rsc" -"\epoc32\winscw\c\NumSel_c.bat"-"!:\NumSel_c.bat" - -;MTPbkSelectFieldDlg -"\Epoc32\Release\armv5\urel\MTPbkSelectFieldDlg.dll"-"!:\sys\bin\MTPbkSelectFieldDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_FieldDlg.ini"-"!:\TestFramework\TestFramework_FieldDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestFieldDlg.cfg"-"!:\TestFramework\tcBCTestFieldDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestFieldDlg.cfg"-"!:\TestFramework\UI_BCTestFieldDlg.cfg" -"\epoc32\winscw\c\FieldDlg_c.bat"-"!:\FieldDlg_c.bat" - -;MTPbkSingleItemFetchDlg -"\Epoc32\Release\armv5\urel\MTPbkSingleItemFetchDlg.dll"-"!:\sys\bin\MTPbkSingleItemFetchDlg.dll" -"\Epoc32\winscw\c\testframework\TestFramework_SIFieldDlg.ini"-"!:\TestFramework\TestFramework_SIFieldDlg.ini" -"\Epoc32\winscw\c\testframework\tcBCTestSIFieldDlg.cfg"-"!:\TestFramework\tcBCTestSIFieldDlg.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestSIFieldDlg.cfg"-"!:\TestFramework\UI_BCTestSIFieldDlg.cfg" -"\epoc32\winscw\c\SIFieldDlg_c.bat"-"!:\SIFieldDlg_c.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/sis/Contacts_PbkFetchAPI.sis Binary file apicompatanamdw/bcdrivers/app/contacts/phonebook_fetch_ui_api/sis/Contacts_PbkFetchAPI.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/Bmarm/BCTestPbkUIUtilU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/Bmarm/BCTestPbkUIUtilU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/Bwins/BCTestPbkUIUtilU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/Bwins/BCTestPbkUIUtilU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/EABI/BCTestPbkUIUtilU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/EABI/BCTestPbkUIUtilU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/group/PbkUtils.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/group/PbkUtils.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Phonebook UI Utilities API +STIF + +The tests involve the Contacts Phonebook UI Utilities API + + + +C:\TestFramework\TestFramework_PbkUIUtil.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkUIUtil.cfg -engineini C:\TestFramework\TestFramework.ini + + + 36 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Contacts_PbkUIUtil.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/sis/Contacts_PbkUIUtil.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/sis/Contacts_PbkUIUtil.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"BCTestPbkUIUtil"},(0x20015B22),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestPbkUIUtil.dll"-"!:\sys\bin\BCTestPbkUIUtil.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PbkUIUtil.ini"-"!:\TestFramework\TestFramework_PbkUIUtil.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkUIUtil.cfg"-"!:\TestFramework\tcBCTestPbkUIUtil.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkUIUtil.cfg"-"!:\TestFramework\UI_BCTestPbkUIUtil.cfg" -"\epoc32\winscw\c\PbkUIUtil_c.bat"-"!:\PbkUIUtil.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/sis/Contacts_PbkUIUtil.sis Binary file apicompatanamdw/bcdrivers/app/contacts/phonebook_ui_utilities_api/sis/Contacts_PbkUIUtil.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/Bmarm/BCTestPbkVcardImportExportU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/Bmarm/BCTestPbkVcardImportExportU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/Bwins/BCTestPbkVcardImportExportU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/Bwins/BCTestPbkVcardImportExportU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/EABI/BCTestPbkVcardImportExportU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/EABI/BCTestPbkVcardImportExportU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/group/PbkVcard.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/group/PbkVcard.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Phonebook vCard ImportExport API +STIF + +The tests involve the Contacts Phonebook vCard Import/Export API + + + +c:\TestFramework\TestFramework_PbkVcardImportExport.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestPbkVcardImportExport.cfg -engineini C:\TestFramework\TestFramework.ini + + + 11 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Contacts_PbkVcardImportExport.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/sis/Contacts_PbkVcard.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/sis/Contacts_PbkVcard.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"PIM_VCardImportExport"},(0x20015B12),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestPbkVcardImportExport.dll"-"!:\sys\bin\BCTestPbkVcardImportExport.dll" -"\epoc32\data\C\bcardtest2\Basic02.src" -"!:\bcardtest2\Basic02.src" -"\epoc32\data\C\bcardtest2\basic03.vcf" -"!:\bcardtest2\basic03.vcf" -"\epoc32\data\C\bcardtest2\BasicCC01.ccf" -"!:\bcardtest2\BasicCC01.ccf" -"\epoc32\data\C\bcardtest2\BasicCC02.ccf" -"!:\bcardtest2\BasicCC02.ccf" -"\epoc32\data\C\bcardtest2\BasicCompactMaxSize.ccf" -"!:\bcardtest2\BasicCompactMaxSize.ccf" -"\epoc32\data\C\bcardtest2\BasicCompactNoBusiness.ccf" -"!:\bcardtest2\BasicCompactNoBusiness.ccf" -"\epoc32\data\C\bcardtest2\dummy.vcf" -"!:\bcardtest2\dummy.vcf" -"\epoc32\data\C\bcardtest2\JohnPic.GIF" -"!:\bcardtest2\JohnPic.GIF" -"\epoc32\data\C\bcardtest2\Picture2.vcf" -"!:\bcardtest2\Picture2.vcf" -"\Epoc32\winscw\c\testframework\TestFramework_PbkVcardImportExport.ini"-"!:\TestFramework\TestFramework_PbkVcardImportExport.ini" -"\Epoc32\winscw\c\testframework\tcBCTestPbkVcardImportExport.cfg"-"!:\TestFramework\tcBCTestPbkVcardImportExport.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestPbkVcardImportExport.cfg"-"!:\TestFramework\UI_BCTestPbkVcardImportExport.cfg" -"\epoc32\winscw\c\pbkvcard_c.bat"-"!:\pbkvcard.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/sis/Contacts_PbkVcard.sis Binary file apicompatanamdw/bcdrivers/app/contacts/phonebook_vcard_importexport_api/sis/Contacts_PbkVcard.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/Bmarm/BCTestSpeedDialU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/Bmarm/BCTestSpeedDialU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/Bwins/BCTestSpeedDialU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/Bwins/BCTestSpeedDialU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/EABI/BCTestSpeedDialU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/EABI/BCTestSpeedDialU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/BCTestSpeedDial.mmp --- a/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/BCTestSpeedDial.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/BCTestSpeedDial.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -37,12 +37,10 @@ USERINCLUDE ../inc -#if defined(__S60_) - APP_LAYER_SYSTEMINCLUDE -#else // __S60_ not defined - SYSTEMINCLUDE /epoc32/include - SYSTEMINCLUDE /epoc32/include/internal -#endif // __S60_ +APP_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include +SYSTEMINCLUDE /epoc32/include/platform +SYSTEMINCLUDE /epoc32/include/internal SOURCEPATH ../src SOURCE BCTestSpeedDial.cpp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/Spdial.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/Spdial.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,20 @@ + + +Speeddial API +STIF + +The tests involve the Contacts Speeddial API + + + +C:\TestFramework\TestFramework_Spdial.iniC:\TestFramework\TestFramework.ini + + -testmodule testcombiner -config C:\TestFramework\tcSpeeddial.cfg -engineini C:\TestFramework\TestFramework.ini + + + 12 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Contacts_SpeedDial.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/spddial_c.bat --- a/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/spddial_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/spddial_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of "Eclipse Public License v1.0" @@ -19,5 +19,5 @@ md e:\bctest\Results ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcSpeeddial.cfg -engineini C:\TestFramework\TestFramework.ini -copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\Contacts_SpeedDial.txt +copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\Contacts_speeddial.txt diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/spddial_z.bat --- a/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/spddial_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/group/spddial_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of "Eclipse Public License v1.0" @@ -18,8 +18,8 @@ md e:\bctest md e:\bctest\Results -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcSpeeddial.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\Contacts_SpeedDial.txt +ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcSpeeddial.cfg -engineini C:\TestFramework\TestFramework.ini +copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\Contacts_speeddial.txt diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/sis/Contacts_Spdial.pkg --- a/apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/sis/Contacts_Spdial.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"PIM_Spdial"},(0x20015B15),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestSpeedDial.dll"-"!:\sys\bin\BCTestSpeedDial.dll" -"\Epoc32\winscw\c\testframework\TestFramework_Spdial.ini"-"!:\TestFramework\TestFramework_Spdial.ini" -"\Epoc32\winscw\c\testframework\tcSpeeddial.cfg"-"!:\TestFramework\tcSpeeddial.cfg" -"\Epoc32\winscw\c\testframework\ui_Speeddial.cfg"-"!:\TestFramework\ui_Speeddial.cfg" -"\epoc32\winscw\c\spddial_c.bat"-"!:\spddial.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/sis/Contacts_Spdial.sis Binary file apicompatanamdw/bcdrivers/app/contacts/speed_dial_utility_control_api/sis/Contacts_Spdial.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/im/BCTforIMAPI/sis/52_IM.SIS Binary file apicompatanamdw/bcdrivers/app/im/BCTforIMAPI/sis/52_IM.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/im/BCTforIMAPI/sis/imapimt.ini --- a/apicompatanamdw/bcdrivers/app/im/BCTforIMAPI/sis/imapimt.ini Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -# IMPS Engine IM SDK API test module static settings -# Copy this file to %epocroot%\testframework -# All fields are mandatory - -# SAP -# Intranet network link for accesing Presence services / Wireless village -#Example: SAP=http://195.134.231.100/wv -SAP= - -# Userid -# UserId registered at SAP -Userid= - -# Password -# password of the above UserId, for accessing SAP -password= - -# Clientid -# no need to modify this -clientid=apiclient@imps.org - -# IAP -# If run on emulator, IAP=11 -# If run on HW, IAP is ID of Access Point using the SIM Operator's GPRS network, This can be found from "Access point" settings on Phone -# IAP should be a numeric value -IAP= - -# userid1 -# Any other userid registered at SAP -userid1= - -#userid2 -# Any other userid registered at SAP -userid2= - -# end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/Bmarm/BCAppLmkAddEditU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/Bmarm/BCAppLmkAddEditU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/Bwins/BCAppLmkAddEditU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/Bwins/BCAppLmkAddEditU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/EABI/BCAppLmkAddEditU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/EABI/BCAppLmkAddEditU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI17CLmkAddEditEngine @ 2 NONAME + _ZTV17CLmkAddEditEngine @ 3 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/group/Lmae.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/group/Lmae.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Landmarks UI AddEdit API +STIF + +The tests involve the Location Landmarks UI Add/Edit API + + + +C:\TestFramework\TestFramework_locaddedit.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcLmkAddEdit.cfg -engineini C:\TestFramework\TestFramework.ini + + + 6 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Location_LmkAddEdit.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/sis/Loc_addedit.SIS Binary file apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/sis/Loc_addedit.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/sis/Loc_addedit.pkg --- a/apicompatanamdw/bcdrivers/app/location/landmarks_ui_addedit_api/sis/Loc_addedit.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"loc_addedit"},(0x20015B16),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCAppLmkAddEdit.dll"-"!:\sys\bin\BCAppLmkAddEdit.dll" -"\Epoc32\winscw\c\testframework\TestFramework_locaddedit.ini"-"!:\TestFramework\TestFramework_locaddedit.ini" -"\Epoc32\winscw\c\testframework\tcLmkAddEdit.cfg"-"!:\TestFramework\tcLmkAddEdit.cfg" -"\Epoc32\winscw\c\testframework\UI_LmkAddEdit.cfg"-"!:\TestFramework\UI_LmkAddEdit.cfg" -"\epoc32\winscw\c\lmae_c.bat"-"!:\lmae.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/Bmarm/LandmarksItemIdDbCombiInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/Bmarm/LandmarksItemIdDbCombiInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/Bwins/LandmarksItemIdDbCombiInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/Bwins/LandmarksItemIdDbCombiInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/EABI/LandmarksItemIdDbCombiInfoU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/EABI/LandmarksItemIdDbCombiInfoU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/group/Lmdb.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/group/Lmdb.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Landmarks ItemDB API +STIF + +The tests involve the Location Landmarks ItemDB API + + + +C:\TestFramework\TestFramework_locdbci.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcLmkItemIdDbCombiInfo.cfg -engineini C:\TestFramework\TestFramework.ini + + + 3 + c:\logs\TestFramework\TestReport.txte:\BCTest\results\Location_LmkItemIdDbCombiInfo.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/sis/Loc_itemdbci.SIS Binary file apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/sis/Loc_itemdbci.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/sis/Loc_itemdbci.pkg --- a/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BCAppLmkItemIdDbCombiInfo/sis/Loc_itemdbci.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"loc_itemdbci"},(0x20015B17),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\LandmarksItemIdDbCombiInfo.dll"-"!:\sys\bin\LandmarksItemIdDbCombiInfo.dll" -"\Epoc32\winscw\c\testframework\TestFramework_locdbci.ini"-"!:\TestFramework\TestFramework_locdbci.ini" -"\Epoc32\winscw\c\testframework\tcLmkItemIdDbCombiInfo.cfg"-"!:\TestFramework\tcLmkItemIdDbCombiInfo.cfg" -"\Epoc32\winscw\c\testframework\UI_LmkItemIdDbCombiInfo.cfg"-"!:\TestFramework\UI_LmkItemIdDbCombiInfo.cfg" -"\epoc32\winscw\c\lmdb_c.bat"-"!:\lmitemdb.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/Bmarm/LmkSelectorU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/Bmarm/LmkSelectorU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/Bwins/LmkSelectorU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/Bwins/LmkSelectorU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/EABI/LmkSelectorU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/EABI/LmkSelectorU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI10CLmkEngine @ 2 NONAME + _ZTV10CLmkEngine @ 3 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/group/Lmsl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/group/Lmsl.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Landmarks UI Selector API +STIF + +The tests involve the Location Landmarks UI Selector API + + + +C:\TestFramework\TestFramework_locsel.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcLmkSelector.cfg -engineini C:\TestFramework\TestFramework.ini + + + 8 + c:\logs\TestFramework\TestReport.txte:\BCTest\results\Location_LmkSelector.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/sis/Loc_selector.SIS Binary file apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/sis/Loc_selector.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/sis/Loc_selector.pkg --- a/apicompatanamdw/bcdrivers/app/location/landmarks_ui_selector_api/BcAppLmkSelector/sis/Loc_selector.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"loc_selector"},(0x20015B18),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\LmkSelector.dll"-"!:\sys\bin\LmkSelector.dll" -"\Epoc32\winscw\c\testframework\TestFramework_locsel.ini"-"!:\TestFramework\TestFramework_locsel.ini" -"\Epoc32\winscw\c\testframework\tcLmkSelector.cfg"-"!:\TestFramework\tcLmkSelector.cfg" -"\Epoc32\winscw\c\testframework\UI_LmkSelector.cfg"-"!:\TestFramework\UI_LmkSelector.cfg" -"\epoc32\winscw\c\lmsl_c.bat"-"!:\lmsl.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/Bmarm/MMSClientMTMBCTesterU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/Bmarm/MMSClientMTMBCTesterU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/Bwins/MMSClientMTMBCTesterU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/Bwins/MMSClientMTMBCTesterU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/EABI/MMSClientMTMBCTesterU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/EABI/MMSClientMTMBCTesterU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,6 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI31CMMSClientMTMBCTesterController @ 3 NONAME ; ## + _ZTV31CMMSClientMTMBCTesterController @ 4 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/group/mms.bat --- a/apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/group/mms.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy c:\TestFramework\TestFramework_MMSClientMTMBCTester.ini c:\TestFramework\TestFramework.ini - -md e:\bctest -md e:\bctest\results - -ATSINTERFACE.EXE -testmodule MMSClientMTMBCTester -moduleini c:\TestFramework\MMSClientMTMBCTester.ini - -copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\Messaging_MMSClientMTM.txt diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/sis/MMSClient.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/sis/MMSClient.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +MMS Client MTM API +STIF + +The tests involve the Messaging MMS Client MTM API + + + +c:\TestFramework\TestFramework_MMSClientMTMBCTester.inic:\TestFramework\TestFramework.ini + -testmodule MMSClientMTMBCTester -moduleini c:\TestFramework\MMSClientMTMBCTester.ini -engineini c:\TestFramework\TestFramework.ini + + + 70 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Messaging_MMSClientMTM.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/sis/Messaging_MMSClientMTM.SIS Binary file apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/sis/Messaging_MMSClientMTM.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/sis/Messaging_MMSClientMTM.pkg --- a/apicompatanamdw/bcdrivers/app/messaging/mms_client_mtm_api/sis/Messaging_MMSClientMTM.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +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: -; -; MMSClientMTMBCTester.pkg -; Package file for MMS Client MTM BC Tester - - -; Languages -&EN - - -; Package header -#{"MMSClientMTMBCTester"}, (0x10282C89), 1, 0, 0 - - -;Localised Vendor name -%{"Nokia Testing"} - -;Unique Vendor name -:"Nokia" - -;Supports Series 60 v 3.0 -[0x101F7961], 3, *, *, {"Series60ProductID"} - -; Files -"\epoc32\release\armv5\urel\MMSClientMTMBCTester.dll"-"!:\sys\bin\MMSClientMTMBCTester.dll" -"..\data\TestFramework_MMSClientMTMBCTester.ini"-"!:\TestFramework\TestFramework_MMSClientMTMBCTester.ini" -"..\data\MMSClientMTMBCTester.ini"-"!:\TestFramework\MMSClientMTMBCTester.ini" -"..\data\MMSClientMTMBCTester_TestImage.jpg"-"!:\TestFramework\MMSClientMTMBCTester_TestImage.jpg" -".\mms.bat"-"!:\mms.bat" - -; End of file: MMSClientMTMBCTester.pkg diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/Bmarm/PluginBioControlAPITestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/Bmarm/PluginBioControlAPITestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/Bwins/PluginBioControlAPITestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/Bwins/PluginBioControlAPITestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + ?NewL@CMsgBioCtrlTest@@SAPAVCMsgBioControl@@AAVMMsgBioControlObserver@@PAVCMsvSession@@JW4TMsgBioMode@@PBVRFile@@@Z @ 2 NONAME ; class CMsgBioControl * CMsgBioCtrlTest::NewL(class MMsgBioControlObserver &, class CMsvSession *, long, enum TMsgBioMode, class RFile const *) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/EABI/PluginBioControlAPITestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/EABI/PluginBioControlAPITestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,6 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZN15CMsgBioCtrlTest4NewLER22MMsgBioControlObserverP11CMsvSessionl11TMsgBioModePK5RFile @ 2 NONAME + _ZTI17CEdwinTestControl @ 3 NONAME ; ## + _ZTV17CEdwinTestControl @ 4 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/group/PluginBio.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/group/PluginBio.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Plugin Bio Control API +STIF + +The tests involve the Messaging Plugin Bio Control API + + + +C:\TestFramework\TestFramework_PluginBio.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcTestUIBioCombiner.cfg -engineini C:\TestFramework\TestFramework.ini + + + 2 + c:\logs\TestFramework\TestReport.txte:\BCTest\results\Messaging_PluginBioControl.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/sis/Messaging_PluginBio.pkg --- a/apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/sis/Messaging_PluginBio.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +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: -; -; -; Install files for PluginBioControlAPI test Dll -; - -; Supported languages -&EN - -; Package header -#{"PluginBioControlAPITest"}, (0x101FB4E2), 1, 2, 3, TYPE=SA - -; Series 60 v5.0 -[0x1028315F], *, *, *, {"Series60ProductID"} - -; Localised vendor name -%{"Nokia Test EN"} -; Unique vendor name -:"Nokia" - -;Files to install -; -"\epoc32\release\armv5\urel\PluginBioControlAPITest.dll"-"C:\sys\bin\PluginBioControlAPITest.dll" -"\Epoc32\winscw\c\testframework\tcTestUIBioCombiner.cfg"-"C:\TestFramework\tcTestUIBioCombiner.cfg" -"\Epoc32\winscw\c\testframework\ui_PluginBioControlAPITest.cfg"-"C:\TestFramework\ui_PluginBioControlAPITest.cfg" -"\Epoc32\winscw\c\testframework\TestFramework_PluginBio.ini"-"C:\TestFramework\TestFramework_PluginBio.ini" -"..\Data\mmc\PluginBioControlAPITest\test.txt"-"E:\testing\Data\PluginBioControlAPITest\test.txt" -"..\Data\mmc\PluginBioControlAPITest\PluginBioControlAPITest.rsc"-"C:\resource\PluginBioControlAPITest.rsc" -"..\group\PluginBio_c.bat"-"!:\bioctl.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/sis/Messaging_PluginBio.sis Binary file apicompatanamdw/bcdrivers/app/messaging/plugin_bio_control_api/sis/Messaging_PluginBio.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/Bmarm/BCTestCalendar2U.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/Bmarm/BCTestCalendar2U.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/Bwins/BCTestCalendar2U.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/Bwins/BCTestCalendar2U.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/EABI/BCTestCalendar2U.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/EABI/BCTestCalendar2U.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/group/Cal.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/group/Cal.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Calendar API +STIF + +The tests involve the Organizer Calendar API + + + +c:\TestFramework\TestFramework_PIMCalendar.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestCalendar2.cfg -engineini C:\TestFramework\TestFramework.ini + + + 7 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Organizer_Calendar.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/sis/Org_Calendar.pkg --- a/apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/sis/Org_Calendar.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"PIM_Calendar"},(0x20015B13),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestCalendar2.dll"-"!:\sys\bin\BCTestCalendar2.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PIMCalendar.ini"-"!:\TestFramework\TestFramework_PIMCalendar.ini" -"\Epoc32\winscw\c\testframework\tcBCTestCalendar2.cfg"-"!:\TestFramework\tcBCTestCalendar2.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestCalendar2.cfg"-"!:\TestFramework\UI_BCTestCalendar2.cfg" -"\epoc32\winscw\c\calendar_c.bat"-"!:\calendar.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/sis/Org_Calendar.sis Binary file apicompatanamdw/bcdrivers/app/organizer/calendar_interim_utils2_api/sis/Org_Calendar.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/Bmarm/BCTestClockU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/Bmarm/BCTestClockU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/Bwins/BCTestClockU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/Bwins/BCTestClockU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/EABI/BCTestClockU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/EABI/BCTestClockU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/group/BCTestClock.mmp --- a/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/group/BCTestClock.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/group/BCTestClock.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -18,7 +18,7 @@ #if defined(__S60_) // To get the OSEXT_LAYER_SYSTEMINCLUDE-definition - #include + // #include #endif TARGET BCTestClock.dll @@ -34,37 +34,21 @@ //TARGETPATH ?target_path DEFFILE BCTestClock.def -#ifdef SBSv2 - USERINCLUDE ../inc - - #if defined(__S60_) - OSEXT_LAYER_SYSTEMINCLUDE - #else // __S60_ not defined - SYSTEMINCLUDE /epoc32/include - SYSTEMINCLUDE /epoc32/include/internal - #endif // __S60_ +USERINCLUDE ../inc - SOURCEPATH ../src -#else // SBSv2 not defined - USERINCLUDE ..\inc +APP_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include +SYSTEMINCLUDE /epoc32/include/platform +SYSTEMINCLUDE /epoc32/include/middleware +SYSTEMINCLUDE /epoc32/include/internal - #if defined(__S60_) - OSEXT_LAYER_SYSTEMINCLUDE - #else // __S60_ not defined - SYSTEMINCLUDE \epoc32\include - SYSTEMINCLUDE \epoc32\include\internal - #endif // __S60_ +SOURCEPATH ../src -SYSTEMINCLUDE \epoc32\include -SYSTEMINCLUDE \epoc32\include\middleware SYSTEMINCLUDE \epoc32\include\domain\middleware SYSTEMINCLUDE \epoc32\include\osextensions SYSTEMINCLUDE \epoc32\include\domain\osextensions SYSTEMINCLUDE \epoc32\include\applications -SYSTEMINCLUDE \epoc32\include\internal - SOURCEPATH ..\src -#endif // SBSv2 SOURCE BCTestClock.cpp SOURCE BCTestClockBlocks.cpp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/group/Clock.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/group/Clock.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Clock API +STIF + +The tests involve the App/Organizer Clock API + + + +C:\TestFramework\TestFramework_PIMClock.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestClock.cfg -engineini C:\TestFramework\TestFramework.ini + + + 4 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Organizer_Clock.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/sis/Org_Clock.pkg --- a/apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/sis/Org_Clock.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"PIM_Clock"},(0x20015B14),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestClock.dll"-"!:\sys\bin\BCTestClock.dll" -"\Epoc32\winscw\c\testframework\TestFramework_PIMClock.ini"-"!:\TestFramework\TestFramework_PIMClock.ini" -"\Epoc32\winscw\c\testframework\tcBCTestClock.cfg"-"!:\TestFramework\tcBCTestClock.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestClock.cfg"-"!:\TestFramework\UI_BCTestClock.cfg" -"\epoc32\winscw\c\clock_c.bat"-"!:\clock.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/sis/Org_clock.sis Binary file apicompatanamdw/bcdrivers/app/organizer/common_date_time_view_api/sis/Org_clock.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/Bmarm/TestNpdApiU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/Bmarm/TestNpdApiU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/Bwins/TestNpdApiU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/Bwins/TestNpdApiU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/EABI/TestNpdApiU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/EABI/TestNpdApiU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/group/Npd.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/group/Npd.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Notepad API +STIF + +The tests involve the Organizer Notepad API + + + +c:\TestFramework\TestFramework_npd.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\TestNpdApi.cfg -engineini C:\TestFramework\TestFramework.ini + + + 9 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Organizer_NotepadLibrary.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/sis/Org_NpdApi.SIS Binary file apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/sis/Org_NpdApi.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/sis/Org_NpdApi.pkg --- a/apicompatanamdw/bcdrivers/app/organizer/notepad_library_api/sis/Org_NpdApi.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +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 - -; Name, UID for installation, Maj.Ver., Min.Ver., Variant, FLAG TO SPECIFY UNICODE, System component -; ================================================================================================== -#{"notepad library api Test"},(0x101FB3E7),1,0,1,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - - -; Localised Vendor name -%{"Nokia-EN"} - -; Unique Vendor name -:"Nokia" - -"\epoc32\release\armv5\urel\TestNpdApi.dll" -"!:\sys\bin\TestNpdApi.dll" -"\epoc32\winscw\c\TestNpdApi.txt" -"c:\testing\data\TestNpdApi.txt" -"\epoc32\winscw\c\testframework\testframework_npd.ini" -"c:\TestFramework\testframework_npd.ini" -"\epoc32\winscw\c\testframework\TestNpdApi.cfg" -"c:\TestFramework\TestNpdApi.cfg" -"\epoc32\winscw\c\testframework\ui_TestNpdApi.cfg" -"c:\TestFramework\ui_TestNpdApi.cfg" -"\epoc32\winscw\c\npd_c.bat" -"!:\npd.bat" - - - -; eof - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/SelfSignedStartupApp/sis/AppIns_SelfSignedStartupListMgmt.pkg --- a/apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/SelfSignedStartupApp/sis/AppIns_SelfSignedStartupListMgmt.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +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 -#{"StartupListManagement_SelfSigned"},(0x99887766),1,0,0, TYPE=SA - -;Localised Vendor name -%{"Vendor-EN"} - -;Unique Vendor name -:"Vendor" - -;Supports Series 60 v 3.0 -[0x101F7961], 3, *, *, {"Series60ProductID"} - -; Install files - -"\epoc32\release\armv5\urel\SelfSignedStartupApp.exe" -"c:\sys\bin\SelfSignedStartupApp.exe" -"\epoc32\data\z\resource\99887766.rsc" -"c:\private\101f875a\import\[99887766].rsc" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/SelfSignedStartupApp/sis/AppIns_SelfSignedStartupListMgmt.sis Binary file apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/SelfSignedStartupApp/sis/AppIns_SelfSignedStartupListMgmt.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/StartupApp/sis/AppIns_StartupListMgmt.pkg --- a/apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/StartupApp/sis/AppIns_StartupListMgmt.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +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 -#{"StartupListManagement"},(0x11223344),1,0,0, TYPE=SA - -;Localised Vendor name -%{"Vendor-EN"} - -;Unique Vendor name -:"Vendor" - -;Supports Series 60 v 3.0 -[0x101F7961], 3, *, *, {"Series60ProductID"} - -; Install files - -"\epoc32\release\armv5\urel\StartupApp.exe" -"c:\sys\bin\StartupApp.exe" -"\epoc32\data\z\resource\11223344.rsc" -"c:\private\101f875a\import\[11223344].rsc" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/StartupApp/sis/AppIns_StartupListMgmt.sis Binary file apicompatanamdw/bcdrivers/mw/appinstall/startup_list_management_api/StartupApp/sis/AppIns_StartupListMgmt.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/flash_viewer_framework_api/sis/AppSup_FlashViewerFramework.pkg --- a/apicompatanamdw/bcdrivers/mw/appsupport/flash_viewer_framework_api/sis/AppSup_FlashViewerFramework.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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: -; -;FlashViewerFramework -; -;Languages - UK English, US English -&EN - -; SAFlash - standalone player -; UID is the app's UID -#{"FlashViewerFramework"},(0x10282355),1,0,0,TYPE=SA - -; Localised Vendor name -%{"Vendor-EN"} - -; Unique Vendor name -:"Vendor" - -;Supports Series 60 v 3.0 -[0x101F7961], 3, *, *, {"Series60ProductID"} - -; Install files - -"\epoc32\release\armv5\urel\testdrive_saflash.exe" -"!:\sys\bin\testdrive_saflash.exe" -"\epoc32\Data\z\app_resource_dir\testdrive_saflash.rsc" -"!:\resource\apps\testdrive_saflash.rsc" -"\epoc32\data\Z\private\10003a3f\apps\testdrive_saflash_reg.rsc" -"!:\private\10003a3f\import\apps\testdrive_saflash_reg.rsc" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/flash_viewer_framework_api/sis/AppSup_FlashViewerFramework.sis Binary file apicompatanamdw/bcdrivers/mw/appsupport/flash_viewer_framework_api/sis/AppSup_FlashViewerFramework.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/Bmarm/NetworkStatusTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/Bmarm/NetworkStatusTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/Bwins/NetworkStatusTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/Bwins/NetworkStatusTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/EABI/NetworkStatusTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/EABI/NetworkStatusTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/group/NS.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/group/NS.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Network Status API +STIF + +The tests involve the AppSup Network Status API + + + + -testmodule NetworkStatusTest + + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\AppSupport_NetworkStatus.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/sis/AppSup_NWStatus.SIS Binary file apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/sis/AppSup_NWStatus.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/sis/AppSup_NWStatus.pkg --- a/apicompatanamdw/bcdrivers/mw/appsupport/network_status_api/sis/AppSup_NWStatus.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"SystemSW_NetworkStatus"},(0x10282C9A),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\NetworkStatusTest.dll"-"!:\sys\bin\NetworkStatusTest.dll" -"\Epoc32\winscw\c\TestFramework\Testframework_NetworkStatus.ini"-"!:\TestFramework\Testframework_NetworkStatus.ini" -"\Epoc32\winscw\c\ns.bat"-"!:\ns.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/Bmarm/ProEngWrapAPIU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/Bmarm/ProEngWrapAPIU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/Bwins/ProEngWrapAPIU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/Bwins/ProEngWrapAPIU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/EABI/ProEngWrapAPIU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/EABI/ProEngWrapAPIU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/group/ProEng.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/group/ProEng.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Profiles Engine Wrapper API +STIF + +The tests involve the AppSup Profiles Engine Wrapper API + + + +C:\TestFramework\testframework_ProEngWrapAPI.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\ProEngWrapAPI.cfg -engineini C:\TestFramework\TestFramework.ini + + + 60 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\AppSupport_ProEngWrapAPI.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/group/proeng.bat --- a/apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/group/proeng.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\testframework_ProEngWrapAPI.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testscripter -config C:\TestFramework\ProEngWrapAPI.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\AppSupport_ProEngWrapAPI.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/sis/AppSup_PROENG.pkg --- a/apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/sis/AppSup_PROENG.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"SP_ProEngWrapAPI"},(0x20015A1D),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where - -"\Epoc32\Release\armv5\urel\ProEngWrapAPI.dll"-"!:\sys\bin\ProEngWrapAPI.dll" -"\Epoc32\winscw\c\testframework\testframework_ProEngWrapAPI.ini"-"!:\TestFramework\testframework_ProEngWrapAPI.ini" -"\Epoc32\winscw\c\testframework\ProEngWrapAPI.cfg"-"!:\TestFramework\ProEngWrapAPI.cfg" -"\epoc32\winscw\c\proeng.bat"-"!:\proeng.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/sis/AppSup_PROENG.sis Binary file apicompatanamdw/bcdrivers/mw/appsupport/profiles_engine_wrapper_api/sis/AppSup_PROENG.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,22 @@ +/* +* 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: +* +*/ + + +#include "../uifw/group/bld.inf" + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsound_lst.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsound_lst.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsound_lst_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsound_lst_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsoundaif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsoundaif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,32 @@ +/* +* 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 "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: RSS for creating the aif file +* +*/ + + +#include + +#include "bctestaknsound.loc" + +RESOURCE AIF_DATA + { + app_uid = 0x101F84B0; + groupName= qtn_group_name; + num_icons = 2; + embeddability=KAppNotEmbeddable; + newfile=KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsoundsmallicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsoundsmallicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsoundsmalliconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/aif/bctestaknsoundsmalliconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bctestaknsound.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bctestaknsound.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,94 @@ +/* +* 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 "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: project specification file for the BCTestAknsound. +* +*/ + + +TARGET bctestaknsound.exe +TARGETTYPE exe +UID 0x0 0x200045C8 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestaknsound.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestaknsoundapp.cpp +SOURCE bctestaknsounddocument.cpp +SOURCE bctestaknsoundappui.cpp +SOURCE bctestaknsoundview.cpp +SOURCE bctestaknsoundcontainer.cpp +SOURCE bctestaknsoundinfocase.cpp +SOURCE bctestaknsoundsystemcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +// Creates Mbm file. +START BITMAP bctestaknsound.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../DataSrc +SOURCE C8 SampleIcon.bmp +SOURCE C8 SampleIconMask.bmp +END + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestaknsound_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. +START BITMAP bctestaknsound_Aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 bctestaknsoundsmallicon.bmp +source c8 bctestaknsoundsmalliconmask.bmp +source c8 bctestaknsound_lst.bmp +source c8 bctestaknsound_lst_mask.bmp +end + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bctestaknsound.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bctestaknsound.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,230 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME SUND + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestaknsound.hrh" +#include "bctestaknsound.loc" +#include "bctestaknsound_01.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTAKNSound_BMP_FNAME APP_BITMAP_DIR"\\BCTestAknSound.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_sound_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestaknsound_menubar_main; + cba = r_bctestaknsound_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestaknsound_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestaknsound_view +// AVKON_VIEW for CBCTestAknSoundView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestaknsound_view + { + menubar = r_bctestaknsound_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestaknskey_list +// AVKON_SKEY_LIST for CBCTestAknSoundSystemCase +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SOUND_INFO_LIST r_bctestaknsinfo_list + { + list = + { + AVKON_SOUND_INFO + { + sid = EAvkonSIDNoSound; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestaknsound_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestaknsound_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestaknsound_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestaknsound_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestaknSound_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestaknsound_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestaknsound_outline1; + }, + + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestaknsound_outline2; + } + + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestaknSound_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestaknsound_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestaknsound_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestaknsound_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestaknsound_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestaknsound_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestAknSoundCbaCmdNext; + txt = qtn_bctestaknsound_cba_next; + } + }; + } + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bctestaknsound_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bctestaknsound_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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: +* +*/ +#include +#include + +#include "bctestaknsound.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045C8 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_app_file; + localisable_resource_file = qtn_localisable_file; + localisable_resource_id = R_BCTESTAKNSOUND_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestAknSound.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsound.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsound.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ +/* +* 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 "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: BCTestAknSound resource header file +* +*/ + + +#ifndef BCTESTAKNSOUND_HRH +#define BCTESTAKNSOUND_HRH + +enum TBCTestAknSoundMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestAknSoundCba + { + EBCTestAknSoundCbaCmdNext = 0x6300 + }; + +#endif // BCTESTAKNSOUND_HRH + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsound.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsound.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,49 @@ +/* +* 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 "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: BCTestAknSound localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTAKNSOUND" +#define qtn_apps_tavl_grid "BCTESTAKNSOUND" + +#define qtn_group_name "BCTest" +#define qtn_sound_buf "AKnSound" +#define qtn_app_file "BCTestAknSound" +#define qtn_localisable_file "\\resource\\apps\\BCTestAknSound" + + +// MenuBar +#define qtn_bctestaknsound_menubar "Option" +#define qtn_bctestaknsound_cba_next "Next" +#define qtn_bctestaknsound_autotest "Autotest" +#define qtn_bctestaknsound_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestaknsound_outline1 "Outline01" +#define qtn_bctestaknsound_outline2 "Outline02" + + +#define qtn_bctestaknsound_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsound_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsound_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestAknSound localise file +* +*/ + + +#include "bctestaknsound.loc" + +// LOCALISATION STRINGS + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTAKNSOUNDAPP_H +#define C_CBCTESTAKNSOUNDAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestAknSound = { 0x200045C8 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestAknSoundApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestAknSoundApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestAknSoundDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestAknSound ). + * @return The value of KUidBCTestAknSound. + */ + TUid AppDllUid() const; + + }; + +#endif + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_CBCTESTAKNSOUNDAPPUI_H +#define C_CBCTESTAKNSOUNDAPPUI_H + +#include + +class CBCTestAknSoundView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestAknSoundAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestAknSoundAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestAknSoundAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestAknSoundView* iView; + }; + +#endif // C_CBCTESTAKNSOUNDAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_CBCTESTAKNSOUNDCONTAINER_H +#define C_CBCTESTAKNSOUNDCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestAknSoundContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestAknSoundContainer(); + + /** + * Destructor + */ + virtual ~CBCTestAknSoundContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTAKNSOUNDCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsounddocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsounddocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 C_CBCTESTAKNSOUNDDOCUMENT_H +#define C_CBCTESTAKNSOUNDDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestAknSoundDocument application class. +*/ +class CBCTestAknSoundDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestAknSoundDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestAknSoundDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestAknSoundDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestAknSoundAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_CBCTESTAKNSOUNDDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundinfocase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundinfocase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAKNSOUNDINFOCASE_H +#define C_CBCTESTAKNSOUNDINFOCASE_H + +#include "bctestcase.h" + +class CBCTestAknSoundContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAknSoundInfoCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAknSoundInfoCase* NewL( CBCTestAknSoundContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestAknSoundInfoCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAknSoundInfoCase( CBCTestAknSoundContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestAknSoundContainer* iContainer; + + }; + +#endif // C_CBCTESTAKNSOUNDINFOCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundsystemcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundsystemcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAKNSOUNDSYSTEMCASE_H +#define C_CBCTESTAKNSOUNDSYSTEMCASE_H + +#include "bctestcase.h" + +class CBCTestAknSoundContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAknSoundSystemCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAknSoundSystemCase* NewL( CBCTestAknSoundContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestAknSoundSystemCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAknSoundSystemCase( CBCTestAknSoundContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestAknSoundContainer* iContainer; + + }; + +#endif // C_CBCTESTAKNSOUNDSYSTEMCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/inc/bctestaknsoundview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,102 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_CBCTESTAKNSOUNDVIEW_H +#define C_CBCTESTAKNSOUNDVIEW_H + +#include + +const TUid KBCTestAknSoundViewId = { 1 }; + +class CBCTestAknSoundContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestAknSoundView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestAknSoundView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestAknSoundView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAknSoundView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestAknSoundContainer* iContainer; + + }; + +#endif // C_CBCTESTAKNSOUNDVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/sis/bctestaknsound.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/sis/bctestaknsound.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +; +; 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: +; +; BCTestAknSound-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestAknSound"},(0x200045C8),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestAknSound.exe"- +"!:\sys\bin\BCTestAknSound.exe" + +"\epoc32\data\z\resource\apps\BCTestAknSound.RSC"- +"!:\resource\apps\BCTestAknSound.RSC" + +"\epoc32\data\z\resource\apps\BCTestAknSound_aif.mbm"- +"!:\resource\apps\BCTestAknSound_aif.mbm" + +"\epoc32\data\z\resource\apps\BCTestAknSound.mbm"- +"!:\resource\apps\BCTestAknSound.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestAknSound_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestAknSound_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Sound test app +* +*/ + + +// INCLUDE FILES +#include "bctestaknsoundapp.h" +#include "bctestaknsounddocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestAknSoundApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestAknSoundApp::AppDllUid() const + { + return KUidBCTestAknSound; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestAknSoundApp::CreateDocumentL() +// Creates CBCTestAknSoundDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestAknSoundApp::CreateDocumentL() + { + return CBCTestAknSoundDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestAknSoundApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestAknSoundApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestaknsoundappui.h" +#include "bctestaknsound.hrh" +#include "bctestaknsoundview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestAknSoundAppUi::CBCTestAknSoundAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestAknSoundView* view = CBCTestAknSoundView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestAknSoundAppUi::~CBCTestAknSoundAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestAknSoundAppUi::~CBCTestAknSoundAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestAknSoundAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,114 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestaknsoundcontainer.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundContainer::CBCTestAknSoundContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundContainer::~CBCTestAknSoundContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestAknSoundContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestAknSoundContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestAknSoundContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestAknSoundContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsounddocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsounddocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "bctestaknsounddocument.h" +#include "bctestaknsoundappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestAknSoundDocument* CBCTestAknSoundDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestAknSoundDocument* CBCTestAknSoundDocument::NewL( CEikApplication& aApp ) + { + CBCTestAknSoundDocument* self = new( ELeave ) CBCTestAknSoundDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestAknSoundDocument::~CBCTestAknSoundDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestAknSoundDocument::~CBCTestAknSoundDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestAknSoundDocument::CBCTestAknSoundDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestAknSoundDocument::CBCTestAknSoundDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestAknSoundDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestAknSoundDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestAknSoundAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundinfocase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundinfocase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,125 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include "bctestaknsoundinfocase.h" +#include "bctestaknsoundcontainer.h" +#include "bctestaknsound.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundInfoCase* CBCTestAknSoundInfoCase::NewL( + CBCTestAknSoundContainer* aContainer ) + { + CBCTestAknSoundInfoCase* self = new( ELeave ) CBCTestAknSoundInfoCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundInfoCase::CBCTestAknSoundInfoCase( + CBCTestAknSoundContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundInfoCase::~CBCTestAknSoundInfoCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundInfoCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundInfoCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundInfoCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundInfoCase::TestFunctionL() + { + // Test some API here + CAknSoundInfo *aknsoundinfo = CAknSoundInfo::NewL(); + _LIT (KNewL, "BCTestAknSoundInfo::NewL"); + AssertNotNullL( aknsoundinfo, KNewL); + + RReadStream readstream; + aknsoundinfo->InternalizeL( readstream ); + _LIT (KInternalizeL, "BCTestAknSoundInfo::InternalizeL"); + AssertNotNullL( aknsoundinfo, KInternalizeL); + + RWriteStream writestream; + aknsoundinfo->ExternalizeL( writestream ); + _LIT (KExternalizeL, "BCTestAknSoundInfo::ExternalizeL"); + AssertNotNullL( aknsoundinfo, KExternalizeL); + delete aknsoundinfo; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundsystemcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundsystemcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,171 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include "bctestaknsoundsystemcase.h" +#include "bctestaknsoundcontainer.h" +#include "bctestaknsound.hrh" + +// Constant +const TInt KUid = 100; +const TInt KResourceId = 10; +const TInt KSid = 20; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundSystemCase* CBCTestAknSoundSystemCase::NewL( + CBCTestAknSoundContainer* aContainer ) + { + CBCTestAknSoundSystemCase* self = new( ELeave ) CBCTestAknSoundSystemCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundSystemCase::CBCTestAknSoundSystemCase( + CBCTestAknSoundContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundSystemCase::~CBCTestAknSoundSystemCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundSystemCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundSystemCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundSystemCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundSystemCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundSystemCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline2 || aCmd > EBCTestCmdOutline2 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline2: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundSystemCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundSystemCase::TestFunctionL() + { + // Test some API here + CAknKeySoundSystem *aknsoundsystem = CAknKeySoundSystem::NewL( KUid ); + CleanupStack::PushL( aknsoundsystem ); + _LIT ( KBCTestAknSoundSystem, "BCTestAknSound System NewL" ); + AssertNotNullL( aknsoundsystem, KBCTestAknSoundSystem ); + + aknsoundsystem->PushContextL( KResourceId ); + _LIT ( KInfoPushContext, "BCTestAknSound System PushContextL" ); + AssertNotNullL( aknsoundsystem, KInfoPushContext); + + aknsoundsystem->PopContext(); + _LIT ( KInfoPopContext, "BCTestAknSound System PopContext" ); + AssertNotNullL( aknsoundsystem, KInfoPopContext ); + + aknsoundsystem->PlaySound( 0x6000 ); + _LIT ( KInfoKeyPlaySound, "BCTestAknSound System PlaySound" ); + AssertNotNullL( aknsoundsystem, KInfoKeyPlaySound ); + + aknsoundsystem->PlaySound( KSid ); + _LIT ( KInfoPlaySound, "BCTestAknSound System PlaySound2" ); + AssertNotNullL( aknsoundsystem, KInfoPlaySound ); + + aknsoundsystem->AddAppSoundInfoListL( R_BCTESTAKNSINFO_LIST ); + _LIT ( KAddSoundInfoList, "BCTestAknSound System AddAppSoundInfoListL" ); + AssertNotNullL( aknsoundsystem, KAddSoundInfoList ); + + aknsoundsystem->BringToForeground(); + _LIT ( KBringToForeground, "BCTestAknSound System BringToForeground" ); + AssertNotNullL( aknsoundsystem, KBringToForeground ); + + aknsoundsystem->StopSound( KSid ); + _LIT ( KStopSound, "BCTestAknSound System StopSound" ); + AssertNotNullL( aknsoundsystem, KStopSound ); + + aknsoundsystem->LockContext(); + _LIT ( KLockContext, "BCTestAknSound System LockContext" ); + AssertNotNullL( aknsoundsystem, KLockContext ); + + aknsoundsystem->ReleaseContext(); + _LIT ( KReleaseContext, "BCTestAknSound System ReleaseContext" ); + AssertNotNullL( aknsoundsystem, KReleaseContext ); + + CAknSoundInfo *aknsoundinfo = CAknSoundInfo::NewL(); + CleanupStack::PushL( aknsoundinfo ); + _LIT ( KInfoCreate, "CAknSoundInfo is not NULL" ); + AssertNotNullL( aknsoundinfo, KInfoCreate ); + _LIT ( KSystemRequest, "AknSoundSystem RequestSoundInfoL" ); + + // The first parameter should not be less than 1000. + TInt sInfo = aknsoundsystem->RequestSoundInfoL( EAvkonSIDDefaultSound, + *aknsoundinfo ); + AssertIntL( KErrNone, sInfo, KSystemRequest ); + CleanupStack::PopAndDestroy( aknsoundinfo ); + + CleanupStack::PopAndDestroy(aknsoundsystem); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestaknsound/src/bctestaknsoundview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,136 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestaknsound.hrh" +#include +#include "bctestaknsoundview.h" +#include "bctestaknsoundcontainer.h" +#include "bctestutil.h" +#include "bctestaknsoundinfocase.h" +#include "bctestaknsoundsystemcase.h" + +_LIT( KAknSoundInfoCase, "Avkon Sound Info test case" ); +_LIT( KAknSoundSystemCase, "Avkon Sound System test case" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundView* CBCTestAknSoundView::NewL() + { + CBCTestAknSoundView* self = new( ELeave ) CBCTestAknSoundView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundView::CBCTestAknSoundView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundView::ConstructL() + { + BaseConstructL( R_BCTESTAKNSOUND_VIEW ); + + iContainer = new( ELeave ) CBCTestAknSoundContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestAknSoundInfoCase::NewL( iContainer ), + KAknSoundInfoCase ); + iTestUtil->AddTestCaseL( CBCTestAknSoundSystemCase::NewL( iContainer ), + KAknSoundSystemCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAknSoundView::~CBCTestAknSoundView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestAknSoundView::Id() const + { + return KBCTestAknSoundViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestAknSoundView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestAknSoundView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bctestappfrm.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bctestappfrm.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,82 @@ +/* +* 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 "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: project specification file for the BCTestappfrm. +* +*/ + + +TARGET bctestappfrm.exe +TARGETTYPE exe +UID 0x0 0x200045CC + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestappfrm.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestappfrmapp.cpp +SOURCE bctestappfrmdocument.cpp +SOURCE bctestappfrmappui.cpp +SOURCE bctestappfrmview.cpp +SOURCE bctestappfrmcontainer.cpp +SOURCE bctestaknapplication.cpp +SOURCE bctestakndoc.cpp +SOURCE bctesteikenvcase.cpp +SOURCE bctestaknviewappui.cpp +SOURCE bctesteikmobs.cpp +SOURCE bctestvcurs.cpp +SOURCE bctestappfrmaknappuicase.cpp +SOURCE bctestappfrmaknviewcase.cpp +SOURCE bctestappfrmeikappuicase.cpp +SOURCE bctestappfrmeiksrvcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestappfrm_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bctestappfrm.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bctestappfrm.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,276 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestappfrm.hrh" +#include "bctestappfrm.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTAPPFRM_BMP_FNAME APP_BITMAP_DIR"\\BCTestAppFrm.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "AppFrm"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestappfrm_menubar_main; + cba = r_bctestappfrm_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestappfrm_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestAppFrm_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestappfrm_view +// AVKON_VIEW for CBCTestAppFrmView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestappfrm_view + { + menubar = r_bctestappfrm_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestappfrm_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestappfrm_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestappfrm_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestappfrm_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestappfrm_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestappfrm_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdApplication; + txt = "Test CAknApplication"; + }, + MENU_ITEM + { + command = EBCTestCmdDocument; + txt = "Test CAknDocument"; + }, + MENU_ITEM + { + command = EBCTestCmdViewAppUi; + txt = "Test CAknViewAppUi"; + }, + MENU_ITEM + { + command = EBCTestCmdEikMObserver; + txt = "Test MEikCmddObserver"; + }, + MENU_ITEM + { + command = EBCTestCmdVCursor; + txt = "Test Virtual Cursor"; + }, + MENU_ITEM + { + command = EBCTestCmdEikenv; + txt = "Test Eikenv"; + }, + MENU_ITEM + { + command = EBCTestAknAppUi; + txt = qtn_bctestappfrm_aknappui; + }, + MENU_ITEM + { + command = EBCTestAknView; + txt = qtn_bctestappfrm_aknview; + }, + MENU_ITEM + { + command = EBCTestEikAppUi; + txt = qtn_bctestappfrm_eikappui; + }, + MENU_ITEM + { + command = EBCTestEikSrv; + txt = qtn_bctestappfrm_eiksrv; + } + + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestappfrm_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestappfrm_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestappfrm_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestappfrm_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestappfrm_eikonenv_message +// Message Info +// +// ---------------------------------------------------------------------------- +// +RESOURCE TBUF16 r_bctestappfrm_msginfo + { + buf = "Message"; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestappfrm_eikonenv_busymessage +// Busy Message Info +// +// ---------------------------------------------------------------------------- +// +RESOURCE TBUF16 r_bctestappfrm_busymsginfo + { + buf = "Busy Message"; + } + + +// ---------------------------------------------------------------------------- +// +// r_bctestappfrm_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestappfrm_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestAppFrmCbaCmdNext; + txt = qtn_bctestappfrm_cba_next; + } + }; + } + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bctestappfrm_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bctestappfrm_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045CC // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestAppFrm"; + localisable_resource_file = "\\resource\\apps\\BCTestAppFrm"; + localisable_resource_id = R_BCTESTAPPFRM_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //newfile = KAppDoesNotSupportNewFile; + //launch = KAppLaunchInForeground; + group_name = "BCTest"; + //default_screen_number = 2; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestAppFrm.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/StreamLogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/StreamLogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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: +* +*/ +// +// just for simple use, +// this file doesn't following any code convensions or symbian rules. +// + +#ifndef __DLL_LOGGER_H__ +#define __DLL_LOGGER_H__ + +#include // link against efsrv.lib +#include + +#define CERR StreamLogger::begin() + +/** +* usage: StreamLogger::begin()<<"your string"<FsSession(); + if ( file.Open( fs, KLogFile, EFileWrite | EFileShareAny ) != KErrNone ) + file.Create( fs, KLogFile, EFileWrite | EFileShareAny ); + + TInt pos=0; // this must be 0 + file.Seek( ESeekEnd, pos ); + } + + ~LogFile(){ + file.Close(); + } + + RFile& operator()(){ return file; } + private: + RFile file; + }; + +public: + ~StreamLogger(){} + + static StreamLogger& begin(){ + StreamLogger* self = new (ELeave) StreamLogger; + return *self; + } + + void suicide(){ delete this; } + + StreamLogger& operator<<(const TDesC& aText){ + LogFile file; + + HBufC8* text = HBufC8::NewL( aText.Length() ); + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + + return *this; + } + + StreamLogger& operator<<(TInt n){ + LogFile file; + + TInt i=1; + for(TInt v=n; v!=0; ++i, v/=10){} + HBufC* text = HBufC::NewL( i ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, n ); + HBufC8* text8 = HBufC8::NewL( textPtr.Length() ); + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + + return *this; + } + + StreamLogger& cr(){ + LogFile file; + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + return *this; + } + + typedef StreamLogger& (*_Manipulator)(StreamLogger&); + StreamLogger& operator<<(_Manipulator op){ return op(*this); } + +private: + StreamLogger(){} //disable ctor +}; + +inline StreamLogger& end(StreamLogger& self){ self.suicide(); return self; } + +inline StreamLogger& endl(StreamLogger& self){ self.cr(); return self; } + +#endif //__FILE_LOGGER_H__ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestaknapplication.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestaknapplication.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTAKNAPPLICATION_H +#define C_TESTAKNAPPLICATION_H + +#include "bctestcase.h" + +class CAknApplication; + +/** +* test case for testing volume setting page. +*/ +class CBCTestAknApplication: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CBCTestAknApplication* NewL(); + + /** dtor */ + virtual ~CBCTestAknApplication(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CBCTestAknApplication(); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +private: + + void TestIniFileL(CAknApplication* aApp, RFs& aFs); + }; + +#endif // C_TESTAKNAPPLICATION_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestakndoc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestakndoc.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTAKNDOCUMENT_H +#define C_TESTAKNDOCUMENT_H + +#include "bctestcase.h" + +/** +* test case for testing volume setting page. +*/ +class CBCTestAknDoc: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CBCTestAknDoc* NewL(); + + /** dtor */ + virtual ~CBCTestAknDoc(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CBCTestAknDoc(); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +private: + }; + +#endif // C_TESTAKNDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestaknviewappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestaknviewappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTAKNVIEWAPPUI_H +#define C_TESTAKNVIEWAPPUI_H + +#include "bctestcase.h" + +class CAknViewAppUi; + +/** +* test case for testing volume setting page. +*/ +class CBCTestAknViewAppUi: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CBCTestAknViewAppUi* NewL(CAknViewAppUi* aUI, TUid aViewID); + + /** dtor */ + virtual ~CBCTestAknViewAppUi(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CBCTestAknViewAppUi(CAknViewAppUi* aUI, TUid aViewID); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + + void TestActiateViewL(); + + void TestViewFacilityL(); + + void TestSplitViewL(); + + void TestOthersL(); + +private: + +//data + + CAknViewAppUi* iUI; //not own + TUid iViewID; + }; + +#endif // C_TESTAKNVIEWAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrm.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrm.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +/* +* 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 "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: BCTestAppFrm resource header file +* +*/ + + +#ifndef BCTESTAPPFRM_HRH +#define BCTESTAPPFRM_HRH + +enum TBCTestAppFrmMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdApplication, + EBCTestCmdDocument, + EBCTestCmdViewAppUi, + EBCTestCmdEikMObserver, + EBCTestCmdVCursor, + EBCTestCmdEikenv, + EBCTestAknAppUi, + EBCTestAknView, + EBCTestEikAppUi, + EBCTestEikSrv, + + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestAppFrmCba + { + EBCTestAppFrmCbaCmdNext = 0x6300 + }; + +#endif // BCTESTAPPFRM_HRH + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrm.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrm.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,47 @@ +/* +* 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 "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: BCTestAppFrm localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTAPPFRM" +#define qtn_apps_tavl_grid "BCTESTAPPFRM" + +// MenuBar +#define qtn_bctestappfrm_menubar "Option" +#define qtn_bctestappfrm_cba_next "Next" +#define qtn_bctestappfrm_autotest "Autotest" +#define qtn_bctestappfrm_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestappfrm_outline1 "Outline01" +#define qtn_bctestappfrm_outline2 "Outline02" + +#define qtn_bctestappfrm_aknappui "AknAppUi" +#define qtn_bctestappfrm_aknview "AknView" +#define qtn_bctestappfrm_eikappui "EikAppUi" +#define qtn_bctestappfrm_eiksrv "EikSrv" + +#define qtn_bctestappfrm_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmaknappuicase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmaknappuicase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,107 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAPPFRMAKNAPPUICASE_H +#define C_CBCTESTAPPFRMAKNAPPUICASE_H + +#include "bctestcase.h" + +class CBCTestAppFrmContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAppFrmAknAppUICase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAppFrmAknAppUICase* NewL( CBCTestAppFrmContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestAppFrmAknAppUICase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + + void TestPublicFunction(); + + void TestProtectedAknAppUi(); +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppFrmAknAppUICase( CBCTestAppFrmContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestAppFrmContainer* iContainer; + + }; + +#endif // C_CBCTESTAPPFRMAKNAPPUICASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmaknviewcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmaknviewcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,111 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAPPFRMAKNVIEWCASE_H +#define C_CBCTESTAPPFRMAKNVIEWCASE_H + +#include "bctestcase.h" +#include "aknview.h" +#include "bctestappfrmview.h" + +class CBCTestAppFrmContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAppFrmAknViewCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAppFrmAknViewCase* NewL( CBCTestAppFrmContainer* aContainer ,CAknView* aView); + + /** + * Destructor + */ + virtual ~CBCTestAppFrmAknViewCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + + void TestPublicFunction(); + + void TestProtectedFunction(); +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppFrmAknViewCase( CBCTestAppFrmContainer* aContainer ,CAknView* aView); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestAppFrmContainer* iContainer; + + CAknView* iView; + + }; + +#endif // C_CBCTESTAPPFRMAKNVIEWCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,59 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTAPPFRMAPP_H +#define C_CBCTESTAPPFRMAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestAppFrm = { 0x200045CC }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestAppFrmApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestAppFrmApp : public CAknApplication + { + public: + virtual void PreDocConstructL(); + + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestAppFrmDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestAppFrm ). + * @return The value of KUidBCTestAppFrm. + */ + TUid AppDllUid() const; + + }; + +#endif + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_CBCTESTAPPFRMAPPUI_H +#define C_CBCTESTAPPFRMAPPUI_H + +#include +#include +class CBCTestAppFrmView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestAppFrmAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestAppFrmAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestAppFrmAppUi(); + +// from CAknViewAppUi + + void HandleStatusPaneSizeChange(); +//from CAknAppUi + void AppFrm_SetKeyBlockMode(); + +//from CAknAppUiBase + void AppFrm_HandleStatusPaneSizeChange(); + + void AppFrm_HandleApplicationSpecificEventL(TInt aType, + const TWsEvent& aEvent); + void AppFrm_HandleScreenDeviceChangedL(); + + void AppFrm_ReplaceKeySoundsL(TInt aUid); + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestAppFrmView* iView; + }; + +#endif // C_CBCTESTAPPFRMAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAPPFRMCASE_H +#define C_CBCTESTAPPFRMCASE_H + +#include "bctestcase.h" + +class CBCTestAppFrmContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAppFrmCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAppFrmCase* NewL( CBCTestAppFrmContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestAppFrmCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppFrmCase( CBCTestAppFrmContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestAppFrmContainer* iContainer; + + }; + +#endif // C_CBCTESTAPPFRMCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_CBCTESTAPPFRMCONTAINER_H +#define C_CBCTESTAPPFRMCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestAppFrmContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestAppFrmContainer(); + + /** + * Destructor + */ + virtual ~CBCTestAppFrmContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTAPPFRMCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 C_CBCTESTAPPFRMDOCUMENT_H +#define C_CBCTESTAPPFRMDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestAppFrmDocument application class. +*/ +class CBCTestAppFrmDocument : public CAknDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestAppFrmDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestAppFrmDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestAppFrmDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestAppFrmAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_CBCTESTAPPFRMDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmeikappuicase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmeikappuicase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,107 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAPPFRMEIKAPPUICASE_H +#define C_CBCTESTAPPFRMEIKAPPUICASE_H + +#include "bctestcase.h" + +class CBCTestAppFrmContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAppFrmEikAppUICase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAppFrmEikAppUICase* NewL( CBCTestAppFrmContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestAppFrmEikAppUICase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + + void TestPublicFunction(); + + void TestProtectedFunction(); +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppFrmEikAppUICase( CBCTestAppFrmContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestAppFrmContainer* iContainer; + + }; + +#endif // C_CBCTESTAPPFRMEIKAPPUICASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmeiksrvcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmeiksrvcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,107 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTAPPFRMEIKSRVCASE_H +#define C_CBCTESTAPPFRMEIKSRVCASE_H + +#include "bctestcase.h" + +class CBCTestAppFrmContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestAppFrmEikSrvCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAppFrmEikSrvCase* NewL( CBCTestAppFrmContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestAppFrmEikSrvCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + + void TestPublicFunction(); + + void TestProtectedFunction(); +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppFrmEikSrvCase( CBCTestAppFrmContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestAppFrmContainer* iContainer; + + }; + +#endif // C_CBCTESTAPPFRMEIKSRVCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestappfrmview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_CBCTESTAPPFRMVIEW_H +#define C_CBCTESTAPPFRMVIEW_H + +#include + +const TUid KBCTestAppFrmViewId = { 1 }; + +class CBCTestAppFrmContainer; +class CBCTestUtil; +class CAknViewAppUi; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestAppFrmView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestAppFrmView* NewL(CAknViewAppUi* aUI); + + /** + * dtor + */ + virtual ~CBCTestAppFrmView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + void AppFrmView_HandleCommandL( TInt aCommand ); + + void AppFrmView_cba(); + + void AppFrmView_StatusPane(); + + void AppFrmView_ViewScreenDeviceChangedL(); + + void AppFrmView_DoActivateL(const TVwsViewId& aViewId, TUid aId , const TDesC8& aDes); + + void AppFrmView_MopNext(); + + void AppFrmView_MopSupplyObject( TTypeUid aId ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppFrmView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CAknViewAppUi* aUI); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestAppFrmContainer* iContainer; + + }; + +#endif // C_CBCTESTAPPFRMVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctesteikenvcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctesteikenvcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTEIKENV_H +#define C_TESTEIKENV_H + +#include "bctestcase.h" + +class CBCTestAppFrmContainer; + +/** +* test case for testing volume setting page. +*/ +class CBCTestEikenv: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CBCTestEikenv* NewL( CBCTestAppFrmContainer* aContainer ); + + /** dtor */ + virtual ~CBCTestEikenv(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CBCTestEikenv( CBCTestAppFrmContainer* aContainer ); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +private: + CEikonEnv* iEikenv; + CBCTestAppFrmContainer* iContainer; + }; + +#endif // C_TESTEIKENV_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctesteikmobs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctesteikmobs.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTEIKMOBS_H +#define C_TESTEIKMOBS_H + +#include "bctestcase.h" + +/** +* test case for testing volume setting page. +*/ +class CBCTestEikMObserver: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CBCTestEikMObserver* NewL(); + + /** dtor */ + virtual ~CBCTestEikMObserver(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CBCTestEikMObserver(); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +private: + }; + +#endif // C_TESTEIKMOBS_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestvcurs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/inc/bctestvcurs.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTVCURS_H +#define C_TESTVCURS_H + +#include "bctestcase.h" + +/** +* test case for testing volume setting page. +*/ +class CBCTestVCursor: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CBCTestVCursor* NewL(); + + /** dtor */ + virtual ~CBCTestVCursor(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CBCTestVCursor(); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +private: + }; + +#endif // C_TESTVCURS_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/sis/bctestappfrm.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/sis/bctestappfrm.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestappfrm.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestappfrm"},(0x200045CC),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestappfrm.exe"- +"!:\sys\bin\bctestappfrm.exe" + +"\epoc32\data\z\resource\apps\bctestappfrm.RSC"- +"!:\resource\apps\bctestappfrm.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestappfrm_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestappfrm_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestaknapplication.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestaknapplication.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,138 @@ +/* +* 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: +* +*/ +#include +#include +#include +#include +#include "bctestaknapplication.h" +#include "bctestappfrm.hrh" +#include "streamlogger.h" + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestAknApplication::CBCTestAknApplication() + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestAknApplication::~CBCTestAknApplication() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CBCTestAknApplication::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CBCTestAknApplication* CBCTestAknApplication::NewL() + { + CBCTestAknApplication* self = new ( ELeave ) CBCTestAknApplication(); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CBCTestAknApplication::RunL(int aCmd) + { + if(aCmd != EBCTestCmdApplication) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CBCTestAknApplication::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + //REP(Down, n), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +void CBCTestAknApplication::TestIniFileL(CAknApplication* aApp, RFs& aFs) +{ + // In fact OpenIniFileLC do nothing with clean up stack, but leave with + // not supported error. + aApp->OpenIniFileLC(aFs); +} + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CBCTestAknApplication::TestL() + { + CAknApplication* app = static_cast(CEikonEnv::Static()->EikAppUi()->Application()); + + //app->PreDocConstructL(); //TO DO: need a release, but dono + //AssertTrueL(ETrue, _L("CAknApplication::PreDocConstructL() invoked.")); + + RFs& fs = CEikonEnv::Static()->FsSession(); + TRAPD( err, TestIniFileL(app, fs)); + if(err == KErrNotSupported){ + AssertTrueL(ETrue, _L("CAknApplication::OpenIniFileLC () isn't supported in S60")); + } + + CApaAppServer* server = NULL; + app->NewAppServerL(server); + CleanupStack::PushL(server); + AssertNotNullL(server, _L("CAknApplication::NewAppServerL() invoked.")); + CleanupStack::PopAndDestroy(server); //server + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CBCTestAknApplication::SetupL() + { + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CBCTestAknApplication::TearDownL() + { + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestakndoc.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestakndoc.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,168 @@ +/* +* 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: +* +*/ +#include +#include +#include +#include +#include +#include + +#include "bctestakndoc.h" +#include "bctestappfrm.hrh" +#include "bctestappfrmapp.h" +#include "streamlogger.h" + +//============helper class============== +class CMockDocument: public CAknDocument + { +public: + CMockDocument(CEikApplication& aApp); + CEikAppUi* CreateAppUiL() + { + return NULL; + } + }; + +CMockDocument::CMockDocument(CEikApplication& aApp):CAknDocument(aApp) + { + } + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestAknDoc::CBCTestAknDoc() + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestAknDoc::~CBCTestAknDoc() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CBCTestAknDoc::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CBCTestAknDoc* CBCTestAknDoc::NewL() + { + CBCTestAknDoc* self = new ( ELeave ) CBCTestAknDoc(); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CBCTestAknDoc::RunL(int aCmd) + { + if(aCmd != EBCTestCmdDocument) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CBCTestAknDoc::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 1), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CBCTestAknDoc::TestL() + { + CBCTestAppFrmApp* app = new CBCTestAppFrmApp(); + CleanupStack::PushL(app); + CMockDocument* ptr = new (ELeave) CMockDocument(*app); + delete ptr; + CleanupStack::Pop(); //app; + delete app; + + //CEikDocument subclass #CAknDocument, + CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document(); // doc pointer to CBCTestAppFrmDocument(which is infact a CAknDocument) + + RFs& fs = CEikonEnv::Static()->FsSession(); + _LIT(KFileName, "C:\\BCTestLog\\foo.txt"); + CFileStore* store = doc->OpenFileL(EFalse, KFileName, fs); + //AssertNotNullL(store, _L("CFileStore* CAknDocument::OpenFileL() invoked with EFalse.")); + AssertTrueL(ETrue, _L("CAknDocument::OpenFileL() is empty in S60.")); + delete store; + + store = NULL; + store = doc->OpenFileL(ETrue, KFileName, fs); + //AssertNotNullL(store, _L("CFileStore* CAknDocument::OpenFileL() invoked with ETrue.")); + AssertTrueL(ETrue, _L("CAknDocument::OpenFileL() is empty in S60.")); + delete store; + + store = NULL; + RFile file; + if ( file.Open( fs, KFileName, EFileWrite | EFileShareAny ) != KErrNone ){ + file.Create( fs, KFileName, EFileWrite | EFileShareAny ); + } + + doc->OpenFileL(store, file); + //AssertNotNullL(store, _L("void CAknDocument::OpenFileL() invoked.")); + AssertTrueL(ETrue, _L("CAknDocument::OpenFileL() is empty in S60.")); + delete store; + file.Close(); + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CBCTestAknDoc::SetupL() + { + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CBCTestAknDoc::TearDownL() + { + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestaknviewappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestaknviewappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,174 @@ +/* +* 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: +* +*/ +#include +#include +#include +#include +#include + +#include "bctestaknviewappui.h" +#include "bctestappfrm.hrh" +#include "streamlogger.h" +#include "bctestappfrmview.h" +#include "bctestappfrmappui.h" + +const TUid KMonkViewID = { 2 }; + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestAknViewAppUi::CBCTestAknViewAppUi(CAknViewAppUi* aUI, TUid aViewID) + :iUI(aUI), iViewID(aViewID) + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestAknViewAppUi::~CBCTestAknViewAppUi() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CBCTestAknViewAppUi::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CBCTestAknViewAppUi* CBCTestAknViewAppUi::NewL(CAknViewAppUi* aUI, TUid aViewID) + { + CBCTestAknViewAppUi* self = new ( ELeave ) CBCTestAknViewAppUi(aUI, aViewID); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CBCTestAknViewAppUi::RunL(int aCmd) + { + if(aCmd != EBCTestCmdViewAppUi) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CBCTestAknViewAppUi::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 2), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CBCTestAknViewAppUi::TestL() + { + TestActiateViewL(); + TestViewFacilityL(); + TestSplitViewL(); + TestOthersL(); + } + +void CBCTestAknViewAppUi::TestActiateViewL(){ + iUI->ActivateLocalViewL(iViewID); + AssertTrueL(ETrue, _L("CAknViewAppUi::ActivateLocalViewL(TUid) invoked.") ); + iUI->ActivateLocalViewL(iViewID, KNullUid, KNullDesC8 ); + AssertTrueL(ETrue, _L("CAknViewAppUi::ActivateLocalViewL(TUid, TUid, const TDesC8&) invoked.") ); + + AssertTrueL(KNullUid==iUI->FocusedView(), _L("CAknViewAppUi::FocusedView() for split view ONLY") ); + AssertTrueL(EFalse==iUI->ViewShown(iViewID), _L("CAknViewAppUi::ViewShown() for split view ONLY") ); +} + +void CBCTestAknViewAppUi::TestViewFacilityL(){ + class CMonkView: public CAknView + { + public: + TUid Id() const{ return KMonkViewID; } + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ){} + void DoDeactivate(){} + }; + + CAknView* view = new (ELeave) CMonkView; + CleanupStack::PushL(view); + iUI->AddViewL(view); + CleanupStack::Pop(view); + AssertTrueL(ETrue, _L("CAknViewAppUi::AddViewL() invoked.") ); + + AssertTrueL(view == iUI->View(KMonkViewID), _L("CAknViewAppUI::View(TUid) got") ); + + iUI->RemoveView(KMonkViewID); + AssertTrueL(ETrue, _L("CAknViewAppUi::RemoveView() invoked.") ); +} + +void CBCTestAknViewAppUi::TestSplitViewL(){ + // not supported , omit + AssertTrueL( EFalse == iUI->SplitViewActive(), _L("SplitViewActive() not support") ); + + iUI->SetSplitViewL(KMonkViewID, iViewID, 0); + AssertTrueL( ETrue, _L("SetSplitViewL() not support")); + + iUI->RemoveSplitViewL(KMonkViewID); + + AssertTrueL( KNullUid==iUI->FocusedView(), _L("CAknViewAppUi::FocusedView() not support") ); + AssertTrueL( EFalse==iUI->ViewShown(iViewID), _L("CAknViewAppUi::ViewShown() note support") ); +} + +void CBCTestAknViewAppUi::TestOthersL(){ + static_cast(iUI)->HandleStatusPaneSizeChange(); + AssertTrueL( ETrue, _L("CAknViewAppUi::HandleStautsPaneSizeChange() invoked")); +} +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CBCTestAknViewAppUi::SetupL() + { + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CBCTestAknViewAppUi::TearDownL() + { + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmaknappuicase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmaknappuicase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,311 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include // for TAknUiZoom +#include +#include +#include + +#include "bctestappfrm.hrh" +#include "bctestappfrmaknappuicase.h" +#include "bctestappfrmcontainer.h" +#include "bctestappfrmappui.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAknAppUICase* CBCTestAppFrmAknAppUICase::NewL( + CBCTestAppFrmContainer* aContainer ) + { + CBCTestAppFrmAknAppUICase* self = new( ELeave ) CBCTestAppFrmAknAppUICase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAknAppUICase::CBCTestAppFrmAknAppUICase( + CBCTestAppFrmContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAknAppUICase::~CBCTestAppFrmAknAppUICase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknAppUICase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknAppUICase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknAppUICase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 6), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknAppUICase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknAppUICase::RunL( TInt aCmd ) + { + if ( aCmd !=EBCTestAknAppUi) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + TestFunction(); + + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknAppUICase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknAppUICase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestAknAppUi: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknAppUICase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknAppUICase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknAppUICase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknAppUICase::TestFunction() + { + // Test some API here + + TestPublicFunction(); + TestProtectedAknAppUi(); + } + +void CBCTestAppFrmAknAppUICase::TestProtectedAknAppUi() + { + CBCTestAppFrmAppUi *iTestAppUi = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + iTestAppUi->AppFrm_SetKeyBlockMode(); + _LIT( KSetKeyBlockMode, "CAknAppUi::SetKeyBlockMode() invoked" ); + AssertTrueL( ETrue, KSetKeyBlockMode ); + + iTestAppUi->AppFrm_HandleStatusPaneSizeChange(); + _LIT(KHandleStatusPaneSizeChange , + "CAknAppUiBase::HandleStatusPaneSizeChange() invoked" ); + AssertTrueL( ETrue, KHandleStatusPaneSizeChange ); + + TWsEvent iEvent ; + iTestAppUi->AppFrm_HandleApplicationSpecificEventL( + KEikPartialForeground, iEvent ); + _LIT( KHandleApplicationSpecificEventL, + "CAknAppUiBase::HandleApplicationSpecificEventL() invoked" ); + AssertTrueL( ETrue, KHandleApplicationSpecificEventL); + + iTestAppUi->AppFrm_HandleScreenDeviceChangedL(); + _LIT( KHandleScreenDeviceChangedL , + "CAknAppUiBase::HandleScreenDeviceChangedL() invoked" ); + AssertTrueL( ETrue, KHandleScreenDeviceChangedL ); + + TInt uid = KErrNotFound; + iTestAppUi->AppFrm_ReplaceKeySoundsL( uid ); + _LIT( KReplaceKeySoundsL , + "CAknAppUiBase::ReplaceKeySoundsL(TInt aUid) invoked" ); + AssertTrueL( ETrue, KReplaceKeySoundsL ); + + } + +void CBCTestAppFrmAknAppUICase::TestPublicFunction() + { + /*********************************************************/ + /*CAknAppUi*/ + /*********************************************************/ + + CAknAppUi* iAknAppUI = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + iAknAppUI->Cba(); + _LIT( KCAknAppUiCba, "CAknAppUi::Cba() invoked" ); + AssertTrueL( ETrue, KCAknAppUiCba ); + + iAknAppUI->CurrentPopupToolbar(); + _LIT( KCurrentPopupToolbar, "CAknAppUi::CurrentPopupToolbar() invoked" ); + AssertTrueL( ETrue, KCurrentPopupToolbar ); + + TInt iErrCode = KErrNone; + SExtendedError iExtErr; + TBuf<16> iErrorText; + TBuf<16> iContextText; + iAknAppUI->HandleError( iErrCode, iExtErr, iErrorText, iContextText ); + _LIT( KCAknAppUiHandleError , "CAknAppUi::HandleError() invoked" ); + AssertTrueL( ETrue, KCAknAppUiHandleError); + + iAknAppUI->TouchPane(); + _LIT( KTouchPane ,"CAknAppUi::TouchPane() invoked" ); + AssertTrueL( ETrue, KTouchPane ); + + iAknAppUI->PopupToolbar(); + _LIT( KPopupToolbar , "CAknAppUi::PopupToolbar() invoked" ); + AssertTrueL( ETrue, KPopupToolbar ); + + iAknAppUI->HandleTouchPaneSizeChange(); + _LIT( KHandleTouchPaneSizeChange , + "CAknAppUi::HandleTouchPaneSizeChange() invoked" ); + AssertTrueL( ETrue, KHandleTouchPaneSizeChange ); + + TBool iHide = ETrue; + iAknAppUI->HideApplicationFromFSW( iHide ); + _LIT( KHideApplicationFromFSW , + "CAknAppUi::HideApplicationFromFSW() invoked" ); + AssertTrueL( ETrue, KHideApplicationFromFSW ); + + iAknAppUI->IsAppShutterRunning(); + _LIT( KIsAppShutterRunning , + "CAknAppUi::IsAppShutterRunning() invoked" ); + AssertTrueL( ETrue, KIsAppShutterRunning); + + iAknAppUI->ProcessCommandL( 100 ); + _LIT( KProcessCommandL,"CAknAppUi::ProcessCommandL() invoked" ); + AssertTrueL( ETrue, KProcessCommandL); + + /*********************************************************/ + /*CAknAppUiBase*/ + /*********************************************************/ + + CAknAppUiBase* iAknAppUIBase = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + + iAknAppUIBase->IsFullScreenApp(); + _LIT( KIsFullScreenApp , "CAknAppUIBase::IsFullScreenApp() invoked" ); + AssertTrueL( ETrue, KIsFullScreenApp ); + + iAknAppUIBase->IsPartialForeground(); + _LIT( KIsPartialForeground, + "CAknAppUIBase::IsPartialForeground() invoked" ); + AssertTrueL( ETrue, KIsPartialForeground ); + + iAknAppUIBase->LocalUiZoom(); + _LIT( KLocalUiZoom ,"CAknAppUIBase::LocalUiZoom() invoked" ); + AssertTrueL( ETrue, KLocalUiZoom ); + + iAknAppUIBase->Orientation(); + _LIT( KOrientation , "CAknAppUIBase::Orientation() invoked" ); + AssertTrueL( ETrue, KOrientation ); + + iAknAppUIBase->SetLayoutAwareApp( ETrue ); + _LIT( KSetLayoutAwareApp , "CAknAppUIBase::SetLayoutAwareApp() invoked" ); + AssertTrueL( ETrue, KSetLayoutAwareApp ); + + iAknAppUIBase->SetLocalUiZoomL( EAknUiZoomNormal ); + _LIT( KSetLocalUiZoomL , "CAknAppUIBase::SetLocalUiZoomL() invoked" ); + AssertTrueL( ETrue, KSetLocalUiZoomL ); + + iAknAppUIBase->HandleForegroundEventL( ETrue ); + _LIT( KHandleForegroundEventL, + "CAknAppUIBase::HandleForegroundEventL() invoked" ); + AssertTrueL( ETrue, KHandleForegroundEventL ); + + iAknAppUIBase->SetOrientationL( iAknAppUIBase->Orientation() ); + _LIT( KSetOrientationL, "CAknAppUIBase::SetOrientationL() invoked" ); + AssertTrueL( ETrue, KSetOrientationL); + + } + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmaknviewcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmaknviewcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,250 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctestappfrmaknviewcase.h" +#include "bctestappfrmcontainer.h" +#include "bctestappfrm.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAknViewCase* CBCTestAppFrmAknViewCase::NewL( + CBCTestAppFrmContainer* aContainer ,CAknView* aView) + { + CBCTestAppFrmAknViewCase* self = new( ELeave ) CBCTestAppFrmAknViewCase( + aContainer ,aView); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAknViewCase::CBCTestAppFrmAknViewCase( + CBCTestAppFrmContainer* aContainer ,CAknView* aView) + : iContainer( aContainer ) , iView ( aView ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAknViewCase::~CBCTestAppFrmAknViewCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 7), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::RunL( TInt aCmd ) + { + if ( aCmd !=EBCTestAknView) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + TestFunction(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestAknView: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::TestFunction() + { + // Test some API here + TestPublicFunction(); + TestProtectedFunction(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::TestPublicFunction (Test class CAknView) +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::TestPublicFunction() + { + TVwsViewId iVwsViewId = iView->ViewId(); + iView->ActivateViewL( iVwsViewId ); + _LIT( KActivateViewL1 , "CAknView::ActivateViewL() invoked" ); + AssertTrueL( ETrue, KActivateViewL1 ); + + iView->ActivateViewL( iVwsViewId, KNullUid, KNullDesC8 ); + _LIT( KActivateViewL2, + "CAknView::ActivateViewL(const TVwsViewId&) invoked" ); + AssertTrueL( ETrue, KActivateViewL2 ); + + iView->AknViewActivatedL( iVwsViewId, KNullUid, KNullDesC8 ); + _LIT( KAknViewActivatedL, + "CAknView::AknViewActivatedL(TVwsViewId&,TUid,TDesC8&) invoked" ); + AssertTrueL( ETrue, KAknViewActivatedL ); + + iView->ClientRect(); + _LIT( KClientRect , "CAknView::ClientRect() invoked" ); + AssertTrueL( ETrue, KClientRect); + + iView->ConstructMenuAndCbaEarlyL(); + _LIT( KConstructMenuAndCbaEarlyL, + "CAknView::ConstructMenuAndCbaEarlyL() invoked" ); + AssertTrueL( ETrue, KConstructMenuAndCbaEarlyL ); + + iView->HandleStatusPaneSizeChange(); + _LIT( KHandleStatusPaneSizeChange, + "CAknView::HandleStatusPaneSizeChange() invoked" ); + AssertTrueL( ETrue, KHandleStatusPaneSizeChange ); + + iView->HandleViewRectChange(); + _LIT( KHandleViewRectChange, "CAknView::HandleViewRectChange() invoked" ); + AssertTrueL( ETrue, KHandleViewRectChange ); + + iView->Id(); + _LIT( KId, "CAknView::Id() invoked" ); + AssertTrueL( ETrue, KId); + + iView->IsForeground(); + _LIT( KIsForeground, "CAknView::IsForeground() invoked" ); + AssertTrueL( ETrue, KIsForeground ); + + iView->Redraw(); + _LIT( KRedraw, "CAknView::Redraw() invoked" ); + AssertTrueL( ETrue, KRedraw ); + + iView->StopDisplayingToolbar(); + _LIT( KStopDisplayingToolbar, + "CAknView::StopDisplayingToolbar() invoked" ); + AssertTrueL( ETrue, KStopDisplayingToolbar ); + + iView->Toolbar(); + _LIT( KToolbar , "CAknView::Toolbar() invoked" ); + AssertTrueL( ETrue, KToolbar ); + + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmAknViewCase::TestProtectedFunction (Test class CAknView) +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAknViewCase::TestProtectedFunction() + { + CBCTestAppFrmView* iTestView = static_cast( iView ); + iTestView->AppFrmView_cba(); + _LIT( Kcba , "CAknView::cba() invoked" ); + AssertTrueL( ETrue, Kcba); + + iTestView->AppFrmView_HandleCommandL(1); + _LIT( KHandleCommandL , "CAknView::HandleCommandL(TInt) invoked" ); + AssertTrueL( ETrue, KHandleCommandL); + + iTestView->AppFrmView_StatusPane(); + _LIT( KStatusPane, "CAknView::StatusPane() invoked" ); + AssertTrueL( ETrue, KStatusPane ); + + iTestView->AppFrmView_ViewScreenDeviceChangedL(); + _LIT( KViewScreenDeviceChangedL, + "CAknView::ViewScreenDeviceChangedL() invoked" ); + AssertTrueL( ETrue, KViewScreenDeviceChangedL ); + + iTestView->AppFrmView_DoActivateL( iView->ViewId(), KNullUid, KNullDesC8 ); + _LIT( KDoActivateL, + "CAknView::DoActivateL() invoked" ); + AssertTrueL( ETrue, KDoActivateL ); + + iTestView->AppFrmView_MopNext(); + _LIT( KMopNext , "CAknView::MopNext() invoked" ); + AssertTrueL( ETrue, KMopNext ); + + iTestView->AppFrmView_MopSupplyObject( 0 ); + _LIT( KMopSupplyObject ,"CAknView::MopSupplyObject(TTypeUid) invoked" ); + AssertTrueL( ETrue, KMopSupplyObject ); + + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: Avkon Sound test app +* +*/ + + +// INCLUDE FILES +#include "bctestappfrmapp.h" +#include "bctestappfrmdocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestAppFrmApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestAppFrmApp::AppDllUid() const + { + return KUidBCTestAppFrm; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestAppFrmApp::CreateDocumentL() +// Creates CBCTestAppFrmDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestAppFrmApp::CreateDocumentL() + { + return CBCTestAppFrmDocument::NewL( *this ); + } + +void CBCTestAppFrmApp::PreDocConstructL() + { + CAknApplication::PreDocConstructL(); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestAppFrmApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestAppFrmApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include +#include "bctestappfrmappui.h" +#include "bctestappfrm.hrh" +#include "bctestappfrmview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestAppFrmAppUi::CBCTestAppFrmAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestAppFrmView* view = CBCTestAppFrmView::NewL(this); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestAppFrmAppUi::~CBCTestAppFrmAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestAppFrmAppUi::~CBCTestAppFrmAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestAppFrmAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +void CBCTestAppFrmAppUi::HandleStatusPaneSizeChange(){ + CAknViewAppUi::HandleStatusPaneSizeChange(); +} + +void CBCTestAppFrmAppUi::AppFrm_SetKeyBlockMode() +{ + SetKeyBlockMode(EDefaultBlockMode); +} + +void CBCTestAppFrmAppUi::AppFrm_HandleStatusPaneSizeChange() +{ + CAknAppUi::HandleStatusPaneSizeChange(); +} + +void CBCTestAppFrmAppUi::AppFrm_HandleApplicationSpecificEventL(TInt aType, + const TWsEvent& aEvent) +{ + CAknAppUiBase::HandleApplicationSpecificEventL(aType,aEvent); +} + +void CBCTestAppFrmAppUi::AppFrm_HandleScreenDeviceChangedL() +{ + CAknAppUiBase::HandleScreenDeviceChangedL(); +} + +void CBCTestAppFrmAppUi::AppFrm_ReplaceKeySoundsL(TInt aUid) +{ + CAknAppUiBase::ReplaceKeySoundsL(aUid); +} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,146 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include "bctestappfrmcase.h" +#include "bctestappfrmcontainer.h" +#include "bctestappfrm.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmCase* CBCTestAppFrmCase::NewL( + CBCTestAppFrmContainer* aContainer ) + { + CBCTestAppFrmCase* self = new( ELeave ) CBCTestAppFrmCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmCase::CBCTestAppFrmCase( + CBCTestAppFrmContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmCase::~CBCTestAppFrmCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmCase::BuildScriptL() + { + // Add script as your need. + //AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunction(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + //iControl = new( ELeave ) CCoeControl(); + //iControl->SetContainerWindowL( *iContainer ); + //iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + //iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmCase::TestFunction() + { + // Test some API here + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestappfrmcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmContainer::CBCTestAppFrmContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmContainer::~CBCTestAppFrmContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestAppFrmContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestAppFrmContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestAppFrmContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestAppFrmContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "bctestappfrmdocument.h" +#include "bctestappfrmappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestAppFrmDocument* CBCTestAppFrmDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestAppFrmDocument* CBCTestAppFrmDocument::NewL( CEikApplication& aApp ) + { + CBCTestAppFrmDocument* self = new( ELeave ) CBCTestAppFrmDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestAppFrmDocument::~CBCTestAppFrmDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestAppFrmDocument::~CBCTestAppFrmDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestAppFrmDocument::CBCTestAppFrmDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestAppFrmDocument::CBCTestAppFrmDocument( CEikApplication& aApp ) + : CAknDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestAppFrmDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestAppFrmDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestAppFrmAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmeikappuicase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmeikappuicase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,224 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "bctestappfrmeikappuicase.h" +#include "bctestappfrmcontainer.h" +#include "bctestappfrm.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmEikAppUICase* CBCTestAppFrmEikAppUICase::NewL( + CBCTestAppFrmContainer* aContainer ) + { + CBCTestAppFrmEikAppUICase* self = new( ELeave ) CBCTestAppFrmEikAppUICase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmEikAppUICase::CBCTestAppFrmEikAppUICase( + CBCTestAppFrmContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmEikAppUICase::~CBCTestAppFrmEikAppUICase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikAppUICase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikAppUICase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikAppUICase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 8), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikAppUICase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikAppUICase::RunL( TInt aCmd ) + { + if ( aCmd !=EBCTestEikAppUi) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + TestFunction(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikAppUICase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikAppUICase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestEikAppUi: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikAppUICase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikAppUICase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikAppUICase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikAppUICase::TestFunction() + { + // Test some API here + TestPublicFunction(); + TestProtectedFunction(); + } +void CBCTestAppFrmEikAppUICase::TestProtectedFunction() + { + CEikAppUi* iEikAppUI = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + + iEikAppUI->Application(); + _LIT( KActivateViewL, "CEikAppUi::ActivateViewL() invoked" ); + AssertTrueL( ETrue, KActivateViewL); + + iEikAppUI->ApplicationLanguageL(); + _LIT( KApplicationLanguageL, + "CEikAppUi::ApplicationLanguageL() invoked" ); + AssertTrueL( ETrue, KApplicationLanguageL ); + + iEikAppUI->ApplicationRect(); + _LIT( KApplicationRect, "CEikAppUi::ApplicationRect() invoked" ); + AssertTrueL( ETrue, KApplicationRect ); + + iEikAppUI->Document(); + _LIT( KDocument, "CEikAppUi::Document() invoked" ); + AssertTrueL( ETrue, KDocument ); + + _LIT( KFileName, "C:\\BCTestLog\\eikappui.txt" ); + iEikAppUI->CreateFileL( KFileName ); + _LIT( KCreateFileL, "CEikAppUi::CreateFileL(const TDesC&) invoked" ); + AssertTrueL( ETrue, KCreateFileL ); + + iEikAppUI->OpenFileL( KFileName ); + _LIT( KOpenFileL , "CEikAppUi::OpenFileL(const TDesC&) invoked" ); + AssertTrueL( ETrue, KOpenFileL); + + TInt iNum = 10; + iEikAppUI->HandleCommandL( iNum ); + _LIT( KHandleCommandL , "CEikAppUi::HandleCommandL(TInt) invoked" ); + AssertTrueL( ETrue, KHandleCommandL ); + + SExtendedError iExtendedError; + TBuf<16> iErrorText; + TBuf<16> iContextText; + iEikAppUI->HandleError( KErrNone, iExtendedError, iErrorText, iErrorText ); + _LIT( KHandleError , + "CEikAppUi::HandleError(TInt,SExtendedError&,TDes&,TDes&) invoked" ); + AssertTrueL( ETrue, KHandleError ); + + iEikAppUI->PrepareToExit(); + _LIT( KPrepareToExit , "CEikAppUi::PrepareToExit() invoked" ); + AssertTrueL( ETrue, KPrepareToExit ); + + iEikAppUI->HandleModelChangeL(); + _LIT( KHandleModelChangeL , "CEikAppUi::HandleModelChangeL() invoked" ); + AssertTrueL( ETrue, KHandleModelChangeL ); + + TInt iType = 2; + iEikAppUI->HandleResourceChangeL( iType ); + _LIT( KHandleResourceChangeL, + "CEikAppUi::HandleResourceChangeL(TInt) invoked" ); + AssertTrueL( ETrue, KHandleResourceChangeL ); + + TFileName iFileName; + iEikAppUI->ProcessCommandParametersL( EApaCommandRun, iFileName, KNullDesC8 ); + _LIT( KProcessCommandParametersL, + "CEikAppUi::ProcessCommandParametersL(TApaCommand,TFileName&,TDesC8&) invoked" ); + AssertTrueL( ETrue, KProcessCommandParametersL ); + + iEikAppUI->SetDocument( CEikonEnv::Static()->EikAppUi()->Document() ); + _LIT( KSetDocument , "CEikAppUi::SetDocument(CEikDocument* ) invoked" ); + AssertTrueL( ETrue, KSetDocument ); + + } + +void CBCTestAppFrmEikAppUICase::TestPublicFunction() + { + + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmeiksrvcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmeiksrvcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,159 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include "bctestappfrmeiksrvcase.h" +#include "bctestappfrmcontainer.h" +#include "bctestappfrm.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmEikSrvCase* CBCTestAppFrmEikSrvCase::NewL( + CBCTestAppFrmContainer* aContainer ) + { + CBCTestAppFrmEikSrvCase* self = new( ELeave ) CBCTestAppFrmEikSrvCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmEikSrvCase::CBCTestAppFrmEikSrvCase( + CBCTestAppFrmContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmEikSrvCase::~CBCTestAppFrmEikSrvCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikSrvCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikSrvCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikSrvCase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 9), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikSrvCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikSrvCase::RunL( TInt aCmd ) + { + if ( aCmd !=EBCTestEikSrv) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + TestFunction(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikSrvCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikSrvCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestEikSrv: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikSrvCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikSrvCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmEikSrvCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmEikSrvCase::TestFunction() + { + // Test some API here + TestPublicFunction(); + TestProtectedFunction(); + } +void CBCTestAppFrmEikSrvCase::TestProtectedFunction() +{ + +} + +void CBCTestAppFrmEikSrvCase::TestPublicFunction() +{ + +} + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestappfrmview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,226 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestappfrm.hrh" +#include +#include "bctestappfrmview.h" +#include "bctestappfrmcontainer.h" +#include "bctestutil.h" +#include "bctestaknapplication.h" +#include "bctestakndoc.h" +#include "bctestaknviewappui.h" +#include "bctesteikmobs.h" +#include "bctestvcurs.h" +#include "bctesteikenvcase.h" + +#include "bctestappfrmcase.h" +#include "bctestappfrmaknappuicase.h" +#include "bctestappfrmaknviewcase.h" +#include "bctestappfrmeikappuicase.h" +#include "bctestappfrmeiksrvcase.h" + + + +_LIT( KAppFrmAknAppUICase, "Application Framework AknAppUi case"); +_LIT( KAppFrmAknViewCase, "Application Framework AknView case"); +_LIT( KAppFrmEikAppUICase, "Application Framework EikAppUi case"); +_LIT( KAppFrmEikSrvCase, "Application Framework EikSrv case"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmView* CBCTestAppFrmView::NewL(CAknViewAppUi* aUI) + { + CBCTestAppFrmView* self = new( ELeave ) CBCTestAppFrmView(); + CleanupStack::PushL( self ); + self->ConstructL(aUI); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmView::CBCTestAppFrmView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::ConstructL(CAknViewAppUi* aUI) + { + BaseConstructL( R_BCTESTAPPFRM_VIEW ); + + iContainer = new( ELeave ) CBCTestAppFrmContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestAknApplication::NewL(), _L("CBCTestAknApplication") ); + iTestUtil->AddTestCaseL( CBCTestAknDoc::NewL(), _L("CBCTestAknDoc") ); + iTestUtil->AddTestCaseL( CBCTestAknViewAppUi::NewL(aUI, Id()), _L("CBCTestAknViewAppUi") ); + iTestUtil->AddTestCaseL( CBCTestEikMObserver::NewL(), _L("CBCTestEikMObserver") ); + iTestUtil->AddTestCaseL( CBCTestVCursor::NewL(), _L("CBCTestVCursor") ); + iTestUtil->AddTestCaseL( CBCTestEikenv::NewL( iContainer ), _L("CBCTestEikEnv") ); + iTestUtil->AddTestCaseL( CBCTestAppFrmAknAppUICase::NewL(iContainer), + KAppFrmAknAppUICase ); + iTestUtil->AddTestCaseL( CBCTestAppFrmAknViewCase::NewL(iContainer,this), + KAppFrmAknViewCase ); + iTestUtil->AddTestCaseL( CBCTestAppFrmEikAppUICase::NewL(iContainer), + KAppFrmEikAppUICase ); + iTestUtil->AddTestCaseL( CBCTestAppFrmEikSrvCase::NewL(iContainer), + KAppFrmEikSrvCase ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppFrmView::~CBCTestAppFrmView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestAppFrmView::Id() const + { + return KBCTestAppFrmViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_cba +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_cba() + { + Cba(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_StatusPane +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_StatusPane() + { + StatusPane(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_ViewScreenDeviceChangedL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_ViewScreenDeviceChangedL() + { + ViewScreenDeviceChangedL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_DoActivateL( const TVwsViewId& aViewId, + TUid aId , const TDesC8& aDes) + { + DoActivateL(aViewId,aId,aDes); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_MopNext +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_MopNext() + { + MopNext(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_MopSupplyObject +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_MopSupplyObject( TTypeUid aId ) + { + MopSupplyObject( aId ); + } + +// --------------------------------------------------------------------------- +// CBCTestAppFrmView::AppFrmView_HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestAppFrmView::AppFrmView_HandleCommandL( TInt aCommand ) + { + CAknView::HandleCommandL( aCommand ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctesteikenvcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctesteikenvcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,347 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include "bctesteikenvcase.h" +#include "bctestappfrmcontainer.h" +#include "bctestappfrm.hrh" + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestEikenv::CBCTestEikenv( CBCTestAppFrmContainer* /*aContainer*/ ) + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestEikenv::~CBCTestEikenv() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CBCTestEikenv::ConstructL() + { + BuildScriptL(); + iEikenv = CEikonEnv::Static(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CBCTestEikenv* CBCTestEikenv::NewL( CBCTestAppFrmContainer* aContainer ) + { + CBCTestEikenv* self = new ( ELeave ) CBCTestEikenv( aContainer ); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CBCTestEikenv::RunL(int aCmd) + { + if(aCmd != EBCTestCmdEikenv) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CBCTestEikenv::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 5), + LeftCBA, + LeftCBA, + WAIT(20) + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CBCTestEikenv::TestL() + { + // Test class CEikonEnv + // The following are ok. + iEikenv->Version(); + _LIT( KVersion, "CEikonEnv Version" ); + AssertNotNullL( iEikenv, KVersion ); + + iEikenv->Beep(); + _LIT( KBeep, "CEikonEnv Beep." ); + AssertNotNullL( iEikenv, KBeep ); + + iEikenv->InfoMsgCancel(); + _LIT( KInfoMsgCancel, "CEikonEnv InfoMsgCancel." ); + AssertNotNullL( iEikenv, KInfoMsgCancel ); + + TGulAlignment alignment( EHCenterVCenter ); + TTimeIntervalMicroSeconds32 duration( 1000*1000*5 ); + _LIT( KShowMsgInfo, "Msg Info!" ); + TBuf<16> msgInfo( KShowMsgInfo ); + //VA_LIST list; + + iEikenv->InfoMsg( msgInfo ); + _LIT( KInfoMsg1, "CEikonEnv InfoMsg(&TDesC) method" ); + AssertNotNullL( iEikenv, KInfoMsg1 ); + + iEikenv->InfoMsg( R_BCTESTAPPFRM_MSGINFO ); + _LIT( KInfoMsg2, "CEikonEnv InfoMsg(TInt) method" ); + AssertNotNullL( iEikenv, KInfoMsg2 ); + + //iEikenv->InfoMsg( R_BCTESTAPPFRM_MSGINFO, list ); + _LIT( KInfoMsg3, "CEikonEnv InfoMsg(TInt, VA_LIST) method" ); + AssertNotNullL( iEikenv, KInfoMsg3 ); + + iEikenv->InfoMsgWithDuration( msgInfo, duration ); + _LIT( KInfoMsg4, "InfoMsgWithDuration first method" ); + AssertNotNullL( iEikenv, KInfoMsg4 ); + + iEikenv->InfoMsgWithDuration( R_BCTESTAPPFRM_MSGINFO, duration ); + _LIT( KInfoMsg5, "InfoMsgWithDuration second method" ); + AssertNotNullL( iEikenv, KInfoMsg5 ); + + //iEikenv->InfoMsgWithDuration( R_BCTESTAPPFRM_MSGINFO, duration, list ); + _LIT( KInfoMsg6, "InfoMsgWithDuration third method" ); + AssertNotNullL( iEikenv, KInfoMsg6 ); + + iEikenv->InfoMsgWithAlignment( alignment, msgInfo ); + _LIT( KInfoMsg7, "InfoMsgWithAlignment first method" ); + AssertNotNullL( iEikenv, KInfoMsg7 ); + + iEikenv->InfoMsgWithAlignment( alignment, R_BCTESTAPPFRM_MSGINFO ); + _LIT( KInfoMsg8, "InfoMsgWithAlignment second method" ); + AssertNotNullL( iEikenv, KInfoMsg8 ); + + //iEikenv->InfoMsgWithAlignment( alignment, R_BCTESTAPPFRM_MSGINFO, list ); + _LIT( KInfoMsg9, "InfoMsgWithAlignment third method" ); + AssertNotNullL( iEikenv, KInfoMsg9 ); + + iEikenv->InfoMsgWithAlignmentAndDuration( alignment, msgInfo,duration ); + _LIT( KInfoMsg10, "InfoMsgWithAlignmentAndDuration first method" ); + AssertNotNullL( iEikenv, KInfoMsg10 ); + + iEikenv->InfoMsgWithAlignmentAndDuration( alignment, + R_BCTESTAPPFRM_MSGINFO, duration ); + _LIT( KInfoMsg11, "InfoMsgWithAlignmentAndDuration second method" ); + AssertNotNullL( iEikenv, KInfoMsg11 ); + + //iEikenv->InfoMsgWithAlignmentAndDuration( alignment, + // R_BCTESTAPPFRM_MSGINFO, duration, list ); + _LIT( KInfoMsg12, "InfoMsgWithAlignmentAndDuration third method" ); + AssertNotNullL( iEikenv, KInfoMsg12 ); + + TGulAlignment busyMsgAlignment( EHLeftVCenter ); + TTimeIntervalMicroSeconds32 delaytime( 1000*1000*5 ); + _LIT( KShowBusyMsgInfo, "Busy Msg Info!" ); + TBuf<16> busyMsgInfo( KShowBusyMsgInfo ); + + iEikenv->BusyMsgL( busyMsgInfo ); + _LIT( KBusyMsg1, "CEikonEnv BusyMsgL first method." ); + AssertNotNullL( iEikenv, KBusyMsg1 ); + + iEikenv->BusyMsgL( busyMsgInfo, busyMsgAlignment ); + _LIT( KBusyMsg2, "CEikonEnv BusyMsgL second method." ); + AssertNotNullL( iEikenv, KBusyMsg2 ); + + iEikenv->BusyMsgL( R_BCTESTAPPFRM_BUSYMSGINFO ); + _LIT( KBusyMsg3, "CEikonEnv BusyMsgL third method." ); + AssertNotNullL( iEikenv, KBusyMsg3 ); + + iEikenv->BusyMsgL( busyMsgInfo, delaytime ); + _LIT( KBusyMsg4, "CEikonEnv BusyMsgL fourth method." ); + AssertNotNullL( iEikenv, KBusyMsg4 ); + + iEikenv->BusyMsgL( busyMsgInfo, busyMsgAlignment, delaytime ); + _LIT( KBusyMsg5, "CEikonEnv BusyMsgL fifth method." ); + AssertNotNullL( iEikenv, KBusyMsg5 ); + + iEikenv->BusyMsgL( R_BCTESTAPPFRM_BUSYMSGINFO, delaytime ); + _LIT( KBusyMsg6, "CEikonEnv BusyMsgL sixth method." ); + AssertNotNullL( iEikenv, KBusyMsg6 ); + + iEikenv->BusyMsgCancel(); + _LIT( KBusyMsgCancel, "CEikonEnv BusyMsgCancel." ); + AssertNotNullL( iEikenv, KBusyMsgCancel ); + + _LIT( KChanges, "CEikonEnv ConfirmLossOfAllChangesL." ); + AssertTrueL( iEikenv->ConfirmLossOfAllChangesL(), KChanges ); + + CCharFormatLayer* cLayer = iEikenv->SystemCharFormatLayerL(); + CleanupStack::PushL(cLayer); + _LIT( KCharFormat, "CEikonEnv SystemCharFormatLayerL." ); + AssertNotNullL( cLayer, KCharFormat ); + CleanupStack::Pop(cLayer); + cLayer = NULL; + + CParaFormatLayer* pLayer = iEikenv->SystemParaFormatLayerL(); + CleanupStack::PushL(pLayer); + _LIT( KParaFormat, "CEikonEnv SystemParaFormatLayerL." ); + AssertNotNullL( pLayer, KParaFormat ); + CleanupStack::Pop(pLayer); + pLayer = NULL; + + iEikenv->UpdateTaskNameL(); + _LIT( KUpdName, "CEikonEnv UpdateTaskNameL." ); + AssertNotNullL( iEikenv, KUpdName ); + + //iEikenv->DisplayTaskList(); + //_LIT( KDisplayTaskList, "CEikonEnv DisplayTaskList." ); + //AssertNotNullL( iEikenv, KDisplayTaskList ); + + //iEikenv->DismissTaskList(); + //_LIT( KDismissTask, "CEikonEnv DismissTaskList." ); + //AssertNotNullL( iEikenv, KDismissTask ); + + CParaFormatLayer* paraLayer = iEikenv->NewDefaultParaFormatLayerL(); + CleanupStack::PushL(paraLayer); + _LIT( KNDParaLayer, "CEikonEnv NewDefaultParaFormatLayerL." ); + AssertNotNullL( paraLayer, KNDParaLayer ); + CleanupStack::Pop(paraLayer); + delete paraLayer; + + CCharFormatLayer* charLayer = iEikenv->NewDefaultCharFormatLayerL(); + CleanupStack::PushL(charLayer); + _LIT( KNDCharLayer, "CEikonEnv NewDefaultCharFormatLayerL." ); + AssertNotNullL( charLayer, KNDCharLayer ); + CleanupStack::Pop(charLayer); + delete charLayer; + + CParaFormatLayer* singlelineLayer = + iEikenv->NewDefaultSingleLineParaFormatLayerL(); + CleanupStack::PushL(singlelineLayer); + _LIT( KNDSParaLayer, "CEikonEnv NewDefaultSingleLineParaFormatLayerL." ); + AssertNotNullL( singlelineLayer, KNDSParaLayer ); + CleanupStack::Pop(singlelineLayer); + delete singlelineLayer; + + iEikenv->SetBusy( ETrue ); + _LIT( KSetBusy, "CEikonEnv SetBusy." ); + AssertNotNullL( iEikenv, KSetBusy ); + + _LIT( KIsBusy, "CEikonEnv IsBusy ETrue." ); + AssertTrueL( iEikenv->IsBusy(), KIsBusy ); + + iEikenv->SetSystem( ETrue ); + _LIT( KSetSystem, "CEikonEnv SetSystem." ); + AssertNotNullL( iEikenv, KSetSystem ); + + _LIT( KIsSystem, "CEikonEnv IsSystem ETrue." ); + AssertTrueL( iEikenv->IsSystem(), KIsSystem ); + + iEikenv->SetDocNameIsAFile( ETrue ); + _LIT( KSetDocNameIsAFile, "CEikonEnv SetDocNameIsAFile ETrue." ); + AssertNotNullL( iEikenv, KSetDocNameIsAFile ); + + _LIT( KDocNameIsFile, "CEikonEnv DocNameIsAFile ETrue." ); + AssertTrueL( iEikenv->DocNameIsAFile(), KDocNameIsFile ); + + iEikenv->SetRespondsToShutdownEvent( ETrue ); + _LIT( KShutdownEvent, "CEikonEnv SetRespondsToShutdownEvent ETrue." ); + AssertNotNullL( iEikenv, KShutdownEvent ); + + _LIT( KRespondsToShutdown, "CEikonEnv RespondsToShutdownEvent ETrue." ); + AssertTrueL( iEikenv->RespondsToShutdownEvent(), KRespondsToShutdown ); + + iEikenv->SetRespondsToSwitchFilesEvent( ETrue ); + _LIT( KSwitchFilesEvent, "SetRespondsToSwitchFilesEvent ETrue." ); + AssertNotNullL( iEikenv, KSwitchFilesEvent ); + + _LIT( KRespondsToSwitch, "CEikonEnv RespondsToSwitchFilesEvent ETrue." ); + AssertTrueL( iEikenv->RespondsToSwitchFilesEvent(), KRespondsToSwitch ); + + _LIT( KAsServerApp, "CEikonEnv StartedAsServerApp." ); + AssertTrueL( !iEikenv->StartedAsServerApp(), KAsServerApp ); + + CEikAppServer* appServer = iEikenv->AppServer(); + _LIT( KAppServer, "CEikonEnv AppServer." ); + AssertTrueL( appServer == NULL, KAppServer ); + appServer = NULL; + + iEikenv->WriteInternalStateOfStackedControlsL(); + _LIT( KWriteState, "CEikonEnv WriteInternalStateOfStackedControlsL." ); + AssertNotNullL( iEikenv, KWriteState ); + + iEikenv->DoGetErrorText( msgInfo, 12 ); //12 means KErrFolderNotFound + // Display the error text via InfoMsg() method. + iEikenv->InfoMsg( msgInfo ); + + iEikenv->HandleError(12); + _LIT( KHandleError, "CEikonEnv HandleError." ); + AssertNotNullL( iEikenv, KHandleError ); + + iEikenv->HandleErrorWithContext( 12, R_BCTESTAPPFRM_MSGINFO ); + _LIT( KHandleErrorContext, "CEikonEnv HandleErrorWithContext." ); + AssertNotNullL( iEikenv, KHandleErrorContext ); + + TDisplayMode displayMode = iEikenv->DefaultDisplayMode(); + _LIT( KDisplayMode, "CEikonEnv DefaultDisplayMode." ); + AssertNotNullL( iEikenv, KDisplayMode ); + + iEikenv->UpdateSystemFontsL(); + _LIT( KUpdFonts, "CEikonEnv UpdateSystemFontsL." ); + AssertNotNullL( iEikenv, KUpdFonts ); + + CColorList* colorList = iEikenv->CreateSystemColorListL(); + _LIT( KcolorList, "CEikonEnv CreateSystemColorListL NULL." ); + AssertTrueL( colorList==NULL, KcolorList ); + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CBCTestEikenv::SetupL() + { + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CBCTestEikenv::TearDownL() + { + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctesteikmobs.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctesteikmobs.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,128 @@ +/* +* 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: +* +*/ +#include "bctestappfrm.hrh" +#include "streamlogger.h" +#include "bctesteikmobs.h" +#include "eikcmobs.h" + +class CMonkObserver: public MEikCommandObserver, public CBase{ +public: + CMonkObserver(): MEikCommandObserver(){} + void ProcessCommandL(TInt /*aCommandId*/){} + CCoeControl* CreateCustomCommandControlL(TInt aControlType){ + return MEikCommandObserver::CreateCustomCommandControlL(aControlType); + } +}; + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestEikMObserver::CBCTestEikMObserver() + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestEikMObserver::~CBCTestEikMObserver() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CBCTestEikMObserver::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CBCTestEikMObserver* CBCTestEikMObserver::NewL() + { + CBCTestEikMObserver* self = new ( ELeave ) CBCTestEikMObserver(); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CBCTestEikMObserver::RunL(int aCmd) + { + if(aCmd != EBCTestCmdEikMObserver) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CBCTestEikMObserver::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 3), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CBCTestEikMObserver::TestL() + { + CMonkObserver* obs = new (ELeave) CMonkObserver; + AssertNotNullL(obs, _L("MEikObserver ctor invoked")); + + AssertTrueL( NULL == obs->CreateCustomCommandControlL(0), + _L("MEikCommandObserver::CreateCustomCommandControlL() invoked") ); + + delete obs; + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CBCTestEikMObserver::SetupL() + { + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CBCTestEikMObserver::TearDownL() + { + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestvcurs.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestappfrm/src/bctestvcurs.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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: +* +*/ +#include "bctestappfrm.hrh" +#include "streamlogger.h" +#include "bctestvcurs.h" +#include "eikcmobs.h" + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestVCursor::CBCTestVCursor() + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CBCTestVCursor::~CBCTestVCursor() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CBCTestVCursor::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CBCTestVCursor* CBCTestVCursor::NewL() + { + CBCTestVCursor* self = new ( ELeave ) CBCTestVCursor(); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CBCTestVCursor::RunL(int aCmd) + { + if(aCmd != EBCTestCmdVCursor) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CBCTestVCursor::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 4), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CBCTestVCursor::TestL() + { + CCoeEnv* env = CCoeEnv::Static(); + TEikVirtualCursor& ref = CEikonEnv::Static()->VirtualCursor(); + ref.SetCursorStateL( TEikVirtualCursor::EOn, *env); + AssertTrueL( TEikVirtualCursor::EOn == ref.CursorState(*env), + _L("Get State is equal to EOn")); + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CBCTestVCursor::SetupL() + { + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CBCTestVCursor::TearDownL() + { + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bctestbuttons.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bctestbuttons.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,101 @@ +/* +* 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 "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: project specification file for the bctestbuttons. +* +*/ + + +TARGET bctestbuttons.exe +TARGETTYPE exe +UID 0x0 0x20004744 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH /sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestbuttons.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctestbuttonsapp.cpp +SOURCE bctestbuttonsdocument.cpp +SOURCE bctestbuttonsappui.cpp +SOURCE bctestbuttonsview.cpp +SOURCE bctestbuttonscontainer.cpp +SOURCE bctestbuttonscase.cpp + +USERINCLUDE ../../../bctestutil/inc + +#ifdef SBSV2 + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +LIBRARY estor.lib +LIBRARY aknicon.lib +LIBRARY bafl.lib + + + +// Creates Mbm file. +START BITMAP bctestbuttons.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../datasrc +SOURCE C8 sampleicon.bmp +SOURCE C8 sampleiconmask.bmp +END + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestbuttons_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bctestbuttons.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bctestbuttons.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,389 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME BUTT + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestbuttons.hrh" +#include "bctestbuttons.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTBUTTONS_BMP_FNAME APP_BITMAP_DIR"\\bctestbuttons.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctest_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestbuttons_menubar_main; + cba = r_bctestbuttons_cba_options_next; + } + +//----------------------------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +//----------------------------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestbuttons_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbuttons_view +// AVKON_VIEW for CBCTestButtonsView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestbuttons_view + { + menubar = r_bctestbuttons_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbuttons_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestbuttons_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestbuttons_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestbuttons_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbuttons_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestbuttons_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdTestEikBgftyAndEikBtgpcL; + txt = qtn_bctestbuttons_testeikbgftyandeikbtgcl; + }, + MENU_ITEM + { + command = EBCTestCmdTestEikButbAndEikCbaL; + txt = qtn_bctestbuttons_testeikbutbandeikcbal; + }, + MENU_ITEM + { + command = EBCTestCEikCommandButtonL; + txt = qtn_bctestbuttons_testceikcommandbuttonl; + }, + MENU_ITEM + { + command = EBCTestCEikTwoPictureCmdL; + txt = qtn_bctestbuttons_testceikpicturecmdl; + }, + MENU_ITEM + { + command = EBCTestCEikInverterCmdL; + txt = qtn_bctestbuttons_testceikinvertercmdl; + }, + MENU_ITEM + { + command = EBCTestCEikTextBtnL; + txt = qtn_bctestbuttons_testceiktextbtnl; + }, + MENU_ITEM + { + command = EBCTestCEikBitmapBtnL; + txt = qtn_bctestbuttons_testceikbitmapbtnl; + }, + MENU_ITEM + { + command = EBCTestCEikLabeledBtnL; + txt = qtn_bctestbuttons_testceiklabeledbtnl; + }, + MENU_ITEM + { + command = EBCTestMnbutAndBtgpsAndBtgrpL; + txt = qtn_bctestbuttons_testmnbutandbtgpsandbtgrpl; + }, + MENU_ITEM + { + command = EBCTestCba; + txt = qtn_bctestbuttons_testcba; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbuttons_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestbuttons_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestbuttons_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestbuttons_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestbuttons_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestbuttons_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestButtonsCbaCmdNext; + txt = qtn_bctestbuttons_cba_next; + } + }; + } +// ---------------------------------------------------------------------------- +// +// r_bctestbuttons_toolbar +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE TOOLBAR r_bctestbuttons_toolbar + { + length=0; + breadth=KEikStdToolBarWidth; + lines=1; + flags=0; + extension=0; + } + +// ---------------------------------------------------------------------------- +// +// r_aknatbutton_button_mnbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE MNBUT r_bctestbuttons_mnbut + { + popout=0; + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft + helptxt=""; + extension=0; + txt=""; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + } +// ---------------------------------------------------------------------------- +// +// r_bctestbuttons_picmbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE PICMBUT r_bctestbuttons_picmbut + { + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt=""; + bmpfile = BCTESTBUTTONS_BMP_FNAME; + bmpid = EMbmBctestbuttonsSampleicon; + bmpmask= EMbmBctestbuttonsSampleiconmask; + bmpsecondid= EMbmBctestbuttonsSampleicon; + bmpsecondmask= EMbmBctestbuttonsSampleiconmask; + } +// ---------------------------------------------------------------------------- +// +// r_bctestbuttons_txtbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE TXTBUT r_bctestbuttons_txtbut + { + version=0; + behavior=0; + layout=0; // EFirstRightSecondLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt1=""; + txt2=""; + } +// ---------------------------------------------------------------------------- +// +// r_bctest_lbbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE LBBUT r_bctestbuttons_lbbut + { + buttontype=0; // EEikCtCommandButton + button = CMBUT + { + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt=""; + bmpfile= BCTESTBUTTONS_BMP_FNAME; + bmpid=EMbmBctestbuttonsSampleicon; + bmpmask=EMbmBctestbuttonsSampleiconmask; + }; + hotkey=0; + flags=1; // EEikLabeledButtonShowHotKey + } + +// ---------------------------------------------------------------------------- +// +// r_aknatbutton_button_cmbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE CMBUT r_bctestbuttons_cmbut + { + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt=""; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + } + +// ---------------------------------------------------------------------------- +// +// r_aknatbutton_button_cmbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE BMPBUT r_bctestbuttons_bmpbut + { + version = 0; + behavior = 0; + layout = 0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt = ""; + extension = 0; + bmp1file = BCTESTBUTTONS_BMP_FNAME; + bmp1id = EMbmBctestbuttonsSampleicon; + bmp1mask = EMbmBctestbuttonsSampleiconmask; + bmp2file= BCTESTBUTTONS_BMP_FNAME; + bmp2id=EMbmBctestbuttonsSampleicon; + bmp2mask = EMbmBctestbuttonsSampleiconmask; + } + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bctestbuttons_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bctestbuttons_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: bctestbuttons resource header file +* +*/ + + + +#include +#include + +#include "bctestbuttons.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004744 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_bctest_app_file; + localisable_resource_file = qtn_bctest_resource; + localisable_resource_id = R_BCTESTBUTTONS_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //newfile = KAppDoesNotSupportNewFile; + //launch = KAppLaunchInForeground; + group_name = qtn_bctest_group; + //default_screen_number = 2; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,22 @@ +/* +* 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 "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: build information +* +*/ + + + +PRJ_MMPFILES + +bctestbuttons.mmp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/StreamLogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/StreamLogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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: +* +*/ +// +// just for simple use, +// this file doesn't following any code convensions or symbian rules. +// + +#ifndef __DLL_LOGGER_H__ +#define __DLL_LOGGER_H__ + +#include // link against efsrv.lib +#include + +#define CERR StreamLogger::begin() + +/** +* usage: StreamLogger::begin()<<"your string"<FsSession(); + if ( file.Open( fs, KLogFile, EFileWrite | EFileShareAny ) != KErrNone ) + file.Create( fs, KLogFile, EFileWrite | EFileShareAny ); + + TInt pos=0; // this must be 0 + file.Seek( ESeekEnd, pos ); + } + + ~LogFile(){ + file.Close(); + } + + RFile& operator()(){ return file; } + private: + RFile file; + }; + +public: + ~StreamLogger(){} + + static StreamLogger& begin(){ + StreamLogger* self = new (ELeave) StreamLogger; + return *self; + } + + void suicide(){ delete this; } + + StreamLogger& operator<<(const TDesC& aText){ + LogFile file; + + HBufC8* text = HBufC8::NewL( aText.Length() ); + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + + return *this; + } + + StreamLogger& operator<<(TInt n){ + LogFile file; + + TInt i=1; + for(TInt v=n; v!=0; ++i, v/=10){} + HBufC* text = HBufC::NewL( i ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, n ); + HBufC8* text8 = HBufC8::NewL( textPtr.Length() ); + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + + return *this; + } + + StreamLogger& cr(){ + LogFile file; + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + return *this; + } + + typedef StreamLogger& (*_Manipulator)(StreamLogger&); + StreamLogger& operator<<(_Manipulator op){ return op(*this); } + +private: + StreamLogger(){} //disable ctor +}; + +inline StreamLogger& end(StreamLogger& self){ self.suicide(); return self; } + +inline StreamLogger& endl(StreamLogger& self){ self.cr(); return self; } + +#endif //__FILE_LOGGER_H__ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttons.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttons.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: bctestbuttons resource header file +* +*/ + + +#ifndef BCTESTBUTTONS_HRH +#define BCTESTBUTTONS_HRH + +enum TBCTestButtonsMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdTestEikBgftyAndEikBtgpcL, + EBCTestCmdTestEikButbAndEikCbaL, + EBCTestCEikCommandButtonL, + EBCTestCEikTwoPictureCmdL, + EBCTestCEikInverterCmdL, + EBCTestCEikTextBtnL, + EBCTestCEikBitmapBtnL, + EBCTestCEikLabeledBtnL, + EBCTestMnbutAndBtgpsAndBtgrpL, + EBCTestCba, + EBCTestCmdMaxOutline, + + EProgCmdAutoTest + }; + +enum TBCTestButtonsCba + { + EBCTestButtonsCbaCmdNext = 0x6300 + }; +enum TBCTestButtons + { + EToolbarTestCmdToolbarButton1 = 0x6600, + EToolbarTestCmdToolbarButton2 + }; + +#endif // BCTESTBUTTONS_HRH + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttons.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttons.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +/* +* 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 "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: BCTestButtons localise file +* +*/ + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTBUTTONS" +#define qtn_apps_tavl_grid "BCTESTBUTTONS" + +// MenuBar +#define qtn_bctestbuttons_menubar "Option" +#define qtn_bctestbuttons_cba_next "Next" +#define qtn_bctestbuttons_autotest "Autotest" +#define qtn_bctestbuttons_menu_exit "Exit" +//Name +#define qtn_bctest_buf "bctestbuttons" +#define qtn_bctest_app_file "bctestbuttons" +#define qtn_bctest_resource "\\resource\\apps\\bctestbuttons" +#define qtn_bctest_group "BCTest" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestbuttons_testeikbgftyandeikbtgcl "TestEikBgftyAndEikBtgc" +#define qtn_bctestbuttons_testeikbutbandeikcbal "TestEikButbAndEikCba" +#define qtn_bctestbuttons_testceikcommandbuttonl "TestEikCommandButton" +#define qtn_bctestbuttons_testceikpicturecmdl \ + "TestCEikPictureCommandButton" +#define qtn_bctestbuttons_testceikinvertercmdl \ + "TestCEikInverterCommandButton" +#define qtn_bctestbuttons_testceiktextbtnl "TestCEikTextButton" +#define qtn_bctestbuttons_testceikbitmapbtnl "TestCEikBitmapButton" +#define qtn_bctestbuttons_testceiklabeledbtnl "TestCEikLabeledButton" +#define qtn_bctestbuttons_testmnbutandbtgpsandbtgrpl \ + "TestEikMnbutAndEikBtgpsAndEikBtgrp" +#define qtn_bctestbuttons_testcba "TestCBA" +#define qtn_aknbutton_help0 "help0 button" +#define qtn_aknatbutton_text0 "text0" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 \ + to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,55 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTBUTTONSAPP_H +#define C_CBCTESTBUTTONSAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestButtons = { 0x20004744 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestButtonsApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestButtonsApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestButtonsDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestButtons ). + * @return The value of KUidBCTestButtons. + */ + TUid AppDllUid() const; + + }; + +#endif + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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 BC for Buttons control API. +* +*/ + + +#ifndef C_BCTESTBUTTONSAPPUI_H +#define C_BCTESTBUTTONSAPPUI_H + +#include + +class CBCTestButtonsView; + +/** + * Application UI class + */ +class CBCTestButtonsAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestButtonsAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestButtonsAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestButtonsView* iView; + }; + +#endif // C_BCTESTBUTTONSAPPUI_H + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonscase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonscase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,225 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_BUTTONSCASE_H +#define BCTEST_BUTTONSCASE_H + +#include +#include +#include + +#include "bctestcase.h" + +class CBCTestButtonsContainer; +class CCoeControl; +class CEikLabeledButton; +class CEikTwoPictureCommandButton; +class CBCTestCmdBtnBase; + +/** +* test case for various list classes +*/ +class CBCTestButtonsCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestButtonsCase* NewL( CBCTestButtonsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestButtonsCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test TestEikBgftyAndEikBtgpcL + */ + void TestEikBgftyAndEikBtgpcL(); + /** + * Test TestEIKBTGPCL + */ + void TestEikButbAndEikCbaL(); + /** + * Test TestCEikCommandButton + */ + void TestCEikCommandButtonL(); + /** + * Test TestCEikTwoPictureCmd + */ + void TestCEikTwoPictureCmdL(); + /** + * Test TestCEikInverterCmdL + */ + void TestCEikInverterCmdL(); + /** + * Test TestCEikTextBtnL + */ + void TestCEikTextBtnL(); + /** + * Test TestCEikBitmapBtnL + */ + void TestCEikBitmapBtnL(); + /** + * Test TestEikCmbutAndEikLbbutL + */ + void TestCEikLabeledBtnL(); + /** + * Test TestMnbutAndBtgpsAndBtgrpL + */ + void TestMnbutAndBtgpsAndBtgrpL(); + + /** + * Test TestCbaButtonL + */ + void TestCbaButtonL(); + + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestButtonsCase( CBCTestButtonsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + CEikCommandButton* SetupCommandBtnL(); + void TeardownCommandBtnL(CEikCommandButton* aBtn); + void TestSetBtnLayoutL(); + void TestExcessSpace(); + void TestStuff(); + void TestImgBtnL(); + void TestStackRelatedL(); + void TestCommandButtonBaseL(); + void TestButtonBaseL(); + + CEikTwoPictureCommandButton* SetupTwoPictureCmdL(); + void TestSetTwoPicturesL(); + void TeardownTwoPictureCmdL( CEikTwoPictureCommandButton* aBtn ); + + CEikInverterCommandButton* SetupInverterCmdL(); + void TeardownInverterCmdL( CEikInverterCommandButton* aBtn ); + + CEikTextButton* SetupTextBtnL(); + void TeardownTextBtnL( CEikTextButton* aBtn ); + + CEikBitmapButton* SetupBitmapBtnL(); + void TeardownBitmapBtnL( CEikBitmapButton* aBtn ); + + CEikLabeledButton* SetupLabeledBtnLC(); + void TeardownLabeledBtnL( CEikLabeledButton* aBtn ); + +private: // data + + CBCTestCmdBtnBase* iCmdBtnBase;//own + + /** + * Pointer to container. + * not own + */ + CBCTestButtonsContainer* iContainer; + + CEikonEnv* iEnv; + + }; +/** +* For MEikCommandObserver classes test +*/ +class TBCTestCommandObserver: public MEikCommandObserver + { + void ProcessCommandL( TInt aCommandId ); + }; +/** +* For MEikMenuObserver classes test +*/ +class TBCTestMenuObserver: public MEikMenuObserver + { + void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis); + + void ProcessCommandL( TInt aCommandId ); + }; +/** +* For CEikLabeledButton classes test +*/ +class CBCTestLabeledButton: public CEikLabeledButton + { + friend class CBCTestButtonsCase; + }; +/** +* For CEikTwoPictureCommandButton classes test +*/ + +class CBCTestTwoPicture: public CEikTwoPictureCommandButton + { + friend class CBCTestButtonsCase; + }; + +/** +* For CEikCommandButtonBase classes test +*/ + +class CBCTestCmdBtnBase: public CEikCommandButtonBase + { + friend class CBCTestButtonsCase; + }; +/** +* For CEikButtonBase classes test +*/ + +class CBCTestBtnBase: public CEikButtonBase + { + friend class CBCTestButtonsCase; + }; + +/** + * For CEikInverterCommandButton classes test + */ +class CBCTestInverterCmdButton: public CEikInverterCommandButton + { + friend class CBCTestButtonsCase; + }; + +/** + * For CEikMenuButton classes test + */ +class CBCTestMenuButton: public CEikMenuButton + { + friend class CBCTestButtonsCase; + }; + +#endif // BCTEST_BUTTONSCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonscontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonscontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_CBCTESTBUTTONSCONTAINER_H +#define C_CBCTESTBUTTONSCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestButtonsContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestButtonsContainer(); + + /** + * Destructor + */ + virtual ~CBCTestButtonsContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTESTBUTTONSCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 C_BCTESTBUTTONSDOCUMENT_H +#define C_BCTESTBUTTONSDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestButtonsDocument application class. +*/ +class CBCTestButtonsDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestButtonsDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestButtonsDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestButtonsDocument( CEikApplication& aApp ); + +private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestButtonsAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTBUTTONSDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/inc/bctestbuttonsview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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 BC for Buttons control API. +* +*/ + + +#ifndef C_CBCTESTBUTTONSVIEW_H +#define C_CBCTESTBUTTONSVIEW_H + +#include + +const TUid KBCTestButtonsViewId = { 1 }; + +class CBCTestButtonsContainer; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestButtonsView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestButtonsView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestButtonsView(); + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestButtonsView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestButtonsContainer* iContainer; + + }; + +#endif // BCTESTBUTTONSVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/sis/bctestbuttons.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/sis/bctestbuttons.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +; +; 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: +; +; BCTestButtons-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestButtons"},(0x20004744),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestButtons.exe"- +"!:\sys\bin\BCTestButtons.exe" + +"\epoc32\data\z\resource\apps\BCTestButtons.RSC"- +"!:\resource\apps\BCTestButtons.RSC" + +"\epoc32\data\z\resource\apps\BCTestButtons.mbm"- +"!:\resource\apps\BCTestButtons.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestButtons_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestButtons_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: avkon buttons test app +* +*/ + + +// INCLUDE FILES +#include + +#include "bctestbuttonsapp.h" +#include "bctestbuttonsdocument.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestButtonsApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestButtonsApp::AppDllUid() const + { + return KUidBCTestButtons; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestButtonsApp::CreateDocumentL() +// Creates CBCTestButtonsDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestButtonsApp::CreateDocumentL() + { + return CBCTestButtonsDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestButtonsApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestButtonsApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,82 @@ +/* +* 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 "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 bc for buttons control api(s) +* +*/ + + +#include +#include + +#include "bctestbuttons.hrh" +#include "bctestbuttonsappui.h" +#include "bctestbuttonsview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestButtonsAppUi::CBCTestButtonsAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestButtonsAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestButtonsView* view = CBCTestButtonsView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonsAppUi::~CBCTestButtonsAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonsAppUi::~CBCTestButtonsAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestButtonsAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonscase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonscase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1317 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "bctestbuttonscase.h" +#include "bctestbuttonscontainer.h" +#include "bctestbuttons.hrh" +#include "streamlogger.h" + +_LIT( KStreamName, "c:\\BCTestLog\\buttontest.txt" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsCase* CBCTestButtonsCase::NewL( + CBCTestButtonsContainer* aContainer ) + { + CBCTestButtonsCase* self = new( ELeave ) CBCTestButtonsCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsCase::CBCTestButtonsCase( + CBCTestButtonsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsCase::~CBCTestButtonsCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), TEND); + TInt loop = EBCTestCmdMaxOutline - EBCTestCmdTestEikBgftyAndEikBtgpcL; + for ( TInt i = 0; i < loop; i++ ) + { + AddTestL( LeftCBA, REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdTestEikBgftyAndEikBtgpcL || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + switch ( aCmd ) + { + case EBCTestCmdTestEikBgftyAndEikBtgpcL: + TestEikBgftyAndEikBtgpcL(); + break; + case EBCTestCmdTestEikButbAndEikCbaL: + TestEikButbAndEikCbaL(); + break; + case EBCTestCEikCommandButtonL: + TestCEikCommandButtonL(); + break; + case EBCTestCEikTwoPictureCmdL: + TestCEikTwoPictureCmdL(); + break; + case EBCTestCEikInverterCmdL: + TestCEikInverterCmdL(); + break; + case EBCTestCEikTextBtnL: + TestCEikTextBtnL(); + break; + case EBCTestCEikBitmapBtnL: + TestCEikBitmapBtnL(); + break; + case EBCTestCEikLabeledBtnL: + TestCEikLabeledBtnL(); + break; + case EBCTestMnbutAndBtgpsAndBtgrpL: + TestMnbutAndBtgpsAndBtgrpL(); + break; + case EBCTestCba: + TestCbaButtonL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestEikBgftyAndEikBtgpcL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestEikBgftyAndEikBtgpcL() + { + // Test some API for class EikButtonGroupFactory + TBCTestCommandObserver commandObserver; + TInt resourceId = R_BCTESTBUTTONS_MENU; + + RWindowGroup& parentWg = iEnv->RootWin(); + TUint flags = 0; + + EikButtonGroupFactory::TCreationData creationData( + CEikButtonGroupContainer::EView, &commandObserver, + resourceId, &parentWg, flags, + CEikButtonGroupContainer::EVertical ); + _LIT( KTCreationData, "TCreationData test" ); + AssertTrueL( ETrue, KTCreationData ); + + // Test some API for class CEikButtonGroupFactoryArray + CEikButtonGroupFactoryArray::AppendFactoryFunctionL( + CEikCoCtlLibrary::ButtonGroupFactory() ); + _LIT( KAppendFactoryFunctionL, "AppendFactoryFunctionL test" ); + AssertTrueL( ETrue, KAppendFactoryFunctionL ); + + CEikButtonGroupFactoryArray::RemoveFactoryFunction( + CEikCoCtlLibrary::ButtonGroupFactory() ); + _LIT( KRemoveFactoryFunction, "RemoveFactoryFunction test" ); + AssertTrueL( ETrue, KRemoveFactoryFunction ); + + // Test some API for class CEikButtonGroupContainer + TInt resourceIdForToolbar = R_BCTESTBUTTONS_TOOLBAR; + CEikButtonGroupContainer* buttonGroupContainer1 = + CEikButtonGroupContainer::NewL( CEikButtonGroupContainer::EView, + CEikButtonGroupContainer::EVertical, &commandObserver, + resourceIdForToolbar, CEikButtonGroupContainer::EAddToStack ); + CleanupStack::PushL( buttonGroupContainer1 ); + _LIT( KNewL, "NewL test" ); + AssertTrueL( ETrue, KNewL ); + CleanupStack::PopAndDestroy( buttonGroupContainer1 ); + + CEikButtonGroupContainer* buttonGroupContainer2 = + CEikButtonGroupContainer::NewL( CEikButtonGroupContainer::EView, + CEikButtonGroupContainer::EVertical, &commandObserver, + resourceIdForToolbar, *iContainer, + CEikButtonGroupContainer::EAddToStack); + CleanupStack::PushL( buttonGroupContainer2 ); + _LIT( KNewLWithCCoeControl, "NewL WithCCoeControl test" ); + AssertTrueL( ETrue, KNewLWithCCoeControl ); + CleanupStack::PopAndDestroy( buttonGroupContainer2 ); + + + CEikButtonGroupContainer* buttonGroupContainer3 = + CEikButtonGroupContainer::NewL( CEikButtonGroupContainer::EView, + CEikButtonGroupContainer::EVertical, &commandObserver, + resourceIdForToolbar, parentWg, + CEikButtonGroupContainer::EAddToStack ); + CleanupStack::PushL( buttonGroupContainer3 ); + _LIT( KNewLWithRWindowGroup, "NewL With RWindowGroup test" ); + AssertTrueL( ETrue, KNewLWithRWindowGroup ); + CleanupStack::PopAndDestroy( buttonGroupContainer3 ); + + CEikButtonGroupContainer* buttonGroupContainer4 = + CEikButtonGroupContainer::Current(); + + _LIT( KCurrent, "Current test" ); + AssertTrueL( ETrue, KCurrent ); + + TInt resourceIdForCba = R_BCTESTBUTTONS_CBA_OPTIONS_NEXT; + buttonGroupContainer4->SetCommandSetL( resourceIdForCba ); + _LIT( KSetCommandSetL, "SetCommandSetL test" ); + AssertTrueL( ETrue, KSetCommandSetL ); + + buttonGroupContainer4->AddCommandSetToStackL( resourceIdForCba ); + _LIT( KAddCommandSetToStackL, "AddCommandSetToStackL test" ); + AssertTrueL( ETrue, KAddCommandSetToStackL ); + + TInt commandId = EAknSoftkeyOptions; + TInt position = buttonGroupContainer4->PositionById( commandId ); + _LIT( KPositionById, "PositionById test" ); + AssertTrueL( ETrue, KPositionById ); + + buttonGroupContainer4->RemoveCommandFromStack( position, commandId); + _LIT( KRemoveCommandFromStack, "RemoveCommandFromStack test" ); + AssertTrueL( ETrue, KRemoveCommandFromStack ); + + buttonGroupContainer4->SetDefaultCommand( commandId ); + _LIT( KSetDefaultCommand, "SetDefaultCommand test" ); + AssertTrueL( ETrue, KSetDefaultCommand ); + + TSize size1 = buttonGroupContainer4->CalcMinimumSizeL( resourceIdForCba ); + _LIT( KCalcMinimumSizeL, "CalcMinimumSizeL test" ); + AssertTrueL( ETrue, KCalcMinimumSizeL ); + + buttonGroupContainer4->CleanupCommandPushL( position ); + _LIT( KCleanupCommandPushL, "CleanupCommandPushL test" ); + AssertTrueL( ETrue, KCleanupCommandPushL ); + + TInt res( KErrNone ); + _LIT( KOfferCommandListL, "OfferCommandListL tested" ); + TRAP( res, buttonGroupContainer4->OfferCommandListL( resourceIdForCba ) ); + AssertTrueL( ETrue, KOfferCommandListL ); + + RArray arr; + arr.Append( commandId ); + _LIT( KOfferCommandListLOverload, "OfferCommandListL overload tested" ); + TRAP( res, buttonGroupContainer4->OfferCommandListL( arr ) ); + AssertTrueL( ETrue, KOfferCommandListLOverload ); + arr.Close(); + + TInt countForCleanupCommandPop = 1; + buttonGroupContainer4->CleanupCommandPop( countForCleanupCommandPop ); + _LIT( KCleanupCommandPop, "CleanupCommandPop test" ); + AssertTrueL( ETrue, KCleanupCommandPop ); + + TInt maxCommands = buttonGroupContainer4->MaxCommands(); + _LIT( KMaxCommands, "MaxCommands test" ); + AssertTrueL( ETrue, KMaxCommands ); + + TInt buttonCount = buttonGroupContainer4->ButtonCount(); + _LIT( KButtonCount, "ButtonCount test" ); + AssertTrueL( ETrue, KButtonCount ); + + TBool dimmed = ETrue; + buttonGroupContainer4->DimCommand( commandId, dimmed ); + _LIT( KDimCommand, "DimCommand test" ); + AssertTrueL( ETrue, KDimCommand ); + buttonGroupContainer4->DimCommand( commandId, EFalse ); + + TBool isCommandDimmed = buttonGroupContainer4->IsCommandDimmed( commandId ); + _LIT( KIsCommandDimmed, "IsCommandDimmed test" ); + AssertTrueL( ETrue, KIsCommandDimmed ); + + TBool visible = ETrue; + buttonGroupContainer4->MakeCommandVisible( commandId, visible ); + _LIT( KMakeCommandVisible, "MakeCommandVisible test" ); + AssertTrueL( ETrue, KMakeCommandVisible ); + + TBool isCommandVisible = buttonGroupContainer4->IsCommandVisible( commandId ); + _LIT( KIsCommandVisible, "IsCommandVisible test" ); + AssertTrueL( ETrue, KIsCommandVisible ); + + buttonGroupContainer4->AnimateCommand( commandId ); + _LIT( KAnimateCommand1, "AnimateCommand test" ); + AssertTrueL( ETrue, KAnimateCommand1 ); + + CEikButtonGroupContainer::TLocation location = + buttonGroupContainer4->Location(); + _LIT( KLocation, "Location test" ); + AssertTrueL( ETrue, KLocation ); + +#ifndef _DEBUG + CEikCommandButton* commandButton1 = + buttonGroupContainer4->CommandButtonOrNull( commandId ); + CleanupStack::PushL( commandButton1 ); + _LIT( KCommandButtonOrNull, "CommandButtonOrNull test" ); + AssertTrueL( ETrue, KCommandButtonOrNull ); + CleanupStack::PopAndDestroy( commandButton1 ); +#endif + + TRect rect = iContainer->Rect(); + buttonGroupContainer4->SetBoundingRect( rect ); + _LIT( KSetBoundingRect, "SetBoundingRect test" ); + AssertTrueL( ETrue, KSetBoundingRect ); + + buttonGroupContainer4->ReduceRect( rect ); + _LIT( KReduceRect, "ReduceRect test" ); + AssertTrueL( ETrue, KReduceRect ); + + CCoeControl* coeControl = + buttonGroupContainer4->ControlOrNull( commandId ); + _LIT( KControlOrNull, "ControlOrNull test" ); + AssertTrueL( ETrue, KControlOrNull ); + +#ifndef _DEBUG + CEikCommandButton* commandbutton2 = + buttonGroupContainer4->ButtonById( commandId ); + _LIT( KButtonById, "ButtonById test" ); + AssertTrueL( ETrue, KButtonById ); +#endif + + TInt keyId = 1; + buttonGroupContainer4->UpdateHotKey( commandId, + CEikButtonGroupContainer::EShowHotKey, keyId); + _LIT( KUpdateHotKey, "UpdateHotKey test" ); + AssertTrueL( ETrue, KUpdateHotKey ); + + TInt pos = 1; + buttonGroupContainer4->UpdateCommandObserverL( pos, commandObserver ); + _LIT( KUpdateCommandObserverL, "UpdateCommandObserverL test" ); + AssertTrueL( ETrue, KUpdateCommandObserverL ); + + buttonGroupContainer4->RemoveCommandObserver( pos ); + _LIT( KRemoveCommandObserver, "RemoveCommandObserver test" ); + AssertTrueL( ETrue, KRemoveCommandObserver ); + + TBool delayActivation = buttonGroupContainer4->DelayActivation(); + _LIT( KDelayActivation, "DelayActivation test" ); + AssertTrueL( ETrue, KDelayActivation ); + + TSize minimumSize1 = buttonGroupContainer4->MinimumSize(); + _LIT( KMinimumSize1, "MinimumSize test" ); + AssertTrueL( ETrue, KMinimumSize1 ); + + TKeyEvent keyEvent1 = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse keyresponse = + buttonGroupContainer4->OfferKeyEventL( keyEvent1, EEventKey ); + _LIT( KOfferKeyEventL1, "OfferKeyEventL test" ); + AssertTrueL( ETrue, KOfferKeyEventL1 ); + + RFs& tempServer = iEnv->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + buttonGroupContainer4->WriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy( &fWrite ); + tempServer.Delete( KStreamName ); + _LIT( KWriteInternalStateL1, "WriteInternalStateLtest test" ); + AssertTrueL( ETrue, KWriteInternalStateL1); + + buttonGroupContainer4->Reserved_MtsmPosition(); + _LIT( KReserved_MtsmPosition, "Reserved_MtsmPosition" ); + AssertTrueL( ETrue, KReserved_MtsmPosition ); + + buttonGroupContainer4->Reserved_MtsmObject(); + _LIT( KReserved_MtsmObject, "Reserved_MtsmObject test" ); + AssertTrueL( ETrue, KReserved_MtsmObject ); + + TBool isCommandInGroup = buttonGroupContainer4->IsCommandInGroup( commandId ); + _LIT( KIsCommandInGroup, "IsCommandInGroup test" ); + AssertTrueL( ETrue, KIsCommandInGroup ); + + buttonGroupContainer4->ReplaceCommand( commandId, resourceIdForCba ); + _LIT( KReplaceCommand, "ReplaceCommand test" ); + AssertTrueL( ETrue, KReplaceCommand ); + } + +// -------------------------------------------------------------------------- +// TBCTestCommandObserver::ProcessCommandL +// --------------------------------------------------------------------------- +// +void TBCTestCommandObserver::ProcessCommandL( TInt ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestEikButbAndEikCbaL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestEikButbAndEikCbaL() + { + // Test some API for class TEikButtonCoordinator + TEikButtonCoordinator coordinator; + _LIT( KTEikButtonCoordinator, "TEikButtonCoordinator test" ); + AssertTrueL( ETrue, KTEikButtonCoordinator ); + + CEikButtonBase* chosenButton = new( ELeave ) CEikButtonBase(); + CleanupStack::PushL( chosenButton ); + coordinator.SetChosenButton( chosenButton ); + _LIT( KSetChosenButton, "SetChosenButton test" ); + AssertTrueL( ETrue, KSetChosenButton ); + CleanupStack::PopAndDestroy( chosenButton ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::SetupCommandBtnL +// --------------------------------------------------------------------------- +// +CEikCommandButton* CBCTestButtonsCase::SetupCommandBtnL() + { + //1. just new + CEikCommandButton* commandButton = new( ELeave )CEikCommandButton(); + CleanupStack::PushL( commandButton ); + + //2. construct from res + TResourceReader reader1; + iEnv->CreateResourceReaderLC( reader1, R_BCTESTBUTTONS_CMBUT ); + commandButton->ConstructFromResourceL( reader1 ); + _LIT( KConstructFromResourceL1, "ConstructFromResourceL test" ); + AssertTrueL( ETrue, KConstructFromResourceL1 ); + CleanupStack::PopAndDestroy(); //reader1 + + return commandButton; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TeardownCommandBtnL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TeardownCommandBtnL(CEikCommandButton* aBtn) + { + CleanupStack::PopAndDestroy( aBtn ); + _LIT( KDesCommandButton, "~CommandButton() test" ); + AssertTrueL( ETrue, KDesCommandButton ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestSetBtnLayoutL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestSetBtnLayoutL() + { + CEikCommandButton* commandButton = SetupCommandBtnL(); + + commandButton->SetButtonLayout( CEikCommandButton::ETextRightPictureLeft ); + _LIT( KSetButtonLayout, "TSetButtonLayout test" ); + AssertTrueL( ETrue, KSetButtonLayout); + + TeardownCommandBtnL(commandButton); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestExcessSpace +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestExcessSpace() + { + CEikCommandButton* commandButton = SetupCommandBtnL(); + + commandButton->SetExcessSpace( CEikCommandButton::EShare ); + _LIT( KSetExcessSpace, "SetExcessSpace test" ); + AssertTrueL( ETrue, KSetExcessSpace ); + + TeardownCommandBtnL(commandButton); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestStuff +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestStuff() + { + CEikCommandButton* commandButton = SetupCommandBtnL(); + + _LIT( KText, "xxxxxxxxx" ); + commandButton->SetTextL( KText ); + _LIT( KSetTextL1, "SetTextL test" ); + AssertTrueL( ETrue, KSetTextL1 ); + + CEikLabel* label = commandButton->Label(); + _LIT( KLabel1, "Label test" ); + AssertTrueL( ETrue, KLabel1 ); + + commandButton->SetDisplayContent( CEikCommandButton::ETextOnly ); + _LIT( KSetDisplayContent, "SetDisplayContent test" ); + AssertTrueL( ETrue, KSetDisplayContent ); + + TeardownCommandBtnL(commandButton); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestImgBtnL() +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestImgBtnL() + { + CEikCommandButton* commandButton = SetupCommandBtnL(); + + _LIT( KButtonIconFile1, "z:\\resource\\apps\\BCTestButtons.mbm" ); + TInt normal1 = 1; + CFbsBitmap * normalBitmap1 = AknIconUtils::CreateIconL( KButtonIconFile1, normal1 ); + CleanupStack::PushL( normalBitmap1 ); + + commandButton->SetPictureL( normalBitmap1, NULL ); + _LIT( KSetPictureL1, "SetPictureL test" ); + AssertTrueL( ETrue, KSetPictureL1 ); + + CEikImage* image = commandButton->Picture(); + _LIT( KPicture, "Picture test" ); + AssertTrueL( ETrue, KPicture ); + + CleanupStack::Pop(normalBitmap1); + + TeardownCommandBtnL(commandButton); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestStackRelatedL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestStackRelatedL() + { + // stack realated have issues + CEikCommandButton* commandButton = SetupCommandBtnL(); + + _LIT( KButtonIconFile2, "z:\\resource\\apps\\BCTestButtons.mbm" ); + TInt normal2 = 1; + CFbsBitmap * normalBitmap2 = AknIconUtils::CreateIconL( KButtonIconFile2, normal2 ); + CleanupStack::PushL( normalBitmap2 ); + + TInt commandId2 = EProgCmdAutoTest; + TBuf<10> buf2 = _L( "xxxxxxx" ); + commandButton->AddCommandToStackL( commandId2, &buf2, normalBitmap2, normalBitmap2 ); + _LIT( KAddCommandToStackL, "AddCommandToStackL test" ); + AssertTrueL( ETrue, KAddCommandToStackL ); + + CleanupStack::Pop( normalBitmap2 ); + + TBool removeCommandFromStack = commandButton->RemoveCommandFromStack( R_BCTESTBUTTONS_CBA_OPTIONS_NEXT ); + _LIT( KRemoveCommandFromStack, "RemoveCommandFromStack test" ); + AssertTrueL( ETrue, KRemoveCommandFromStack ); + + TInt popCommandFromStack = commandButton->PopCommandFromStack(); + _LIT( KPopCommandFromStack, "PopCommandFromStack test" ); + AssertTrueL( ETrue, KPopCommandFromStack ); + + TeardownCommandBtnL(commandButton); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCommandButtonBaseL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCommandButtonBaseL() + { + CEikCommandButton* commandButton = SetupCommandBtnL(); + + commandButton->CCoeControl::DrawNow(); + _LIT( KDraw, "Draw for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KDraw ); + + commandButton->CEikCommandButtonBase::LayoutComponents(); + _LIT( KLayoutComponents, + "LayoutComponents for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KLayoutComponents ); + + commandButton->CEikCommandButtonBase::SetDefault( ETrue ); + _LIT( KSetDefault, "SetDefault for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KSetDefault ); + + /*iCmdBtnBase = new( ELeave )CBCTestCmdBtnBase(); + iContainer->SetControl( iCmdBtnBase ); + _LIT( KDraw, "Draw for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KDraw );*/ + + commandButton->CEikCommandButtonBase::FocusChanged( ENoDrawNow ); + _LIT( KFocusChanged, "FocusChanged for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KFocusChanged ); + + CArrayFixFlat* colorUseList2 = + new( ELeave ) CArrayFixFlat( 1 ); + TCoeColorUse colorUse2; + colorUseList2->AppendL( colorUse2 ); + commandButton->CEikCommandButtonBase::GetColorUseListL( *colorUseList2 ); + CleanupStack::PushL( colorUseList2 ); + _LIT( KGetColorUseListL2, + "GetColorUseListL for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KGetColorUseListL2 ); + CleanupStack::PopAndDestroy( colorUseList2 ); + + TKeyEvent keyEvent3 = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse keyResponse = + commandButton->CEikCommandButtonBase::OfferKeyEventL( + keyEvent3, EEventNull ); + _LIT( KOfferKeyEventL3, "OfferKeyEventL for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KOfferKeyEventL3 ); + + commandButton->CEikCommandButtonBase::ActivateL(); + _LIT( KActivateL2, "ActivateL for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KActivateL2 ); + + commandButton->CEikCommandButtonBase::UpdateComponentAlignment(); + _LIT( KUpdateComponentAlignment, + "UpdateComponentAlignment for CEikCommandButtonBase test" ); + AssertTrueL( ETrue, KUpdateComponentAlignment ); + + + TeardownCommandBtnL(commandButton); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestButtonBaseL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestButtonBaseL() + { + CEikCommandButton* commandButton = SetupCommandBtnL(); + + CBCTestBtnBase* btnBase = new( ELeave )CBCTestBtnBase(); + CleanupStack::PushL( btnBase ); + + CEikButtonBase* buttonBase = new( ELeave ) CEikButtonBase(); + CleanupStack::PushL( buttonBase ); + btnBase->CEikButtonBase::CopyDrawStateTo( buttonBase ); + CleanupStack::PopAndDestroy( buttonBase ); + _LIT( KCopyDrawStateTo, "CopyDrawStateTo for CEikButtonBase test" ); + AssertTrueL( ETrue, KCopyDrawStateTo ); + + TBool isPressed = btnBase->CEikButtonBase::IsPressed(); + _LIT( KIsPressed, "IsPressed for CEikButtonBase test" ); + AssertTrueL( ETrue, KIsPressed ); + + btnBase->CEikButtonBase::SetAllowTristate(); + _LIT( KSetAllowTristate, "SetAllowTristate for CEikButtonBase test" ); + AssertTrueL( ETrue, KSetAllowTristate ); + + CleanupStack::PopAndDestroy( btnBase ); + + CArrayFixFlat* colorUseList3 = + new( ELeave ) CArrayFixFlat( 1 ); + TCoeColorUse colorUse3; + colorUseList3->AppendL( colorUse3 ); + commandButton->CEikButtonBase::GetColorUseListL( *colorUseList3 ); + CleanupStack::PushL( colorUseList3 ); + _LIT( KGetColorUseListL3, + "GetColorUseListL for CEikButtonBase test" ); + AssertTrueL( ETrue, KGetColorUseListL3 ); + CleanupStack::PopAndDestroy( colorUseList3 ); + + TCoeInputCapabilities capabilities = + commandButton->CEikButtonBase::InputCapabilities(); + _LIT( KInputCapabilities, "InputCapabilities for CEikButtonBase test" ); + AssertTrueL( ETrue, KInputCapabilities ); + + TKeyEvent keyEvent4 = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse keyResponse4 = + commandButton->CEikButtonBase::OfferKeyEventL( + keyEvent4, EEventNull ); + _LIT( KOfferKeyEventL4, "OfferKeyEventL for CEikButtonBase test" ); + AssertTrueL( ETrue, KOfferKeyEventL4 ); + + TEikButtonCoordinator butCoord; + commandButton->CEikButtonBase::SetCoordinator( &butCoord ); + _LIT( KSetCoordinator, "SetCoordinator for CEikButtonBase test" ); + AssertTrueL( ETrue, KSetCoordinator ); + + commandButton->CEikButtonBase::SetIgnoreNextPointerUp(); + _LIT( KSetIgnoreNextPointerUp, "SetIgnoreNextPointerUp for CEikButtonBase test" ); + AssertTrueL( ETrue, KSetIgnoreNextPointerUp ); + + TeardownCommandBtnL(commandButton); + } +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCEikCommandButton +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCEikCommandButtonL() + { + // Test some API for class CEikCommandButtonBase + TestSetBtnLayoutL(); + TestExcessSpace(); + TestStuff(); + TestImgBtnL(); + TestCommandButtonBaseL(); + TestButtonBaseL(); + + CEikCommandButton* commandButton = SetupCommandBtnL(); + + _LIT( KButtonIconFile1, "z:\\resource\\apps\\BCTestButtons.mbm" ); + TInt normal1 = 1; + CFbsBitmap * normalBitmap1 = AknIconUtils::CreateIconL( KButtonIconFile1, normal1 ); + CleanupStack::PushL( normalBitmap1 ); + + TInt commandId = R_BCTESTBUTTONS_CBA_OPTIONS_NEXT; + TBuf<10> buf = _L( "xxxxxxx" ); + commandButton->SetCommandL( commandId, &buf, normalBitmap1, normalBitmap1 ); + _LIT( KSetCommandL, "SetCommandL test" ); + AssertTrueL( ETrue, KSetCommandL ); + + CleanupStack::Pop(normalBitmap1); + + TPointerEvent pointerEvent1; + pointerEvent1.iType = TPointerEvent::EButton1Up; + commandButton->HandlePointerEventL( pointerEvent1 ); + _LIT( KHandlePointerEventL1, "HandlePointerEventL test" ); + AssertTrueL( ETrue, KHandlePointerEventL1 ); + + commandButton->UpdateComponentAlignment(); + _LIT( KUpdateComponentAlignment, "UpdateComponentAlignment test" ); + AssertTrueL( ETrue, KUpdateComponentAlignment ); + + commandButton->SetPictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_marked_add, EMbmAvkonQgn_indi_marked_add_mask ); + _LIT( KSetPictureFromFileL1, "SetPictureFromFileL test" ); + AssertTrueL( ETrue, KSetPictureFromFileL1 ); + + TestStackRelatedL(); + + TeardownCommandBtnL(commandButton); + } + +CEikTwoPictureCommandButton* CBCTestButtonsCase::SetupTwoPictureCmdL() + { + //1. just new + CEikTwoPictureCommandButton* twoPictureCommandButton = + new( ELeave ) CEikTwoPictureCommandButton(); + CleanupStack::PushL( twoPictureCommandButton ); + _LIT( KCEikTwoPictureCommandButton, "CEikTwoPictureCommandButton() test" ); + AssertTrueL( ETrue, KCEikTwoPictureCommandButton ); + + //2. construct from res + TResourceReader reader2; + iEnv->CreateResourceReaderLC( reader2, R_BCTESTBUTTONS_PICMBUT ); + twoPictureCommandButton->ConstructFromResourceL( reader2 ); + _LIT( KConstructFromResourceL2, + "ConstructFromResourceL For CEikTwoPictureCommandButton test" ); + AssertTrueL( ETrue, KConstructFromResourceL2 ); + CleanupStack::PopAndDestroy(); //reader2 + + return twoPictureCommandButton; + } + +void CBCTestButtonsCase::TeardownTwoPictureCmdL(CEikTwoPictureCommandButton* aBtn) + { + CleanupStack::PopAndDestroy( aBtn ); + _LIT( KDesCEikTwoPictureCommandButton, "~CEikTwoPictureCommandButton() test" ); + AssertTrueL( ETrue, KDesCEikTwoPictureCommandButton ); + } + +void CBCTestButtonsCase::TestSetTwoPicturesL() + { + CEikTwoPictureCommandButton* twoPictureCommandButton = SetupTwoPictureCmdL(); + + _LIT( KButtonIconFile2, "z:\\resource\\apps\\BCTestButtons.mbm" ); + TInt normal2 = 1; + CFbsBitmap * normalBitmap2 = AknIconUtils::CreateIconL( KButtonIconFile2, normal2 ); + CleanupStack::PushL( normalBitmap2 ); + + twoPictureCommandButton->SetTwoPicturesL( normalBitmap2, NULL, NULL, NULL); + _LIT( KSetTwoPicturesL, "SetTwoPicturesL test" ); + AssertTrueL( ETrue, KSetTwoPicturesL ); + + CleanupStack::Pop(normalBitmap2); + TeardownTwoPictureCmdL( twoPictureCommandButton ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCEikTwoPictureCmd +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCEikTwoPictureCmdL() + { + // Test some API for class CEikTwoPictureCommandButton + CEikTwoPictureCommandButton* twoPictureCommandButton = SetupTwoPictureCmdL(); + + TestSetTwoPicturesL(); + + TBool isSecondPictureOwnedExternally = + twoPictureCommandButton->IsSecondPictureOwnedExternally(); + _LIT( KIsSecondPictureOwnedExternally, "IsSecondPictureOwnedExternally test" ); + AssertTrueL( ETrue, KIsSecondPictureOwnedExternally ); + + CEikImage* eikImage = twoPictureCommandButton->Picture(); + _LIT( KPicture2, "Picture test" ); + AssertTrueL( ETrue, KPicture2 ); + + _LIT( KText2,"xxxxxxxxxx" ); + twoPictureCommandButton->SetTextL( KText2 ); + _LIT( KSetTextL2, "SetTextL For CEikTwoPictureCommandButton test" ); + AssertTrueL( ETrue, KSetTextL2 ); + + _LIT( KButtonIconFile3, "z:\\resource\\apps\\BCTestButtons.mbm" ); + TInt normal3 = 1; + CFbsBitmap * normalBitmap3 = AknIconUtils::CreateIconL( KButtonIconFile3, normal3 ); + CleanupStack::PushL( normalBitmap3 ); + + twoPictureCommandButton->SetSecondPicture( normalBitmap3, NULL ); + _LIT( KSetSecondPicture3, "SetSecondPicture test" ); + AssertTrueL( ETrue, KSetSecondPicture3 ); + + CleanupStack::Pop(normalBitmap3); + + twoPictureCommandButton->SetSecondPictureOwnedExternally( EFalse ); + _LIT( KSetSecondPictureOwnedExternally, "SetSecondPictureOwnedExternally test" ); + AssertTrueL( ETrue, KSetSecondPictureOwnedExternally ); + + twoPictureCommandButton->ActivateL(); + _LIT( KActivateL1, "ActivateL test" ); + AssertTrueL( ETrue, KActivateL1 ); + + TPointerEvent pointerEvent2; + pointerEvent2.iType = TPointerEvent::EButton1Up; + twoPictureCommandButton->HandlePointerEventL( pointerEvent2 ); + _LIT( KHandlePointerEventL2, + "HandlePointerEventL For CEikTwoPictureCommandButton test" ); + AssertTrueL( ETrue, KHandlePointerEventL2 ); + + CBCTestTwoPicture* twoPicture = new( ELeave ) CBCTestTwoPicture(); + CleanupStack::PushL( twoPicture ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTBUTTONS_PICMBUT ); + twoPicture->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + _LIT( KStreamName2, "c:\\BCTestLog\\buttontest.txt" ); + RFs& tempServer2 = iEnv->FsSession(); + tempServer2.Delete( KStreamName2 ); + RFileWriteStream fWrite2; + User::LeaveIfError( fWrite2.Create( tempServer2, + KStreamName2, EFileWrite ) ); + CleanupClosePushL( fWrite2 ); + twoPicture->WriteInternalStateL( fWrite2 ); + CleanupStack::PopAndDestroy( &fWrite2 ); + CleanupStack::PopAndDestroy( twoPicture ); + _LIT( KWriteInternalStateL2, "WriteInternalStateL test" ); + AssertTrueL( ETrue, KWriteInternalStateL2 ); + + TeardownTwoPictureCmdL( twoPictureCommandButton ); + + // Test private APIs + CCoeControl* test = new( ELeave ) CEikTwoPictureCommandButton(); + CleanupStack::PushL( test ); + test->DrawNow(); + _LIT( KDraw, "Draw for CEikTwoPictureCommandButton test" ); + AssertTrueL( ETrue, KDraw ); + CleanupStack::PopAndDestroy( test ); + + + } + +CEikInverterCommandButton* CBCTestButtonsCase::SetupInverterCmdL() + { + //1. just new + CEikInverterCommandButton* inverterCommandButton = new( ELeave ) CEikInverterCommandButton(); + CleanupStack::PushL( inverterCommandButton ); + _LIT( KCEikInverterCommandButton, "CEikInverterCommandButton test" ); + AssertTrueL( ETrue, KCEikInverterCommandButton ); + + return inverterCommandButton; + } + +void CBCTestButtonsCase::TeardownInverterCmdL(CEikInverterCommandButton* aBtn) + + { + CleanupStack::PopAndDestroy( aBtn ); + _LIT( KDesCEikInverterCommandButton, "~CEikInverterCommandButton() test" ); + AssertTrueL( ETrue, KDesCEikInverterCommandButton ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCEikInverterCmdL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCEikInverterCmdL() + { + // Test some API for class CEikInverterCommandButton + CEikInverterCommandButton* inverterCommandButton = SetupInverterCmdL(); + + TPointerEvent pointerEvent3; + pointerEvent3.iType = TPointerEvent::EButton1Up; + inverterCommandButton->HandlePointerEventL( pointerEvent3 ); + _LIT( KHandlePointerEventL3, "HandlePointerEventL For CEikInverterCommandButton test" ); + AssertTrueL( ETrue, KHandlePointerEventL3 ); + + CBCTestInverterCmdButton* inverterBtn = new( ELeave ) CBCTestInverterCmdButton(); + CleanupStack::PushL( inverterBtn ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTBUTTONS_CMBUT ); + inverterBtn->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + _LIT( KStreamName2, "c:\\BCTestLog\\buttontest.txt" ); + RFs& tempServer2 = iEnv->FsSession(); + tempServer2.Delete( KStreamName2 ); + RFileWriteStream fWrite2; + User::LeaveIfError( fWrite2.Create( tempServer2, + KStreamName2, EFileWrite ) ); + CleanupClosePushL( fWrite2 ); + inverterBtn->WriteInternalStateL( fWrite2 ); + CleanupStack::PopAndDestroy( &fWrite2 ); + //WriteInternalStateL(RWriteStream& aWriteStream) + CleanupStack::PopAndDestroy( inverterBtn ); + _LIT( KWriteInternalStateL3, "WriteInternalStateL test" ); + AssertTrueL( ETrue, KWriteInternalStateL3 ); + + TeardownInverterCmdL( inverterCommandButton ); + } + +CEikTextButton* CBCTestButtonsCase::SetupTextBtnL() + { + //1. just new + CEikTextButton* textButton = new( ELeave ) CEikTextButton(); + CleanupStack::PushL( textButton ); + _LIT( KCEikTextButton, "CEikTextButton test" ); + AssertTrueL( ETrue, KCEikTextButton ); + //2. construct from res + TResourceReader reader3; + iEnv->CreateResourceReaderLC( reader3, R_BCTESTBUTTONS_TXTBUT ); + textButton->ConstructFromResourceL( reader3 ); + _LIT( KConstructFromResourceL3, "ConstructFromResourceL For CEikTextButton test" ); + AssertTrueL( ETrue, KConstructFromResourceL3 ); + CleanupStack::PopAndDestroy(); //reader3 + return textButton; + } + +void CBCTestButtonsCase::TeardownTextBtnL( CEikTextButton* aBtn ) + + { + CleanupStack::PopAndDestroy( aBtn ); + _LIT( KDesCEikTextButton, "~CEikTextButton() test" ); + AssertTrueL( ETrue, KDesCEikTextButton ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCEikTextBtnL() +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCEikTextBtnL() + { + // Test some API for class CEikTextButton + CEikTextButton* textButton = SetupTextBtnL(); + + _LIT( KText3, "xxxxxxxxxxx" ); + textButton->SetTextL( KText3, CEikCommandButtonBase::EFirst ); + _LIT( KSetTextL3, "SetTextL For CEikTextButton test" ); + AssertTrueL( ETrue, KSetTextL3 ); + + CEikLabel* label2 = textButton->Label( CEikCommandButtonBase::EFirst ); + _LIT( KLabel2, "Label test" ); + AssertTrueL( ETrue, KLabel2 ); + + TPointerEvent pointerEvent4; + pointerEvent4.iType = TPointerEvent::EButton1Up; + textButton->HandlePointerEventL( pointerEvent4 ); + _LIT( KHandlePointerEventL4, "HandlePointerEventL For CEikTextButton test" ); + AssertTrueL( ETrue, KHandlePointerEventL4 ); + + TeardownTextBtnL( textButton ); + } + +CEikBitmapButton* CBCTestButtonsCase::SetupBitmapBtnL() + { + //1. just new + CEikBitmapButton* bitmapButton = new( ELeave ) CEikBitmapButton(); + CleanupStack::PushL( bitmapButton ); + _LIT( KCEikBitmapButton, "CEikBitmapButton test" ); + AssertTrueL( ETrue, KCEikBitmapButton ); + //2. construct from res + TResourceReader reader4; + iEnv->CreateResourceReaderLC( reader4, R_BCTESTBUTTONS_BMPBUT ); + bitmapButton->ConstructFromResourceL( reader4 ); + _LIT( KConstructFromResourceL4, "ConstructFromResourceL For CEikBitmapButton test" ); + AssertTrueL( ETrue, KConstructFromResourceL4 ); + CleanupStack::PopAndDestroy();//reader4 + + return bitmapButton; + } +void CBCTestButtonsCase::TeardownBitmapBtnL( CEikBitmapButton* aBtn ) + { + CleanupStack::PopAndDestroy( aBtn ); + _LIT( KDesCEikBitmapButton, "~CEikBitmapButton test" ); + AssertTrueL( ETrue, KDesCEikBitmapButton ); + } +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCEikBitmapBtnL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCEikBitmapBtnL() + { + CEikBitmapButton* bitmapButton = SetupBitmapBtnL(); + + // Test some API for class CEikBitmapButton + _LIT( KButtonIconFile3, "z:\\resource\\apps\\BCTestButtons.mbm" ); + TInt normal3 = 1; + CFbsBitmap * normalBitmap3 = AknIconUtils::CreateIconL( + KButtonIconFile3, normal3 ); + CleanupStack::PushL( normalBitmap3 ); + + bitmapButton->SetPictureL( normalBitmap3, NULL, + CEikCommandButtonBase::EFirst ); + _LIT( KSetPictureL3, "SetPictureL for CEikBitmapButton test" ); + AssertTrueL( ETrue, KSetPictureL3 ); + + CleanupStack::Pop( normalBitmap3 ); + + bitmapButton->SetPictureFromFileL( KButtonIconFile3, + EMbmBctestbuttonsSampleicon, EMbmBctestbuttonsSampleiconmask, + CEikCommandButtonBase::ESecond ); + _LIT( KBitmapBtn1, "CEikBitmapButton::SetPictureFromFileL" ); + AssertTrueL( ETrue, KBitmapBtn1 ); + + CEikImage* picture = bitmapButton->Picture( CEikCommandButtonBase::EFirst ); + _LIT( KPicture1, "Picture For CEikTextButton test" ); + AssertTrueL( ETrue, KPicture1 ); + + + TPointerEvent pointerEvent5; + pointerEvent5.iType = TPointerEvent::EButton1Up; + bitmapButton->HandlePointerEventL( pointerEvent5 ); + _LIT( KHandlePointerEventL5, "HandlePointerEventL For CEikBitmapButton test" ); + AssertTrueL( ETrue, KHandlePointerEventL5 ); + + TeardownBitmapBtnL( bitmapButton ); + } + +CEikLabeledButton* CBCTestButtonsCase::SetupLabeledBtnLC() + { + //1. just new + CEikLabeledButton* labeledButton = new( ELeave ) CEikLabeledButton(); + CleanupStack::PushL( labeledButton ); + _LIT( KCEikLabeledButton, "CEikLabeledButton test" ); + AssertTrueL( ETrue, KCEikLabeledButton ); + + //2. construct from res + TInt hotKeyCode = 1; + TInt flags = 1; + CEikCommandButton* commandButton = new( ELeave )CEikCommandButton(); + CleanupStack::PushL( commandButton ); + labeledButton->ConstructL( commandButton, hotKeyCode, flags ); + _LIT( KConstructL, "ConstructL For CEikLabelButton test" ); + AssertTrueL( ETrue, KConstructL ); + CleanupStack::Pop( commandButton ); + CleanupStack::PopAndDestroy( labeledButton ); + + labeledButton = new( ELeave ) CEikLabeledButton(); + CleanupStack::PushL( labeledButton ); + TResourceReader reader5; + iEnv->CreateResourceReaderLC( reader5, R_BCTESTBUTTONS_LBBUT ); + labeledButton->ConstructFromResourceL( reader5 ); + _LIT( KConstructFromResourceL5, "ConstructFromResourceL For CEikLabeledButton test" ); + AssertTrueL( ETrue, KConstructFromResourceL5 ); + CleanupStack::PopAndDestroy(); //reader5 + + return labeledButton; + } + +void CBCTestButtonsCase::TeardownLabeledBtnL( CEikLabeledButton* aBtn ) + { + CleanupStack::PopAndDestroy( aBtn ); + _LIT( KDesCEikLabeledButton, "~CEikLabeledButton test" ); + AssertTrueL( ETrue, KDesCEikLabeledButton ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestCEikLabeledBtnL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestCEikLabeledBtnL() + { + // Test some API for class CEikLabeledButton + CEikLabeledButton* labeledButton = SetupLabeledBtnLC(); + + CEikCommandButtonBase* commandButtonBase = labeledButton->Button(); + _LIT( KButton, "Button test" ); + AssertTrueL( ETrue, KButton ); + + CEikLabel* label3 = labeledButton->Label(); + _LIT( KLabel3, "Label For CEikLabeledButton test" ); + AssertTrueL( ETrue, KLabel3 ); + + TInt hotKeyCode2 = labeledButton->HotKeyCode(); + _LIT( KHotKeyCode2, "HotKeyCode For CEikLabeledButton test" ); + AssertTrueL( ETrue, KHotKeyCode2 ); + + TBool showsHotKey = labeledButton->ShowsHotKey(); + _LIT( KShowsHotKey, "ShowsHotKey test" ); + AssertTrueL( ETrue, KShowsHotKey ); + + TBool plainHotKey = labeledButton->PlainHotKey(); + _LIT( KPlainHotKey, "PlainHotKey test" ); + AssertTrueL( ETrue, KPlainHotKey ); + + labeledButton->Animate(); + _LIT( KAnimate1, "Animate test" ); + AssertTrueL( ETrue, KAnimate1 ); + + labeledButton->UpdateHotKey( EAknSoftkeyOk, CEikLabeledButton::EShowHotKey ); + _LIT( KUpdateHotKey2, "UpdateHotKeytest" ); + AssertTrueL( ETrue, KUpdateHotKey2 ); + + TKeyEvent keyEvent2 = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse keyResponse = labeledButton->OfferKeyEventL( keyEvent2, EEventNull ); + _LIT( KOfferKeyEventL2, "OfferKeyEventL For CeikLabeledButton test" ); + AssertTrueL( ETrue, KOfferKeyEventL2 ); + + TSize size2 = labeledButton->MinimumSize(); + _LIT( KMinimumSize2, "MinimumSize test" ); + AssertTrueL( ETrue, KMinimumSize2 ); + + labeledButton->SetContainerWindowL( *iContainer ); + _LIT( KSetContainerWindowL, "SetContainerWindowL test" ); + AssertTrueL( ETrue, KSetContainerWindowL ); + + labeledButton->SetDimmed( ETrue ); + _LIT( KSetDimmed, "SetDimmed test" ); + AssertTrueL( ETrue, KSetDimmed ); + + CArrayFixFlat* colorUseList = new( ELeave ) CArrayFixFlat( 1 ); + TCoeColorUse colorUse; + colorUseList->AppendL( colorUse ); + labeledButton->GetColorUseListL( *colorUseList ); + CleanupStack::PushL( colorUseList ); + _LIT( KGetColorUseListL, "GetColorUseListL test" ); + AssertTrueL( ETrue, KGetColorUseListL ); + CleanupStack::PopAndDestroy( colorUseList ); + + TInt type = 1; + labeledButton->HandleResourceChange( type ); + _LIT( KHandleResourceChange, "HandleResourceChange test" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + TCoeInputCapabilities inputCapablilities = labeledButton->InputCapabilities(); + _LIT( KInputCapabilities, "InputCapabilities test" ); + AssertTrueL( ETrue, KInputCapabilities ); + + + TPointerEvent pointerEvent6; + pointerEvent6.iType = TPointerEvent::EButton1Up; + labeledButton->HandlePointerEventL( pointerEvent6 ); + _LIT( KHandlePointerEventL6, "HandlePointerEventL test" ); + AssertTrueL( ETrue, KHandlePointerEventL6 ); + + TeardownLabeledBtnL( labeledButton ); + } + + +// --------------------------------------------------------------------------- +// CBCTestButtonsCase::TestMnbutAndBtgpsAndBtgrpL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsCase::TestMnbutAndBtgpsAndBtgrpL() + { + // Test some API for class CEikMenuButton + CBCTestMenuButton* menuButton = new( ELeave ) CBCTestMenuButton(); + CleanupStack::PushL( menuButton ); + _LIT( KCEikMenuButton, "CEikMenuButton test" ); + AssertTrueL( ETrue, KCEikMenuButton ); + + menuButton->SetContainerWindowL( *iContainer ); + + TResourceReader reader6; + iEnv->CreateResourceReaderLC( reader6, R_BCTESTBUTTONS_MNBUT ); + menuButton->ConstructFromResourceL( reader6 ); + _LIT( KConstructFromResourceL6, "ConstructFromResourceL For CEikMenuButton test" ); + AssertTrueL( ETrue, KConstructFromResourceL6 ); + CleanupStack::PopAndDestroy(); //reader6 + + menuButton->SetMenuPaneId( R_BCTESTBUTTONS_MENU ); + _LIT( KSetMenuPaneId, "SetMenuPaneId test" ); + AssertTrueL( ETrue, KSetMenuPaneId ); + + TBCTestMenuObserver menuObserver; + menuButton->LaunchPopupMenuL( &menuObserver ); + _LIT( KLaunchPopupMenuL, "LaunchPopupMenuL test" ); + AssertTrueL( ETrue, KLaunchPopupMenuL ); + + menuButton->Animate(); + _LIT( KAnimate2, "Animatet For CEikMenuButton test" ); + AssertTrueL( ETrue, KAnimate2 ); + + RFs& tempServer = iEnv->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + menuButton->WriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy( &fWrite ); + tempServer.Delete( KStreamName ); + _LIT( KMenuWriteInternal, "CEikMenuButton::WriteInternalStateL" ); + AssertTrueL( ETrue, KMenuWriteInternal ); + + TPointerEvent pointerEvent7; + pointerEvent7.iType = TPointerEvent::EButton1Up; + menuButton->HandlePointerEventL( pointerEvent7 ); + _LIT( KHandlePointerEventL7, "HandlePointerEventL For CEikMenuButton test" ); + AssertTrueL( ETrue, KHandlePointerEventL7 ); + + CleanupStack::PopAndDestroy( menuButton ); + _LIT( KDesCEikMenuButton, "~CEikMenuButton() test" ); + AssertTrueL( ETrue, KDesCEikMenuButton ); + + // Test some API for class CEikButtonGroupStack + TSize minimumSize3 = CEikButtonGroupStack::MinimumSize(); + _LIT( KMinimumSize, "MinimumSizetest For CEikMenuButton" ); + AssertTrueL( ETrue, KMinimumSize ); + } + +void CBCTestButtonsCase::TestCbaButtonL() + { + + _LIT( KSetButtonGroupFlags, " SetButtonGroupFlags " ); + _LIT( KSetSkinBackgroundId, " SetSkinBackgroundId " ); + _LIT( KOfferCommandListL, " OfferCommandListL( array )" ); + _LIT( KOfferCommandListResL, " OfferCommandListL( resource ) " ); + _LIT( KIsCommandInGroup, " IsCommandInGroup " ); + _LIT( KReplaceCommand, " ReplaceCommand " ); + _LIT( KHandlePointerEventL, "HandlePointerEventL" ); + + TInt resourceid = R_BCTESTBUTTONS_MENU; + TBCTestCommandObserver commandobserver; + + RWindowGroup& parentwg = iEnv->RootWin(); + TUint flags = 0; + + EikButtonGroupFactory::TCreationData creationData( + CEikButtonGroupContainer::EView, &commandobserver, + resourceid, &parentwg, flags, CEikButtonGroupContainer::EVertical ); + + TInt toolbarresid = R_BCTESTBUTTONS_TOOLBAR; + + CEikButtonGroupContainer* buttongroup1 = CEikButtonGroupContainer::NewL( + CEikButtonGroupContainer::EView, CEikButtonGroupContainer::EVertical, + &commandobserver, toolbarresid, parentwg, + CEikButtonGroupContainer::EAddToStack ); + CleanupStack::PushL( buttongroup1 ); + CleanupStack::PopAndDestroy( buttongroup1 ); + + CEikButtonGroupContainer* buttongroup = CEikButtonGroupContainer::Current(); + + CEikCba *eikcba = static_cast( buttongroup->ButtonGroup() ); + + eikcba->SetButtonGroupFlags( 0 ); + AssertTrueL( ETrue, KSetButtonGroupFlags ); + + eikcba->SetSkinBackgroundId( KAknsIIDQsnBgAreaControlIdle ); + AssertTrueL( ETrue, KSetSkinBackgroundId ); + + TInt toolbarresourceid = R_BCTESTBUTTONS_CBA_OPTIONS_NEXT; + TInt commandid = EAknSoftkeyOptions; + TInt res; + + RArray arr; + arr.Append( commandid ); + TRAP( res, eikcba->OfferCommandListL( arr ) ); + AssertTrueL( ETrue, KOfferCommandListL ); + arr.Close(); + + eikcba->IsCommandInGroup( commandid ); + AssertTrueL( ETrue, KIsCommandInGroup ); + eikcba->ReplaceCommand( commandid, toolbarresourceid ); + AssertTrueL( ETrue, KReplaceCommand ); + + TRAP( res, eikcba->OfferCommandListL( commandid ) ); + AssertTrueL( ETrue, KOfferCommandListResL ); + + CEikCbaButton* cbabutton = (CEikCbaButton*) buttongroup->ControlOrNull(commandid); + TPointerEvent pevent; + pevent.iType = TPointerEvent::EButton1Up; + TRAP( res, cbabutton->HandlePointerEventL( pevent ) ); + AssertTrueL( ETrue, KHandlePointerEventL ); + } +// -------------------------------------------------------------------------- +// TBCTestMenuObserver::SetEmphasis +// --------------------------------------------------------------------------- +// +void TBCTestMenuObserver::SetEmphasis( CCoeControl*, TBool ) + { + } +// -------------------------------------------------------------------------- +// TBCTestMenuObserver::ProcessCommandL +// --------------------------------------------------------------------------- +// +void TBCTestMenuObserver::ProcessCommandL( TInt ) + { + + } + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonscontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonscontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestbuttonscontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsContainer::CBCTestButtonsContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsContainer::~CBCTestButtonsContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestButtonsContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonsContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestButtonsContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestButtonsContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestButtonsContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestButtonsContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestButtonsContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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: avkon buttons test application +* +*/ + + +// INCLUDE FILES +#include "bctestbuttonsdocument.h" +#include "bctestbuttonsappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestButtonsDocument* CBCTestButtonsDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonsDocument* CBCTestButtonsDocument::NewL( CEikApplication& aApp ) + { + CBCTestButtonsDocument* self = + new( ELeave ) CBCTestButtonsDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonsDocument::~CBCTestButtonsDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonsDocument::~CBCTestButtonsDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonsDocument::CBCTestButtonsDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonsDocument::CBCTestButtonsDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestButtonsDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestButtonsDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestButtonsAppUi; + } + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestbuttons/src/bctestbuttonsview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,133 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestbuttons.hrh" +#include "bctestbuttonsview.h" +#include "bctestbuttonscontainer.h" +#include "bctestutil.h" +#include "bctestbuttonscase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsView* CBCTestButtonsView::NewL() + { + CBCTestButtonsView* self = new( ELeave ) CBCTestButtonsView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsView::CBCTestButtonsView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestButtonsView::ConstructL() + { + BaseConstructL( R_BCTESTBUTTONS_VIEW ); + + iContainer = new( ELeave ) CBCTestButtonsContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + // Add test case here. + _LIT( KEikBgftyCase , " eikbgfty Test for Buttons case" ); + iTestUtil->AddTestCaseL( CBCTestButtonsCase::NewL( iContainer ), + KEikBgftyCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestButtonsView::~CBCTestButtonsView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestButtonsView::Id() const + { + return KBCTestButtonsViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestButtonsView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestButtonsView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestButtonsView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bctestcmdlg.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bctestcmdlg.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,77 @@ +/* +* 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 "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: project specification file for the BCTestCmDlg. +* +*/ + + +TARGET BCTestCmDlg.exe +TARGETTYPE exe +UID 0x0 0x2000475D + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestCmDlg.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestcmdlgapp.cpp +SOURCE bctestcmdlgdocument.cpp +SOURCE bctestcmdlgappui.cpp +SOURCE bctestcmdlgview.cpp +SOURCE bctestcmdlgcontainer.cpp +SOURCE bctestcmdlgcase.cpp +SOURCE bctestmemselpage.cpp +SOURCE bctestfileseldlg.cpp +SOURCE bctestfilenamedlg.cpp +SOURCE bctestcommondlg.cpp +SOURCE bctestmemselitem.cpp +SOURCE CVRSettingsDialogMMCSupported.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY commondialogs.lib +LIBRARY eikdlg.lib + +START RESOURCE ../group/bctestcmdlg_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bctestcmdlg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bctestcmdlg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,630 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "bctestcmdlg.hrh" +#include "bctestcmdlg.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTCMDLG_BMP_FNAME APP_BITMAP_DIR"\\bctestcmdlg.mbm" +#define PHONE "C:\\Data\\" +#define MMC "E:\\" + +// MACROS + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestCmDlg"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestcmdlg_menubar_main; + cba = r_bctestcmdlg_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestcmdlg_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\bctestcmdlg_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_view +// AVKON_VIEW for CBCTestCmDlgView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestcmdlg_view + { + menubar = r_bctestcmdlg_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestcmdlg_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestcmdlg_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestcmdlg_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_case_menu + { + items = + { + MENU_ITEM + { + cascade = r_bctestcmdlg_mem_sel_menu; + txt = "Test Mem select dlg"; + }, + MENU_ITEM + { + cascade = r_bctestcmdlg_mem_sel_page; + txt = "Test Mem select page"; + }, + MENU_ITEM + { + cascade = r_bctestcmdlg_file_sel_dlg; + txt = "Test File select dlg"; + }, + MENU_ITEM + { + cascade = r_bctestcmdlg_file_name_dlg; + txt = "Test File prompt dlg"; + }, + MENU_ITEM + { + cascade = r_bctestcmdlg_common_dlg; + txt = "Test common dlg"; + }, + MENU_ITEM + { + cascade = r_bctestcmdlg_mem_sel_setting_item; + txt = "Test mem select item"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_mem_sel_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_mem_sel_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdMemSelDlgCreate; + txt = "Test NewL and ExecuteL"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelDlgCreateWithRes; + txt = "Test NewL with Res"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelDlgWithRoot; + txt = "Test With Root"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelDlgQuick; + txt = "Test RunDlgL"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelDlgQuickTitle; + txt = "Test RunDlgL with title"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelDlgQuickRes; + txt = "Test RunDlgL with ResID"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelDlgSetting; + txt = "Test Settings"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_mem_sel_page +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_mem_sel_page + { + items = + { + MENU_ITEM + { + command = EBCTestCmdMemSelPageCreate; + txt = "Test NewL and ExecuteL"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelPageCreateRes; + txt = "Test Create with Res"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelPageQuickCreate; + txt = "Test Quick Create"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelPageQuickCreateTitle; + txt = "Test Quick Create with Title"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelPageQuickCreateRes; + txt = "Test Quick Create with Res"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_file_sel_dlg +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_file_sel_dlg + { + items = + { + MENU_ITEM + { + command = EBCTestCmdFileSelDlgCreate; + txt = "Test NewL and ExecuteL"; + }, + MENU_ITEM + { + command = EBCTestCmdFileSelDlgCreateRes; + txt = "Test Create with ResID"; + }, + MENU_ITEM + { + command = EBCTestCmdFileSelDlgQuickCreate; + txt = "Test Quick Create"; + }, + MENU_ITEM + { + command = EBCTestCmdFileSelDlgQuickCreateTitle; + txt = "Test Quick Create with Title"; + }, + MENU_ITEM + { + command = EBCTestCmdFileSelDlgQuickCreateRes; + txt = "Test Quick Create with Res"; + }, + MENU_ITEM + { + command = EBCTestCmdFileSelDlgSettings; + txt = "Test Settings"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_file_name_dlg +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_file_name_dlg + { + items = + { + MENU_ITEM + { + command = EBCTestCmdFileNameDlgCreate; + txt = "Test NewL and ExecuteL"; + }, + MENU_ITEM + { + command = EBCTestCmdFileNameDlgCreateRes; + txt = "Test Create with ResID"; + }, + MENU_ITEM + { + command = EBCTestCmdFileNameDlgQuickCreate; + txt = "Test Quick Create"; + }, + MENU_ITEM + { + command = EBCTestCmdFileNameDlgQuickCreateTitle; + txt = "Test Quick Create with Title"; + }, + MENU_ITEM + { + command = EBCTestCmdFileNameDlgQuickCreateRes; + txt = "Test Quick Create with Res"; + }, + MENU_ITEM + { + command = EBCTestCmdFileNameDlgSettings; + txt = "Test Settings"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_file_name_dlg +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_mem_sel_setting_item + { + items = + { + MENU_ITEM + { + command = EBCTestCmdMemSelSettingItemCreate; + txt = "Test Create"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelSettingItemEdit; + txt = "Test Edit"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelSettingItemStore; + txt = "Test Quick Create"; + }, + MENU_ITEM + { + command = EBCTestCmdMemSelSettingItemSetting; + txt = "Test Setting"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_common_dlg +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_common_dlg + { + items = + { + //select + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect1; + txt = "Test Select 1"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect2; + txt = "Test Select 2"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect3; + txt = "Test Select 3"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect4; + txt = "Test Select 4"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect5; + txt = "Test Select 5"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect6; + txt = "Test Select 6"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect7; + txt = "Test Select 7"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSelect8; + txt = "Test Select 8"; + }, + //move + MENU_ITEM + { + command = EBCTestCmdCommonDlgMove1; + txt = "Test Move 1"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgMove2; + txt = "Test Move 2"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgMove3; + txt = "Test Move 3"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgMove4; + txt = "Test Move 4"; + }, + //save + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave1; + txt = "Test Save 1"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave2; + txt = "Test Save 2"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave3; + txt = "Test Save 3"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave4; + txt = "Test Save 4"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave5; + txt = "Test Save 5"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave6; + txt = "Test Save 6"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgSave7; + txt = "Test Save 7"; + }, + //copy + MENU_ITEM + { + command = EBCTestCmdCommonDlgCopy1; + txt = "Test Copy 1"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgCopy2; + txt = "Test Copy 2"; + }, + MENU_ITEM + { + command = EBCTestCmdCommonDlgCopy3; + txt = "Test Copy 3"; + } + }; + } + + + + + + +//----------------------------------------------------------------------------- +// +// r_bctestcmdlg_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestcmdlg_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestcmdlg_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestcmdlg_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestcmdlg_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestcmdlg_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestCmDlgCbaCmdNext; + txt = qtn_bctestcmdlg_cba_next; + } + }; + } + +RESOURCE MEMORYSELECTIONDIALOG r_bctest_memory_selection_locations + { + locations = + { + LOCATION { root_path = PHONE; }, + LOCATION { root_path = MMC; } + }; + } + +RESOURCE FILESELECTIONDIALOG r_bctest_file_selection_all + { + title = "resTitle"; + softkey_1_file = "resSk1"; + softkey_1_folder = "resSk2"; + softkey_2_root_level = "resSk3"; + softkey_2_subfolder = "resSk4"; + root_path = "C:\\Data\\"; + default_folder = "Sounds\\"; + } + +RESOURCE MENU_BAR r_vr_settings_menubar + { + titles= + { + MENU_TITLE { menu_pane = r_vr_settings_menupane; } + }; + } + +RESOURCE MENU_PANE r_vr_settings_menupane + { + items= + { + MENU_ITEM { command = ECmdChange; txt = "change"; } + }; + } + +RESOURCE TBUF r_qtn_vorec_set_store { buf = "set store"; } + +RESOURCE DIALOG r_vr_settings_dialog + { + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + flags = EEikDialogFlagWait | EEikDialogFlagNoDrag + | EEikDialogFlagCbaButtons | EEikDialogFlagNoTitleBar + | EEikDialogFlagFillAppClientRect; + items = + { + DLG_LINE + { + type = EAknCtSettingListBox; + id = EVRSettingsListboxId; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = LISTBOX + { + flags = EAknListBoxSelectionList; + }; + } + }; + } +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bctestcmdlg_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bctestcmdlg_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475D // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "bctestcmdlg"; + localisable_resource_file = "\\resource\\apps\\bctestcmdlg"; + localisable_resource_id = R_BCTESTCMDLG_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestcmdlg.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/CVRSettingsDialogMMCSupported.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/CVRSettingsDialogMMCSupported.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,100 @@ +/* +* 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: +* +*/ +#ifndef __CVRSETTINGSDIALOG_H__ +#define __CVRSETTINGSDIALOG_H__ + +// INCLUDES +#include +#include + +#include +#include + +// CLASS DECLARATION + +/** +* This class defines a settings dialog for the Voice Recorder application. +*/ +class CVRSettingsDialog + : public CAknDialog, + public MEikListBoxObserver + { + + public: // Constructors and destructor + + /** + * Destructor. + */ + ~CVRSettingsDialog(); + + /** + * Two-phased constructor. + */ + static CVRSettingsDialog* NewL(); + + private: // Constructors + + /** + * Default constructor. Inlined to save a few bytes. + * Parameters to array: granularity, isnumered, 1st ordinal + */ + inline CVRSettingsDialog() : iSettingItemArray( 1, EFalse, 1 ) {} + + protected: // from CEikDialog + + /** + * Tests if it is OK to exit the dialog. + * @param aButtonId The ID of the button that was activated. + * @return ETrue to validate and exit the dialog, + * EFalse to keep the dialog active. + */ + TBool OkToExitL( TInt aButtonId ); + + /** + * Pre-layout dialog initialisation. + */ + void PreLayoutDynInitL(); + + void ProcessCommandL( TInt aCommandId ); + + + public: // From MEikListBoxObserver + + /** + * Handles list box events. + * This is invoked by CEikListBox to notify the observer of + * list box events. + * @param aListBox The originating list box. + * @param aEventType A code for the event. + */ + void HandleListBoxEventL( CEikListBox* aListBox, + TListBoxEvent aEventType ); + + private: // data + + /** + * Array of setting items contained in the listbox. Owned. + */ + CAknSettingItemArray iSettingItemArray; + + /** + * Selected memo store + */ + CAknMemorySelectionDialog::TMemory iMemoStore; + }; + +#endif // __CVRSETTINGSDIALOG_H__ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/StreamLogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/StreamLogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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: +* +*/ +// +// just for simple use, +// this file doesn't following any code convensions or symbian rules. +// + +#ifndef __DLL_LOGGER_H__ +#define __DLL_LOGGER_H__ + +#include // link against efsrv.lib +#include + +#define CERR StreamLogger::begin() + +/** +* usage: StreamLogger::begin()<<"your string"<FsSession(); + if ( file.Open( fs, KLogFile, EFileWrite | EFileShareAny ) != KErrNone ) + file.Create( fs, KLogFile, EFileWrite | EFileShareAny ); + + TInt pos=0; // this must be 0 + file.Seek( ESeekEnd, pos ); + } + + ~LogFile(){ + file.Close(); + } + + RFile& operator()(){ return file; } + private: + RFile file; + }; + +public: + ~StreamLogger(){} + + static StreamLogger& begin(){ + StreamLogger* self = new (ELeave) StreamLogger; + return *self; + } + + void suicide(){ delete this; } + + StreamLogger& operator<<(const TDesC& aText){ + LogFile file; + + HBufC8* text = HBufC8::NewL( aText.Length() ); + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + + return *this; + } + + StreamLogger& operator<<(TInt n){ + LogFile file; + + TInt i=1; + for(TInt v=n; v!=0; ++i, v/=10){} + HBufC* text = HBufC::NewL( i ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, n ); + HBufC8* text8 = HBufC8::NewL( textPtr.Length() ); + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + + return *this; + } + + StreamLogger& cr(){ + LogFile file; + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + return *this; + } + + typedef StreamLogger& (*_Manipulator)(StreamLogger&); + StreamLogger& operator<<(_Manipulator op){ return op(*this); } + +private: + StreamLogger(){} //disable ctor +}; + +inline StreamLogger& end(StreamLogger& self){ self.suicide(); return self; } + +inline StreamLogger& endl(StreamLogger& self){ self.cr(); return self; } + +#endif //__FILE_LOGGER_H__ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlg.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlg.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,160 @@ +/* +* 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 "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: BCTestCmDlg resource header file +* +*/ + + +#ifndef BCTESTCMDLG_HRH +#define BCTESTCMDLG_HRH + +enum TBCTestCmDlgMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + + EBCTestCmdMemSelDlgBegin, + EBCTestCmdMemSelDlgCreate, + EBCTestCmdMemSelDlgCreateWithRes, + EBCTestCmdMemSelDlgWithRoot, + EBCTestCmdMemSelDlgQuick, + EBCTestCmdMemSelDlgQuickTitle, + EBCTestCmdMemSelDlgQuickRes, + EBCTestCmdMemSelDlgSetting, + EBCTestCmdMemSelDlgEnd, + + EBCTestCmdMemSelPageBegin, + EBCTestCmdMemSelPageCreate, + EBCTestCmdMemSelPageCreateRes, + EBCTestCmdMemSelPageQuickCreate, + EBCTestCmdMemSelPageQuickCreateTitle, + EBCTestCmdMemSelPageQuickCreateRes, + EBCTestCmdMemSelPageEnd, + + EBCTestCmdFileSelDlgBegin, + EBCTestCmdFileSelDlgCreate, + EBCTestCmdFileSelDlgCreateRes, + EBCTestCmdFileSelDlgQuickCreate, + EBCTestCmdFileSelDlgQuickCreateTitle, + EBCTestCmdFileSelDlgQuickCreateRes, + EBCTestCmdFileSelDlgSettings, + EBCTestCmdFileSelDlgEnd, + + EBCTestCmdFileNameDlgBegin, + EBCTestCmdFileNameDlgCreate, + EBCTestCmdFileNameDlgCreateRes, + EBCTestCmdFileNameDlgQuickCreate, + EBCTestCmdFileNameDlgQuickCreateTitle, + EBCTestCmdFileNameDlgQuickCreateRes, + EBCTestCmdFileNameDlgSettings, + EBCTestCmdFileNameDlgEnd, + + EBCTestCmdCommonDlgBegin, + //select + EBCTestCmdCommonDlgSelect1, + EBCTestCmdCommonDlgSelect2, + EBCTestCmdCommonDlgSelect3, + EBCTestCmdCommonDlgSelect4, + EBCTestCmdCommonDlgSelect5, + EBCTestCmdCommonDlgSelect6, + EBCTestCmdCommonDlgSelect7, + EBCTestCmdCommonDlgSelect8, + + //move + EBCTestCmdCommonDlgMove1, + EBCTestCmdCommonDlgMove2, + EBCTestCmdCommonDlgMove3, + EBCTestCmdCommonDlgMove4, + + //save + EBCTestCmdCommonDlgSave1, + EBCTestCmdCommonDlgSave2, + EBCTestCmdCommonDlgSave3, + EBCTestCmdCommonDlgSave4, + EBCTestCmdCommonDlgSave5, + EBCTestCmdCommonDlgSave6, + EBCTestCmdCommonDlgSave7, + + //copy + EBCTestCmdCommonDlgCopy1, + EBCTestCmdCommonDlgCopy2, + EBCTestCmdCommonDlgCopy3, + // + EBCTestCmdCommonDlgEnd, + + + + + + + + + + + EBCTestCmdMemSelSettingItemBegin, + EBCTestCmdMemSelSettingItemCreate, + EBCTestCmdMemSelSettingItemEdit, + EBCTestCmdMemSelSettingItemStore, + EBCTestCmdMemSelSettingItemSetting, + EBCTestCmdMemSelSettingItemEnd, + + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestCmDlgCba + { + EBCTestCmDlgCbaCmdNext = 0x6300 + }; + +enum TVRDialogIds + { + EVRSettingsListboxId = 1 //Dialog control ID can't be zero + }; + +enum TVRCommands + { + ECmdPlay = 100, // Don't override EIKON IDs.. + ECmdPause, + ECmdStop, + ECmdAutoStopInterrupted, + ECmdAutoStopAtEnd, + ECmdSilentStop, + ECmdRecord, + ECmdRewind, + ECmdForward, + ECmdRecordNew, + ECmdOpen, + ECmdDelete, + ECmdAddToPinboard, + ECmdRename, + ECmdSaveAttachment, + ECmdOk, + ECmdCancel, + ECmdSettings, + ECmdEditListCascade, + ECmdChange, + ECmdHelp, + ECmdGoToGallery, + ECmdEndKey, + ECmdCancelNote, + ECmdEmbeddedRecordingReady, + ECmdDisconnectCall, + ECmdNewFileServiceNotify, + + ECmdSendVia // This MUST be the last entry + }; + +#endif // BCTESTCMDLG_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlg.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlg.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestCmDlg localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTCMDLG" +#define qtn_apps_tavl_grid "BCTESTCMDLG" + +// MenuBar +#define qtn_bctestcmdlg_menubar "Option" +#define qtn_bctestcmdlg_cba_next "Next" +#define qtn_bctestcmdlg_autotest "Autotest" +#define qtn_bctestcmdlg_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestcmdlg_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTCMDLGAPP_H +#define BCTESTCMDLGAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestCmDlg = { 0x2000475D }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestCmDlgApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestCmDlgApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestCmDlgDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestCmDlg ). + * @return The value of KUidBCTestCmDlg. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTCMDLGAPPUI_H +#define C_BCTESTCMDLGAPPUI_H + +#include + +class CBCTestCmDlgView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestCmDlgAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestCmDlgAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestCmDlgAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestCmDlgView* iView; + }; + +#endif // C_BCTESTCMDLGAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_CMDLG_CASE_H +#define BCTEST_CMDLG_CASE_H + +#include +#include "bctestcase.h" + +class CBCTestCmDlgContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestCmDlgCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestCmDlgCase* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestCmDlgCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + void Teardown(); + + /** + * Test functions + */ + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestCmDlgCase(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + void TestSettingsL(); + void TestQuickCreateL(TInt aResID); + void TestQuickCreateL(const TDesC& aTitle); + void TestWithRootL(); + void TestCreateL(TInt aResID); + void SetupL(); + void AddCancelL(); + void AddOKL(); + void TestQuickCreateL(); + void TestCreateL(); + + CAknMemorySelectionDialog* iDlg; + CAknMemorySelectionDialog::TMemory iMemory; + }; + +#endif // BCTEST_CMDLG_CASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_CMDLG_CONTAINER_H +#define BCTEST_CMDLG_CONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestCmDlgContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestCmDlgContainer(); + + /** + * Destructor + */ + virtual ~CBCTestCmDlgContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_CMDLG_CONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTEST_CMDLG_DOCUMENT_H +#define C_BCTEST_CMDLG_DOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestCmDlgDocument application class. +*/ +class CBCTestCmDlgDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestCmDlgDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestCmDlgDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestCmDlgDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestTemplateAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTEST_CMDLG_DOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcmdlgview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_CMDLG_VIEW_H +#define BCTEST_CMDLG_VIEW_H + +#include + +const TUid KBCTestCmDlgViewId = { 1 }; + +class CBCTestCmDlgContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestCmDlgView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestCmDlgView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestCmDlgView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestCmDlgView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestCmDlgContainer* iContainer; + + }; + +#endif // BCTEST_CMDLG_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcommondlg.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestcommondlg.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,127 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_COMMON_DLG_H +#define BCTEST_COMMON_DLG_H + +#include "bctestcase.h" + +class MAknFileFilter; + +/** +* test case for various list classes +*/ +class CBCTestCommonDlg: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestCommonDlg* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestCommonDlg(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + void Teardown(); + + /** + * Test functions + */ + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestCommonDlg(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + void RunCopyL(TInt aCmd); + void RunSaveL(TInt aCmd); + void RunMoveL(TInt aCmd); + void RunSelectL(TInt aCmd); + + void BuildCopyScriptL(int i); + void BuildSaveScriptL(int i); + void BuildMoveScriptL(int i); + void BuildSelectScriptL(int i); + + void SetupL(); + void AddCancelL(); + void AddOKL(); + + void TestSelectL(); + void TestSelectL(const TDesC& aTitle); + void TestSelectL(MAknFileFilter* aFilter); + void TestSelectL(TInt aFileSelResID); + void TestSelectL(const TDesC& aStartFolder, TInt aMemSelResID); + void TestSelectL(const TDesC& aStartFolder, MAknFileFilter* aFilter); + void TestSelectL(const TDesC& aStartFolder, TInt aMemSelResID, TInt aFileSelResID); + void TestSelectL(const TDesC& aStartFolder, const TDesC& aTitle); + + void TestMoveL(TInt aFileSelResID); + void TestMoveL(MAknFileFilter* aFilter); + void TestMoveL(const TDesC& aTitle); + void TestMoveL(); + + void TestSaveL(TBool aDirFlag, TInt aMemSelResID, const TDesC& aPrompt); + void TestSaveL(TBool aDirFlag, TInt aMemSelResID); + void TestSaveL(TInt aFileSelResID, const TDesC& aPrompt); + void TestSaveL(TInt aFileSelResID); + void TestSaveL(const TDesC& aFileTitle, const TDesC& aPromptTitle); + void TestSaveL(MAknFileFilter* aFilter); + void TestSaveL(); + + void TestCopyL(TInt aFileSelResID); + void TestCopyL(MAknFileFilter* aFilter); + void TestCopyL(); + }; + +#endif // BCTEST_COMMON_DLG_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestfilenamedlg.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestfilenamedlg.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,99 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_FILE_NAME_DLG_H +#define BCTEST_FILE_NAME_DLG_H + +#include "bctestcase.h" + +class CAknFileNamePromptDialog; + +/** +* test case for various list classes +*/ +class CBCTestFileNameDlg: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestFileNameDlg* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestFileNameDlg(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + void Teardown(); + + /** + * Test functions + */ + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestFileNameDlg(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + void TestSettingsL(); + void TestQuickCreateL(TInt aResID); + void TestQuickCreateL(const TDesC& aTitle); + void TestCreateL(TInt aResID); + void SetupL(); + void AddCancelL(); + void AddOKL(); + void TestQuickCreateL(); + void TestCreateL(); + + CAknFileNamePromptDialog* iDlg; + }; + +#endif // BCTEST_FILE_NAME_DLG_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestfileseldlg.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestfileseldlg.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,100 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_FILE_SEL_DLG_H +#define BCTEST_FILE_SEL_DLG_H + +#include +#include "bctestcase.h" + +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestFileSelDlg: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestFileSelDlg* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestFileSelDlg(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + void Teardown(); + + /** + * Test functions + */ + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestFileSelDlg(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + void TestSettingsL(); + void TestQuickCreateL(TInt aResID); + void TestQuickCreateL(const TDesC& aTitle); + void TestCreateL(TInt aResID); + void SetupL(); + void AddCancelL(); + void AddOKL(); + void TestQuickCreateL(); + void TestCreateL(); + + CAknFileSelectionDialog* iDlg; + }; + +#endif // BCTEST_FILE_SEL_DLG_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestmemselitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestmemselitem.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_MEM_SEL_SETTING_ITEM_H +#define BCTEST_MEM_SEL_SETTING_ITEM_H + +#include +#include "bctestcase.h" + +/** +* test case for various list classes +*/ +class CBCTestMemSelSettingItem: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMemSelSettingItem* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestMemSelSettingItem(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + void Teardown(); + + /** + * Test functions + */ + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMemSelSettingItem(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void SetupL(); + void AddCancelL(); + void AddOKL(); + + void TestCreateL(); + void TestEditL(); + void TestStoreL(); + void TestSettingL(); + +private: // data + CAknMemorySelectionSettingPage::TMemory iMemory; + CAknMemorySelectionSettingItem* iItem; + }; + +#endif // BCTEST_MEM_SEL_SETTING_ITEM_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestmemselpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/inc/bctestmemselpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,101 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_MEM_SEL_SETTING_PAGE_H +#define BCTEST_MEM_SEL_SETTING_PAGE_H + +#include +#include "bctestcase.h" + +class CBCTestCmDlgContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestMemSelSettingPage: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMemSelSettingPage* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestMemSelSettingPage(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + void Teardown(); + + /** + * Test functions + */ + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMemSelSettingPage(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + void TestQuickCreateL(TInt aResID); + void TestQuickCreateL(const TDesC& aTitle); + void TestCreateL(TInt aResID); + void SetupL(); + void AddCancelL(); + void AddOKL(); + void TestQuickCreateL(); + void TestCreateL(); + + CAknMemorySelectionSettingPage* iDlg; + CAknMemorySelectionDialog::TMemory iMemory; + }; + +#endif // BCTEST_MEM_SEL_SETTING_PAGE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/sis/bctestcmdlg.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/sis/bctestcmdlg.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestcmdlg.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestcmdlg"},(0x2000475D),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestcmdlg.exe"- +"!:\sys\bin\bctestcmdlg.exe" + +"\epoc32\data\z\resource\apps\bctestcmdlg.RSC"- +"!:\resource\apps\bctestcmdlg.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestcmdlg_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestcmdlg_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/CVRSettingsDialogMMCSupported.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/CVRSettingsDialogMMCSupported.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,136 @@ +/* +* 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: +* +*/ +#include +#include +#include "CVRSettingsDialogMMCSupported.h" +#include + +#include +#include + +#include "bctestcmdlg.hrh" + +CVRSettingsDialog::~CVRSettingsDialog() + { + iSettingItemArray.ResetAndDestroy(); + } + +CVRSettingsDialog* CVRSettingsDialog::NewL() + { + CVRSettingsDialog* self = new( ELeave ) CVRSettingsDialog; + CleanupStack::PushL( self ); + self->ConstructL( R_VR_SETTINGS_MENUBAR ); + CleanupStack::Pop(); + return self; + } + +TBool CVRSettingsDialog::OkToExitL( TInt aButtonId ) + { + if ( aButtonId == EAknSoftkeyOptions ) + { + DisplayMenuL(); + return EFalse; + } + + TInt settingItemCount( iSettingItemArray.Count() ); + + for ( TInt i( 0 ); i < settingItemCount; i++ ) + { + iSettingItemArray.At( i )->StoreL(); + } + + return ETrue; + } + +void CVRSettingsDialog::PreLayoutDynInitL() + { + // Convert the internal memory enumeration to CFD enumeration + CAknSettingStyleListBox* listBox = static_cast< CAknSettingStyleListBox* > + ( Control( EVRSettingsListboxId ) ); + User::LeaveIfNull( listBox ); + + CAknSettingItem* settingItem; + HBufC* itemTitle; + TInt id( 0 ); + + // Create the memo store item + settingItem = + new( ELeave ) CAknMemorySelectionSettingItem( 0, iMemoStore ); + CleanupStack::PushL( settingItem ); + + // Set memo store item's title + itemTitle = iCoeEnv->AllocReadResourceLC( R_QTN_VOREC_SET_STORE ); + settingItem->ConstructL( EFalse, id, *itemTitle, NULL, 0, + EAknCtPopupSettingList ); + CleanupStack::PopAndDestroy(); // itemTitle + + // Add memo store item to the settings array + iSettingItemArray.AppendL( settingItem ); + CleanupStack::Pop(); // settingItem + id++; + + CTextListBoxModel* model = listBox->Model(); + model->SetItemTextArray( &iSettingItemArray ); + // Ownership retained by us + model->SetOwnershipType( ELbmDoesNotOwnItemArray ); + + iSettingItemArray.RecalculateVisibleIndicesL(); + listBox->CreateScrollBarFrameL( ETrue ); + listBox->ScrollBarFrame()->SetScrollBarVisibilityL( + CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto ); + listBox->HandleItemAdditionL(); + listBox->SetListBoxObserver( this ); + listBox->UpdateScrollBarsL(); + + } + +void CVRSettingsDialog::HandleListBoxEventL( CEikListBox* aListBox, + TListBoxEvent aEventType ) + { + TInt index( aListBox->CurrentItemIndex() ); + if ( index >=0 ) // index is -1 if there are no items in the list + { + iSettingItemArray.At( index )->EditItemL( + aEventType == EEventEditingStarted ); + aListBox->DrawItem( index ); + } + } + +void CVRSettingsDialog::ProcessCommandL( TInt aCommandId ) + { + HideMenu(); + switch ( aCommandId ) + { + case ECmdChange: + { + CEikListBox* listBox = static_cast< CEikListBox* >( Control( EVRSettingsListboxId ) ); + HandleListBoxEventL( listBox, EEventEditingStarted ); + break; + } + case EEikCmdExit: + { + TryExitL( EEikCmdExit ); + CEikonEnv::Static()->EikAppUi()->HandleCommandL( aCommandId ); + break; + } + default: + { + CEikonEnv::Static()->EikAppUi()->HandleCommandL( aCommandId ); + break; + } + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestCmDlgApp.h" +#include "BCTestCmDlgDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestCmDlgApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestCmDlgApp::AppDllUid() const + { + return KUidBCTestCmDlg; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestCmDlgApp::CreateDocumentL() +// Creates CBCTestCmDlgAppDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestCmDlgApp::CreateDocumentL() + { + return CBCTestCmDlgDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestCmDlgApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestCmDlgApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "BCTestCmDlgAppUi.h" +#include "BCTestCmDlg.hrh" +#include "BCTestCmDlgview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestCmDlgAppUi::CBCTestCmDlgAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestCmDlgView* view = CBCTestCmDlgView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestCmDlgAppUi::~CBCTestCmDlgAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestCmDlgAppUi::~CBCTestCmDlgAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestCmDlgAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,247 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include "BCTestCmDlgcase.h" +#include "BCTestCmDlgcontainer.h" +#include "BCTestCmDlg.hrh" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgCase* CBCTestCmDlgCase::NewL() + { + CBCTestCmDlgCase* self = new( ELeave ) CBCTestCmDlgCase(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgCase::CBCTestCmDlgCase():iDlg(0) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgCase::~CBCTestCmDlgCase() + { + delete iDlg; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), TEND); + + for(int i=0; iExecuteL( iMemory ), _L("User Hit OK")); + AssertIntL( CAknMemorySelectionDialog::EPhoneMemory, iMemory, _L("Phone memory created")); + } + +void CBCTestCmDlgCase::TestCreateL(TInt aResID) +{ + iDlg = CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, aResID, EFalse ); + + AssertNotNullL(iDlg, _L("mem sel dlg with resID created")); + AssertTrueL(CAknMemorySelectionDialog::RunDlgLD(iMemory), _L("Quick create, User hit OK")); + AssertIntL( CAknMemorySelectionDialog::EPhoneMemory, iMemory, _L("Phone memroy created")); +} + +void CBCTestCmDlgCase::TestQuickCreateL() + { + AssertTrueL(CAknMemorySelectionDialog::RunDlgLD(iMemory), _L("Quick create, User hit OK")); + AssertIntL( CAknMemorySelectionDialog::EPhoneMemory, iMemory, _L("Phone memroy created")); + } + +void CBCTestCmDlgCase::TestQuickCreateL(const TDesC &aTitle) + { + AssertTrueL(CAknMemorySelectionDialog::RunDlgLD(iMemory, aTitle), _L("Quick create with title, User hit OK")); + AssertIntL( CAknMemorySelectionDialog::EPhoneMemory, iMemory, _L("Phone memroy created")); + } + +void CBCTestCmDlgCase::TestQuickCreateL(TInt aResID) + { + AssertTrueL(CAknMemorySelectionDialog::RunDlgLD(iMemory, aResID), _L("Quick create with ResID, User hit OK")); + AssertIntL( CAknMemorySelectionDialog::EPhoneMemory, iMemory, _L("Phone memroy created")); + } + +void CBCTestCmDlgCase::SetupL() + { + iMemory = CAknMemorySelectionDialog::EPhoneMemory; + } + +void CBCTestCmDlgCase::TestWithRootL() +{ + _LIT( KRootPath, "C:\\Nokia\\Images\\" ); + _LIT( KDefaultFileName, "DynamicFilename.jpg" ); + TFileName rootFileName( KRootPath ); + TFileName defaultFileName( KDefaultFileName ); + iDlg = CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, EFalse ); + if(TInt res = iDlg->ExecuteL(iMemory, &rootFileName, &defaultFileName)) + { + TFileName msg(_L("default root: ")); + msg.Append(rootFileName); + msg.Append(_L(" default file: ")); + msg.Append(defaultFileName); + msg.ZeroTerminate(); + AssertTrueL(res, msg); + } +} + +void CBCTestCmDlgCase::TestSettingsL() +{ + iDlg = CAknMemorySelectionDialog::NewL( ECFDDialogTypeNormal, EFalse ); + + iDlg->SetObserver(NULL); + AssertTrueL(ETrue, _L("Null Observer set")); + + iDlg->SetTitleL(_L("a title")); + AssertTrueL(ETrue, _L("title set")); + + iDlg->SetLeftSoftkeyL(_L("left key")); + AssertTrueL(ETrue, _L("left key text set")); + + iDlg->SetRightSoftkeyL(_L("right key")); + AssertTrueL(ETrue, _L("right key text set")); + if(iDlg->ExecuteL(iMemory)) + { + //get + TFileName emptyFileName( KNullDesC ); + iDlg->GetItem( iMemory, emptyFileName ); + TFileName msg(_L("item got: ")); + msg.Append(emptyFileName); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + _LIT( KRootPath, "C:\\Nokia\\Images\\" ); + _LIT( KDefaultFileName, "DynamicFilename.jpg" ); + TFileName rootFileName( KRootPath ); + TFileName defaultFileName( KDefaultFileName ); + iDlg->GetMemories(iMemory, &rootFileName, &defaultFileName); + + msg = (_L("memory got, root: ")); + msg.Append(rootFileName); + msg.Append(_L(" default file: ")); + msg.Append(defaultFileName); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } +} + + +// EOF \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,118 @@ +/* +* 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 "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: container +* +*/ + + +#include "BCTestCmDlgcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgContainer::CBCTestCmDlgContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgContainer::~CBCTestCmDlgContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestCmDlgContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestCmDlgContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestCmDlgContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestCmDlgContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestCmDlgDocument.h" +#include "BCTestCmDlgAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestCmDlgDocument* CBCTestCmDlgDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestCmDlgDocument* CBCTestCmDlgDocument::NewL( CEikApplication& aApp ) + { + CBCTestCmDlgDocument* self = new( ELeave ) CBCTestCmDlgDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestCmDlgDocument::~CBCTestCmDlgDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestCmDlgDocument::~CBCTestCmDlgDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestCmDlgDocument::CBCTestCmDlgDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestCmDlgDocument::CBCTestCmDlgDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestCmDlgDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestCmDlgDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestCmDlgAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,145 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "BCTestCmDlg.hrh" +#include +#include "BCTestCmDlgview.h" +#include "BCTestCmDlgcontainer.h" +#include "bctestutil.h" +#include "BCTestCmDlgcase.h" +#include "bctestmemselpage.h" +#include "bctestfileseldlg.h" +#include "bctestfilenamedlg.h" +#include "bctestcommondlg.h" +#include "bctestmemselitem.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgView* CBCTestCmDlgView::NewL() + { + CBCTestCmDlgView* self = new( ELeave ) CBCTestCmDlgView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgView::CBCTestCmDlgView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgView::ConstructL() + { + BaseConstructL( R_BCTESTCMDLG_VIEW ); + + iContainer = new( ELeave ) CBCTestCmDlgContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestCmDlgCase::NewL(), + _L("Mem selection dialog") ); + iTestUtil->AddTestCaseL( CBCTestMemSelSettingPage::NewL(), + _L("Mem selection setting page") ); + iTestUtil->AddTestCaseL( CBCTestFileSelDlg::NewL(), + _L("File selection dialog") ); + iTestUtil->AddTestCaseL( CBCTestFileNameDlg::NewL(), + _L("File name prompt dialog") ); + iTestUtil->AddTestCaseL( CBCTestCommonDlg::NewL(), + _L("Common dialog") ); + iTestUtil->AddTestCaseL( CBCTestMemSelSettingItem::NewL(), + _L("Mem selection setting item") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestCmDlgView::~CBCTestCmDlgView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestCmDlgView::Id() const + { + return KBCTestCmDlgViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestCmDlgView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestCmDlgView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcommondlg.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestcommondlg.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,482 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +//#include + +#include +#include +#include + +#include "BCTestCommonDlg.h" +#include "BCTestCmDlg.hrh" +#include "streamlogger.h" + +//helper class + +struct MonkFilter: public MAknFileFilter{ + TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/ ) const{ + return ETrue; + } +}; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestCommonDlg* CBCTestCommonDlg::NewL() + { + CBCTestCommonDlg* self = new( ELeave ) CBCTestCommonDlg(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestCommonDlg::CBCTestCommonDlg() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestCommonDlg::~CBCTestCommonDlg() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestCommonDlg::ConstructL() + { + BuildScriptL(); + } + +void CBCTestCommonDlg::SetupL() + { + } + +// --------------------------------------------------------------------------- +// CBCTestCommonDlg::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestCommonDlg::BuildScriptL() + { + AddTestL( DELAY(1), TEND); + + // Add script as your need. + for(int i=0; i= (EBCTestCmdCommonDlgSelect5 - EBCTestCmdCommonDlgBegin -1) && + i <= (EBCTestCmdCommonDlgSelect8 - EBCTestCmdCommonDlgBegin -1)) + AddCancelL(); //first back, 2nd cancel. + + if( i == (EBCTestCmdCommonDlgSelect8 - EBCTestCmdCommonDlgBegin -1)) + AddCancelL(); //first back, then back again, finally cancel. + } + +void CBCTestCommonDlg::BuildMoveScriptL( int ) + { + } + +void CBCTestCommonDlg::BuildSaveScriptL( int ) + { + } + +void CBCTestCommonDlg::BuildCopyScriptL( int ) + { + } + +void CBCTestCommonDlg::AddOKL() + { + // add dlg response sciprts + for(int i=0; i<1; ++i) + AddTestL( WAIT(5), KeyOK, TEND); + } + +void CBCTestCommonDlg::AddCancelL() + { + // add dlg response sciprts + for(int i=0; i<1; ++i) + AddTestL( WAIT(5), RightCBA, TEND); + } + +// --------------------------------------------------------------------------- +// CBCTestCommonDlg::RunL +// --------------------------------------------------------------------------- +// +void CBCTestCommonDlg::RunL( TInt aCmd ) + { + SetupL(); + RunSelectL(aCmd); + RunMoveL(aCmd); + RunSaveL(aCmd); + RunCopyL(aCmd); + Teardown(); + } + +void CBCTestCommonDlg::RunSelectL(TInt aCmd) + { + switch(aCmd) + { + case EBCTestCmdCommonDlgSelect1: + TestSelectL(); + break; + case EBCTestCmdCommonDlgSelect2: + TestSelectL(_L("a title")); + break; + case EBCTestCmdCommonDlgSelect3: + { + MonkFilter filter; + TestSelectL(&filter); + break; + } + case EBCTestCmdCommonDlgSelect4: + TestSelectL(R_BCTEST_FILE_SELECTION_ALL); + break; + case EBCTestCmdCommonDlgSelect5: + TestSelectL(_L("C:\\Data"), R_BCTEST_MEMORY_SELECTION_LOCATIONS); + break; + case EBCTestCmdCommonDlgSelect6: + { + MonkFilter filter; + TestSelectL(_L("C:\\Data"), &filter); + break; + } + case EBCTestCmdCommonDlgSelect7: + TestSelectL(_L("C:\\Data"), _L("a title")); + break; + case EBCTestCmdCommonDlgSelect8: + TestSelectL(_L("C:\\Data"), R_BCTEST_MEMORY_SELECTION_LOCATIONS, R_BCTEST_FILE_SELECTION_ALL); + break; + default: + break; + } + } + +void CBCTestCommonDlg::RunMoveL(TInt aCmd) + { + switch(aCmd) + { + case EBCTestCmdCommonDlgMove1: + TestMoveL(); + break; + case EBCTestCmdCommonDlgMove2: + TestMoveL(_L("a title")); + break; + case EBCTestCmdCommonDlgMove3: + { + MonkFilter filter; + TestMoveL(&filter); + break; + } + case EBCTestCmdCommonDlgMove4: + TestMoveL(R_BCTEST_FILE_SELECTION_ALL); + break; + default: + break; + } + } + +void CBCTestCommonDlg::RunSaveL(TInt aCmd) + { + switch(aCmd) + { + case EBCTestCmdCommonDlgSave1: + TestSaveL(); + break; + case EBCTestCmdCommonDlgSave2: + TestSaveL(_L("a sel title"), _L("a name prompt")); + break; + case EBCTestCmdCommonDlgSave3: + { + MonkFilter filter; + TestSaveL(&filter); + break; + } + case EBCTestCmdCommonDlgSave4: + TestSaveL(R_BCTEST_FILE_SELECTION_ALL); + break; + case EBCTestCmdCommonDlgSave5: + TestSaveL(R_BCTEST_FILE_SELECTION_ALL, _L("a prompt")); + break; + case EBCTestCmdCommonDlgSave6: + TestSaveL(EFalse, R_BCTEST_MEMORY_SELECTION_LOCATIONS); + break; + case EBCTestCmdCommonDlgSave7: + TestSaveL(EFalse, R_BCTEST_MEMORY_SELECTION_LOCATIONS, _L("a prompt")); + break; + default: + break; + } + } + +void CBCTestCommonDlg::RunCopyL(TInt aCmd) + { + switch(aCmd) + { + case EBCTestCmdCommonDlgCopy1: + TestCopyL(); + break; + case EBCTestCmdCommonDlgCopy2: + TestCopyL(R_BCTEST_FILE_SELECTION_ALL); + break; + case EBCTestCmdCommonDlgCopy3: + { + MonkFilter filter; + TestCopyL(&filter); + break; + } + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestCommonDlg::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestCommonDlg::Teardown() + { + } + +void CBCTestCommonDlg::TestSelectL() + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS ); + AssertTrueL(ETrue, _L("Select with Res ID")); + } + +void CBCTestCommonDlg::TestSelectL(const TDesC &aTitle) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aTitle); + AssertTrueL(ETrue, _L("Select with Res ID and Title")); + } + +void CBCTestCommonDlg::TestSelectL(MAknFileFilter* aFilter) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFilter); + AssertTrueL(ETrue, _L("Select with Res ID and Filter")); + } + +void CBCTestCommonDlg::TestSelectL(TInt aFileSelResID) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFileSelResID); + AssertTrueL(ETrue, _L("Select with Res ID and File Selection Res ID")); + } + +void CBCTestCommonDlg::TestSelectL(const TDesC& aStartFolder, TInt aMemSelResID) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + aStartFolder, + aMemSelResID); + AssertTrueL(ETrue, _L("Select with start folder")); + } + + +void CBCTestCommonDlg::TestSelectL(const TDesC& aStartFolder, MAknFileFilter* aFilter) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + aStartFolder, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFilter); + AssertTrueL(ETrue, _L("Select with start folder and filter")); + } + +void CBCTestCommonDlg::TestSelectL(const TDesC &aStartFolder, const TDesC &aTitle) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + aStartFolder, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aTitle); + AssertTrueL(ETrue, _L("Select with start folder and title")); + } + +void CBCTestCommonDlg::TestSelectL(const TDesC &aStartFolder, TInt aMemSelResID, TInt aFileSelResID) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunSelectDlgLD( emptyFileName, + aStartFolder, + aMemSelResID, + aFileSelResID); + AssertTrueL(ETrue, _L("Select with start folder and file selection res ID")); + } + +void CBCTestCommonDlg::TestMoveL() + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunMoveDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS ); + AssertTrueL(ETrue, _L("Move")); + } + +void CBCTestCommonDlg::TestMoveL(const TDesC &aTitle) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunMoveDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aTitle); + AssertTrueL(ETrue, _L("Move with title")); + } + +void CBCTestCommonDlg::TestMoveL(MAknFileFilter *aFilter) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunMoveDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFilter); + AssertTrueL(ETrue, _L("Move with filter")); + } + +void CBCTestCommonDlg::TestMoveL(TInt aFileSelResID) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunMoveDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFileSelResID); + AssertTrueL(ETrue, _L("Move with file selection Res ID")); + } + +void CBCTestCommonDlg::TestSaveL() + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgLD( defaultFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS ); + AssertTrueL(ETrue, _L("Save")); + } + +void CBCTestCommonDlg::TestSaveL(MAknFileFilter *aFilter) + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgLD( defaultFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFilter); + AssertTrueL(ETrue, _L("Save with filter")); + } + +void CBCTestCommonDlg::TestSaveL(const TDesC &aFileTitle, const TDesC &aPromptTitle) + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgLD( defaultFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFileTitle, + aPromptTitle); + AssertTrueL(ETrue, _L("Save with title")); + } + +void CBCTestCommonDlg::TestSaveL(TInt aFileSelResID) + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgLD( defaultFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFileSelResID); + AssertTrueL(ETrue, _L("Save with file selection res ID")); + } + +void CBCTestCommonDlg::TestSaveL(TInt aFileSelResID, const TDesC &aPrompt) + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgLD( defaultFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, + aFileSelResID, + aPrompt); + AssertTrueL(ETrue, _L("Save with file selection res ID and Prompt")); + } + +void CBCTestCommonDlg::TestSaveL(TBool /*aDirFlag*/, TInt aMemSelResID) + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgNoDirectorySelectionLD( defaultFileName, + aMemSelResID); + AssertTrueL(ETrue, _L("Save without dir selection")); + } + +void CBCTestCommonDlg::TestSaveL(TBool /*aDirFlag*/, TInt aMemSelResID, const TDesC& aPrompt) + { + TFileName defaultFileName(_L("foo.jpg")); + TInt returnValue = AknCommonDialogs::RunSaveDlgNoDirectorySelectionLD( defaultFileName, + aMemSelResID, aPrompt); + AssertTrueL(ETrue, _L("Save without dir selection but with a prompt")); + } + +void CBCTestCommonDlg::TestCopyL() + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunCopyDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS); + AssertTrueL(ETrue, _L("Copy")); + } + +void CBCTestCommonDlg::TestCopyL(MAknFileFilter *aFilter) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunCopyDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, aFilter); + AssertTrueL(ETrue, _L("Copy with filter")); + } + +void CBCTestCommonDlg::TestCopyL(TInt aFileSelResID) + { + TFileName emptyFileName; + TInt returnValue = AknCommonDialogs::RunCopyDlgLD( emptyFileName, + R_BCTEST_MEMORY_SELECTION_LOCATIONS, aFileSelResID); + AssertTrueL(ETrue, _L("Copy with file selection res ID")); + } + +// EOF diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestfilenamedlg.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestfilenamedlg.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,220 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "BCTestFileNameDlg.h" +#include "BCTestCmDlg.hrh" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestFileNameDlg* CBCTestFileNameDlg::NewL() + { + CBCTestFileNameDlg* self = new( ELeave ) CBCTestFileNameDlg(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestFileNameDlg::CBCTestFileNameDlg():iDlg(0) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFileNameDlg::~CBCTestFileNameDlg() + { + delete iDlg; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestFileNameDlg::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestFileNameDlg::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestFileNameDlg::BuildScriptL() + { + AddTestL( DELAY(1), TEND); + + // Add script as your need. + for(int i=0; iExecuteL( emptyFileName ); + TFileName msg; + msg.Format(_L("create User hit %d, filename: %s"), returnValue, &emptyFileName ); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } + +void CBCTestFileNameDlg::TestCreateL(TInt aResID) + { + TFileName emptyFileName(KNullDesC); + iDlg = CAknFileNamePromptDialog::NewL(aResID); + TInt returnValue = iDlg->ExecuteL( emptyFileName ); + AssertTrueL(ETrue, _L("Create by res ID")); + } + +void CBCTestFileNameDlg::TestQuickCreateL() + { + _LIT(KRootPath, "C:\\Nokia\\Data"); + TFileName defaultFileName; + TInt returnValue = CAknFileNamePromptDialog::RunDlgLD( defaultFileName, KRootPath ); + AssertTrueL(ETrue, _L("RunDlgLD invoked")); + } + +void CBCTestFileNameDlg::TestQuickCreateL(const TDesC &aTitle) + { + _LIT(KRootPath, "C:\\Nokia\\Data"); + TFileName defaultFileName; + TInt returnValue = CAknFileNamePromptDialog::RunDlgLD( defaultFileName, KRootPath, aTitle ); + AssertTrueL(ETrue, _L("RunDlgLD invoked")); + } + +void CBCTestFileNameDlg::TestQuickCreateL(TInt aResID) + { + _LIT(KRootPath, "C:\\Nokia\\Data"); + TFileName defaultFileName; + TInt returnValue = CAknFileNamePromptDialog::RunDlgLD( defaultFileName, KRootPath, aResID ); + AssertTrueL(ETrue, _L("RunDlgLD invoked")); + } + +void CBCTestFileNameDlg::SetupL() + { + } + + +void CBCTestFileNameDlg::TestSettingsL() + { + iDlg = CAknFileNamePromptDialog::NewL(); + iDlg->SetPathL(_L("C:\\")); + AssertTrueL(ETrue, _L("path set")); + + iDlg->SetTitleL(_L("a title")); + AssertTrueL(ETrue, _L("title set")); + + iDlg->SetLeftSoftkeyL(_L("left key")); + AssertTrueL(ETrue, _L("left soft key set")); + + iDlg->SetRightSoftkeyL(_L("right key")); + AssertTrueL(ETrue, _L("right soft key set")); + + //Add fileter and set Observer + struct MonkObserver: public MAknFileSelectionObserver{ + TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/ ){ + return ETrue; + } + } monkObserver; + + iDlg->SetObserver(&monkObserver); + AssertTrueL(ETrue, _L("Observer set")); + + TFileName filename; + iDlg->ExecuteL(filename); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestfileseldlg.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestfileseldlg.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,245 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "BCTestFileSelDlg.h" +#include "BCTestCmDlg.hrh" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestFileSelDlg* CBCTestFileSelDlg::NewL() + { + CBCTestFileSelDlg* self = new( ELeave ) CBCTestFileSelDlg(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestFileSelDlg::CBCTestFileSelDlg():iDlg(0) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFileSelDlg::~CBCTestFileSelDlg() + { + delete iDlg; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestFileSelDlg::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestFileSelDlg::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestFileSelDlg::BuildScriptL() + { + AddTestL( DELAY(1), TEND); + + // Add script as your need. + for(int i=0; iExecuteL( rootFileName ); + TFileName msg; + msg.Format( _L("User hit: %d, selected file: "), returnValue ); + msg.Append( rootFileName ); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } + +void CBCTestFileSelDlg::TestCreateL(TInt aResID) + { + _LIT( KRootPath, "C:\\Data\\" ); + TFileName rootFileName( KRootPath ); + + iDlg = CAknFileSelectionDialog::NewL( ECFDDialogTypeSelect, aResID ); + AssertNotNullL(iDlg, _L("file sel dialog create with Res ID")); + TInt returnValue = iDlg->ExecuteL( rootFileName ); + TFileName msg; + msg.Format(_L("User hit: %d, selected file: "), returnValue ); + msg.Append( rootFileName ); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } + +void CBCTestFileSelDlg::TestQuickCreateL() + { + TFileName filename; + TFileName folder(_L("C:\\Data\\")); + AssertTrueL(!CAknFileSelectionDialog::RunDlgLD(filename, folder), + _L("Quick create, User hit Cancle")); + } + +void CBCTestFileSelDlg::TestQuickCreateL(const TDesC &aTitle) + { + TFileName filename; + TFileName folder(_L("C:\\Data\\")); + AssertTrueL(!CAknFileSelectionDialog::RunDlgLD(filename, folder, aTitle), + _L("Quick create, User hit Cancle")); + } + +void CBCTestFileSelDlg::TestQuickCreateL(TInt aResID) + { + TFileName filename; + TFileName folder(_L("C:\\Data\\")); + AssertTrueL(!CAknFileSelectionDialog::RunDlgLD(filename, folder, aResID), + _L("Quick create, User hit Cancle")); + } + +void CBCTestFileSelDlg::SetupL() + { + } + + +void CBCTestFileSelDlg::TestSettingsL() +{ + iDlg = CAknFileSelectionDialog::NewL( ECFDDialogTypeSelect ); + iDlg->SetDefaultFolderL(_L("C:\\")); + AssertTrueL(ETrue, _L("default folder set")); + + iDlg->SetTitleL(_L("a title")); + AssertTrueL(ETrue, _L("title set")); + + iDlg->SetLeftSoftkeyFileL(_L("left fkey")); + AssertTrueL(ETrue, _L("left soft key file set")); + + iDlg->SetLeftSoftkeyFolderL(_L("left dkey")); + AssertTrueL(ETrue, _L("left soft key folder set")); + + iDlg->SetRightSoftkeyRootFolderL(_L("right root")); + AssertTrueL(ETrue, _L("right soft key root set")); + + iDlg->SetRightSoftkeySubfolderL(_L("right sdir")); + AssertTrueL(ETrue, _L("right soft key sub folder set")); + + //Add fileter and set Observer + struct MonkObserver: public MAknFileSelectionObserver{ + TBool OkToExitL( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/ ){ + return ETrue; + } + } monkObserver; + + iDlg->SetObserver(&monkObserver); + AssertTrueL(ETrue, _L("Observer set")); + + struct MonkFilter: public MAknFileFilter{ + TBool Accept( const TDesC& /*aDriveAndPath*/, const TEntry& /*aEntry*/ ) const{ + return ETrue; + } + }; + + iDlg->AddFilterL(new (ELeave) MonkFilter); //problems, should be push into stack + AssertTrueL(ETrue, _L("Filter add")); + + TFileName filename; + iDlg->ExecuteL(filename); +} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestmemselitem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestmemselitem.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,183 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "BCTestMemSelItem.h" +#include "BCTestCmDlg.hrh" +#include "streamlogger.h" +#include "CVRSettingsDialogMMCSupported.h" + +// ======== MEMBER FUNCTIONS ======== + +const TInt KItemPosition = 5;// Menu position of the test item + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMemSelSettingItem* CBCTestMemSelSettingItem::NewL() + { + CBCTestMemSelSettingItem* self = new( ELeave ) CBCTestMemSelSettingItem(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMemSelSettingItem::CBCTestMemSelSettingItem():iItem(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMemSelSettingItem::~CBCTestMemSelSettingItem() + { + Teardown(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMemSelSettingItem::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestMemSelSettingItem::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMemSelSettingItem::BuildScriptL() + { + AddTestL( DELAY(1), TEND); + + // Add script as your need. + for(int i=0; iCompleteConstructionL(); + AssertTrueL(ETrue, _L("complete construction")); + } + +void CBCTestMemSelSettingItem::TestEditL() + { + CVRSettingsDialog* settingsDlg = CVRSettingsDialog::NewL(); + settingsDlg->ExecuteLD( R_VR_SETTINGS_DIALOG ); + } + +void CBCTestMemSelSettingItem::TestStoreL() + { + iItem = new (ELeave) CAknMemorySelectionSettingItem(0, iMemory); + iItem->StoreL(); + AssertTrueL(ETrue, _L("store")); + iItem->LoadL(); + AssertTrueL(ETrue, _L("laod")); + } + +void CBCTestMemSelSettingItem::TestSettingL() + { + iItem = new (ELeave) CAknMemorySelectionSettingItem(0, iMemory); + TFileName text(iItem->SettingTextL()); + text.ZeroTerminate(); + AssertTrueL(ETrue, text); + } + +void CBCTestMemSelSettingItem::SetupL() + { + iMemory = CAknMemorySelectionDialog::EPhoneMemory; + } + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestmemselpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestcmdlg/src/bctestmemselpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,195 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include "BCTestMemSelPage.h" +#include "BCTestCmDlg.hrh" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMemSelSettingPage* CBCTestMemSelSettingPage::NewL() + { + CBCTestMemSelSettingPage* self = new( ELeave ) CBCTestMemSelSettingPage(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMemSelSettingPage::CBCTestMemSelSettingPage():iDlg(0) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMemSelSettingPage::~CBCTestMemSelSettingPage() + { + delete iDlg; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMemSelSettingPage::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestMemSelSettingPage::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMemSelSettingPage::BuildScriptL() + { + AddTestL( DELAY(1), TEND); + + // Add script as your need. + for(int i=0; iExecuteL( iMemory, &rootFileName, &defaultFileName ); + iDlg->GetItem( iMemory, emptyFileName ); + + TFileName msg; + msg.Format( _L("User Hit: %d, Memory is: %d, FileName: "), returnValue, iMemory ); + msg.Append( emptyFileName ); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + msg.Append( _L("Root: ") ); + msg.Append( rootFileName ); + msg.Append( _L(", Default: ") ); + msg.Append( defaultFileName ); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } + +void CBCTestMemSelSettingPage::TestCreateL(TInt aResID) + { + iDlg = CAknMemorySelectionSettingPage::NewL( aResID ); + TInt returnValue = iDlg->ExecuteL( iMemory); + AssertTrueL( returnValue, _L("Create with Resorce ID")); + } + +void CBCTestMemSelSettingPage::TestQuickCreateL() + { + AssertTrueL(CAknMemorySelectionSettingPage::RunDlgLD(iMemory), _L("Quick create, User hit OK")); + AssertIntL( CAknMemorySelectionSettingPage::EPhoneMemory, iMemory, _L("Phone memroy created")); + } + +void CBCTestMemSelSettingPage::TestQuickCreateL(const TDesC &aTitle) + { + AssertTrueL(CAknMemorySelectionSettingPage::RunDlgLD(iMemory, aTitle), _L("Quick create with title, User hit OK")); + AssertIntL( CAknMemorySelectionSettingPage::EPhoneMemory, iMemory, _L("Phone memroy created")); + } + +void CBCTestMemSelSettingPage::TestQuickCreateL(TInt aResID) + { + AssertTrueL(CAknMemorySelectionSettingPage::RunDlgLD(iMemory, aResID), _L("Quick create with ResID, User hit OK")); + AssertIntL( CAknMemorySelectionSettingPage::EPhoneMemory, iMemory, _L("Phone memroy created")); + } + +void CBCTestMemSelSettingPage::SetupL() + { + iMemory = CAknMemorySelectionDialog::EPhoneMemory; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bctestDocAndInit.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bctestDocAndInit.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,76 @@ +/* +* 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 "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: project specification file for the BCTestDocAndInit. +* +*/ + + +TARGET BCTestDocAndInit.exe +TARGETTYPE exe +UID 0x0 0x20004762 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestDocAndInit.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestdocandinitapp.cpp +SOURCE bctestdocandinitdocument.cpp +SOURCE bctestdocandinitappui.cpp +SOURCE bctestdocandinitview.cpp +SOURCE bctestdocandinitcontainer.cpp +SOURCE bctestdocandinitcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY commonui.lib +LIBRARY apmime.lib +LIBRARY PlatformEnv.lib +LIBRARY eikctl.lib +LIBRARY sysutil.lib +LIBRARY bafl.lib + + +START RESOURCE ../group/bctestdocandinit_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bctestDocAndInit.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bctestDocAndInit.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,210 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestDocAndInit.hrh" +#include "BCTestDocAndInit.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestDocAndInit_BMP_FNAME APP_BITMAP_DIR"\\BCTestDocAndInit.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestDocAndInit"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestdocandinit_menubar_main; + cba = r_bctestdocandinit_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestdocandinit_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestdocandinit_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestdocandinit_view +// AVKON_VIEW for CBCTestDocAndInitView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestdocandinit_view + { + menubar = r_bctestdocandinit_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestdocandinit_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestdocandinit_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestdocandinit_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestdocandinit_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestdocandinit_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestdocandinit_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdDoc; + txt = qtn_bctestdocandinit_doc; + }, + MENU_ITEM + { + command = EBCTestCmdInit; + txt = qtn_bctestdocandinit_init; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestdocandinit_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestdocandinit_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestdocandinit_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestdocandinit_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestdocandinit_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestdocandinit_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestDocAndInitCbaCmdNext; + txt = qtn_bctestdocandinit_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bctestDocAndInit_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bctestDocAndInit_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004762 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestDocAndInit"; + localisable_resource_file = "\\resource\\apps\\BCTestDocAndInit"; + localisable_resource_id = R_BCTESTDOCANDINIT_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestDocAndInit.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInit.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInit.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ +/* +* 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 "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: BCTestDocAndInit resource header file +* +*/ + + +#ifndef BCTESTDOCANDINIT_HRH +#define BCTESTDOCANDINIT_HRH + +enum TBCTestDocAndInitMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdDoc, + EBCTestCmdInit, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestDocAndInitCba + { + EBCTestDocAndInitCbaCmdNext = 0x6300 + }; + +#endif // BCTESTDOCANDINIT_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInit.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInit.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestDocAndInit localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTDOCANDINIT" +#define qtn_apps_tavl_grid "BCTESTDOCANDINIT" + +// MenuBar +#define qtn_bctestdocandinit_menubar "Option" +#define qtn_bctestdocandinit_cba_next "Next" +#define qtn_bctestdocandinit_autotest "Autotest" +#define qtn_bctestdocandinit_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestdocandinit_doc "Doc" +#define qtn_bctestdocandinit_init "Init" + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestDocAndInitAPP_H +#define BCTestDocAndInitAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestDocAndInit = { 0x20004762 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestDocAndInitApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestDocAndInitApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestDocAndInitDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestDocAndInit ). + * @return The value of KUidBCTestDocAndInit. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for DocAndInit control API. +* +*/ + + +#ifndef C_BCTESTDOCANDINITAPPUI_H +#define C_BCTESTDOCANDINITAPPUI_H + +#include + +class CBCTestDocAndInitView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestDocAndInitAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestDocAndInitAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestDocAndInitAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestDocAndInitView* iView; + }; + +#endif // C_BCTESTDOCANDINITAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_DOCANDINITCASE_H +#define BCTEST_DOCANDINITCASE_H + +#include +#include +#include +#include + +#include "bctestcase.h" + +class CBCTestDocAndInitContainer; +class CCoeControl; +class CDocumentHandler; + +/** +* test case for various list classes +*/ +class CBCTestDocAndInitCase: public CBCTestCase, public MAknServerAppExitObserver + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestDocAndInitCase* NewL( CBCTestDocAndInitContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestDocAndInitCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestDocument1L(); + void TestDocument2L(); + void TestInitializationL(); + void TestAppUiFactoryL(); + void TestCoCtlLibraryL(); + void TestCtlLibraryL(); + void Cleanup(); +private: // constructor + + /** + * C++ default constructor + */ + CBCTestDocAndInitCase( CBCTestDocAndInitContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); +private: // from MAknServerAppExitObserver + void HandleServerAppExit( TInt aReason ); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestDocAndInitContainer* iContainer; + + }; + +#endif // BCTEST_DOCANDINITCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_DOCANDINITCONTAINER_H +#define BCTEST_DOCANDINITCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestDocAndInitContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestDocAndInitContainer(); + + /** + * Destructor + */ + virtual ~CBCTestDocAndInitContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_DOCANDINITCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTDOCANDINITDOCUMENT_H +#define C_BCTESTDOCANDINITDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestDocAndInitDocument application class. +*/ +class CBCTestDocAndInitDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestDocAndInitDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestDocAndInitDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestDocAndInitDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestDocAndInitAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTDOCANDINITDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/inc/bctestDocAndInitview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for DocAndInit control API. +* +*/ + + +#ifndef BCTEST_DOCANDINIT_VIEW_H +#define BCTEST_DOCANDINIT_VIEW_H + +#include + +const TUid KBCTestDocAndInitViewId = { 1 }; + +class CBCTestDocAndInitContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestDocAndInitView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestDocAndInitView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestDocAndInitView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestDocAndInitView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestDocAndInitContainer* iContainer; + + }; + +#endif // BCTEST_DOCANDINIT_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/sis/bctestdocandinit.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/sis/bctestdocandinit.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestdocandinit.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestdocandinit"},(0x20004762),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestdocandinit.exe"- +"!:\sys\bin\bctestdocandinit.exe" + +"\epoc32\data\z\resource\apps\bctestdocandinit.RSC"- +"!:\resource\apps\bctestdocandinit.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestdocandinit_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestdocandinit_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon DocAndInit test app +* +*/ + + +// INCLUDE FILES +#include "BCTestDocAndInitApp.h" +#include "BCTestDocAndInitDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestDocAndInitApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestDocAndInitApp::AppDllUid() const + { + return KUidBCTestDocAndInit; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestDocAndInitApp::CreateDocumentL() +// Creates CBCTestDocAndInitDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestDocAndInitApp::CreateDocumentL() + { + return CBCTestDocAndInitDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestDocAndInitApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestDocAndInitApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for DocAndInit control api(s) +* +*/ + +#include +#include + +#include "bctestdocandinitAppUi.h" +#include "bctestdocandinit.hrh" +#include "bctestdocandinitview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitAppUi::CBCTestDocAndInitAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestDocAndInitView* view = CBCTestDocAndInitView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestDocAndInitAppUi::~CBCTestDocAndInitAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestDocAndInitAppUi::~CBCTestDocAndInitAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestDocAndInitAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,405 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include // for BaflUtils::DeleteFile +#include "bctestdocandinitcase.h" +#include "bctestdocandinitcontainer.h" +#include "bctestdocandinit.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitCase* CBCTestDocAndInitCase::NewL( + CBCTestDocAndInitContainer* aContainer ) + { + CBCTestDocAndInitCase* self = new( ELeave ) CBCTestDocAndInitCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitCase::CBCTestDocAndInitCase( + CBCTestDocAndInitContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitCase::~CBCTestDocAndInitCase() + { + + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY( 1 ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA, + LeftCBA, KeyOK, + LeftCBA, KeyOK, + LeftCBA, KeyOK, + LeftCBA, LeftCBA, KeyOK, + DELAY( 15 ), + LeftCBA, + DELAY( 1 ), + REP(Down, 1 ), + LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) ); + + + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdDoc || aCmd > EBCTestCmdInit ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdDoc: + Cleanup(); + TestDocument1L(); + TestDocument2L(); + break; + case EBCTestCmdInit: + TestInitializationL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdDoc||EBCTestCmdInit: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestInitialization +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::TestInitializationL() + { + TestAppUiFactoryL(); + TestCoCtlLibraryL(); + TestCtlLibraryL(); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestAppUiFactory (Test class CEikAppUiFactory) +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::TestAppUiFactoryL() + { + CEikAppUiFactory* factory = new( ELeave ) CEikAppUiFactory(); + CleanupStack::PushL( factory ); + _LIT( KCEikAppUiFactory, "CEikAppUiFactory::CEikAppUiFactory() invoked" ); + AssertNotNullL( factory, KCEikAppUiFactory ); + + factory->TouchPane(); + _LIT( KTouchPane , "CEikAppUiFactory::TouchPane() invoked" ); + AssertTrueL( ETrue, KTouchPane ); + + factory->CurrentPopupToolbar(); + _LIT( KCurrentPopupToolbar, + "CEikAppUiFactory::CurrentPopupToolbar() invoked" ); + AssertTrueL( ETrue, KCurrentPopupToolbar ); + + CAknToolbar* popup = factory->PopupToolbar(); + _LIT( KPopupToolbar, "CEikAppUiFactory::PopupToolbar() invoked" ); + AssertTrueL( ETrue, KPopupToolbar ); + + factory->SetViewPopupToolbar( popup ); + _LIT( KSetViewPopupToolbar, + "CEikAppUiFactory::SetViewPopupToolbar() invoked" ); + AssertTrueL( ETrue, KSetViewPopupToolbar ); + + CleanupStack::PopAndDestroy( factory ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestCoCtlLibrary (Test class CEikCoCtlLibrary) +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::TestCoCtlLibraryL() + { + CEikCoCtlLibrary::ButtonGroupFactory(); + _LIT( KButtonGroupFactory , + "CEikCoCtlLibrary::ButtonGroupFactory() invoked" ); + AssertTrueL( ETrue, KButtonGroupFactory ); + + CEikCoCtlLibrary::ControlFactory(); + _LIT( KControlFactory , "CEikCoCtlLibrary::ControlFactory() invoked" ); + AssertTrueL( ETrue, KControlFactory ); + + CEikCoCtlLibrary::ResourceFile(); + _LIT( KResourceFile , "CEikCoCtlLibrary::ResourceFile() invoked" ); + AssertTrueL( ETrue, KResourceFile ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestCtlLibrary (Test class CEikCtlLibrary) +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::TestCtlLibraryL() + { + CEikCtlLibrary::ResourceFile(); + _LIT( KResourceFile , "CEikCtlLibrary::ResourceFile() invoked" ); + AssertTrueL( ETrue, KResourceFile ); + + CEikCtlLibrary::ControlFactory(); + _LIT( KControlFactory , "CEikCtlLibrary::ControlFactory() invoked" ); + AssertTrueL( ETrue, KControlFactory ); + + CEikCtlLibrary::InitializeL(); + _LIT( KInitializeL , "CEikCtlLibrary::InitializeL() invoked" ); + AssertTrueL( ETrue, KInitializeL ); + + CEikCtlLibrary::ButtonGroupFactory(); + _LIT( KButtonGroupFactory , + "CEikCtlLibrary::ButtonGroupFactory() invoked" ); + AssertTrueL( ETrue, KButtonGroupFactory ); + } +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestDocument1(Test class CDocumentHandler) +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::TestDocument1L() + { + CDocumentHandler *docHandler = CDocumentHandler::NewL(); + _LIT( KNewL1 , "CDocumentHandler::NewL() invoked" ); + AssertNotNullL( docHandler, KNewL1 ); + + docHandler->SetExitObserver( this ); + _LIT( KSetExitObserver , + "CDocumentHandler::SetExitObserver(MAknServerAppExitObserver*) invoked" ); + AssertTrueL( ETrue, KSetExitObserver ); + + docHandler->InParamListL(); + _LIT( KInParamListL , "CDocumentHandler::InParamListL() invoked" ); + AssertTrueL( ETrue, KInParamListL ); + + TDataType dataType; + _LIT( KEmbeddedFileName, "C:\\BCTestLog\\DocHandleEmbedded.txt" ); + RFs& fs = CEikonEnv::Static()->FsSession(); + RFile embeddedFile; + if( embeddedFile.Open( fs, KEmbeddedFileName, + EFileWrite | EFileShareAny ) != KErrNone ){ + embeddedFile.Create( fs, KEmbeddedFileName, + EFileWrite | EFileShareAny ); + } + _LIT8( KContent, "Content Text" ); + embeddedFile.Write( KContent ); + TInt error; + error = docHandler->OpenFileEmbeddedL( KEmbeddedFileName, dataType ); + _LIT( KOpenFileEmbeddedL1 , + "CDocumentHandler::OpenFileEmbeddedL(const TDesC&,TDataType&) invoked" ); + AssertIntL( KErrNone, error, KOpenFileEmbeddedL1 ); + + error = docHandler->OpenFileEmbeddedL( embeddedFile, dataType ); + _LIT( KOpenFileEmbeddedL2 , + "CDocumentHandler::OpenFileEmbeddedL(RFile&,TDataType&) invoked" ); + AssertIntL( KErrNone, error, KOpenFileEmbeddedL2 ); + + TBuf<32> fileName; + docHandler->CheckFileNameExtension( fileName, dataType ); + _LIT( KCheckFileNameExtension , + "CDocumentHandler::CheckFileNameExtension(TDes&,TDataType&) invoked" ); + AssertTrueL( ETrue, KCheckFileNameExtension ); + + TBool canOpen = docHandler->CanOpenL( dataType ); + _LIT( KCanOpenL , "CDocumentHandler::CanOpenL(TDataType&) invoked" ); + AssertTrueL( canOpen, KCanOpenL ); + + TBool canHandle = docHandler->CanHandleL( dataType ); + _LIT( KCanHandleL , "CDocumentHandler::CanHandleL(TDataType&) invoked" ); + AssertTrueL( canHandle, KCanHandleL ); + + TBool canSave = docHandler->CanSaveL( dataType ); + _LIT( KCanSaveL , "CDocumentHandler::CanSaveL(TDataType&) invoked" ); + AssertTrueL( canSave, KCanSaveL ); + + docHandler->GetPath( fileName ); + _LIT( KGetPath, "CDocumentHandler::GetPath(TDes&) invoked" ); + AssertTrueL( ETrue, KGetPath ); + + RFile tempFile; + _LIT( KTempFileName, "C:\\BCTestLog\\Temp.txt" ); + docHandler->SaveTempFileL( KContent, dataType, KTempFileName, tempFile ); + _LIT( KSaveTempFileL, "CDocumentHandler::SaveTempFileL() invoked" ); + AssertTrueL( ETrue, KSaveTempFileL ); + + tempFile.Close(); + + TUid uid; + docHandler->HandlerAppUid( uid ); + _LIT( KHandlerAppUid, "CDocumentHandler::HandlerAppUid(TUid&) invoked" ); + AssertTrueL( ETrue, KHandlerAppUid ); + + embeddedFile.Close(); + + docHandler->OutParamList(); + _LIT( KOutParamList , "CDocumentHandler::OutParamList() invoked" ); + AssertTrueL( ETrue, KOutParamList ); + +// CleanupStack::PopAndDestroy(); //iDocument + delete docHandler; + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestDocument2 (Test class CDocumentHandler) +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::TestDocument2L() + { + _LIT8( KMyMimeType, "text/vnd.bctest" ); + _LIT( KOldFileName, "C:\\BCTestLog\\DocHandleEmbedded.txt" ); + _LIT( KOpenFileName, "C:\\BCTestLog\\DocInitOpen.txt" ); + _LIT( KNewFileName, "C:\\BCTestLog\\DocInitNew.txt" ); + _LIT8( KContentText, "Content Text" ); + TDataType dataType( KMyMimeType ); + CEikProcess* proc = CEikonEnv::Static()->Process(); + CDocumentHandler *doc = CDocumentHandler::NewL(proc); + CleanupStack::PushL( doc ); + _LIT( KNewL2 , "CDocumentHandler::NewL(CEikProcess*) invoked" ); + AssertNotNullL( doc, KNewL2 ); + + RFs& fs = CEikonEnv::Static()->FsSession(); + RFile File1; + if ( File1.Open( fs, KOpenFileName, EFileWrite | EFileShareAny ) + != KErrNone ){ + File1.Create( fs, KOpenFileName, EFileWrite | EFileShareAny ); + } + + TInt move = doc->MoveL( KOldFileName, KOpenFileName, dataType, 0 ); + _LIT( KMoveL, "CDocumentHandler::MoveL() invoked" ); + AssertIntL( KErrNone, move, KMoveL ); + + TInt save = doc->SaveL(KContentText, dataType, 0 ); + _LIT( KSaveL, "CDocumentHandler::SaveL() invoked" ); + AssertIntL( KErrNone, save, KSaveL ); + + TInt copy = doc->CopyL( File1, KNewFileName, dataType, 0 ); + _LIT( KCopyL1, "CDocumentHandler::CopyL() invoked" ); + AssertIntL( KErrNone, copy, KCopyL1 ); + + File1.Close(); + + copy = doc->CopyL( KOpenFileName, KNewFileName, dataType, 0 ); + _LIT( KCopyL2 , + "CDocumentHandler::CopyL(TDesC8&,TDesC&,TDataType&,TUint) invoked" ); + AssertIntL( KErrNone, copy, KCopyL2 ); + + TInt error = doc->SilentMoveL( KOpenFileName, KNewFileName, + PathInfo::PhoneMemoryRootPath(), dataType, 0 ); + _LIT( KSilentMoveL, "CDocumentHandler::SilentMoveL() invoked" ); + AssertIntL( KErrNone, error, KSilentMoveL ); + + CleanupStack::PopAndDestroy( doc ); + _LIT( KUCDocumentHandler, + "CDocumentHandler::~CDocumentHandler() invoked" ); + AssertTrueL( ETrue, KUCDocumentHandler ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::HandleServerAppExit (from MAknServerAppExitObserver) +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitCase::HandleServerAppExit( TInt /*aReason*/ ) + { + } +void CBCTestDocAndInitCase::Cleanup() + { + RFs& fs = CEikonEnv::Static()->FsSession(); + _LIT( KPathAndPrefix1, "C:\\data\\others\\unname*"); + _LIT( KPathAndPrefix2, "C:\\data\\others\\DocInit*"); + BaflUtils::DeleteFile( fs, KPathAndPrefix1 ); + BaflUtils::DeleteFile( fs, KPathAndPrefix2 ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestdocandinitcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitContainer::CBCTestDocAndInitContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitContainer::~CBCTestDocAndInitContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestDocAndInitContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestDocAndInitContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestDocAndInitContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestDocAndInitContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon DocAndInit test application +* +*/ + + +// INCLUDE FILES +#include "BCTestDocAndInitDocument.h" +#include "BCTestDocAndInitAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestDocAndInitDocument* CBCTestDocAndInitDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestDocAndInitDocument* CBCTestDocAndInitDocument::NewL( CEikApplication& aApp ) + { + CBCTestDocAndInitDocument* self = new( ELeave ) CBCTestDocAndInitDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestDocAndInitDocument::~CBCTestDocAndInitDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestDocAndInitDocument::~CBCTestDocAndInitDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestDocAndInitDocument::CBCTestDocAndInitDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestDocAndInitDocument::CBCTestDocAndInitDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestDocAndInitDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestDocAndInitDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestDocAndInitAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestdocandinit/src/bctestDocAndInitview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestdocandinit.hrh" +#include +#include "bctestdocandinitview.h" +#include "bctestdocandinitcontainer.h" +#include "bctestutil.h" +#include "bctestdocandinitcase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitView* CBCTestDocAndInitView::NewL() + { + CBCTestDocAndInitView* self = new( ELeave ) CBCTestDocAndInitView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitView::CBCTestDocAndInitView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitView::ConstructL() + { + BaseConstructL( R_BCTESTDOCANDINIT_VIEW ); + + iContainer = new( ELeave ) CBCTestDocAndInitContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestDocAndInitCase::NewL( iContainer ), + _L("DocAndInit test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestDocAndInitView::~CBCTestDocAndInitView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestDocAndInitView::Id() const + { + return KBCTestDocAndInitViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestDocAndInitView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bctesteditor.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bctesteditor.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ +/* +* 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 "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: project specification file for the BCTestEditor. +* +*/ + + +TARGET BCTestEditor.exe +TARGETTYPE exe +UID 0x0 0x20004745 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestEditor.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestEditorapp.cpp +SOURCE bctestEditordocument.cpp +SOURCE bctestEditorappui.cpp +SOURCE bctestEditorview.cpp +SOURCE bctestEditorcontainer.cpp +SOURCE bctestEditorcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY uiklaf.lib +LIBRARY form.lib +LIBRARY eikctl.lib +LIBRARY insock.lib +LIBRARY bafl.lib +LIBRARY estor.lib +LIBRARY field.lib +LIBRARY egul.lib +LIBRARY etext.lib +LIBRARY gdi.lib +LIBRARY print.lib +LIBRARY fbscli.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/BCTestEditor_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bctesteditor.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bctesteditor.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,461 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME EDIT + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestEditor.hrh" +#include "BCTestEditor.loc" + +#include "BCTestEditor_01.loc" + + + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestEditor_BMP_FNAME APP_BITMAP_DIR"\\BCTestEditor.mbm" + +#define IPADDRESS_MIN_FIELD_VALUE 0 +#define IPADDRESS_MAX_FIELD_VALUE 255 + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestEditor"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesteditor_menubar_main; + cba = r_bctesteditor_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesteditor_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestEditor_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestEditor_view +// AVKON_VIEW for CBCTestEditorView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesteditor_view + { + menubar = r_bctesteditor_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestEditor_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesteditor_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesteditor_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesteditor_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestEditor_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteditor_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctesteditor_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctesteditor_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctesteditor_outline3; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctesteditor_outline4; + }, + MENU_ITEM + { + command = EBCTestCmdOutline5; + txt = qtn_bctesteditor_outline5; + }, + MENU_ITEM + { + command = EBCTestCmdOutline6; + txt = qtn_bctesteditor_outline6; + }, + MENU_ITEM + { + command = EBCTestCmdOutline7; + txt = qtn_bctesteditor_outline7; + }, + MENU_ITEM + { + command = EBCTestCmdOutline8; + txt = qtn_bctesteditor_outline8; + }, + MENU_ITEM + { + command = EBCTestCmdOutline9; + txt = qtn_bctesteditor_outline9; + }, + MENU_ITEM + { + command = EBCTestCmdOutline10; + txt = qtn_bctesteditor_outline10; + }, + MENU_ITEM + { + command = EBCTestCmdOutline11; + txt = qtn_bctesteditor_outline11; + }, + MENU_ITEM + { + command = EBCTestCmdOutline12; + txt = qtn_bctesteditor_outline12; + }, + MENU_ITEM + { + command = EBCTestCmdOutline13; + txt = qtn_bctesteditor_outline13; + }, + MENU_ITEM + { + command = EBCTestCmdOutline14; + txt = qtn_bctesteditor_outline14; + }, + MENU_ITEM + { + command = EBCTestCmdOutline15; + txt = qtn_bctesteditor_outline15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestEditor_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteditor_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesteditor_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesteditor_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestEditor_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesteditor_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestEditorCbaCmdNext; + txt = qtn_bctesteditor_cba_next; + } + }; + } + +//---------------------------------------------------- +// r_bctesteditor_edwin +//---------------------------------------------------- +// +RESOURCE EDWIN r_bctest_editor_edwin + { + flags = EAknEditorFlagDefault; + width = 30; + lines= 1; + maxlength = 50; + } + +//---------------------------------------------------- +// r_bctesteditor_ip_edwin +//---------------------------------------------------- +// +RESOURCE IP_FIELD_EDITOR r_bctesteditor_ip_edwin + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIELD_VALUE; + second_field = IPADDRESS_MIN_FIELD_VALUE; + third_field = IPADDRESS_MIN_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIELD_VALUE; + second_field = IPADDRESS_MAX_FIELD_VALUE; + third_field = IPADDRESS_MAX_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FIELD_VALUE; + }; + flags = 0; + } + +//---------------------------------------------------- +// r_bctesteditor_ +//---------------------------------------------------- +// +RESOURCE FLPTED r_bctest_editor_eikeditor + { + maxlength=18; + min=-9.9e99; + max=9.9e99; + default=0;// if !(min<=default<=max), default = min. + } + +RESOURCE RTXTED r_bctesteditor_richeditor + { + width = 100; + height = 80; + numlines = 3; + textlimit = 100; + } + +RESOURCE DURATION_EDITOR r_bctesteditor_duration + { + minDuration = DURATION{ seconds = 0; }; + maxDuration = DURATION{ seconds = 1000; }; + flags=0; + } + +RESOURCE NUMBER_EDITOR r_bctesteditor_number + { + min = 0; + max = 1000; + } + +RESOURCE RANGE_EDITOR r_bctesteditor_range + { + min = 0; + max = 1000; + separatortext="-"; + } + +RESOURCE TIME_OFFSET_EDITOR r_bctesteditor_timeoffset + { + minTimeOffset = TIME_OFFSET{ seconds = 0; }; + maxTimeOffset = TIME_OFFSET{ seconds = 1000; }; + flags=0; + } + +RESOURCE TIME_AND_DATE_EDITOR r_bctesteditor_timeanddate + { + minTimeAndDate = TIME_AND_DATE{ minute=0; hour=0; day=0; month=0; year=2000;}; + maxTimeAndDate = TIME_AND_DATE{ minute=0; hour=0; day=0; month=0; year=2006;}; + flags=0; + interveningtext=" "; + } + +RESOURCE TIME_EDITOR r_bctesteditor_time + { + minTime = TIME{ second=0; minute=0; hour=0;}; + maxTime = TIME{ second=0; minute=0; hour=23;}; + flags=0; + } + +RESOURCE DATE_EDITOR r_bctesteditor_date + { + minDate = DATE{ day=0; month=0; year=2000;}; + maxDate = DATE{ day=0; month=0; year=2010;}; + flags=0; + } + +RESOURCE EDWIN r_bctesteditor_edwin + { + flags=0; + width=0; + lines=1; + maxlength=0; + } + +RESOURCE SECRETED r_bctesteditor_secret + { + num_letters=8; + } + +RESOURCE NAMED_FONT r_bctesteditor_font1 + { + name = qfn_bctesteditor_fontname1; + height = qfn_bctesteditor_fontsize1; + } + +RESOURCE MFNE_NUMBER r_bctesteditor_mfne_number + { + min = 1; + max = 100; + flags=0; + } + +RESOURCE MFNE_SEPARATOR r_bctesteditor_mfne_separator + { + text = ""; + } + +RESOURCE MFNE_SYMBOL r_bctesteditor_mfne_symbol + { + symbolicitems = + { + MFNE_SYMBOLIC_ITEM + { + id = 0; + keytomatch = 10; + text = ""; + }, + MFNE_SYMBOLIC_ITEM + { + id = 1; + keytomatch = 9; + text = ""; + } + }; + } + +RESOURCE MFNE_SYMBOLIC_ITEM r_bctesteditor_mfne_symbol_item + { + id = 0; + keytomatch = 10; + text = ""; + } + +RESOURCE RTXTED r_bctesteditor_globaltext + { + width=20; + height=50; + numlines=5; + textlimit=10; + flags=0; + fontcontrolflags=1; + fontnameflags=EGulNoSymbolFonts; + } + +RESOURCE AVKON_INTEGER_EDWIN r_bctesteditor_integer_edwin + { + maxlength = 0; + min = -99999999; + max = 99999999; + unset_value= -100000000; + extension1 = 0; + extension2 = 0; + } +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bctesteditor_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bctesteditor_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004745 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestEditor"; + localisable_resource_file = "\\resource\\apps\\BCTestEditor"; + localisable_resource_id = R_BCTESTEDITOR_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //newfile = KAppDoesNotSupportNewFile; + //launch = KAppLaunchInForeground; + group_name = "BCTest"; + //default_screen_number = 2; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestEditor.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/AssertTools.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/AssertTools.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,29 @@ +/* +* 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: +* +*/ + +#ifndef __ASSERT_TOOLS_H__ +#define __ASSERT_TOOLS_H__ + +#include +#include + +struct AssertTool{ + static TBool AssertNotNull(void* aPtr){ return aPtr!=NULL; } + static TBool AssertTrue(TBool aValue) { return aValue; } +}; + +#endif //#ifndef __ASSERT_TOOLS_H__ \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: BCTestEditor resource header file +* +*/ + + +#ifndef BCTESTEDITOR_HRH +#define BCTESTEDITOR_HRH + +enum TBCTestEditorMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdOutline5, + EBCTestCmdOutline6, + EBCTestCmdOutline7, + EBCTestCmdOutline8, + EBCTestCmdOutline9, + EBCTestCmdOutline10, + EBCTestCmdOutline11, + EBCTestCmdOutline12, + EBCTestCmdOutline13, + EBCTestCmdOutline14, + EBCTestCmdOutline15, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestEditorCba + { + EBCTestEditorCbaCmdNext = 0x6300 + }; + +#endif // BCTESTEditor_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,60 @@ +/* +* 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 "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: BCTestEditor localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTEditor" +#define qtn_apps_tavl_grid "BCTESTEditor" + +// MenuBar +#define qtn_bctesteditor_menubar "Option" +#define qtn_bctesteditor_cba_next "Next" +#define qtn_bctesteditor_autotest "Autotest" +#define qtn_bctesteditor_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctesteditor_outline1 "Outline01" +#define qtn_bctesteditor_outline2 "Outline02" +#define qtn_bctesteditor_outline3 "Outline03" +#define qtn_bctesteditor_outline4 "Outline04" +#define qtn_bctesteditor_outline5 "Outline05" +#define qtn_bctesteditor_outline6 "Outline06" +#define qtn_bctesteditor_outline7 "Outline07" +#define qtn_bctesteditor_outline8 "Outline08" +#define qtn_bctesteditor_outline9 "Outline09" +#define qtn_bctesteditor_outline10 "Outline10" +#define qtn_bctesteditor_outline11 "Outline11" +#define qtn_bctesteditor_outline12 "Outline12" +#define qtn_bctesteditor_outline13 "Outline13" +#define qtn_bctesteditor_outline14 "Outline14" +#define qtn_bctesteditor_outline15 "Outline15" + + +#define qfn_bctesteditor_fontname1 "Arial" +#define qfn_bctesteditor_fontsize1 140 + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestEditor localise file +* +*/ + + +#include "bctestEditor.loc" + +// LOCALISATION STRINGS + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor_31.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor_31.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestEditor localise file +* +*/ + + +#include "bctestEditor.loc" +#include "ChineseStrings.loc" + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor_37.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditor_37.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: BCTestEditor localise file +* +*/ + + +#include "bctestEditor.loc" +#include "ArabicStrings.loc" + + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTEDITORAPP_H +#define BCTESTEDITORAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestEditor = { 0x20004745 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestEditorApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestEditorApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestEditorDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestEditor ). + * @return The value of KUidBCTestEditor. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Editor control API. +* +*/ + + +#ifndef C_BCTESTEDITORAPPUI_H +#define C_BCTESTEDITORAPPUI_H + +#include + +class CBCTestEditorView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestEditorAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestEditorAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestEditorAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestEditorView* iView; + }; + +#endif // C_BCTESTEditorAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,294 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestcase.h" + + +class CTestNumericEdwin : public CAknNumericEdwin + { +public: + void TestFunction(); + }; + +class CBCTestEditorContainer; +class CCoeControl; +class TAknEditorCaseState; +class CAknEdwinState; +class CAknIpFieldEditor; +class CAknIntegerEdwin; +class CAknCcpuSupport; +class CEikMenuPane; +class CEikEdwin; +class CEikFixedPointEditor; +class CEikFloatingPointEditor; +class CEikRichTextEditor; +class CBCTestSecretEditor; + +/** +* test case for various list classes +*/ +class CBCTestEditorCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEditorCase* NewL( CBCTestEditorContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEditorCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestEdwinStateL(); + void TestIpFieldEditorL(); + void TestNumericEdwinL(); + void TestCcpuSupportL(); + void TestEikEdwinL(); + void TestEikFixedPointEditorL(); + void TestEikFloatingPointEditorL(); + void TestEikRichTextEditorL(); + void TestEikMfneSubClassL(); + void TestEikTimeEditorL(); + void TestEikSecretEditorL(); + void TestEikMfneFieldL(); + void TestEikGlobalEditorL(); + void TestEikLafMainL(); + void TestEikMfneL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEditorCase( CBCTestEditorContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + CAknEdwinState* iAknEdwinState; + CAknIpFieldEditor* iAknIpFieldEditor; + CTestNumericEdwin* iAknNumericEdwin; + CAknIntegerEdwin* iAknIntegerEdwin; + CAknCcpuSupport* iAknCcpuSupport; + CEikMenuPane * iPane; + CEikEdwin* iEikEdwin; + CEikFixedPointEditor* iEikFixedPointEditor; + CEikFloatingPointEditor* iEikFloatingPointEditor; + CEikRichTextEditor* iEikRichTextEditor; + CEikDurationEditor* iEikDurationEditor; + CEikNumberEditor* iEikNumberEditor; + CEikRangeEditor* iEikRangeEditor; + CEikTimeOffsetEditor* iEikTimeOffsetEditor; + CEikTimeAndDateEditor* iEikTimeAndDateEditor; + CEikTimeEditor* iEikTimeEditor; + CEikDateEditor* iEikDateEditor; + CBCTestSecretEditor* iEikSecretEditor; + CEikGlobalTextEditor* iEikGlobalTextEditor; + CEikMfne* iEikMfne; + + CEikonEnv* iEikEnv; + /** + * Pointer to container. + * not own + */ + CBCTestEditorContainer* iContainer; + + }; + +class CBCTestSecretEditor: public CEikSecretEditor + { + friend class CBCTestEditorCase; + +public: + + void StartFepInlineEditL(TBool& aSetToTrue, const TCursorSelection& aCursorSelection, + const TDesC& aInitialInlineText, + TInt aPositionOfInsertionPointInInlineText, + TBool aCursorVisibility, + const MFormCustomDraw* aCustomDraw, + MFepInlineTextFormatRetriever& aInlineTextFormatRetriever, + MFepPointerEventHandlerDuringInlineEdit& aPointerEventHandlerDuringInlineEdit); + MCoeFepLayDocExtension* GetFepLayDocExtension(TBool& aSetToTrue); + void SetCursorType(TBool& aSetToTrue, const TTextCursor& aTextCursor); + + }; + +class CMClassTmp : public CBase,public MEikRichTextEditorParserObserver + { + void HandleCursorOverParserL( const TDesC& ); + }; + +class CMObserverClassTmp : public CBase, public MAknEdStateObserver + { + void HandleAknEdwinStateEventL( CAknEdwinState* aAknEdwinState, + EAknEdwinStateEvent aEventType ); + }; + +class CSubEikEdwin : public CEikEdwin + { + public: + void TestFunctionL(); + }; + +class CSubEikRichTextEditor : public CEikRichTextEditor + { + public: + void TestWriteInternalStateL( RWriteStream& aWriteStream ); + }; + +class CSubEikMfne : public CEikMfne + { + public: + void TestFunction(); + }; + +class MEikFindAndReplaceDlgObserver; +class CGraphicsDevice; + +class CTmpCDlgDialogFactory : public CBase, public MEikCDlgDialogFactory + { +public: + static CTmpCDlgDialogFactory* NewL(); +private: + CTmpCDlgDialogFactory(); + TBool RunCharMapDlgLD(CCoeControl* aControl); + TBool RunFontDlgLD( TCharFormat& aFormat, + TCharFormatMask& aAttribChangedMask, + TCharFormatMask& aUndeterminedMask, + TDesC& aTextSelection, + TInt aFonts, + CGraphicsDevice* aGraphicsDevice, + TInt aFontControlFalgs, + const TRgb aBackGroundColor); + + TBool RunInsertObjectDlgLD( CEikEmbeddableAppList* aList, + TInt& aChoice); + + TBool RunObjectInfoDlgLD(const TDesC& aCaption); + TBool RunFormatObjectDlgLD( CApaDoor& aDoor, + CApaDocument& aDoc, + const TSize& aDefaultIconSize); + + void RunEdwinFindAndReplaceDlgLD(MEikFindAndReplaceDlgObserver& aObserver, + SEdwinFindModel& aModel, TBool aFindOnly, TRect aEdwinRect); + + TBool RunEdwinFindDlgLD( SEdwinFindModel* aModel, + CDesCArray* aFindList); + + TBool RunEdwinReplaceDlgLD( SEdwinFindModel* aModel, + CDesCArray* aFindList, + CDesCArray* aReplaceList); + + TBool RunEdwinReplaceOptionDlgLD( CEikGlobalTextEditor* aEdwin, + SEdwinFindModel* aModel); + + TBool RunAlignDlgLD( + CParaFormat* aFormat, + TParaFormatMask& aAttribChangedMask, + TParaFormatMask& aUndeterminedMask); + + TBool RunBorderDlgLD( + CParaFormat* aFormat, + TParaFormatMask& aAttribChangedMask, + TParaFormatMask& aUndeterminedMask); + + TBool RunSpaceDlgLD( + CParaFormat* aFormat, + TParaFormatMask& aAttribChangedMask, + TParaFormatMask& aUndeterminedMask); + + TBool RunTabsDlgLD( CParaFormat* aFormat, + TParaFormatMask& aAttribChangedMask, + TParaFormatMask& aUndeterminedMask, + const TInt aPageWidth); + + TBool RunIndentDlgLD( CParaFormat* aFormat, + TParaFormatMask& aAttribChangedMask, + TParaFormatMask& aUndeterminedMask, + const TInt aPageWidth); + }; + +class CPrintSetup; +class CTmpPrintDialogFactory : public CBase, public MEikPrintDialogFactory + { + public: + TBool RunPaginateDlgLD( CEikGlobalTextEditor* aEditor, + CPrintSetup* aPrintSetup, + CArrayFix* aCharsPerPage); + + CPrintSetup* NewDefaultPrintSetupL(); + + }; diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_EDITORCONTAINER_H +#define BCTEST_EDITORCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestEditorContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestEditorContainer(); + + /** + * Destructor + */ + virtual ~CBCTestEditorContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_EditorCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditordocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditordocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTEDITORDOCUMENT_H +#define C_BCTESTEDITORDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestEditorDocument application class. +*/ +class CBCTestEditorDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestEditorDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestEditorDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestEditorDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestEditorAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTEditorDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/bctesteditorview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Editor control API. +* +*/ + + +#ifndef BCTEST_EDITOR_VIEW_H +#define BCTEST_EDITOR_VIEW_H + +#include + +const TUid KBCTestEditorViewId = { 1 }; + +class CBCTestEditorContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestEditorView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestEditorView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestEditorView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEditorView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestEditorContainer* iContainer; + + }; + +#endif // BCTEST_Editor_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/filelogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/inc/filelogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,100 @@ +/* +* 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: +* +*/ +#ifndef __FILE_LOGGER_H__ +#define __FILE_LOGGER_H__ + +#include +#include + +class FileLogger{ + class LogFile{ + public: + LogFile(){ + _LIT( KLogFile, "C:\\atbtn.log" ); + RFs& fs = CEikonEnv::Static()->FsSession(); + if ( iFile.Open( fs, KLogFile, EFileWrite | EFileShareAny ) != KErrNone ) + { + iFile.Create( fs, KLogFile, EFileWrite | EFileShareAny ); + } + + TInt pos=0; // this must be 0 + iFile.Seek( ESeekEnd, pos ); + } + + ~LogFile(){ iFile.Close(); } + + RFile& operator()(){ return iFile; } + private: + RFile iFile; + }; + +public: + // dll can not hold static vars, so... + static FileLogger& GetInstance(){ + static FileLogger logger; + return logger; + } + + const FileLogger& operator<<(const TDesC& aText) + { + LogFile file; + + HBufC8* text = HBufC8::NewL( aText.Length() ); + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + + return *this; + } + + const FileLogger& operator<<(TInt n){ + LogFile file; + + TInt i=1; + for(TInt v=n; v!=0; ++i, v/=10){} + HBufC* text = HBufC::NewL( i ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, n ); + HBufC8* text8 = HBufC8::NewL( textPtr.Length() ); + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + + return *this; + } + +private: + FileLogger(){} +}; + +#endif //__FILE_LOGGER_H__ \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/sis/bctesteditor.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/sis/bctesteditor.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestEditor-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestEditor"},(0x20004745),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestEditor.exe"- +"!:\sys\bin\BCTestEditor.exe" + +"\epoc32\data\z\resource\apps\BCTestEditor.RSC"- +"!:\resource\apps\BCTestEditor.RSC" + +"\epoc32\data\z\private\10003a3f\apps\bctestEditor_reg.RSC"- +"!:\private\10003a3f\import\apps\bctestEditor_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Editor test app +* +*/ + + +// INCLUDE FILES +#include "BCTestEditorApp.h" +#include "BCTestEditorDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestEditorApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestEditorApp::AppDllUid() const + { + return KUidBCTestEditor; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestEditorApp::CreateDocumentL() +// Creates CBCTestEditorDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestEditorApp::CreateDocumentL() + { + return CBCTestEditorDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestEditorApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestEditorApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for Editor control api(s) +* +*/ + +#include +#include + +#include "bctestEditorAppUi.h" +#include "bctestEditor.hrh" +#include "bctestEditorview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestEditorAppUi::CBCTestEditorAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestEditorAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestEditorView* view = CBCTestEditorView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestEditorAppUi::~CBCTestEditorAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestEditorAppUi::~CBCTestEditorAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestEditorAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2824 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestEditorcase.h" +#include "bctestEditorcontainer.h" +#include "bctestEditor.hrh" +#include "AssertTools.h" +#include "bctestlogger.h" +#include "aknedstsobs.h" +#include "aknedsts.h" +#include "aknipfed.h" +#include "eikedwin.h" +#include + +#define EDWIN_POS TPoint(10,5) +#define KDefaultTextLimit 100 + +class TBCTestIrFactory: public MEikIrFactory + { +public: + void SendDataOverIrL( CEikEdwin* aEditor ); + void ReceiveDataOverIrL( CEikEdwin* aEditor ); + }; + +// ======== MEMBER FUNCTIONS ======== + +void TBCTestIrFactory::SendDataOverIrL( CEikEdwin* ) + { + } + +void TBCTestIrFactory::ReceiveDataOverIrL( CEikEdwin* ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +void CBCTestSecretEditor::StartFepInlineEditL( TBool&, + const TCursorSelection&, const TDesC&, + TInt, TBool, const MFormCustomDraw*, + MFepInlineTextFormatRetriever&, + MFepPointerEventHandlerDuringInlineEdit& ) + { + } + +MCoeFepLayDocExtension* CBCTestSecretEditor::GetFepLayDocExtension( TBool& ) + { + return NULL; + } + +void CBCTestSecretEditor::SetCursorType( TBool&, const TTextCursor& ) + { + } + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +TBool CTmpPrintDialogFactory::RunPaginateDlgLD( CEikGlobalTextEditor*, + CPrintSetup*, + CArrayFix* ) +{ + return ETrue; +} + +CPrintSetup* CTmpPrintDialogFactory::NewDefaultPrintSetupL() +{ + return NULL; +} + +CTmpCDlgDialogFactory* CTmpCDlgDialogFactory::NewL() + { + CTmpCDlgDialogFactory* self = new(ELeave) CTmpCDlgDialogFactory; + return self; + } + +CTmpCDlgDialogFactory::CTmpCDlgDialogFactory() + { + } + +TBool CTmpCDlgDialogFactory::RunCharMapDlgLD(CCoeControl* /*aControl*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunFontDlgLD(TCharFormat& /*aFormat*/, + TCharFormatMask& /*aAttribChangedMask*/, + TCharFormatMask& /*aUndeterminedMask*/, + TDesC& /*aTextSelection*/, + TInt /*aFonts*/, + CGraphicsDevice* /*aGraphicsDevice*/, + TInt /*aFontControlFlags*/, + const TRgb /*aBackGroundColor*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +void CTmpCDlgDialogFactory::RunEdwinFindAndReplaceDlgLD(MEikFindAndReplaceDlgObserver& /*aObserver*/, + SEdwinFindModel& /*aModel*/, TBool /*aFindOnly*/, TRect /*aEdwinRect*/) + { + User::Leave(KErrNotSupported); + } + +TBool CTmpCDlgDialogFactory::RunInsertObjectDlgLD( + CEikEmbeddableAppList* /*aList*/, + TInt& /*aChoice*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunObjectInfoDlgLD(const TDesC& /*aCaption*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunFormatObjectDlgLD( CApaDoor& /*aDoor*/, + CApaDocument& /*aDoc*/, + const TSize& /*aDefaultIconSize*/) + { + // stubbed as this code has been thinned + return ETrue; + } + + +TBool CTmpCDlgDialogFactory::RunEdwinFindDlgLD( SEdwinFindModel* /*aModel*/, + CDesCArray* /* aFindList*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunEdwinReplaceDlgLD( + SEdwinFindModel* /* aModel*/, + CDesCArray* /*aFindList*/, + CDesCArray* /*aReplaceList*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunEdwinReplaceOptionDlgLD( + CEikGlobalTextEditor* /*aEdwin*/, + SEdwinFindModel* /*aModel*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunAlignDlgLD( + CParaFormat* /*aFormat*/, + TParaFormatMask& /*aAttribChangedMask*/, + TParaFormatMask& /*aUndeterminedMask*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunSpaceDlgLD( + CParaFormat* /*aFormat*/, + TParaFormatMask& /*aAttribChangedMask*/, + TParaFormatMask& /*aUndeterminedMask*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunBorderDlgLD( + CParaFormat* /*aFormat*/, + TParaFormatMask& /*aAttribChangedMask*/, + TParaFormatMask& /*aUndeterminedMask*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunTabsDlgLD( + CParaFormat* /*aFormat*/, + TParaFormatMask& /*aAttribChangedMask*/, + TParaFormatMask& /*aUndeterminedMask*/, + const TInt /*aPageWidth*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +TBool CTmpCDlgDialogFactory::RunIndentDlgLD( + CParaFormat* /*aFormat*/, + TParaFormatMask& /*aAttribChangedMask*/, + TParaFormatMask& /*aUndeterminedMask*/, + const TInt /*aPageWidth*/) + { + // stubbed as this code has been thinned + return ETrue; + } + +void CMClassTmp::HandleCursorOverParserL( const TDesC& ) + { + } + +void CMObserverClassTmp::HandleAknEdwinStateEventL( CAknEdwinState*, + EAknEdwinStateEvent) + { + } + +void CSubEikEdwin::TestFunctionL() + { + CreateTextViewL(); + + CancelSelectionL( EStart ); + + TrappedSizeChanged(); + + TInt tmp; + HandleTextPastedL( 1, tmp ); + + MoveCursorToChunkStartL( EFalse, EChunkWord, EEnd ); + + PlaceDataOnClipboardL(); + + SetLineCursorDetailsL(); + } + +void CSubEikMfne::TestFunction() + { + MfneSize(); + + MfneSize( ETrue ); + + FocusChanged( EDrawNow ); + } + +void CSubEikRichTextEditor::TestWriteInternalStateL( RWriteStream& aWriteStream ) + { + WriteInternalStateL( aWriteStream ); + } + +CBCTestEditorCase* CBCTestEditorCase::NewL( + CBCTestEditorContainer* aContainer ) + { + CBCTestEditorCase* self = new( ELeave ) CBCTestEditorCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEditorCase::CBCTestEditorCase( + CBCTestEditorContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEditorCase::~CBCTestEditorCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::ConstructL() + { + BuildScriptL(); + + iEikEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 1 ), TEND ); + for( int i = 0;i<=14;i++) + { + AddTestL( LeftCBA, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline15 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestEdwinStateL(); + break; + case EBCTestCmdOutline2: + TestIpFieldEditorL(); + break; + case EBCTestCmdOutline3: + TestNumericEdwinL(); + break; + case EBCTestCmdOutline4: + TestCcpuSupportL(); + break; + case EBCTestCmdOutline5: + TestEikEdwinL(); + break; + case EBCTestCmdOutline6: + TestEikFixedPointEditorL(); + break; + case EBCTestCmdOutline7: + TestEikFloatingPointEditorL(); + break; + case EBCTestCmdOutline8: + TestEikRichTextEditorL(); + break; + case EBCTestCmdOutline9: + TestEikMfneSubClassL(); + break; + case EBCTestCmdOutline10: + TestEikTimeEditorL(); + break; + case EBCTestCmdOutline11: + TestEikSecretEditorL(); + break; + case EBCTestCmdOutline12: + TestEikMfneFieldL(); + break; + case EBCTestCmdOutline13: + TestEikGlobalEditorL(); + break; + case EBCTestCmdOutline14: + TestEikLafMainL(); + break; + case EBCTestCmdOutline15: + TestEikMfneL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControlL( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +void CTestNumericEdwin::TestFunction() + { + TKeyEvent keyEvent; + TEventCode eventCode = EEventKey; + MapKeyEvent( keyEvent, eventCode, EDigitTypeAllTypes ); + } +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CAknEdwinState and TAknEditorCaseState +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEdwinStateL() + { + _LIT( KCbaState, "Class CAknEdwinState Function CbaState tested" ); + _LIT( KCcpuState, "Class CAknEdwinState Function CcpuState tested" ); + _LIT( KCurrentInlineEditSpan, + "Class CAknEdwinState Function CurrentInlineEditSpan tested" ); + _LIT( KDefaultLanguage, + "Class CAknEdwinState Function DefaultLanguage tested"); + _LIT( KMenuBar, "Class CAknEdwinState Function MenuBar tested" ); + _LIT( KSetDefaultLanguage, + "Class CAknEdwinState Function SetDefaultLanguage tested" ); + _LIT( KSetCurrentCase, + "Class CAknEdwinState Function SetCurrentCase tested" ); + _LIT( KSetLocalLanguage, + "Class CAknEdwinState Function SetLocalLanguage tested" ); + _LIT( KSpecialCharacterTableResourceId, + "Class CAknEdwinState Function SpecialCharacterTableResourceId tested" ); + + _LIT( KClearFlag, "Class TAknEdwinState Function ClearFlag tested" ); + _LIT( KIsFlagSet, "Class TAknEdwinState Function IsFlagSet tested" ); + _LIT( KSetPreviousCase, + "Class TAknEdwinState Function SetPreviousCase tested" ); + _LIT( KSetPreviousCaseUsedToEnterText, + "Class TAknEdwinState Function SetPreviousCaseUsedToEnterText tested" ); + _LIT( KPreviousCase, + "Class TAknEdwinState Function PreviousCase tested" ); + _LIT( KPreviousCaseUsedToEnterText, + "Class TAknEdwinState Function PreviousCaseUsedToEnterText tested" ); + + iAknEdwinState = new ( ELeave ) CAknEdwinState(); + iAknEdwinState->CbaState(); + AssertTrueL( ETrue, KCbaState ); + + iAknEdwinState->CcpuState(); + AssertTrueL( ETrue, KCcpuState ); + + iAknEdwinState->CurrentInlineEditSpan(); + AssertTrueL( ETrue, KCurrentInlineEditSpan ); + + iAknEdwinState->DefaultLanguage(); + AssertTrueL( ETrue, KDefaultLanguage ); + + iAknEdwinState->MenuBar(); + AssertTrueL( ETrue, KMenuBar ); + + iAknEdwinState->SetDefaultLanguage( 0 ); + AssertTrueL( ETrue, KSetDefaultLanguage ); + + iAknEdwinState->SetCurrentCase( 0 ); + AssertTrueL( ETrue, KSetCurrentCase ); + + iAknEdwinState->SetLocalLanguage( ELangEnglish ); + AssertTrueL( ETrue, KSetLocalLanguage ); + + iAknEdwinState->SpecialCharacterTableResourceId(); + AssertTrueL( ETrue, KSpecialCharacterTableResourceId ); + + + iAknEdwinState->SetObjectProvider( STATIC_CAST( + MObjectProvider*, iContainer ) ); + _LIT( KSetObjectProvider, + "Class CAknEdwinState Function SetObjectProvider tested" ); + AssertTrueL( ETrue, KSetObjectProvider ); + + iAknEdwinState->ObjectProvider(); + _LIT( KObjectProvider, + "Class CAknEdwinState Function ObjectProvider tested" ); + AssertTrueL( ETrue, KObjectProvider ); + + iAknEdwinState->LocalLanguage(); + _LIT( KLocalLanguage, + "Class CAknEdwinState Function LocalLanguage tested" ); + AssertTrueL( ETrue, KLocalLanguage ); + + iAknEdwinState->CurrentCase(); + _LIT( KCurrentCase, + "Class CAknEdwinState Function CurrentCase tested" ); + AssertTrueL( ETrue, KCurrentCase ); + + iAknEdwinState->DefaultInputMode(); + _LIT( KDefaultInputMode, + "Class CAknEdwinState Function DefaultInputMode tested" ); + AssertTrueL( ETrue, KDefaultInputMode ); + + iAknEdwinState->DefaultCase(); + _LIT( KDefaultCase, + "Class CAknEdwinState Function DefaultCase tested" ); + AssertTrueL( ETrue, KDefaultCase ); + + iAknEdwinState->FormAccessor(); + _LIT( KFormAccessor, + "Class CAknEdwinState Function FormAccessor tested" ); + AssertTrueL( ETrue, KFormAccessor ); + + iAknEdwinState->PermittedCases(); + _LIT( KPermittedCases, + "Class CAknEdwinState Function PermittedCases tested" ); + AssertTrueL( ETrue, KPermittedCases ); + + iAknEdwinState->SetCba(); + _LIT( KSetCba, + "Class CAknEdwinState Function SetCba tested" ); + AssertTrueL( ETrue, KSetCba ); + + iAknEdwinState->SetMenu(); + _LIT( KSetMenu, + "Class CAknEdwinState Function SetMenu tested" ); + AssertTrueL( ETrue, KSetMenu ); + + + CMObserverClassTmp* mclasstmp = new ( ELeave )CMObserverClassTmp(); + CleanupStack::PushL( mclasstmp ); + iAknEdwinState->SetObserver( STATIC_CAST( + MAknEdStateObserver*, mclasstmp ) ); + _LIT( KSetObserver, + "Class CAknEdwinState Function SetObserver tested" ); + AssertTrueL( ETrue, KSetObserver ); + + CleanupStack::PopAndDestroy( mclasstmp ); + + iAknEdwinState->SetCurrentInputMode( EAknEditorNumericInputMode ); + _LIT( KSetCurrentInputMode, + "Class CAknEdwinState Function SetCurrentInputMode tested" ); + AssertTrueL( ETrue, KSetCurrentInputMode ); + + TAknEditorCaseState editorCaseState; + editorCaseState.ClearFlag( TAknEditorCaseState::EFlagInitialiseRequired ); + AssertTrueL( ETrue, KClearFlag ); + + editorCaseState.IsFlagSet( + TAknEditorCaseState::EFlagInitialiseRequired ); + AssertTrueL( ETrue, KIsFlagSet ); + + editorCaseState.SetPreviousCase( 0 ); + AssertTrueL( ETrue, KSetPreviousCase ); + + editorCaseState.SetPreviousCaseUsedToEnterText( 0 ); + AssertTrueL( ETrue, KSetPreviousCaseUsedToEnterText ); + + editorCaseState.PreviousCase(); + AssertTrueL( ETrue, KPreviousCase ); + + editorCaseState.PreviousCaseUsedToEnterText(); + AssertTrueL( ETrue, KPreviousCaseUsedToEnterText ); + + editorCaseState.CurrentCase(); + _LIT( KTAknEditorCaseStateCurrentCase, + "Class TAknEditorCaseState Function CurrentCase tested" ); + AssertTrueL( ETrue, KTAknEditorCaseStateCurrentCase ); + + + delete iAknEdwinState; + iAknEdwinState=NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CAknIpFieldEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestIpFieldEditorL() + { + TInetAddr lowAdr; + lowAdr.SetAddress( KInetAddrNone ); + TInetAddr highAdr; + highAdr.SetAddress( KInetAddrAll ); + + _LIT( KNewL, "Class CAknIpFieldEditor Function NewL tested" ); + _LIT( KSetAddress, + "Class CAknIpFieldEditor Function SetAddress tested" ); + _LIT( KAddress, "Class CAknIpFieldEditor Function Address tested" ); + _LIT( KSetMinimumAndMaximum, + "Class CAknIpFieldEditor Function SetMinimumAndMaximum tested" ); + _LIT( KGetMinimumAndMaximum, + "Class CAknIpFieldEditor Function GetMinimumAndMaximum tested" ); + _LIT( KConstructFromResourceL, + "Class CAknIpFieldEditor Function ConstructFromResourceL tested" ); + _LIT( KOfferKeyEventL, + "Class CAknIpFieldEditor Function OfferKeyEventL tested" ); + _LIT( KHandlePointerEventL, + "Class CAknIpFieldEditor Function HandlePointerEventL tested" ); + + iAknIpFieldEditor = CAknIpFieldEditor::NewL( lowAdr, highAdr, lowAdr ); + // CleanupStack::PushL(iAknIpFieldEditor); Changes by Sanjeev + AssertTrueL( ETrue, KNewL ); + // CleanupStack::Pop( iAknIpFieldEditor ); Changes by Sanjeev + delete iAknIpFieldEditor; + iAknIpFieldEditor = NULL; + + + iAknIpFieldEditor = CAknIpFieldEditor::NewL(); + AssertTrueL( ETrue, KNewL ); + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_IP_EDWIN ); + iAknIpFieldEditor->ConstructFromResourceL( resourceReader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy();//resourceReader + iAknIpFieldEditor->SetContainerWindowL( *iContainer ); + + iAknIpFieldEditor->ActivateL(); + _LIT( KActivateL, + "Class CAknIpFieldEditor Function ActivateL tested" ); + AssertTrueL( ETrue, KActivateL ); + + iAknIpFieldEditor->SetAddress( lowAdr ); + AssertTrueL( ETrue, KSetAddress ); + + iAknIpFieldEditor->Address(); + AssertTrueL( ETrue, KAddress ); + + iAknIpFieldEditor->SetMinimumAndMaximum( lowAdr, highAdr ); + AssertTrueL( ETrue, KSetMinimumAndMaximum ); + + iAknIpFieldEditor->GetMinimumAndMaximum( lowAdr, highAdr ); + AssertTrueL( ETrue, KGetMinimumAndMaximum ); + + + TKeyEvent keyEvent; + TPointerEvent pointerEvent; + iAknIpFieldEditor->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iAknIpFieldEditor->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + delete iAknIpFieldEditor; + iAknIpFieldEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CAknNumericEdwin and CAknIntegerEdwin +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestNumericEdwinL() + { + _LIT( KConstructL, "Class CAknNumericEdwin Function ConstructL tested" ); + _LIT( KMapKeyEvent, + "Class CAknNumericEdwin Function MapKeyEvent tested" ); + + _LIT( KNewL, "Class CAknIntegerEdwin Function NewL tested" ); + _LIT( KConstructLCAknIntegerEdwin, + "Class CAknIntegerEdwin Function ConstructL tested" ); + _LIT( KConstructFromResourceL, + "Class CAknIntegerEdwin Function ConstructFromResourceL tested" ); + _LIT( KSetMinimumIntegerValue, + "Class CAknIntegerEdwin Function SetMinimumIntegerValue tested" ); + _LIT( KSetMaximumIntegerValue, + "Class CAknIntegerEdwin Function SetMaximumIntegerValue tested" ); + _LIT( KSetValueL,"Class CAknIntegerEdwin Function SetValueL tested" ); + _LIT( KSetUnsetValue, + "Class CAknIntegerEdwin Function SetUnsetValue tested" ); + _LIT( KPrepareForFocusLossL, + "Class CAknIntegerEdwin Function PrepareForFocusLossL tested" ); + _LIT( KGetTextAsInteger, + "Class CAknIntegerEdwin Function GetTextAsInteger tested" ); + _LIT( KCheckNumber, + "Class CAknIntegerEdwin Function CheckNumber tested" ); + _LIT( KHandleResourceChange, + "Class CAknIntegerEdwin Function HandleResourceChange tested" ); + _LIT( KOfferKeyEventL, + "Class CAknIntegerEdwin Function OfferKeyEventL tested" ); + + iAknNumericEdwin = new ( ELeave ) CTestNumericEdwin(); + + iAknNumericEdwin->ConstructL( EEikEdwinAutoSelection, 10, + 10, 10 ); + AssertTrueL( ETrue, KConstructL ); + + iAknNumericEdwin->TestFunction(); + AssertTrueL( ETrue, KMapKeyEvent ); + + delete iAknNumericEdwin; + iAknNumericEdwin = NULL; + + CAknIntegerEdwin* aknIntegerEdwin = CAknIntegerEdwin::NewL( 0, 20, 10 ); + CleanupStack::PushL( aknIntegerEdwin ); + CleanupStack::PopAndDestroy( aknIntegerEdwin ); + AssertTrueL( ETrue, KNewL ); + + iAknIntegerEdwin = new ( ELeave ) CAknIntegerEdwin(); + AssertTrueL( ETrue, KNewL ); + iAknIntegerEdwin->SetContainerWindowL( *iContainer ); + + AssertTrueL( ETrue, KConstructLCAknIntegerEdwin ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_INTEGER_EDWIN ); + iAknIntegerEdwin->ConstructFromResourceL( resourceReader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //resourceReader + + iAknIntegerEdwin->ActivateL(); + + iAknIntegerEdwin->SetMinimumIntegerValue( 0 ); + AssertTrueL( ETrue, KSetMinimumIntegerValue ); + + iAknIntegerEdwin->SetMaximumIntegerValue( 20 ); + AssertTrueL( ETrue, KSetMaximumIntegerValue ); + + iAknIntegerEdwin->SetValueL( 5 ); + AssertTrueL( ETrue, KSetValueL ); + + iAknIntegerEdwin->SetUnsetValue( 5 ); + AssertTrueL( ETrue, KSetUnsetValue ); + + iAknIntegerEdwin->PrepareForFocusLossL(); + AssertTrueL( ETrue, KPrepareForFocusLossL ); + + TInt tmpvalue; + iAknIntegerEdwin->GetTextAsInteger( tmpvalue ); + AssertTrueL( ETrue, KGetTextAsInteger ); + + iAknIntegerEdwin->CheckNumber(); + AssertTrueL( ETrue, KCheckNumber ); + + iAknIntegerEdwin->HandleResourceChange( 3 ); + AssertTrueL( ETrue, KHandleResourceChange ); + + TKeyEvent keyEvent; + + iAknIntegerEdwin->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iAknIntegerEdwin->AddFlagToUserFlags( CEikEdwin::EDisplayOnly ); + TPointerEvent pointerEvent; + + iAknIntegerEdwin->HandlePointerEventL( pointerEvent ); + + delete iAknIntegerEdwin; + iAknIntegerEdwin = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CAknCcpuSupport +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestCcpuSupportL() + { + _LIT( KConstructL, "Class CCpuSupport Function ConstructL tested" ); + _LIT( KHandleSelectionChangeL, + "Class CCpuSupport Function HandleSelectionChangeL tested" ); + _LIT( KHandleFocusChangeL, + "Class CCpuSupport Function HandleFocusChangeL tested" ); + _LIT( KProcessCommandL, + "Class CCpuSupport Function ProcessCommandL tested" ); + _LIT( KOfferKeyEventL, + "Class CCpuSupport Function OfferKeyEventL tested" ); + _LIT( KHandlePointerEventL, + "Class CCpuSupport Function HandlePointerEventL tested" ); + _LIT( KDynInitMenuPaneL, + "Class CCpuSupport Function DynInitMenuPaneL tested" ); + + CEikEdwin *edwin = new ( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + edwin->ConstructL( EAknEditorFlagDefault, 10, 30, 1 ); + + iAknCcpuSupport = new ( ELeave ) + CAknCcpuSupport( STATIC_CAST( MEikCcpuEditor*, edwin ) ); + + iAknCcpuSupport->ConstructL(); + AssertTrueL( ETrue, KConstructL ); + + iAknCcpuSupport->HandleSelectionChangeL(); + AssertTrueL( ETrue, KHandleSelectionChangeL ); + + iAknCcpuSupport->HandleFocusChangeL(); + AssertTrueL( ETrue, KHandleFocusChangeL ); + + iAknCcpuSupport->ProcessCommandL( 0 ); + AssertTrueL( ETrue, KProcessCommandL ); + + TKeyEvent keyEvent; + TPointerEvent pointerEvent; + iAknCcpuSupport->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iAknCcpuSupport->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iPane = new ( ELeave ) CEikMenuPane( iAknCcpuSupport ); + iPane->ConstructL( iPane, 0 ); + iAknCcpuSupport->DynInitMenuPaneL( 0, iPane ); + AssertTrueL( ETrue, KDynInitMenuPaneL ); + + delete iPane; + iPane = NULL; + delete iAknCcpuSupport; + iAknCcpuSupport = NULL; + CleanupStack::PopAndDestroy( edwin ); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikEdwin +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikEdwinL() + { + iEikEdwin = new ( ELeave )CEikEdwin(); + _LIT( KCEikEdwin, + "Class CEikEdwin Function CEikEdwin tested" ); + AssertTrueL( ETrue, KCEikEdwin ); + + iEikEdwin->SetHighlightStyleL( EEikEdwinHighlightNormal ); + _LIT( KSetHighlightStyleL, + "Class CEikEdwin Function SetHighlightStyleL tested" ); + AssertTrueL( ETrue, KSetHighlightStyleL ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_EDWIN ); + iEikEdwin->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "Class CEikEdwin Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + CleanupStack::PopAndDestroy();//resourceReader + + iEikEdwin->SetContainerWindowL( *iContainer ); + _LIT( KSetContainerWindowL, + "Class CEikEdwin Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KSetContainerWindowL ); + + CAknQueryControl* aknQueryControl = new ( ELeave )CAknQueryControl(); + CleanupStack::PushL( aknQueryControl ); + + iEikEdwin->AddEdwinObserverL( STATIC_CAST( MEikEdwinObserver*, + aknQueryControl ) ); + _LIT( KAddEdwinObserverL, + "Class CEikEdwin Function AddEdwinObserverL tested" ); + AssertTrueL( ETrue, KAddEdwinObserverL ); + + iEikEdwin->SetEdwinObserver( STATIC_CAST( MEikEdwinObserver*, + aknQueryControl ) ); + _LIT( KSetEdwinObserver, + "Class CEikEdwin Function SetEdwinObserver tested" ); + AssertTrueL( ETrue, KSetEdwinObserver ); + + iEikEdwin->SetEdwinSizeObserver( STATIC_CAST( MEikEdwinSizeObserver*, + aknQueryControl ) ); + _LIT( KSetEdwinSizeObserver, + "Class CEikEdwin Function SetEdwinSizeObserver tested" ); + AssertTrueL( ETrue, KSetEdwinSizeObserver ); + + iEikEdwin->RemoveEdwinObserver( STATIC_CAST( MEikEdwinObserver*, + aknQueryControl ) ); + _LIT( KRemoveEdwinObserver, + "Class CEikEdwin Function RemoveEdwinObserver tested" ); + AssertTrueL( ETrue, KRemoveEdwinObserver ); + + iEikEdwin->SetEdwinObserver( NULL ); + CleanupStack::PopAndDestroy( aknQueryControl ); + + iEikEdwin->CreateScrollBarFrameL(); + _LIT( KCreateScrollBarFrameL, + "Class CEikEdwin Function CreateScrollBarFrameL tested" ); + AssertTrueL( ETrue, KCreateScrollBarFrameL ); + + iEikEdwin->AknEditorCurrentInputMode(); + _LIT( KAknEditorCurrentInputMode, + "Class CEikEdwin Function AknEditorCurrentInputMode tested" ); + AssertTrueL( ETrue, KAknEditorCurrentInputMode ); + + iEikEdwin->CreateTextViewL(); + _LIT( KCreateTextViewL, + "Class CEikEdwin Function CreateTextViewL tested" ); + AssertTrueL( ETrue, KCreateTextViewL ); + + iEikEdwin->SelectionLength(); + _LIT( KSelectionLength, + "Class CEikEdwin Function SelectionLength tested" ); + AssertTrueL( ETrue, KSelectionLength ); + + iEikEdwin->EnableCcpuSupportL( ETrue ); + _LIT( KEnableCcpuSupportL, + "Class CEikEdwin Function EnableCcpuSupportL tested" ); + AssertTrueL( ETrue, KEnableCcpuSupportL ); + + iEikEdwin->CanUndo(); + _LIT( KCanUndo, + "Class CEikEdwin Function CanUndo tested" ); + AssertTrueL( ETrue, KCanUndo ); + + iEikEdwin->CcpuCanCopy(); + _LIT( KCcpuCanCopy, + "Class CEikEdwin Function CcpuCanCopy tested" ); + AssertTrueL( ETrue, KCcpuCanCopy ); + + iEikEdwin->CcpuCanCut(); + _LIT( KCcpuCanCut, + "Class CEikEdwin Function CcpuCanCut tested" ); + AssertTrueL( ETrue, KCcpuCanCut ); + + iEikEdwin->CcpuCanPaste(); + _LIT( KCcpuCanPaste, + "Class CEikEdwin Function CcpuCanPaste tested" ); + AssertTrueL( ETrue, KCcpuCanPaste ); + + iEikEdwin->CcpuCanUndo(); + _LIT( KCcpuCanUndo, + "Class CEikEdwin Function CcpuCanUndo tested" ); + AssertTrueL( ETrue, KCcpuCanUndo ); + + iEikEdwin->CcpuIsFocused(); + _LIT( KCcpuIsFocused, + "Class CEikEdwin Function CcpuIsFocused tested" ); + AssertTrueL( ETrue, KCcpuIsFocused ); + + iEikEdwin->CcpuCopyL(); + _LIT( KCcpuCopyL, + "Class CEikEdwin Function CCcpuCopyL tested" ); + AssertTrueL( ETrue, KCcpuCopyL ); + + iEikEdwin->CcpuCutL(); + _LIT( KCcpuCutL, + "Class CEikEdwin Function CcpuCutL tested" ); + AssertTrueL( ETrue, KCcpuCutL ); + + TRAP_IGNORE( iEikEdwin->CcpuPasteL() ); + + iEikEdwin->CcpuUndoL(); + _LIT( KCcpuUndoL, + "Class CEikEdwin Function CcpuUndoL tested" ); + AssertTrueL( ETrue, KCcpuUndoL ); + + iEikEdwin->CountWords(); + _LIT( KCountWords, + "Class CEikEdwin Function CountWords tested" ); + AssertTrueL( ETrue, KCountWords ); + + iEikEdwin->FocusChanged( EDrawNow ); + _LIT( KFocusChanged, + "Class CEikEdwin Function FocusChanged tested" ); + AssertTrueL( ETrue, KFocusChanged ); + + _LIT( Kstr, " " ); + TDesC16 tmp = Kstr; + iEikEdwin->FindL( &tmp, 0 ); + _LIT( KFindL, + "Class CEikEdwin Function FindL tested" ); + AssertTrueL( ETrue, KFindL ); + + iEikEdwin->GetTextInHBufL(); + _LIT( KGetTextInHBufL, + "Class CEikEdwin Function GetTextInHBufL tested" ); + AssertTrueL( ETrue, KGetTextInHBufL ); + + iEikEdwin->SetDimmed( ETrue ); + _LIT( KSetDimmed, + "Class CEikEdwin Function SetDimmed tested" ); + AssertTrueL( ETrue, KSetDimmed ); + + + iEikEdwin->LayoutWidth(); + _LIT( KLayoutWidth, + "Class CEikEdwin Function LayoutWidth tested" ); + AssertTrueL( ETrue, KLayoutWidth ); + + iEikEdwin->SetMaximumHeight( 10 ); + _LIT( KSetMaximumHeight, + "Class CEikEdwin Function SetMaximumHeight tested" ); + AssertTrueL( ETrue, KSetMaximumHeight ); + + iEikEdwin->SetMinimumHeight( 1 ); + _LIT( KSetMinimumHeight, + "Class CEikEdwin Function SetMinimumHeight tested" ); + AssertTrueL( ETrue, KSetMinimumHeight ); + + iEikEdwin->MaximumHeightInLines(); + _LIT( KMaximumHeightInLines, + "Class CEikEdwin Function MaximumHeightInLines tested" ); + AssertTrueL( ETrue, KMaximumHeightInLines ); + + iEikEdwin->SetAknEditorCurrentCase( 1 ); + _LIT( KSetAknEditorCurrentCase, + "Class CEikEdwin Function SetAknEditorCurrentCase tested" ); + AssertTrueL( ETrue, KSetAknEditorCurrentCase ); + + iEikEdwin->SetAknEditorCurrentInputMode( 1 ); + _LIT( KSetAknEditorCurrentInputMode, + "Class CEikEdwin Function SetAknEditorCurrentInputMode tested" ); + AssertTrueL( ETrue, KSetAknEditorCurrentInputMode ); + + iEikEdwin->SetAknEditorLocalLanguage( ELangEnglish ); + _LIT( KSetAknEditorLocalLanguage, + "Class CEikEdwin Function SetAknEditorLocalLanguage tested" ); + AssertTrueL( ETrue, KSetAknEditorLocalLanguage ); + + iEikEdwin->SetAlignment( 1 ); + _LIT( KSetAlignment, + "Class CEikEdwin Function SetAlignment tested" ); + AssertTrueL( ETrue, KSetAlignment ); + + iEikEdwin->SetAllowPictures( ETrue ); + _LIT( KSetAllowPictures, + "Class CEikEdwin Function SetAllowPictures tested" ); + AssertTrueL( ETrue, KSetAllowPictures ); + + iEikEdwin->SetAllowUndo( ETrue ); + _LIT( KSetAllowUndo, + "Class CEikEdwin Function SetAllowUndo tested" ); + AssertTrueL( ETrue, KSetAllowUndo ); + + iEikEdwin->AddFlagToUserFlags( 10 ); + _LIT( KAddFlagToUserFlags, + "Class CEikEdwin Function AddFlagToUserFlags tested" ); + AssertTrueL( ETrue, KAddFlagToUserFlags ); + + iEikEdwin->UserFlags(); + _LIT( KUserFlags, + "Class CEikEdwin Function UserFlags tested" ); + AssertTrueL( ETrue, KUserFlags ); + + TRgb rgb; + rgb.SetGreen( 0 ); + iEikEdwin->SetBackgroundColorL( rgb ); + _LIT( KSetBackgroundColorL, + "Class CEikEdwin Function SetBackgroundColorL tested" ); + AssertTrueL( ETrue, KSetBackgroundColorL ); + + TMargins8 margins; + margins.SetAllValuesTo( 10 ); + iEikEdwin->SetBorderViewMargins( margins ); + _LIT( KSetBorderViewMargins, + "Class CEikEdwin Function SetBorderViewMargins tested" ); + AssertTrueL( ETrue, KSetBorderViewMargins ); + + TGulBorder gulBorder; + CEikRichTextEditor* eikRichTextEditor = new ( ELeave ) + CEikRichTextEditor( gulBorder ); + CleanupStack::PushL( eikRichTextEditor ); + + eikRichTextEditor->ConstructL( iContainer, 2, 40, + EAknEditorFlagDefault ); + + CGlobalText* globalText = eikRichTextEditor->GlobalText(); + + iEikEdwin->SetDocumentContentL( *globalText, CEikEdwin::ECopyText ); + _LIT( KSetDocumentContentL, + "Class CEikEdwin Function SetDocumentContentL tested" ); + AssertTrueL( ETrue, KSetDocumentContentL ); + CleanupStack::PopAndDestroy( eikRichTextEditor ); + + iEikEdwin->SetDocumentOwnership( CEikEdwin::EOwnsText ); + _LIT( KSetDocumentOwnership, + "Class CEikEdwin Function SetDocumentOwnership tested" ); + AssertTrueL( ETrue, KSetDocumentOwnership ); + + TCoeInputCapabilities coeInputCapabilities; + iEikEdwin->SetInputCapabilitiesL( coeInputCapabilities ); + _LIT( KSetInputCapabilitiesL, + "Class CEikEdwin Function SetInputCapabilitiesL tested" ); + AssertTrueL( ETrue, KSetInputCapabilitiesL ); + + TNonPrintingCharVisibility charVisibility; + charVisibility.SetNoneVisible(); + iEikEdwin->SetNonPrintingCharsVisibility( charVisibility ); + _LIT( KSetNonPrintingCharsVisibility, + "Class CEikEdwin Function SetNonPrintingCharsVisibility tested" ); + AssertTrueL( ETrue, KSetNonPrintingCharsVisibility ); + + iEikEdwin->SetSkinBackgroundControlContextL( NULL ); + _LIT( KSetSkinBackgroundControlContextL, + "Class CEikEdwin Function SetSkinBackgroundControlContextL tested" ); + AssertTrueL( ETrue, KSetSkinBackgroundControlContextL ); + + + iEikEdwin->NonPrintingCharsVisibility(); + _LIT( KNonPrintingCharsVisibility, + "Class CEikEdwin Function NonPrintingCharsVisibility tested" ); + AssertTrueL( ETrue, KNonPrintingCharsVisibility ); + + iEikEdwin->NotifyEditorStateObserverOfStateChangeL(); + _LIT( KNotifyEditorStateObserverOfStateChangeL, + "CEikEdwin Function NotifyEditorStateObserverOfStateChangeL tested" ); + AssertTrueL( ETrue, KNotifyEditorStateObserverOfStateChangeL ); + + iEikEdwin->NotifyNewDocumentL(); + _LIT( KNotifyNewDocumentL, + "Class CEikEdwin Function NotifyNewDocumentL tested" ); + AssertTrueL( ETrue, KNotifyNewDocumentL ); + + + iEikEdwin->SetOnlyASCIIChars( EFalse ); + _LIT( KSetOnlyASCIIChars, + "Class CEikEdwin Function SetOnlyASCIIChars tested" ); + AssertTrueL( ETrue, KSetOnlyASCIIChars ); + + iEikEdwin->SetPasteFromIrStore( ETrue ); + _LIT( KSetPasteFromIrStore, + "Class CEikEdwin Function SetPasteFromIrStore tested" ); + AssertTrueL( ETrue, KSetPasteFromIrStore ); + + TCallBack callBack; + iEikEdwin->SetPictographAnimationCallBack( callBack ); + _LIT( KSetPictographAnimationCallBack, + "Class CEikEdwin Function SetPictographAnimationCallBack tested" ); + AssertTrueL( ETrue, KSetPictographAnimationCallBack ); + + iEikEdwin->SetReadOnly( EFalse ); + _LIT( KSetReadOnly, + "Class CEikEdwin Function SetReadOnly tested" ); + AssertTrueL( ETrue, KSetReadOnly ); + + iEikEdwin->SetRightWrapGutter( 0 ); + _LIT( KSetRightWrapGutter, + "Class CEikEdwin Function SetRightWrapGutter tested" ); + AssertTrueL( ETrue, KSetRightWrapGutter ); + + iEikEdwin->SetTextLimit( 30 ); + _LIT( KSetTextLimit, + "Class CEikEdwin Function SetTextLimit tested" ); + AssertTrueL( ETrue, KSetTextLimit ); + + iEikEdwin->SetTextSkinColorIdL( 0 ); + _LIT( KSetTextSkinColorIdL, + "Class CEikEdwin Function SetTextSkinColorIdL tested" ); + AssertTrueL( ETrue, KSetTextSkinColorIdL ); + + TCursorSelection cursorSelection; + iEikEdwin->SetUndoBufferL( cursorSelection ); + _LIT( KSetUndoBufferL, + "Class CEikEdwin Function SetUndoBufferL tested" ); + AssertTrueL( ETrue, KSetUndoBufferL ); + + iEikEdwin->SetUndoableText( cursorSelection ); + _LIT( KSetUndoableText, + "Class CEikEdwin Function SetUndoableText tested" ); + AssertTrueL( ETrue, KSetUndoableText ); + + + iEikEdwin->SetUpperFullFormattingLength( 10 ); + _LIT( KSetUpperFullFormattingLength, + "Class CEikEdwin Function SetUpperFullFormattingLength tested" ); + AssertTrueL( ETrue, KSetUpperFullFormattingLength ); + + iEikEdwin->SetWordDelimiters( ETrue, ETrue ); + _LIT( KSetWordDelimiters, + "Class CEikEdwin Function SetWordDelimiters tested" ); + AssertTrueL( ETrue, KSetWordDelimiters ); + + iEikEdwin->SetWordWrapL( ETrue ); + _LIT( KSetWordWrapL, + "Class CEikEdwin Function SetWordWrapL tested" ); + AssertTrueL( ETrue, KSetWordWrapL ); + + iEikEdwin->SetWysiwygModeOff(); + _LIT( KSetWysiwygModeOff, + "Class CEikEdwin Function SetWysiwygModeOff tested" ); + AssertTrueL( ETrue, KSetWysiwygModeOff ); + + CGraphicsDevice* device = CCoeEnv::Static()->ScreenDevice(); + iEikEdwin->SetWysiwygModeOn( 10, + STATIC_CAST( MGraphicsDeviceMap*, device ) ); + + iEikEdwin->UpdateCurrentFieldL(); + _LIT( KUpdateCurrentFieldL, + "Class CEikEdwin Function UpdateCurrentFieldL tested" ); + AssertTrueL( ETrue, KUpdateCurrentFieldL ); + + iEikEdwin->UpdateLayoutWidth( 10 ); + _LIT( KUpdateLayoutWidth, + "Class CEikEdwin Function UpdateLayoutWidth tested" ); + AssertTrueL( ETrue, KUpdateLayoutWidth ); + + TBCTestIrFactory irFactory; + iEikEnv->SetIrFactory( &irFactory ); + + iEikEdwin->SendDataOverIrL(); + _LIT( KSendOverIr, "CEikEdwin::SendDataOverIrL" ); + AssertTrueL( ETrue, KSendOverIr ); + + iEikEdwin->ReceiveDataOverIrL(); + _LIT( KReceiveOverIr, "CEikEdwin::ReceiveDataOverIrL" ); + AssertTrueL( ETrue, KReceiveOverIr ); + + iEikEnv->SetIrFactory( NULL ); + + TRAP_IGNORE( iEikEdwin->RunCharMapDialogL() ); + + TZoomFactor zoomFactor; + iEikEdwin->SetZoomFactorL( &zoomFactor ); + _LIT( KSetZoomFactorL, + "Class CEikEdwin Function SetZoomFactorL tested" ); + AssertTrueL( ETrue, KSetZoomFactorL ); + + iEikEdwin->FindTextL( &tmp, 10, 0 ); + iEikEdwin->FindTextL( &tmp, 10, 1 ); + _LIT( KFindTextL, + "Class CEikEdwin Function FindTextL tested" ); + AssertTrueL( ETrue, KFindTextL ); + + iEikEdwin->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + iEikEdwin->HandleResourceChange( KEikMessageVirtualCursorStateChange ); + iEikEdwin->HandleResourceChange( + KEikMessageCaptionedControlEditableStateChange ); + iEikEdwin->HandleResourceChange( + KEikMessageCaptionedControlNotEditableStateChange ); + iEikEdwin->HandleResourceChange( KEikInputLanguageChange ); + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + iEikEdwin->GetColorUseListL( *indexArray ); + _LIT( KGetColorUseListL, + "Class CEikEdwin Function GetColorUseListL tested" ); + AssertTrueL( ETrue, KGetColorUseListL ); + + CleanupStack::PopAndDestroy( indexArray ); + + TBuf<500>* findText = new( ELeave ) TBuf<500>; + CleanupStack::PushL( findText ); + iEikEdwin->GetFindText( findText ); + _LIT( KGetFindText, + "Class CEikEdwin Function GetFindText tested" ); + AssertTrueL( ETrue, KGetFindText ); + CleanupStack::PopAndDestroy( findText ); + + TInt tmpstart; + TInt tmplength; + iEikEdwin->GetWordInfo( 0, tmpstart, tmplength ); + _LIT( KGetWordInfo, + "Class CEikEdwin Function GetWordInfo tested" ); + AssertTrueL( ETrue, KGetWordInfo ); + + TPointerEvent pointerEvent; + pointerEvent.iType = TPointerEvent::EButton1Down; + iEikEdwin->HandlePointerEventL( pointerEvent ); + pointerEvent.iType = TPointerEvent::EButton1Up; + iEikEdwin->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikEdwin Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + CEikScrollBar* eikScrollBar = new ( ELeave ) CEikScrollBar(); + CleanupStack::PushL( eikScrollBar ); + eikScrollBar->ConstructL(STATIC_CAST( MEikScrollBarObserver*, iEikEdwin ), + iContainer, CEikScrollBar::EVertical, + 20, CEikScrollBar::EEikScrollBarDefaultBehaviour + ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollLeft ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollRight ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollPageLeft ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollPageRight ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollThumbDragHoriz ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollDown ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollPageUp ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollPageDown ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollTop ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollBottom ); + iEikEdwin->HandleScrollEventL( eikScrollBar, EEikScrollUp ); + _LIT( KHandleScrollEventL, + "Class CEikEdwin Function HandleScrollEventL tested" ); + AssertTrueL( ETrue, KHandleScrollEventL ); + + CleanupStack::PopAndDestroy( eikScrollBar ); + iEikEdwin->HandleTextChangedL(); + _LIT( KHandleTextChangedL, + "Class CEikEdwin Function HandleTextChangedL tested" ); + AssertTrueL( ETrue, KHandleTextChangedL ); + + iEikEdwin->IdleL( iEikEdwin ); + _LIT( KIdleL, + "Class CEikEdwin Function IdleL tested" ); + AssertTrueL( ETrue, KIdleL ); + + iEikEdwin->InsertDeleteCharsL( 0, tmp, cursorSelection ); + _LIT( KInsertDeleteCharsL, + "Class CEikEdwin Function InsertDeleteCharsL tested" ); + AssertTrueL( ETrue, KInsertDeleteCharsL ); + + iEikEdwin->MoveCursorL( TCursorPosition::EFLeft, ETrue ); + _LIT( KMoveCursorL, + "Class CEikEdwin Function MoveCursorL tested" ); + AssertTrueL( ETrue, KMoveCursorL ); + + iEikEdwin->RemoveFlagFromUserFlags( 1 ); + _LIT( KRemoveFlagFromUserFlags, + "Class CEikEdwin Function RemoveFlagFromUserFlags tested" ); + AssertTrueL( ETrue, KRemoveFlagFromUserFlags ); + + SEdwinFindModel findModel; + _LIT( KNChar, "\n" ); + _LIT( KFChar, "\f" ); + TBuf<1> text( KNChar ); + TBuf<1> replaceText( KFChar ); + findModel.iFlags = 0; + findModel.iText = text; + findModel.iReplaceText = replaceText; + findModel.iReplaceOption = EReplaceAll; + iEikEdwin->ReplaceAllL( &findModel ); + _LIT( KReplaceAllL, + "Class CEikEdwin Function ReplaceAllL tested" ); + AssertTrueL( ETrue, KReplaceAllL ); + + iEikEdwin->SelectAllL(); + _LIT( KSelectAllL, + "Class CEikEdwin Function SelectAllL tested" ); + AssertTrueL( ETrue, KSelectAllL ); + + iEikEdwin->LowerPartialFormattingLength(); + _LIT( KLowerPartialFormattingLength, + "Class CEikEdwin Function LowerPartialFormattingLength tested" ); + AssertTrueL( ETrue, KLowerPartialFormattingLength ); + + iEikEdwin->Margins(); + _LIT( KMargins, + "Class CEikEdwin Function Margins tested" ); + AssertTrueL( ETrue, KMargins ); + + iEikEdwin->MaximumHeight(); + _LIT( KMaximumHeight, + "Class CEikEdwin Function MaximumHeight tested" ); + AssertTrueL( ETrue, KMaximumHeight ); + + iEikEdwin->MinimumHeight(); + _LIT( KMinimumHeight, + "Class CEikEdwin Function MinimumHeight tested" ); + AssertTrueL( ETrue, KMinimumHeight ); + + iEikEdwin->MinimumSize(); + _LIT( KMinimumSize, + "Class CEikEdwin Function MinimumSize tested" ); + AssertTrueL( ETrue, KMinimumSize ); + delete iEikEdwin; + iEikEdwin = NULL; + + CSubEikEdwin* subEikEdwin = new ( ELeave )CSubEikEdwin(); + CleanupStack::PushL( subEikEdwin ); + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_EDWIN ); + subEikEdwin->ConstructFromResourceL( resourceReader ); + + CleanupStack::PopAndDestroy();//resourceReader + subEikEdwin->SetContainerWindowL( *iContainer ); + subEikEdwin->TestFunctionL(); + _LIT( KCancelSelectionL, + "Class CEikEdwin Function CancelSelectionL tested" ); + AssertTrueL( ETrue, KCancelSelectionL ); + _LIT( KTrappedSizeChanged, + "Class CEikEdwin Function TrappedSizeChanged tested" ); + AssertTrueL( ETrue, KTrappedSizeChanged ); + _LIT( KHandleTextPastedL, + "Class CEikEdwin Function HandleTextPastedL tested" ); + AssertTrueL( ETrue, KHandleTextPastedL ); + _LIT( KPlaceDataOnClipboardL, + "Class CEikEdwin Function PlaceDataOnClipboardL tested" ); + AssertTrueL( ETrue, KPlaceDataOnClipboardL ); + _LIT( KSetLineCursorDetailsL, + "Class CEikEdwin Function SetLineCursorDetailsL tested" ); + AssertTrueL( ETrue, KSetLineCursorDetailsL ); + + CleanupStack::PopAndDestroy( subEikEdwin ); + + iEikEdwin = new(ELeave)CEikEdwin(); + iEikEdwin->SetContainerWindowL(*iContainer ); + iEikEdwin->ConstructL(0,200,200,1); + iEikEdwin->CreateTextViewL(); + _LIT(t,"test"); + iEikEdwin->SetTextL(&t); + + iEikEdwin->UpdateAllFieldsL(); + _LIT( KUpdateAllFieldsL, + "Class CEikEdwin Function UpdateAllFieldsL tested" ); + AssertTrueL( ETrue, KUpdateAllFieldsL ); + + iEikEdwin->ReplaceL( &findModel ); + _LIT( KReplaceL, + "Class CEikEdwin Function ReplaceL tested" ); + AssertTrueL( ETrue, KReplaceL ); + + _LIT( KFileName, "C:\\bctestlog\\bctestlog.txt" ); + TFileName aFileName( KFileName ); + iEikEdwin->InsertFromTextFileL( aFileName, CPlainText::EOrganiseByLine ); + _LIT( KInsertFromTextFile, "CEikEdwin::InsertFromTextFileL" ); + AssertTrueL( ETrue, KInsertFromTextFile ); + + CDateTimeField* dtField = new (ELeave) CDateTimeField(); + iEikEdwin->InsertFieldL( dtField,dtField->Type() ); + _LIT( KInsertFieldL, + "Class CEikEdwin Function InsertFieldL tested" ); + AssertTrueL(ETrue ,KInsertFieldL ); + + delete iEikEdwin; + iEikEdwin = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikFixdPointEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikFixedPointEditorL() + { + _LIT( KConstructL, + "Class CEikFixedPointEditor Function ConstructL tested" ); + _LIT( KConstructFromResourceL, + "Class CEikFixedPointEditor Function ConstructFromResourceL tested" ); + _LIT( KSetDecimalPlaces, + "Class CEikFixedPointEditor Function SetDecimalPlaces tested" ); + _LIT( KDecimalPlaces, + "Class CEikFixedPointEditor Function DecimalPlaces tested" ); + _LIT( KSetMinMax, + "Class CEikFixedPointEditor Function SetMinMax tested" ); + _LIT( KGetMinMax, + "Class CEikFixedPointEditor Function GetMinMax tested" ); + _LIT( KSetValueL, + "Class CEikFixedPointEditor Function SetValueL tested" ); + _LIT( KGetValueAsInteger, + "Class CEikFixedPointEditor Function GetValueAsInteger tested" ); + _LIT( KValue, + "Class CEikFixedPointEditor Function Value tested" ); + _LIT( KInputCapabilities, + "Class CEikFixedPointEditor Function InputCapabilities tested" ); + _LIT( KPrepareForFocusLossL, + "Class CEikFixedPointEditor Function PrepareForFocusLossL tested" ); + _LIT( KOfferKeyEventL, + "Class CEikFixedPointEditor Function OfferKeyEventL tested" ); + _LIT( KHandlePointerEventL, + "Class CEikFixedPointEditor Function HandlePointerEventL tested" ); + _LIT( KHandleResourceChange, + "Class CEikFixedPointEditor Function HandleResourceChange tested" ); + + iEikFixedPointEditor = new ( ELeave ) CEikFixedPointEditor(); + AssertTrueL( ETrue, KConstructL ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTEST_EDITOR_EDWIN ); + iEikFixedPointEditor->ConstructFromResourceL( resourceReader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //resourceReader + iEikFixedPointEditor->SetContainerWindowL( *iContainer ); + iEikFixedPointEditor->ActivateL(); + + iEikFixedPointEditor->SetDecimalPlaces( 1 ); + AssertTrueL( ETrue, KSetDecimalPlaces ); + + iEikFixedPointEditor->DecimalPlaces(); + AssertTrueL( ETrue, KDecimalPlaces ); + + iEikFixedPointEditor->SetMinMax( 1,10 ); + AssertTrueL( ETrue, KSetMinMax ); + + TInt tmpmin; + TInt tmpmax; + iEikFixedPointEditor->GetMinMax( tmpmin, tmpmax ); + AssertTrueL( ETrue, KGetMinMax ); + + TInt tmpvalue = 10; + iEikFixedPointEditor->SetValueL( &tmpvalue ); + AssertTrueL( ETrue, KSetValueL ); + + TInt avalue; + iEikFixedPointEditor->GetValueAsInteger( avalue ); + AssertTrueL( ETrue, KGetValueAsInteger ); + + iEikFixedPointEditor->Value(); + AssertTrueL( ETrue, KValue ); + + iEikFixedPointEditor->PrepareForFocusLossL(); + AssertTrueL( ETrue, KPrepareForFocusLossL ); + + iEikFixedPointEditor->InputCapabilities(); + AssertTrueL( ETrue, KInputCapabilities ); + + TKeyEvent keyEvent; + TPointerEvent pointerEvent; + iEikFixedPointEditor->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iEikFixedPointEditor->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iEikFixedPointEditor->HandleResourceChange( KEikInputLanguageChange ); + AssertTrueL( ETrue, KHandleResourceChange ); + + delete iEikFixedPointEditor; + iEikFixedPointEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikFloatingPointEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikFloatingPointEditorL() + { + _LIT( KConstructFromResourceL, + "Class CEikFloatingPointEditor Function ConstructFromResourceL tested" ); + _LIT( KSetMinMax, + "Class CEikFloatingPointEditor Function SetMinMax tested" ); + _LIT( KGetMinMax, + "Class CEikFloatingPointEditor Function GetMinMax tested" ); + _LIT( KSetValueL, + "Class CEikFloatingPointEditor Function SetValueL tested" ); + _LIT( KGetValueAsReal, + "Class CEikFloatingPointEditor Function GetValueAsReal tested" ); + _LIT( KValue, + "Class CEikFloatingPointEditor Function Value tested" ); + _LIT( KPrepareForFocusLossL, + "Class CEikFloatingPointEditor Function PrepareForFocusLossL tested" ); + _LIT( KInputCapabilities, + "Class CEikFloatingPointEditor Function InputCapabilities tested" ); + _LIT( KOfferKeyEventL, + "Class CEikFloatingPointEditor Function OfferKeyEventL tested" ); + _LIT( KHandlePointerEventL, + "Class CEikFloatingPointEditor Function HandlePointerEventL tested" ); + _LIT( KHandleResourceChange, + "Class CEikFloatingPointEditor Function HandleResourceChange tested" ); + + iEikFloatingPointEditor = new ( ELeave ) CEikFloatingPointEditor(); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTEST_EDITOR_EIKEDITOR ); + iEikFloatingPointEditor->ConstructFromResourceL( resourceReader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //resourceReader + iEikFloatingPointEditor->SetContainerWindowL( *iContainer ); + + TRAP_IGNORE( iEikFloatingPointEditor->PrepareForFocusLossL() ); + AssertTrueL( ETrue,KPrepareForFocusLossL ); + + iEikFloatingPointEditor->ActivateL(); + + iEikFloatingPointEditor->SetMinMax( 1, 10 ); + AssertTrueL( ETrue, KSetMinMax ); + + TReal tmpmin; + TReal tmpmax; + iEikFloatingPointEditor->GetMinMax( tmpmin, tmpmax ); + AssertTrueL( ETrue, KGetMinMax ); + + TReal tmpvalue = 10; + iEikFloatingPointEditor->SetValueL( &tmpvalue ); + AssertTrueL( ETrue, KSetValueL ); + + TReal avalue = CAknNumericEdwin::EValueValid; + iEikFloatingPointEditor->GetValueAsReal( avalue ); + AssertTrueL( ETrue, KGetValueAsReal ); + + iEikFloatingPointEditor->Value(); + AssertTrueL( ETrue, KValue ); + + iEikFloatingPointEditor->InputCapabilities(); + AssertTrueL( ETrue, KInputCapabilities ); + + TKeyEvent keyEvent; + TPointerEvent pointerEvent; + iEikFloatingPointEditor->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iEikFloatingPointEditor->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iEikFloatingPointEditor->HandleResourceChange( KEikInputLanguageChange ); + AssertTrueL( ETrue, KHandleResourceChange ); + + + delete iEikFloatingPointEditor; + iEikFloatingPointEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikRichTextEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikRichTextEditorL() + { + _LIT( KCEikRichTextEditor, + "Class CEikRichTextEditor Function CEikRichTextEditor tested" ); + _LIT( KConstructL, + "Class CEikRichTextEditor Function ConstructL tested" ); + _LIT( KRichText, + "Class CEikRichTextEditor Function RichText tested" ); + _LIT( KConstructFromResourceL, + "Class CEikRichTextEditor Function ConstructFromResourceL tested" ); + _LIT( KReEditObjectL, + "Class CEikRichTextEditor Function ReEditObjectL tested" ); + _LIT( KObjectCursorPos, + "Class CEikRichTextEditor Function ObjectCursorPos tested" ); + _LIT( KCheckForObjectL, + "Class CEikRichTextEditor Function CheckForObjectL tested" ); + _LIT( KEditPictureFormatL, + "Class CEikRichTextEditor Function EditPictureFormatL tested" ); + _LIT( KPictureFormatChangedL, + "Class CEikRichTextEditor Function PictureFormatChangedL tested" ); + _LIT( KUpdatePictureFormatL, + "Class CEikRichTextEditor Function UpdatePictureFormatL tested" ); + _LIT( KActivateL, + "Class CEikRichTextEditor Function ActivateL tested" ); + _LIT( KSetDefaultIconicDoorSize, + "Class CEikRichTextEditor Function SetDefaultIconicDoorSize tested" ); + _LIT( KDefaultIconicDoorSize, + "Class CEikRichTextEditor Function DefaultIconicDoorSize tested" ); + _LIT( KUpdatePictureSizeL, + "Class CEikRichTextEditor Function UpdatePictureSizeL tested" ); + _LIT( KSetParserObserver, + "Class CEikRichTextEditor Function SetParserObserver tested" ); + _LIT( KSetPhoneNumberGrouping, + "Class CEikRichTextEditor Function SetPhoneNumberGrouping tested" ); + _LIT( KSetOfferKeyEventL, + "Class CEikRichTextEditor Function OfferKeyEventL tested" ); + _LIT( KHandlePointerEventL, + "Class CEikRichTextEditor Function HandlePointerEventL tested" ); + + _LIT( KRefreshParsersL, + "Class CEikRichTextEditor Function RefreshParsersL tested" ); + _LIT( KCopyDocumentContentL, + "Class CEikRichTextEditor Function CopyDocumentContentL tested" ); + + TGulBorder gulBorder; + iEikRichTextEditor = new ( ELeave ) CEikRichTextEditor( gulBorder ); + AssertTrueL( ETrue, KCEikRichTextEditor ); + + iEikRichTextEditor->ConstructL( iContainer, 2, 40, + EAknEditorFlagDefault ); + AssertTrueL( ETrue, KConstructL ); + delete iEikRichTextEditor; + iEikRichTextEditor = NULL; + + iEikRichTextEditor = new ( ELeave ) CEikRichTextEditor(); + AssertTrueL( ETrue, KCEikRichTextEditor ); + + CRichText* richText = iEikRichTextEditor->RichText(); + AssertTrueL( ETrue, KRichText ); + + delete iEikRichTextEditor; + iEikRichTextEditor = NULL; + + CTmpCDlgDialogFactory* tmpCDlgDialogFactory = CTmpCDlgDialogFactory::NewL(); + iEikEnv->SetCDlgDialogFactory( tmpCDlgDialogFactory ); + CleanupStack::PushL( tmpCDlgDialogFactory ); + + iEikRichTextEditor = new ( ELeave ) CEikRichTextEditor( gulBorder ); + iEikRichTextEditor->SetContainerWindowL( *iContainer ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_RICHEDITOR ); + iEikRichTextEditor->ConstructFromResourceL( resourceReader ); + CleanupStack::PopAndDestroy();//resourceReader + AssertTrueL( ETrue, KConstructFromResourceL ); + + iEikRichTextEditor->ActivateL(); + AssertTrueL( ETrue, KActivateL ); + + TRAP_IGNORE( iEikRichTextEditor->InsertObjectL() ); + _LIT( KRichEd1, "CEikRichTextEditor::InsertObjectL" ); + AssertTrueL( ETrue, KRichEd1 ); + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TRAP_IGNORE( iEikRichTextEditor->InsertObjectL( KUidPictureTypeDoor, bmp ) ); + CleanupStack::PopAndDestroy( bmp ); + _LIT( KRichEd2, "CEikRichTextEditor::InsertObjectL with pictureType" ); + AssertTrueL( ETrue, KRichEd2 ); + + _LIT( KAppDllName, "bctestutil.dll" ); + TUid dllId = TUid::Uid( 0x20004742 ); + TRAP_IGNORE( iEikRichTextEditor->InsertObjectL( KAppDllName, dllId, + CEikRichTextEditor::EAlwaysIconic ) ); + _LIT( KRichEd3, "CEikRichTextEditor::InsertObjectL with aAppDllName" ); + AssertTrueL( ETrue, KRichEd3 ); + + iEikRichTextEditor->ReEditObjectL(); + AssertTrueL( ETrue, KReEditObjectL ); + + iEikRichTextEditor->ObjectCursorPos(); + AssertTrueL( ETrue, KObjectCursorPos ); + + iEikRichTextEditor->CheckForObjectL(); + AssertTrueL( ETrue, KCheckForObjectL ); + + iEikRichTextEditor->EditPictureFormatL(); + AssertTrueL( ETrue, KEditPictureFormatL ); + + iEikRichTextEditor->PictureFormatChangedL(); + AssertTrueL( ETrue, KPictureFormatChangedL ); + + iEikRichTextEditor->UpdatePictureFormatL(); + AssertTrueL( ETrue, KUpdatePictureFormatL ); + + iEikRichTextEditor->UpdatePictureFormatL( 0, 10 ); + AssertTrueL( ETrue, KUpdatePictureFormatL ); + + TSize tmpsize; + tmpsize.iWidth = 10; + tmpsize.iHeight = 10; + iEikRichTextEditor->SetDefaultIconicDoorSize( tmpsize ); + AssertTrueL( ETrue, KSetDefaultIconicDoorSize ); + + + iEikRichTextEditor->DefaultIconicDoorSize(); + AssertTrueL( ETrue, KDefaultIconicDoorSize ); + + iEikRichTextEditor->UpdatePictureSizeL(); + AssertTrueL( ETrue, KUpdatePictureSizeL ); + + iEikRichTextEditor->UpdatePictureSizeL( 0, 10 ); + AssertTrueL( ETrue, KUpdatePictureSizeL ); + + + CMClassTmp* mclasstmp = new ( ELeave ) CMClassTmp(); + CleanupStack::PushL( mclasstmp ); + iEikRichTextEditor->SetParserObserver( STATIC_CAST( + MEikRichTextEditorParserObserver*, mclasstmp )); + AssertTrueL( ETrue, KSetParserObserver ); + + CleanupStack::PopAndDestroy( mclasstmp ); + + iEikRichTextEditor->SetPhoneNumberGrouping( ETrue ); + AssertTrueL( ETrue, KSetPhoneNumberGrouping ); + + TKeyEvent keyEvent; + TPointerEvent pointerEvent; + iEikRichTextEditor->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KSetOfferKeyEventL ); + + iEikRichTextEditor->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iEikRichTextEditor->RefreshParsersL(); + AssertTrueL( ETrue, KRefreshParsersL ); + + CGlobalText* ain = iEikRichTextEditor->GlobalText(); + iEikRichTextEditor->CopyDocumentContentL( *ain, *ain ); + AssertTrueL( ETrue, KCopyDocumentContentL ); + + delete iEikRichTextEditor; + iEikRichTextEditor = NULL; + + CSubEikRichTextEditor* eikRichTextEditor = new ( ELeave ) + CSubEikRichTextEditor(); + CleanupStack::PushL( eikRichTextEditor ); + eikRichTextEditor->ConstructL( iContainer, 2, 40, + EAknEditorFlagDefault ); + _LIT( KStreamName, "C:\\bctestlog\\bctestlog.txt" ); + RFs& tempServer = iEikEnv->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + eikRichTextEditor->TestWriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy( &fWrite ); + CleanupStack::PopAndDestroy( eikRichTextEditor ); + CleanupStack::PopAndDestroy( tmpCDlgDialogFactory ); + iEikEnv->SetCDlgDialogFactory( NULL ); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikDurationEditor and CEikNumberEditor and +// CEikRangeEditor and CEikTimeOffsetEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikMfneSubClassL() + { + iEikDurationEditor = new ( ELeave ) CEikDurationEditor(); + _LIT( KCEikDurationEditor, + "Class CEikDurationEditor Function CEikDurationEditor tested" ); + AssertTrueL( ETrue, KCEikDurationEditor ); + + TTimeIntervalSeconds tmpmin = 0; + TTimeIntervalSeconds tmpmax = 1000; + TTimeIntervalSeconds tmpinit = 500; + + iEikDurationEditor->SetContainerWindowL( *iContainer ); + _LIT( KSetContainerWindowL, + "Class CEikDurationEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KSetContainerWindowL ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_DURATION ); + iEikDurationEditor->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "Class CEikDurationEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //resourceReader + + iEikDurationEditor->SetMinimumAndMaximum( tmpmin, tmpmax ); + _LIT( KSetMinimumAndMaximum, + "Class CEikDurationEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KSetMinimumAndMaximum ); + + iEikDurationEditor->SetDuration( tmpinit ); + _LIT( KSetDuration, + "Class CEikDurationEditor Function SetDuration tested" ); + AssertTrueL( ETrue, KSetDuration ); + + iEikDurationEditor->Duration(); + _LIT( KDuration, + "Class CEikDurationEditor Function Duration tested" ); + AssertTrueL( ETrue, KDuration ); + + iEikDurationEditor->PrepareForFocusLossL(); + _LIT( KPrepareForFocusLossL, + "Class CEikDurationEditor Function PrepareForFocusLossL tested" ); + AssertTrueL( ETrue, KPrepareForFocusLossL ); + + TPointerEvent pointerEvent; + iEikDurationEditor->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikDurationEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + TTimeIntervalSeconds min; + TTimeIntervalSeconds max; + iEikDurationEditor->GetMinimumAndMaximum( min, max ); + _LIT( KGetMinimumAndMaximum, + "Class CEikDurationEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KGetMinimumAndMaximum ); + + delete iEikDurationEditor; + iEikDurationEditor = NULL; + + iEikNumberEditor = new ( ELeave ) CEikNumberEditor(); + _LIT( KCEikNumberEditor, + "Class CEikNumberEditor Function CEikNumberEditor tested" ); + AssertTrueL( ETrue, KCEikNumberEditor ); + + TInt tmpMin = 0; + TInt tmpMax = 1000; + TInt tmpInit = 500; + + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_NUMBER ); + iEikNumberEditor->ConstructFromResourceL( resourceReader ); + _LIT( KCEikNumberEditorConstructFromResourceL, + "Class CEikNumberEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KCEikNumberEditorConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); //resourceReader + + iEikNumberEditor->SetContainerWindowL( *iContainer ); + _LIT( KCEikNumberEditorSetContainerWindowL, + "Class CEikNumberEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KCEikNumberEditorSetContainerWindowL ); + + iEikNumberEditor->SetMinimumAndMaximum( tmpMin, tmpMax ); + _LIT( KCEikNumberEditorSetMinimumAndMaximum, + "Class CEikNumberEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikNumberEditorSetMinimumAndMaximum ); + + iEikNumberEditor->SetNumber( tmpInit ); + _LIT( KSetNumber, + "Class CEikNumberEditor Function SetNumber tested" ); + AssertTrueL( ETrue, KSetNumber ); + + iEikNumberEditor->Number(); + _LIT( KNumber, + "Class CEikNumberEditor Function Number tested" ); + AssertTrueL( ETrue, KNumber ); + + + TInt tmpstart; + TInt tmpEnd; + iEikNumberEditor->GetMinimumAndMaximum( tmpstart, tmpEnd ); + _LIT( KCEikNumberEditorGetMinimumAndMaximum, + "Class CEikNumberEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikNumberEditorGetMinimumAndMaximum ); + + iEikNumberEditor->HandlePointerEventL( pointerEvent ); + + delete iEikNumberEditor; + iEikNumberEditor = NULL; + + SEikRange eikRange; + eikRange.iLowerLimit = 100; + eikRange.iUpperLimit = 1000; + + _LIT( Kstr, " " ); + TDesC buf = Kstr; + + iEikRangeEditor = new ( ELeave ) CEikRangeEditor(); + _LIT( KCEikRangeEditor, + "Class CEikRangeEditor Function CEikRangeEditor tested" ); + AssertTrueL( ETrue, KCEikRangeEditor ); + + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_RANGE ); + iEikRangeEditor->ConstructFromResourceL( resourceReader ); + _LIT( KCEikRangeEditorConstructFromResourceL, + "Class CEikRangeEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KCEikRangeEditorConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); //resourceReader + iEikRangeEditor->SetContainerWindowL( *iContainer ); + _LIT( KCEikRangeEditorSetContainerWindowL, + "Class CEikRangeEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KCEikRangeEditorSetContainerWindowL ); + + + iEikRangeEditor->SetMinimumAndMaximum( tmpMin, tmpMax ); + _LIT( KCEikRangeEditorSetMinimumAndMaximum, + "Class CEikRangeEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikRangeEditorSetMinimumAndMaximum ); + + iEikRangeEditor->SetRange( eikRange ); + _LIT( KSetRange, + "Class CEikRangeEditor Function SetRange tested" ); + AssertTrueL( ETrue, KSetRange ); + + iEikRangeEditor->Range(); + _LIT( KRange, + "Class CEikRangeEditor Function Range tested" ); + AssertTrueL( ETrue, KRange ); + + iEikRangeEditor->GetMinimumAndMaximum( tmpstart, tmpEnd ); + _LIT( KCEikRangeEditorGetMinimumAndMaximum, + "Class CEikRangeEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikRangeEditorGetMinimumAndMaximum ); + + iEikRangeEditor->HandlePointerEventL( pointerEvent ); + _LIT( KCEikRangeEditorHandlePointerEventL, + "Class CEikRangeEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KCEikRangeEditorHandlePointerEventL ); + + delete iEikRangeEditor; + iEikRangeEditor = NULL; + + iEikTimeOffsetEditor = new ( ELeave ) CEikTimeOffsetEditor(); + _LIT( KCEikTimeOffsetEditor, + "Class CEikTimeOffsetEditor Function CEikTimeOffsetEditor tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditor ); + + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_TIMEOFFSET ); + + iEikTimeOffsetEditor->ConstructFromResourceL( resourceReader ); + _LIT( KCEikTimeOffsetEditorConstructFromResourceL, + "Class CEikTimeOffsetEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditorConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); //resourceReader + iEikTimeOffsetEditor->SetContainerWindowL( *iContainer ); + _LIT( KCEikTimeOffsetEditorSetContainerWindowL, + "Class CEikTimeOffsetEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditorSetContainerWindowL ); + + iEikTimeOffsetEditor->SetMinimumAndMaximum( tmpmin, tmpmax ); + _LIT( KCEikTimeOffsetEditorSetMinimumAndMaximum, + "Class CEikTimeOffsetEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditorSetMinimumAndMaximum ); + + iEikTimeOffsetEditor->SetTimeOffset( tmpinit ); + _LIT( KSetTimeOffset, + "Class CEikTimeOffsetEditor Function SetTimeOffset tested" ); + AssertTrueL( ETrue, KSetTimeOffset ); + + iEikTimeOffsetEditor->TimeOffset(); + _LIT( KTimeOffset, + "Class CEikTimeOffsetEditor Function TimeOffset tested" ); + AssertTrueL( ETrue, KTimeOffset ); + + iEikTimeOffsetEditor->HandlePointerEventL( pointerEvent ); + _LIT( KCEikTimeOffsetEditorHandlePointerEventL, + "Class CEikTimeOffsetEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditorHandlePointerEventL ); + + iEikTimeOffsetEditor->GetMinimumAndMaximum( min, max ); + _LIT( KCEikTimeOffsetEditorGetMinimumAndMaximum, + "Class CEikTimeOffsetEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditorGetMinimumAndMaximum ); + + iEikTimeOffsetEditor->PrepareForFocusLossL(); + _LIT( KCEikTimeOffsetEditorPrepareForFocusLossL, + "Class CEikTimeOffsetEditor Function PrepareForFocusLossL tested" ); + AssertTrueL( ETrue, KCEikTimeOffsetEditorPrepareForFocusLossL ); + + delete iEikTimeOffsetEditor; + iEikTimeOffsetEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikTimeAndDateEditor and CEikTimeEditor and +// CEikDateEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikTimeEditorL() + { + _LIT( KMax, "20100000:010101.240000" ); + _LIT( KMin, "20000101:010101.000000" ); + _LIT( KInit, "20060000:010101.000000" ); + TTime max; + TTime min; + TTime init; + TTime tmpMax; + TTime tmpMin; + + max.Set( KMax ); + min.Set( KMin ); + init.Set( KInit ); + + iEikTimeAndDateEditor = new ( ELeave )CEikTimeAndDateEditor(); + _LIT( KCEikTimeAndDateEditor, + "Class CEikTimeAndDateEditor Function CEikTimeAndDateEditor tested" ); + AssertTrueL( ETrue, KCEikTimeAndDateEditor ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_TIMEANDDATE ); + iEikTimeAndDateEditor->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "Class CEikTimeAndDateEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); //resourceReader + iEikTimeAndDateEditor->SetContainerWindowL( *iContainer ); + _LIT( KSetContainerWindowL, + "Class CEikTimeAndDateEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KSetContainerWindowL ); + + + iEikTimeAndDateEditor->SetTimeAndDate( init ); + _LIT( KSetTimeAndDate, + "Class CEikTimeAndDateEditor Function SetTimeAndDate tested" ); + AssertTrueL( ETrue, KSetTimeAndDate ); + + iEikTimeAndDateEditor->TimeAndDate(); + _LIT( KTimeAndDate, + "Class CEikTimeAndDateEditor Function TimeAndDate tested" ); + AssertTrueL( ETrue, KTimeAndDate ); + + iEikTimeAndDateEditor->SetMinimumAndMaximum( min, max ); + _LIT( KSetMinimumAndMaximum, + "Class CEikTimeAndDateEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KSetMinimumAndMaximum ); + + iEikTimeAndDateEditor->GetMinimumAndMaximum( tmpMin, tmpMax ); + _LIT( KGetMinimumAndMaximum, + "Class CEikTimeAndDateEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KGetMinimumAndMaximum ); + + + TPointerEvent pointerEvent; + iEikTimeAndDateEditor->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikTimeAndDateEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + TKeyEvent keyEvent; + iEikTimeAndDateEditor->OfferKeyEventL( keyEvent, EEventKey ); + _LIT( KOfferKeyEventL, + "Class CEikTimeAndDateEditor Function OfferKeyEventL tested" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iEikTimeAndDateEditor->SetUninitialised( ETrue ); + _LIT( KSetUninitialised, + "Class CEikTimeAndDateEditor Function SetUninitialised tested" ); + AssertTrueL( ETrue, KSetUninitialised ); + + iEikTimeAndDateEditor->IsUninitialised(); + _LIT( KIsUninitialised, + "Class CEikTimeAndDateEditor Function IsUninitialised tested" ); + AssertTrueL( ETrue, KIsUninitialised ); + + iEikTimeAndDateEditor->PrepareForFocusLossL(); + _LIT( KPrepareForFocusLossL, + "Class CEikTimeAndDateEditor Function PrepareForFocusLossL tested" ); + AssertTrueL( ETrue, KPrepareForFocusLossL ); + + delete iEikTimeAndDateEditor; + iEikTimeAndDateEditor = NULL; + + + + iEikTimeEditor = new ( ELeave )CEikTimeEditor(); + _LIT( KCEikTimeEditor, + "Class CEikTimeEditor Function CEikTimeEditor tested" ); + AssertTrueL( ETrue, KCEikTimeEditor ); + + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_TIME ); + iEikTimeEditor->ConstructFromResourceL( resourceReader ); + _LIT( KCEikTimeEditorConstructFromResourceL, + "Class CEikTimeEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KCEikTimeEditorConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //resourceReader + iEikTimeEditor->SetContainerWindowL( *iContainer ); + _LIT( KCEikTimeEditorSetContainerWindowL, + "Class CEikTimeEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KCEikTimeEditorSetContainerWindowL ); + + iEikTimeEditor->PrepareForFocusLossL(); + _LIT( KCEikTimeEditorPrepareForFocusLossL, + "Class CEikTimeEditor Function PrepareForFocusLossL tested" ); + AssertTrueL( ETrue, KCEikTimeEditorPrepareForFocusLossL ); + + iEikTimeEditor->SetTime( init ); + _LIT( KCEikTimeEditorSetTime, + "Class CEikTimeEditor Function SetTime tested" ); + AssertTrueL( ETrue, KCEikTimeEditorSetTime ); + + iEikTimeEditor->Time(); + _LIT( KCEikTimeEditorTime, + "Class CEikTimeEditor Function Time tested" ); + AssertTrueL( ETrue, KCEikTimeEditorTime ); + + iEikTimeEditor->SetMinimumAndMaximum( min, max ); + _LIT( KCEikTimeEditorSetMinimumAndMaximum, + "Class CEikTimeEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikTimeEditorSetMinimumAndMaximum ); + + iEikTimeEditor->GetMinimumAndMaximum( tmpMin, tmpMax ); + _LIT( KCEikTimeEditorGetMinimumAndMaximum, + "Class CEikTimeEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikTimeEditorGetMinimumAndMaximum ); + + iEikTimeEditor->SetUninitialised( ETrue ); + _LIT( KCEikTimeEditorSetUninitialised, + "Class CEikTimeEditor Function SetUninitialised tested" ); + AssertTrueL( ETrue, KCEikTimeEditorSetUninitialised ); + + iEikTimeEditor->IsUninitialised(); + _LIT( KCEikTimeEditorIsUninitialised, + "Class CEikTimeEditor Function CEikTimeEditor tested" ); + AssertTrueL( ETrue, KCEikTimeEditorIsUninitialised ); + + iEikTimeEditor->HandlePointerEventL( pointerEvent ); + _LIT( KCEikTimeEditorHandlePointerEventL, + "Class CEikTimeEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KCEikTimeEditorHandlePointerEventL ); + + delete iEikTimeEditor; + iEikTimeEditor = NULL; + + + iEikDateEditor = new ( ELeave )CEikDateEditor(); + _LIT( KCEikDateEditor, + "Class CEikTimeEditor Function CEikDateEditor tested" ); + AssertTrueL( ETrue, KCEikDateEditor ); + + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_DATE ); + iEikDateEditor->ConstructFromResourceL( resourceReader ); + _LIT( KCEikDateEditorConstructFromResourceL, + "Class CEikTimeEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KCEikDateEditorConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); //resourceReader + iEikDateEditor->SetContainerWindowL( *iContainer ); + _LIT( KCEikDateEditorSetContainerWindowL, + "Class CEikTimeEditor Function SetContainerWindowL tested" ); + AssertTrueL( ETrue, KCEikDateEditorSetContainerWindowL ); + + iEikDateEditor->PrepareForFocusLossL(); + _LIT( KCEikDateEditorPrepareForFocusLossL, + "Class CEikTimeEditor Function PrepareForFocusLossL tested" ); + AssertTrueL( ETrue, KCEikDateEditorPrepareForFocusLossL ); + + iEikDateEditor->SetDate( init ); + _LIT( KCEikDateEditorSetDate, + "Class CEikTimeEditor Function SetDate tested" ); + AssertTrueL( ETrue, KCEikDateEditorSetDate ); + + iEikDateEditor->Date(); + _LIT( KCEikDateEditorDate, + "Class CEikTimeEditor Function Date tested" ); + AssertTrueL( ETrue, KCEikDateEditorDate ); + + iEikDateEditor->SetMinimumAndMaximum( min, max ); + _LIT( KCEikDateEditorSetMinimumAndMaximum, + "Class CEikTimeEditor Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikDateEditorSetMinimumAndMaximum ); + + iEikDateEditor->GetMinimumAndMaximum( tmpMin, tmpMax ); + _LIT( KCEikDateEditorGetMinimumAndMaximum, + "Class CEikTimeEditor Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KCEikDateEditorGetMinimumAndMaximum ); + + iEikDateEditor->HandlePointerEventL( pointerEvent ); + _LIT( KCEikDateEditorHandlePointerEventL, + "Class CEikTimeEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KCEikDateEditorHandlePointerEventL ); + + iEikDateEditor->OfferKeyEventL( keyEvent, EEventKey ); + _LIT( KCEikDateEditorOfferKeyEventL, + "Class CEikTimeEditor Function OfferKeyEventL tested" ); + AssertTrueL( ETrue, KCEikDateEditorOfferKeyEventL ); + + iEikDateEditor->SetUninitialised( ETrue ); + _LIT( KCEikDateEditorSetUninitialised, + "Class CEikTimeEditor Function SetUninitialised tested" ); + AssertTrueL( ETrue, KCEikDateEditorSetUninitialised ); + + iEikDateEditor->IsUninitialised(); + _LIT( KCEikDateEditorIsUninitialised, + "Class CEikTimeEditor Function IsUninitialised tested" ); + AssertTrueL( ETrue, KCEikDateEditorIsUninitialised ); + + delete iEikDateEditor; + iEikDateEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CAknNumericSecretEditor and CEikSecretEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikSecretEditorL() + { + CAknNumericSecretEditor* aknNumericSecretEditor = new ( ELeave ) + CAknNumericSecretEditor(); + CleanupStack::PushL( aknNumericSecretEditor ); + _LIT( KCAknNumericSecretEditor, + "Class CAknNumericSecretEditor Function CAknNumericSecretEditor tested" ); + AssertTrueL( ETrue, KCAknNumericSecretEditor ); + + aknNumericSecretEditor->InputCapabilities(); + _LIT( KInputCapabilities, + "Class CAknNumericSecretEditor Function InputCapabilities tested" ); + AssertTrueL( ETrue, KInputCapabilities ); + + TPointerEvent pointerEvent; + aknNumericSecretEditor->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CAknNumericSecretEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + CleanupStack::PopAndDestroy( aknNumericSecretEditor ); + + _LIT( KSecert, " " ); + iEikSecretEditor = new ( ELeave ) CBCTestSecretEditor(); + _LIT( KCEikSecretEditor, + "Class CEikSecretEditor Function CEikSecretEditor tested" ); + AssertTrueL( ETrue, KCEikSecretEditor ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, R_BCTESTEDITOR_SECRET ); + iEikSecretEditor->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "Class CEikSecretEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //aknNumericSecretEditor + + TKeyEvent keyEvent; + iEikSecretEditor->OfferKeyEventL( keyEvent, EEventKey ); + _LIT( KOfferKeyEventL, + "Class CEikSecretEditor Function OfferKeyEventL tested" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iEikSecretEditor->HandlePointerEventL( pointerEvent ); + _LIT( KCEikSecretEditorHandlePointerEventL, + "Class CEikSecretEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KCEikSecretEditorHandlePointerEventL ); + + iEikSecretEditor->SetMaxLength( 10 ); + _LIT( KSetMaxLength, + "Class CEikSecretEditor Function SetMaxLength tested" ); + AssertTrueL( ETrue, KSetMaxLength ); + + iEikSecretEditor->MinimumSize(); + _LIT( KMinimumSize, + "Class CEikSecretEditor Function MinimumSize tested" ); + AssertTrueL( ETrue, KMinimumSize ); + + iEikSecretEditor->Reset(); + _LIT( KCEikSecretEditorMinimumSize, + "Class CEikSecretEditor Function MinimumSize tested" ); + AssertTrueL( ETrue, KCEikSecretEditorMinimumSize ); + + iEikSecretEditor->InputCapabilities(); + _LIT( KReset, + "Class CEikSecretEditor Function Reset tested" ); + AssertTrueL( ETrue, KReset ); + + iEikSecretEditor->MaxLength(); + _LIT( KMaxLength, + "Class CEikSecretEditor Function MaxLength tested" ); + AssertTrueL( ETrue, KMaxLength ); + + iEikSecretEditor->Buffer(); + _LIT( KBuffer, + "Class CEikSecretEditor Function Buffer tested" ); + AssertTrueL( ETrue, KBuffer ); + + iEikSecretEditor->InitializeDisplay( 10 ); + _LIT( KInitializeDisplay, + "Class CEikSecretEditor Function InitializeDisplay tested" ); + AssertTrueL( ETrue, KInitializeDisplay ); + + iEikSecretEditor->SetText( KSecert ); + _LIT( KSetText, + "Class CEikSecretEditor Function SetText tested" ); + AssertTrueL( ETrue, KSetText ); + + iEikSecretEditor->AppendCharacterL( 'A' ); + _LIT( KAppendChar, + "Class CEikSecretEditor Function AppendCharacterL tested" ); + AssertTrueL( ETrue, KAppendChar ); + + iEikSecretEditor->Update(); + _LIT( KUpdate, "Class CEikSecretEditor Function Update tested" ); + AssertTrueL( ETrue, KUpdate ); + + iEikSecretEditor->SetDefaultInputMode( 1 ); + _LIT( KSetDefaultInputMode, + "Class CEikSecretEditor Function SetDefaultInputMode tested" ); + AssertTrueL( ETrue, KSetDefaultInputMode ); + + iEikSecretEditor->RevealSecretText( ETrue ); + _LIT( KRevealSecretText, + "Class CEikSecretEditor Function RevealSecretText tested" ); + AssertTrueL( ETrue, KRevealSecretText ); + + iEikSecretEditor->HandleResourceChange( 2 ); + _LIT( KHandleResourceChange, + "Class CEikSecretEditor Function HandleResourceChange tested" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + iEikSecretEditor->GetColorUseListL( *indexArray ) ; + _LIT( KGetColorUseListL, + "Class CEikSecretEditor Function GetColorUseListL tested" ); + AssertTrueL( ETrue, KGetColorUseListL ); + CleanupStack::PopAndDestroy( indexArray ); + + TBuf<500> tmptext; + iEikSecretEditor->GetText( tmptext ); + _LIT( KGetText, + "Class CEikSecretEditor Function GetText tested" ); + AssertTrueL( ETrue, KGetText ); + + const CFont* font = LatinPlain12(); + iEikSecretEditor->AknSetFont( *font ); + _LIT( KAknSetFont, + "Class CEikSecretEditor Function AknSetFont tested" ); + AssertTrueL( ETrue, KAknSetFont ); + + iEikSecretEditor->SetSkinTextColorL( 1, KErrNotFound ); + _LIT( KSetSkinTextColorL, + "Class CEikSecretEditor Function SetSkinTextColorL tested" ); + AssertTrueL( ETrue, KSetSkinTextColorL ); + + iEikSecretEditor->SetSkinBackgroundControlContextL( NULL ); + _LIT( KSetSkinBackgroundControlContextL, + "Class CEikSecretEditor Function SetSkinBackgroundControlContextL tested" ); + AssertTrueL( ETrue, KSetSkinBackgroundControlContextL ); + + delete iEikSecretEditor; + iEikSecretEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikMfneNumber and CEikMfneSeparator and +// CEikMfneSymbol +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikMfneFieldL() + { + const CFont* font = LatinPlain12(); + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_MFNE_NUMBER ); + CEikMfneNumber* eikMfneNumber = CEikMfneNumber::NewL( + *font, + resourceReader ); + CleanupStack::PopAndDestroy(); //resourceReader + CleanupStack::PushL( eikMfneNumber ); + + _LIT( KNewL, + "Class CEikMfneNumber Function NewL tested" ); + AssertTrueL( ETrue, KNewL ); + + TInt max; + TInt min; + eikMfneNumber->SetMinimumAndMaximum( 2, 9, *font ); + _LIT( KSetMinimumAndMaximum, + "Class CEikMfneNumber Function SetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KSetMinimumAndMaximum ); + + eikMfneNumber->GetMinimumAndMaximum( min, max ); + _LIT( KGetMinimumAndMaximum, + "Class CEikMfneNumber Function GetMinimumAndMaximum tested" ); + AssertTrueL( ETrue, KGetMinimumAndMaximum ); + + eikMfneNumber->SetUninitialised( ETrue ); + _LIT( KSetUninitialised, + "Class CEikMfneNumber Function SetUninitialised tested" ); + AssertTrueL( ETrue, KSetUninitialised ); + + eikMfneNumber->IsUninitialised(); + _LIT( KIsUninitialised, + "Class CEikMfneNumber Function IsUninitialised tested" ); + AssertTrueL( ETrue, KIsUninitialised ); + + eikMfneNumber->Value(); + _LIT( KValue, + "Class CEikMfneNumber Function Value tested" ); + AssertTrueL( ETrue, KValue ); + + eikMfneNumber->IsValid(); + _LIT( KIsValid, + "Class CEikMfneNumber Function IsValid tested" ); + AssertTrueL( ETrue, KIsValid ); + + CleanupStack::PopAndDestroy( eikMfneNumber ); + + + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_MFNE_SEPARATOR ); + CEikMfneSeparator* eikMfneSeparator = + CEikMfneSeparator::NewL( resourceReader ); + CleanupStack::PopAndDestroy();//resourceReader + CleanupStack::PushL( eikMfneSeparator ); + _LIT( KCEikMfneSeparatorNewL, + "Class CEikMfneSeparator Function NewL tested" ); + AssertTrueL( ETrue, KCEikMfneSeparatorNewL ); + + _LIT( Ktmp, " bbb"); + HBufC* str = HBufC::NewL( 5 ); + + *str = Ktmp; + eikMfneSeparator->SetText( str ); + _LIT( KCEikMfneSeparatorSetText, + "Class CEikMfneSeparator Function SetText tested" ); + AssertTrueL( ETrue, KCEikMfneSeparatorSetText ); + + CleanupStack::PopAndDestroy( eikMfneSeparator ); + + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_MFNE_SYMBOL ); + CEikMfneSymbol* eikMfneSymbol = CEikMfneSymbol::NewL( resourceReader ); + CleanupStack::PopAndDestroy();//resourceReader + + CleanupStack::PushL( eikMfneSymbol ); + _LIT( KCEikMfneSymbolSetText, + "Class CEikMfneSymbol Function SetText tested" ); + AssertTrueL( ETrue, KCEikMfneSymbolSetText ); + eikMfneSymbol->IsValid(); + CleanupStack::PopAndDestroy( eikMfneSymbol ); + + + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_MFNE_SYMBOL_ITEM ); + + CEikMfneSymbol::CItem* item = + CEikMfneSymbol::CItem::NewL( resourceReader ); + CleanupStack::PushL( item ); + _LIT( KItemNewL, + "Class CEikMfneSymbol::Item Function NewL tested" ); + AssertTrueL( ETrue, KItemNewL ); + + str = HBufC::NewL( 5 ); + *str = Ktmp; + item->SetText( str ); + _LIT( KItemSetText, + "Class CEikMfneSymbol::Item Function SetText tested" ); + AssertTrueL( ETrue, KItemSetText ); + CleanupStack::PopAndDestroy( 2 ); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikGlobalTextEditor +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikGlobalEditorL() + { + TGulBorder gulBorder; + TSize editorSize(100, 60); + _LIT( Kstr, "abc"); + TDesC16 tmp = Kstr; + + CEikGlobalTextEditor* eikGlobalTextEditor = new + ( ELeave ) CEikGlobalTextEditor( gulBorder ); + CleanupStack::PushL( eikGlobalTextEditor ); + _LIT( KCEikGlobalTextEditor, + "Class CEikGlobalTextEditor Function CEikGlobalTextEditor tested" ); + AssertTrueL( ETrue, KCEikGlobalTextEditor ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTEDITOR_GLOBALTEXT ); + eikGlobalTextEditor->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "Class CEikGlobalTextEditor Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + CleanupStack::PopAndDestroy();//resourceReader + CleanupStack::PopAndDestroy( eikGlobalTextEditor ); + + + iEikGlobalTextEditor = new ( ELeave ) CEikGlobalTextEditor; + + + iEikGlobalTextEditor->ConstructL( iContainer, 2, KDefaultTextLimit, + CEikEdwin::ENoAutoSelection, 0, 0 ); + + iEikGlobalTextEditor->SetContainerWindowL( *iContainer ); + iEikGlobalTextEditor->SetExtent( EDWIN_POS, editorSize ); + + iEikGlobalTextEditor->SetFocus(ETrue); + + CTmpCDlgDialogFactory* tmpCDlgDialogFactory = + CTmpCDlgDialogFactory::NewL(); + iEikEnv->SetCDlgDialogFactory( tmpCDlgDialogFactory ); + CleanupStack::PushL( tmpCDlgDialogFactory ); + + TKeyEvent keyEvent; + iEikGlobalTextEditor->OfferKeyEventL( keyEvent, EEventKey ); + + + iEikGlobalTextEditor->ActivateL(); + iEikGlobalTextEditor->SetTextL( &tmp ); + + CTmpPrintDialogFactory* tmpPrintDialogFactory = new ( ELeave ) + CTmpPrintDialogFactory; + iEikEnv->SetPrintDialogFactory( STATIC_CAST( + MEikPrintDialogFactory*, + tmpPrintDialogFactory ) ); + CleanupStack::PushL( tmpPrintDialogFactory ); + + CGraphicsDevice* device = CCoeEnv::Static()->ScreenDevice(); + iEikGlobalTextEditor->SetGraphicsDevice( device ); + _LIT( KSetGraphicsDevice, + "Class CEikGlobalTextEditor Function SetGraphicsDevice tested" ); + AssertTrueL( ETrue, KSetGraphicsDevice ); + + iEikGlobalTextEditor->RunFindDialogL(); + _LIT( KRunFindDialogL, + "Class CEikGlobalTextEditor Function RunFindDialogL tested" ); + AssertTrueL( ETrue, KRunFindDialogL ); + + iEikGlobalTextEditor->RunFindAgainDialogL(); + _LIT( KRunFindAgainDialogL, + "Class CEikGlobalTextEditor Function RunFindAgainDialogL tested" ); + AssertTrueL( ETrue, KRunFindAgainDialogL ); + + iEikGlobalTextEditor->RunIndentsDialogL( 100 ); + _LIT( KRunIndentsDialogL, + "Class CEikGlobalTextEditor Function RunIndentsDialogL tested" ); + AssertTrueL( ETrue, KRunIndentsDialogL ); + + iEikGlobalTextEditor->RunParaDialogsL( 1 ); + _LIT( KRunParaDialogsL, + "Class CEikGlobalTextEditor Function RunParaDialogsL tested" ); + AssertTrueL( ETrue, KRunParaDialogsL ); + + iEikGlobalTextEditor->RunReplaceDialogL(); + _LIT( KRunReplaceDialogL, + "Class CEikGlobalTextEditor Function RunReplaceDialogL tested" ); + AssertTrueL( ETrue, KRunReplaceDialogL ); + + iEikGlobalTextEditor->RunTabsDialogL( 100 ); + _LIT( KRunTabsDialogL, + "Class CEikGlobalTextEditor Function RunTabsDialogL tested" ); + AssertTrueL( ETrue, KRunTabsDialogL ); + + iEikGlobalTextEditor->RunFontDialogL( 0x10, 0, 0x001 ); + _LIT( KRunFontDialogL, + "Class CEikGlobalTextEditor Function RunFontDialogL tested" ); + AssertTrueL( ETrue, KRunFontDialogL ); + + CPrintSetup* printSetup = CPrintSetup::NewL(); + CArrayFix* indexArray = new ( ELeave ) CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + CleanupStack::PushL( printSetup ); + iEikGlobalTextEditor->RunPaginateDialogL( printSetup, indexArray ); + _LIT( KRunPaginateDialogL, + "Class CEikGlobalTextEditor Function RunPaginateDialogL tested" ); + AssertTrueL( ETrue, KRunPaginateDialogL ); + + + TPointerEvent pointerEvent; + iEikGlobalTextEditor->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikGlobalTextEditor Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iEikGlobalTextEditor->GlobalText(); + _LIT( KGlobalText, + "Class CEikGlobalTextEditor Function GlobalText tested" ); + AssertTrueL( ETrue, KGlobalText ); + + iEikGlobalTextEditor->DoFindL(); + _LIT( KDoFindL, + "Class CEikGlobalTextEditor Function DoFindL tested" ); + AssertTrueL( ETrue, KDoFindL ); + + iEikGlobalTextEditor->BoldItalicUnderlineEventL( 1 ); + _LIT( KBoldItalicUnderlineEventL, + "Class CEikGlobalTextEditor Function BoldItalicUnderlineEventL tested" ); + AssertTrueL( ETrue, KBoldItalicUnderlineEventL ); + + iEikGlobalTextEditor->SetButtonGroup( iControl ); + _LIT( KSetButtonGroup, + "Class CEikGlobalTextEditor Function SetButtonGroup tested" ); + AssertTrueL( ETrue, KSetButtonGroup ); + + + CFbsBitmap* fbsBitmap = new ( ELeave )CFbsBitmap(); + CleanupStack::PushL( fbsBitmap ); + iEikGlobalTextEditor->SetLineCursorBitmapL( fbsBitmap ); + _LIT( KSetLineCursorBitmapL, + "Class CEikGlobalTextEditor Function SetLineCursorBitmapL tested" ); + AssertTrueL( ETrue, KSetLineCursorBitmapL ); + + TParaFormatMask paraFormatmask; + paraFormatmask.SetAll(); + CParaFormat* paraFormat = CParaFormat::NewL(); + CleanupStack::PushL( paraFormat ); + iEikGlobalTextEditor->ApplyParaFormatL( paraFormat, paraFormatmask ); + _LIT( KApplyParaFormatL, + "Class CEikGlobalTextEditor Function ApplyParaFormatL tested" ); + AssertTrueL( ETrue, KApplyParaFormatL ); + + + TCharFormat charFormat; + TCharFormatMask charFormatMask; + iEikGlobalTextEditor->ApplyCharFormatL( charFormat, charFormatMask ); + + CleanupStack::PopAndDestroy( paraFormat ); + CleanupStack::PopAndDestroy( fbsBitmap ); + + CleanupStack::PopAndDestroy( printSetup ); + CleanupStack::PopAndDestroy( indexArray ); + CleanupStack::PopAndDestroy( tmpPrintDialogFactory ); + CleanupStack::PopAndDestroy( tmpCDlgDialogFactory ); + + SEdwinFindModel* edwinFindModel = NULL; + CDesCArray* findList = NULL; + CDesCArray* replaceList = NULL; + iEikGlobalTextEditor->InitFindL( edwinFindModel, findList, replaceList ); + + delete iEikGlobalTextEditor; + iEikGlobalTextEditor = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CLafEdwinCustomWrapBase and +// CLafEdwinCustomDrawBase +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikLafMainL() + { + CLafEdwinCustomWrapBase* lafCustomWrapBase = + CLafEdwinCustomWrapBase::NewL( *iControl ); + CleanupStack::PushL( lafCustomWrapBase ); + _LIT( KNewL, + "Class CLafEdwinCustomWrapBase Function NewL tested" ); + AssertTrueL( ETrue, KNewL ); + + _LIT( Kstr, " "); + TDesC16 tmp = Kstr; + TInt pos; + TUint startPos; + TUint endPos; + + lafCustomWrapBase->LineBreakClass( 1, startPos, endPos); + _LIT( KLineBreakClass, + "Class CLafEdwinCustomWrapBase Function LineBreakClass tested" ); + AssertTrueL( ETrue, KLineBreakClass ); + + lafCustomWrapBase->LineBreakPossible( 1, 2, ETrue ); + _LIT( KLineBreakPossible, + "Class CLafEdwinCustomWrapBase Function LineBreakPossible tested" ); + AssertTrueL( ETrue, KLineBreakPossible ); + + lafCustomWrapBase->IsHangingCharacter( 1 ); + _LIT( KIsHangingCharacter, + "Class CLafEdwinCustomWrapBase Function IsHangingCharacter tested" ); + AssertTrueL( ETrue, KIsHangingCharacter ); + + lafCustomWrapBase->GetLineBreakInContext( tmp, 0, 1, ETrue, pos ); + _LIT( KGetLineBreakInContext, + "Class CLafEdwinCustomWrapBase Function GetLineBreakInContext tested" ); + AssertTrueL( ETrue, KGetLineBreakInContext ); + + CleanupStack::PopAndDestroy( lafCustomWrapBase ); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorCase::Test Class CEikMfne +// --------------------------------------------------------------------------- +// +void CBCTestEditorCase::TestEikMfneL() + { + const CFont* font = LatinPlain12(); + + iEikMfne = new ( ELeave ) CEikNumberEditor(); + _LIT( KCEikMfne, + "Class CEikMfne Function CEikMfne tested" ); + AssertTrueL( ETrue, KCEikMfne ); + + CEikNumberEditor* editor = STATIC_CAST(CEikNumberEditor*, iEikMfne); + editor->ConstructL(0,100,10); + + iEikMfne->BorderMargins(); + _LIT( KBorderMargins, + "Class CEikMfne Function BorderMargins tested" ); + AssertTrueL( ETrue, KBorderMargins ); + + iEikMfne->SetFont( font ); + _LIT( KSetFont, + "Class CEikMfne Function SetFont tested" ); + AssertTrueL( ETrue, KSetFont ); + + iEikMfne->SetSkinTextColorL( 1, KErrNotFound ); + _LIT( KSetSkinTextColorL, + "Class CEikMfne Function SetSkinTextColorL tested" ); + AssertTrueL( ETrue, KSetSkinTextColorL ); + + iEikMfne->SetMfneAlignment( 1 ); + _LIT( KSetMfneAlignment, + "Class CEikMfne Function SetMfneAlignment tested" ); + AssertTrueL( ETrue, KSetMfneAlignment ); + + iEikMfne->SetUpAndDownKeysConsumed( ETrue ); + _LIT( KSetUpAndDownKeysConsumed, + "Class CEikMfne Function SetUpAndDownKeysConsumed tested" ); + AssertTrueL( ETrue, KSetUpAndDownKeysConsumed ); + + iEikMfne->InputCapabilities(); + _LIT( KInputCapabilities, + "Class CEikMfne Function InputCapabilities tested" ); + AssertTrueL( ETrue, KInputCapabilities ); + + iEikMfne->MinimumSize(); + _LIT( KMinimumSize, + "Class CEikMfne Function MinimumSize tested" ); + AssertTrueL( ETrue, KMinimumSize ); + + TTime time; + TRAP_IGNORE( iEikMfne->DrawNowAndLeaveWithTimeDateFormatInfoMsgL( + R_BCTESTEDITOR_GLOBALTEXT, time ) ); + + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + iEikMfne->GetColorUseListL( *indexArray ); + CleanupStack::PopAndDestroy( indexArray ); + + iEikMfne->HandleResourceChange( 1 ); + _LIT( KHandleResourceChange, + "Class CEikMfne Function HandleResourceChange tested" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + iEikMfne->HandleMfneCommandL( 2 ); + _LIT( KHandleMfneCommandL, + "Class CEikMfne Function HandleMfneCommandL tested" ); + AssertTrueL( ETrue, KHandleMfneCommandL ); + + iEikMfne->SetSkinBackgroundControlContextL( NULL ); + _LIT( KSetSkinBackgroundControlContextL, + "Class CEikMfne Function SetSkinBackgroundControlContextL tested" ); + AssertTrueL( ETrue, KSetSkinBackgroundControlContextL ); + + delete iEikMfne; + iEikMfne = NULL; + + CSubEikMfne* subEikMfne = new ( ELeave ) CSubEikMfne(); + CleanupStack::PushL( subEikMfne ); + subEikMfne->TestFunction(); + _LIT( KMfneSize, + "Class CEikMfne Function MfneSize tested" ); + AssertTrueL( ETrue, KMfneSize ); + AssertTrueL( ETrue, KMfneSize ); + _LIT( KFocusChanged, + "Class CEikMfne Function FocusChanged tested" ); + AssertTrueL( ETrue, KFocusChanged ); + + CleanupStack::PopAndDestroy( subEikMfne ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestEditorcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEditorContainer::CBCTestEditorContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEditorContainer::~CBCTestEditorContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEditorContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestEditorContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestEditorContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestEditorContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestEditorContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEditorContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestEditorContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestEditorContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestEditorContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestEditorContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditordocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditordocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Editor test application +* +*/ + + +// INCLUDE FILES +#include "BCTestEditorDocument.h" +#include "BCTestEditorAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestEditorDocument* CBCTestEditorDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestEditorDocument* CBCTestEditorDocument::NewL( CEikApplication& aApp ) + { + CBCTestEditorDocument* self = new( ELeave ) CBCTestEditorDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestEditorDocument::~CBCTestEditorDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestEditorDocument::~CBCTestEditorDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestEditorDocument::CBCTestEditorDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestEditorDocument::CBCTestEditorDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestEditorDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestEditorDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestEditorAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteditor/src/bctesteditorview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,132 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestEditor.hrh" +#include "bctestEditorview.h" +#include "bctestEditorcontainer.h" +#include "bctestutil.h" +#include "bctestEditorcase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEditorView* CBCTestEditorView::NewL() + { + CBCTestEditorView* self = new( ELeave ) CBCTestEditorView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEditorView::CBCTestEditorView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEditorView::ConstructL() + { + _LIT( strTestCase,"Editor test case"); + BaseConstructL( R_BCTESTEDITOR_VIEW ); + + iContainer = new( ELeave ) CBCTestEditorContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestEditorCase::NewL( iContainer ), + strTestCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEditorView::~CBCTestEditorView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestEditorView::Id() const + { + return KBCTestEditorViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestEditorView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestEditorView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestEditorView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestEditorView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestEditorView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestEditorView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bctesteh.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bctesteh.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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: project specification file for the BCTestEH. +* +*/ + + +TARGET BCTestEH.exe +TARGETTYPE exe +UID 0x0 0x20004761 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestEH.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG SC + +SOURCEPATH ../Src +SOURCE bctestehapp.cpp +SOURCE bctestehdocument.cpp +SOURCE bctestehappui.cpp +SOURCE bctestehview.cpp +SOURCE bctestehcontainer.cpp +SOURCE bctestehcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY commonui.lib +LIBRARY commonengine.lib + +START RESOURCE ../group/bctesteh_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bctesteh.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bctesteh.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,232 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME EH + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctesteh.hrh" +#include "bctesteh.loc" +#include "autotestcommands.h" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestEH_BMP_FNAME APP_BITMAP_DIR"\\BCTestEH.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctesteh_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesteh_menubar_main; + cba = r_bctesteh_cba_options_next; + hotkeys = r_bctesteh_hotkey_command; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesteh_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteh_view +// AVKON_VIEW for BCTestEHView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesteh_view + { + menubar = r_bctesteh_menubar_main; + hotkeys = r_bctesteh_hotkey_command; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteh_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesteh_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesteh_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesteh_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteh_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteh_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctesteh_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteh_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteh_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesteh_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesteh_menu_exit; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctesteh_hotkey_command +// HotKey Command +// +//----------------------------------------------------------------------------- +// +RESOURCE HOTKEYS r_bctesteh_hotkey_command + { + plain = + { + HOTKEY { command=EBCTestCmdOutline1; key= 'o'; } + }; + + control = + { + HOTKEY { command=EBCTestCmdOutline1; key= 'o'; } + }; + + shift_control = + { + HOTKEY { command=EBCTestCmdOutline1; key= 'o'; } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctesteh_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE CBA r_bctesteh_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestEHCbaCmdNext; + txt = qtn_bctesteh_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bctesteh_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bctesteh_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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: +* +*/ +#include +#include + +#include "bctesteh.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004761 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_app_file; + localisable_resource_file = qtn_localisable_file; + localisable_resource_id = R_BCTESTEH_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestEH.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctesteh.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctesteh.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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: BCTestEH resource header file +* +*/ + + +#ifndef BCTESTEH_HRH +#define BCTESTEH_HRH + +enum TBCTestEHMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestEHCba + { + EBCTestEHCbaCmdNext = 0x6300 + }; + +#endif // BCTESTEH_HRH + +// End of File + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctesteh.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctesteh.loc Fri Sep 17 09:37:58 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 "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: BCTestEH localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTEH" +#define qtn_apps_tavl_grid "BCTESTEH" +#define qtn_bctesteh_buf "BCTestEH" + +#define qtn_group_name "BCTest" +#define qtn_localisable_file "\\resource\\apps\\BCTestEH" +#define qtn_app_file "BCTestEH" + +// MenuBar +#define qtn_bctesteh_menubar "Option" +#define qtn_bctesteh_cba_next "Next" +#define qtn_bctesteh_autotest "Autotest" +#define qtn_bctesteh_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctesteh_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTEHAPP_H +#define C_BCTESTEHAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestEH = { 0x20004761 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestEHApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestEHApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestEHDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestEH ). + * @return The value of KUidBCTestEH. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTEHAPPUI_H +#define C_BCTESTEHAPPUI_H + +#include + +class CBCTestEHView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestEHAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestEHAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestEHAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestEHView* iView; + }; + +#endif // C_BCTESTEHAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,96 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTEHCASE_H +#define C_BCTESTEHCASE_H + +#include "bctestcase.h" + +class CBCTestEHContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestEHCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEHCase* NewL( CBCTestEHContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEHCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test Error UI API + */ + void TestErrorUiL(); + + /** + * Test Hotkeys API + */ + void TestHotkeysL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEHCase( CBCTestEHContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestEHContainer* iContainer; + + }; + +#endif // C_BCTESTEHCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTESTEHCONTAINER_H +#define C_BCTESTEHCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestEHContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestEHContainer(); + + /** + * Destructor + */ + virtual ~CBCTestEHContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTEHCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTEHDOCUMENT_H +#define C_BCTESTEHDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestEHDocument application class. +*/ +class CBCTestEHDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestEHDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestEHDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestEHDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestEHAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTEHDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/inc/bctestehview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTEHVIEW_H +#define C_BCTESTEHVIEW_H + +#include + +const TUid KBCTestEHViewId = { 1 }; + +class CBCTestEHContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestEHView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestEHView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestEHView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEHView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestEHContainer* iContainer; + + }; + +#endif // C_BCTESTEHVIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/sis/bctesteh.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/sis/bctesteh.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesteh.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestEH"},(0x20004761),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctesteh.exe"- +"!:\sys\bin\bctesteh.exe" + +"\epoc32\data\z\resource\apps\bctesteh.rsc"- +"!:\resource\apps\bctesteh.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctesteh_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctesteh_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestEHApp.h" +#include "BCTestEHDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestEHApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestEHApp::AppDllUid() const + { + return KUidBCTestEH; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestEHApp::CreateDocumentL() +// Creates CBCTestEHDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestEHApp::CreateDocumentL() + { + return CBCTestEHDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestEHApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestEHApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestehAppUi.h" +#include "bctesteh.hrh" +#include "bctestehview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestEHAppUi::CBCTestEHAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestEHAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestEHView* view = CBCTestEHView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestEHAppUi::~CBCTestEHAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestEHAppUi::~CBCTestEHAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestEHAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,251 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include "bctestehcase.h" +#include "bctestehcontainer.h" +#include "bctesteh.hrh" + +// constant +const TInt KErrCode = KErrAbort; +const TInt KModifierCode = 0; + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEHCase* CBCTestEHCase::NewL( + CBCTestEHContainer* aContainer ) + { + CBCTestEHCase* self = new( ELeave ) CBCTestEHCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEHCase::CBCTestEHCase( + CBCTestEHContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEHCase::~CBCTestEHCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEHCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEHCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEHCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestEHCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEHCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEHCase::TestErrorUiL +// --------------------------------------------------------------------------- +// +void CBCTestEHCase::TestErrorUiL() + { + CErrorUI* ui = CErrorUI::NewL(); + CleanupStack::PushL( ui ); + _LIT( KNewL, "CErrorUI::NewL Used by servers" ); + AssertNotNullL( ui, KNewL ); + + CErrorUI* errUi = CErrorUI::NewLC() ; + _LIT( KNewLC, "CErrorUI::NewLC Used by servers" ); + AssertNotNullL( errUi, KNewLC ); + CleanupStack::PopAndDestroy( errUi ); + + CCoeEnv* env = CCoeEnv::Static(); + CErrorUI* uiForApp = CErrorUI::NewL( *env ); + CleanupStack::PushL( uiForApp ); + _LIT( KNewL2, "CErrorUI::NewL Used by applications" ); + AssertNotNullL( uiForApp, KNewL2 ); + CleanupStack::PopAndDestroy( uiForApp ); + + uiForApp = CErrorUI::NewLC( *env ); + _LIT( KNewLC2, "CErrorUI::NewLC Used by applications" ); + AssertNotNullL( uiForApp, KNewLC2 ); + CleanupStack::PopAndDestroy( uiForApp ); + + TBool errQuery = EFalse; + TUint flags = 0; + TInt resourceID = 0; + ui->TextResolver().ResolveErrorString(KErrCode, resourceID, flags, + CTextResolver::ECtxAutomatic); + errQuery = ui->ShowGlobalErrorQueryL( KErrCode ); + _LIT( KShowGlobalErrorQueryL, "CErrorUI::ShowGlobalErrorQueryL" ); + if ( !(flags & ETextResolverBlankErrorFlag) ) + { + //should display + AssertTrueL( errQuery, KShowGlobalErrorQueryL ); + } + else + { + AssertTrueL( !errQuery, KShowGlobalErrorQueryL ); + } + + errQuery = EFalse; + ui->TextResolver().ResolveErrorString(KErrCode, resourceID, flags, + CTextResolver::ECtxAutomatic); + errQuery = ui->ShowGlobalErrorNoteL( KErrCode ); + _LIT( KShowGlobalErrorNoteL, "CErrorUI::ShowGlobalErrorNoteL" ); + if ( !(flags & ETextResolverBlankErrorFlag) ) + { + //should display + AssertTrueL( errQuery, KShowGlobalErrorNoteL ); + } + else + { + AssertTrueL( !errQuery, KShowGlobalErrorNoteL ); + } + + + CleanupStack::Pop( ui ); + delete ui; + ui = NULL; + + } + +// --------------------------------------------------------------------------- +// CBCTestEHCase::TestHotkeysL +// --------------------------------------------------------------------------- +// +void CBCTestEHCase::TestHotkeysL() + { + CEikHotKeyTable* hotKey = new( ELeave) CEikHotKeyTable(); + CleanupStack::PushL( hotKey ); + _LIT( KCEikHotKeyTable, "CEikHotKeyTable::CEikHotKeyTable" ); + AssertNotNullL( hotKey, KCEikHotKeyTable ); + + hotKey->ConstructFromResourceL( R_BCTESTEH_HOTKEY_COMMAND ); + _LIT( KConstructFromResourceL, "CEikHotKeyTable::ConstructFromResourceL" ); + AssertNotNullL( hotKey, KConstructFromResourceL ); + + hotKey->AddItemL( EBCTestCmdOutline1, Key1, KModifierCode ); + _LIT( KAddItemL, "CEikHotKeyTable::AddItemL" ); + AssertNotNullL( hotKey, KAddItemL ); + + hotKey->AddItemL( EBCTestCmdOutline1, Key1, EModifierCtrl ); + _LIT( KAddItemL1, "CEikHotKeyTable::AddItemL 1" ); + AssertNotNullL( hotKey, KAddItemL1 ); + + hotKey->AddItemL( EProgCmdAutoTest, Key2, + EModifierShift|EModifierCtrl ); + _LIT( KAddItemL2, "CEikHotKeyTable::AddItemL 2" ); + AssertNotNullL( hotKey, KAddItemL2 ); + + TInt cmdId = hotKey->CommandIdFromHotKey( Key1, EModifierCtrl ); + _LIT( KCommandIdFromHotKey, "CEikHotKeyTable::CommandIdFromHotKey" ); + AssertNotNullL( hotKey, KCommandIdFromHotKey ); + + cmdId = hotKey->CommandIdFromHotKey( Key2, EModifierShift|EModifierCtrl ); + _LIT( KCommandIdFromHotKey2, "CEikHotKeyTable::CommandIdFromHotKey 2" ); + AssertNotNullL( hotKey, KCommandIdFromHotKey2 ); + + TInt keyCode; + TInt kModifier; + TBool flag = hotKey->HotKeyFromCommandId( EBCTestCmdOutline1, keyCode, + kModifier ); + _LIT( KHotKeyFromCommandId, "CEikHotKeyTable::HotKeyFromCommandId" ); + AssertTrueL( flag, KHotKeyFromCommandId ); + + flag = hotKey->HotKeyFromCommandId( EProgCmdAutoTest, keyCode, + kModifier ); + _LIT( KHotKeyFromCommandId1, "CEikHotKeyTable::HotKeyFromCommandId 1" ); + AssertTrueL( flag, KHotKeyFromCommandId1 ); + + hotKey->RemoveItem( EBCTestCmdOutline1 ); + _LIT( KRemoveItem, "CEikHotKeyTable::RemoveItem" ); + AssertNotNullL( hotKey, KRemoveItem ); + + hotKey->RemoveItem( EProgCmdAutoTest ); + _LIT( KRemoveItem2, "CEikHotKeyTable::RemoveItem 2" ); + AssertNotNullL( hotKey, KRemoveItem2 ); + + hotKey->Reset(); + _LIT( KReset, "CEikHotKeyTable::Reset" ); + AssertNotNullL( hotKey, KReset ); + + CleanupStack::Pop( hotKey ); + delete hotKey; + hotKey = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEHCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestEHCase::TestFunctionL() + { + TestErrorUiL(); + TestHotkeysL(); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestehcontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEHContainer::CBCTestEHContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEHContainer::~CBCTestEHContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEHContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestEHContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestEHContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestEHContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestEHContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEHContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestEHContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestEHContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestEHContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestEHContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestEHContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + + +//end of file + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestEHDocument.h" +#include "BCTestEHAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestEHDocument* CBCTestEHDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestEHDocument* CBCTestEHDocument::NewL( CEikApplication& aApp ) + { + CBCTestEHDocument* self = new( ELeave ) CBCTestEHDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestEHDocument::~CBCTestEHDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestEHDocument::~CBCTestEHDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestEHDocument::CBCTestEHDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestEHDocument::CBCTestEHDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestEHDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestEHDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestEHAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteh/src/bctestehview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctesteh.hrh" +#include +#include "bctestehview.h" +#include "bctestehcontainer.h" +#include "bctestutil.h" +#include "bctestehcase.h" + +// constant +_LIT( KBctestCase, "BCTest Error UI and Hotkeys case" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEHView* CBCTestEHView::NewL() + { + CBCTestEHView* self = new( ELeave ) CBCTestEHView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEHView::CBCTestEHView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEHView::ConstructL() + { + BaseConstructL( R_BCTESTEH_VIEW ); + + iContainer = new( ELeave ) CBCTestEHContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestEHCase::NewL( iContainer ), + KBctestCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEHView::~CBCTestEHView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestEHView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestEHView::Id() const + { + return KBCTestEHViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestEHView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestEHView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestEHView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestEHView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestEHView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestEHView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrl_lst.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrl_lst.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrl_lst_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrl_lst_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrlaif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrlaif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,30 @@ +/* +* 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 "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: RSS for creating the aif file +* +*/ + + +#include + +RESOURCE AIF_DATA + { + app_uid = 0x101F84B0; + groupName="BCTest"; + num_icons = 2; + embeddability=KAppNotEmbeddable; + newfile=KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrlsmallicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrlsmallicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrlsmalliconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/aif/bctesteikbctrlsmalliconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bctesteikbctrl.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bctesteikbctrl.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,89 @@ +/* +* 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 "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: project specification file for the BCTesteikbctrl. +* +*/ + + +TARGET BCTesteikbctrl.exe +TARGETTYPE exe +UID 0x0 0x20004746 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys\bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTesteikbctrl.rss +HEADER +TARGETPATH resource\apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ..\Src +SOURCE bctesteikbctrlapp.cpp +SOURCE bctesteikbctrldocument.cpp +SOURCE bctesteikbctrlappui.cpp +SOURCE bctesteikbctrlview.cpp +SOURCE bctesteikbctrlcontainer.cpp +SOURCE bctesteikbctrlcase.cpp +SOURCE bctesteikbdialgcase.cpp +SOURCE bctesteikaligncase.cpp +SOURCE bctestmiscellcase.cpp + +USERINCLUDE . ..\Inc +USERINCLUDE ..\..\..\bctestutil\inc + +SYSTEMINCLUDE . \epoc32\include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +LIBRARY egul.lib +LIBRARY avkon.lib eikcoctl.lib eikdlg.lib +LIBRARY estor.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ..\group\BCTesteikbctrl_reg.rss +HEADER +TARGETPATH \private\10003a3f\apps +END + +// Creates Mbm file. +START BITMAP BCTesteikbctrl_Aif.mbm +HEADER +TARGETPATH \resource\apps +sourcepath ..\aif +source c8 BCTesteikbctrlsmallicon.bmp +source c8 BCTesteikbctrlsmalliconmask.bmp +source c8 BCTesteikbctrl_lst.bmp +source c8 BCTesteikbctrl_lst_mask.bmp +end + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bctesteikbctrl.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bctesteikbctrl.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,432 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include + +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTesteikbctrl.hrh" +#include "BCTesteikbctrl.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctesteikbctrl_BMP_FNAME APP_BITMAP_DIR"\\BCTesteikbctrl.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTesteikbctrl"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesteikbctrl_menubar_main; + cba = r_bctesteikbctrl_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesteikbctrl_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR "\\BCTesteikbctrl_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikbctrl_view +// AVKON_VIEW for CBCTesteikbctrlView +// +//----------------------------------------------------------------------------- + +RESOURCE AVKON_VIEW r_bctesteikbctrl_view + { + menubar = r_bctesteikbctrl_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikbctrl_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesteikbctrl_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesteikbctrl_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesteikbctrl_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikbctrl_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteikbctrl_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCtrlCreat; + txt = qtn_bctestctrlcreat; + }, + MENU_ITEM + { + command = EBCTestAlignApi; + txt = qtn_bctestalignapi; + }, + MENU_ITEM + { + //command = EBCTestDialgApi; + cascade = r_bctestbctrl_menu_from_cascade; + txt = qtn_bctestdialgapi; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikbctrl_menu +// Menu pane +// +//----------------------------------------------------------------------------- + +RESOURCE MENU_PANE r_bctesteikbctrl_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesteikbctrl_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesteikbctrl_menu_exit; + } + }; + } + +RESOURCE MENU_PANE r_bctestbctrl_menu_from_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestBCtrlCmdOutline01; + txt = qtn_bctestbctrl_menu_outline01; + }, + MENU_ITEM + { + command = EBCTestBCtrlCmdOutline02; + txt = qtn_bctestbctrl_menu_outline02; + }, + MENU_ITEM + { + command = EBCTestBCtrlCmdOutline03; + txt = qtn_bctestbctrl_menu_outline03; + } + }; + } + +RESOURCE CBA r_bctest_cba + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeyOptions; + txt = " button "; + } + }; + } + +RESOURCE CBA_BUTTON r_bctest_cba_button + { + version=0; + id=0; + txt=""; + bmpfile=""; + bmpid=0xffff; // -1 + bmpmask=0xffff; // -1 + } + + +// ---------------------------------------------------------------------------- +// +// r_bctesteikbctrl_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesteikbctrl_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTesteikbctrlCbaCmdNext; + txt = qtn_bctesteikbctrl_cba_next; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_test_cba +// +//---------------------------------------------------------------------------- + + +RESOURCE DIALOG r_demo_singlepage_dialog + { + + flags = EEikDialogFlagNoDrag | EEikDialogFlagCbaButtons | EEikDialogFlagWait; + + buttons = R_AVKON_SOFTKEYS_OK_BACK; + + title=" dialog "; + + items = + { + + DLG_LINE + { + type = EEikCtNumberEditor; + // The caption(prompt) + prompt = "Number1:"; + id = ESinglePageDlgC1Id; + // The control + + control = NUMBER_EDITOR { min=0; max=999;}; + // The tag, indicating the measurement unit + trailer = "cm"; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + // The caption(prompt) + + prompt = "Number2:"; + id = EsinglePageDlgC2Id; + // The control + + control = NUMBER_EDITOR { min=0; max=999; }; + // The tag, indicating the measurement unit + + trailer = "cm"; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + // The caption(prompt) + + prompt = "Number3:"; + id = EsinglePageDlgC3Id; + // The control + + control = NUMBER_EDITOR { min=0; max=919; }; + // The tag, indicating the measurement unit + + trailer = "cm"; + }, + DLG_LINE + { + type = EEikCtEdwin; + id = EBcTestEdwin; + prompt = "bctrl edwin" ; + control = EDWIN + { + flags = EAknEditorFlagDefault; + width = 9; + lines = 3; + maxlength = 19; + }; + }, + DLG_LINE + { + type = EEikCtGlobalTextEditor; + id = EBcTestGtxted; + prompt = "bc Gtxted "; + control = GTXTED + { + flags = EAknEditorFlagDefault; + width = 14; + height = 3; + numlines =9; + textlimit= 19; + fontcontrolflags = EGulFontControlAll; + fontnameflags = EGulNoSymbolFonts; + }; + } + }; + } + +RESOURCE DLG_LINE r_line_page + { + type = EEikCtEdwin; + prompt = " line "; + id = EIdInsertLine; + control = EDWIN + { + flags = KMultiLineExpandingEditorFlags; + }; + } + + RESOURCE CBA_BUTTON r_bctesteikbctrl_button + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + } + +RESOURCE DIALOG r_bctest_form_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagCbaButtons + | EEikDialogFlagWait; + buttons =R_AVKON_SOFTKEYS_OK_BACK; + form = r_bctest_form; + } + +RESOURCE FORM r_bctest_form + { + flags = 0; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + id = EBcTestEdwin; + prompt = "bctrl edwin" ; + control = EDWIN + { + flags = EAknEditorFlagDefault; + width = 9; + lines = 3; + maxlength = 19; + }; + }, + DLG_LINE + { + type = EEikCtGlobalTextEditor; + id = EBcTestGtxted; + prompt = "bc Gtxted "; + control = GTXTED + { + flags = EAknEditorFlagDefault; + width = 14; + height = 3; + numlines =9; + textlimit= 19; + fontcontrolflags = EGulFontControlAll; + fontnameflags = EGulNoSymbolFonts; + }; + }, + DLG_LINE + { + type = EEikCtCommandButton; + id = EBcTestButon ; + prompt = " Txt Button"; + control = TXTBUT + { + txt1=" one "; + txt2=" two "; + }; + } + }; + } + + +RESOURCE TBUF32 r_title_text1 + { + buf="title_text "; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bctesteikbctrl_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bctesteikbctrl_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004746 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTesteikbctrl"; + localisable_resource_file = "\\resource\\apps\\BCTesteikbctrl"; + localisable_resource_id = R_BCTESTEIKBCTRL_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctesteikbctrl.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikaligncase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikaligncase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_eikalignCASE_H +#define BCTEST_eikalignCASE_H + +#include "bctestcase.h" + +class CBCTesteikbctrlContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTesteikalignCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTesteikalignCase* NewL( CBCTesteikbctrlContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTesteikalignCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTesteikalignCase( CBCTesteikbctrlContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTesteikbctrlContainer* iContainer; + + }; + +#endif // BCTEST_eikalignCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrl.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrl.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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 "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: BCTesteikbctrl resource header file +* +*/ + + +#ifndef BCTESTeikbctrl_HRH +#define BCTESTeikbctrl_HRH + +enum TBCTesteikbctrlMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCtrlCreat, + EBCTestAlignApi, + EBCTestDialgApi, + EBCTestBCtrlCmdOutline01, + EBCTestBCtrlCmdOutline02, + EBCTestBCtrlCmdOutline03, + EProgCmdAutoTest, + EBCTestCmdMaxOutline + }; + +enum TBCTesteikbctrlCba + { + EBCTesteikbctrlCbaCmdNext = 0x6300 + }; + +enum TBCtestDialgCba + { + ESinglePageDlgCId = 0x6400, + ESinglePageDlgC1Id, + EsinglePageDlgC2Id, + EsinglePageDlgC3Id, + EIdInsertLine, + EBcTestEdwin, + EBcTestGtxted, + EBcTestButon + }; +#endif // BCTESTeikbctrl_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrl.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrl.loc Fri Sep 17 09:37:58 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 "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: BCTesteikbctrl localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTEIKBCTRL" +#define qtn_apps_tavl_grid "BCTESTEIKBCTRL" + +// MenuBar +#define qtn_bctesteikbctrl_menubar "Option" +#define qtn_bctesteikbctrl_cba_next "Next" +#define qtn_bctesteikbctrl_autotest "Autotest" +#define qtn_bctesteikbctrl_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestctrlcreat " CreatCtrl " +#define qtn_bctestalignapi " AlignApi " +#define qtn_bctestdialgapi " DialogApi " + +#define qtn_bctestbctrl_menu_outline01 "DialogOutline1" +#define qtn_bctestbctrl_menu_outline02 "DialogOutline2" +#define qtn_bctestbctrl_menu_outline03 "DialogOutline3" + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTesteikbctrlAPP_H +#define BCTesteikbctrlAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTesteikbctrl = { 0x20004746 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTesteikbctrlApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTesteikbctrlApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTesteikbctrlDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTesteikbctrl ). + * @return The value of KUidBCTesteikbctrl. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for eikbctrl control API. +* +*/ + + +#ifndef C_BCTESTeikbctrlAPPUI_H +#define C_BCTESTeikbctrlAPPUI_H + +#include + +class CBCTesteikbctrlView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTesteikbctrlAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTesteikbctrlAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTesteikbctrlAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTesteikbctrlView* iView; + }; + +#endif // C_BCTESTeikbctrlAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_eikbctrlCASE_H +#define BCTEST_eikbctrlCASE_H + +#include "bctestcase.h" + +class CBCTesteikbctrlContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTesteikbctrlCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTesteikbctrlCase* NewL( CBCTesteikbctrlContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTesteikbctrlCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + + +private: // constructor + + /** + * C++ default constructor + */ + CBCTesteikbctrlCase( CBCTesteikbctrlContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTesteikbctrlContainer* iContainer; + + }; + +#endif // BCTEST_eikbctrlCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_eikbctrlCONTAINER_H +#define BCTEST_eikbctrlCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTesteikbctrlContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTesteikbctrlContainer(); + + /** + * Destructor + */ + virtual ~CBCTesteikbctrlContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + CWindowGc& GetSystemGc(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_eikbctrlCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrldocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrldocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTeikbctrlDOCUMENT_H +#define C_BCTESTeikbctrlDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTesteikbctrlDocument application class. +*/ +class CBCTesteikbctrlDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTesteikbctrlDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTesteikbctrlDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTesteikbctrlDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTesteikbctrlAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTeikbctrlDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbctrlview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for eikbctrl control API. +* +*/ + + +#ifndef BCTEST_eikbctrl_VIEW_H +#define BCTEST_eikbctrl_VIEW_H + +#include + +const TUid KBCTesteikbctrlViewId = { 1 }; + +class CBCTesteikbctrlContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTesteikbctrlView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTesteikbctrlView* NewL(); + + /** + * dtor + */ + virtual ~CBCTesteikbctrlView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTesteikbctrlView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTesteikbctrlContainer* iContainer; + + }; + +#endif // BCTEST_eikbctrl_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbdialgcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctesteikbdialgcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_eikbdialgCASE_H +#define BCTEST_eikbdialgCASE_H + +#include + +#include "bctestcase.h" + +class CBCTesteikbctrlContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTesteikbdialgCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTesteikbdialgCase* NewL( CBCTesteikbctrlContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTesteikbdialgCase(); + + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + + void TestSetFromResL(); + + void Test(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTesteikbdialgCase( CBCTesteikbctrlContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTesteikbctrlContainer* iContainer; + + }; + +#endif // BCTEST_eikbdialgCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctestmiscellcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/inc/bctestmiscellcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_MISCELLCASE_H +#define BCTEST_MISCELLCASE_H + +#include +#include "bctestcase.h" + +class CBCTesteikbctrlContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ + +class CBCTestMiscellCase: public CEikDialog + { +public: // constructor and destructor + friend class CBCTesteikbdialgCase; + friend class CBCTesteikbctrlContainer; + + /** + * C++ default constructor + */ + CBCTestMiscellCase(); + + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * Destructor + */ + virtual ~CBCTestMiscellCase(); + + }; + +#endif // BCTEST_MISCELLCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/sis/bctesteikbctrl.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/sis/bctesteikbctrl.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +; +; 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: +; +; BCTestEikBCtrl3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestEikBCtrl"},(0x20004746),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 2.0 +;This line indicates that this installation is for the Series 60 platform v2.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v2.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestEikBCtrl.exe"- +"!:\sys\bin\BCTestEikBCtrl.exe" + +"\epoc32\data\z\resource\apps\BCTestEikBCtrl.RSC"- +"!:\resource\apps\BCTestEikBCtrl.RSC" + +"\epoc32\data\z\resource\apps\BCTestEikBCtrl_aif.mbm"- +"!:\resource\apps\BCTestEikBCtrl_aif.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestEikBCtrl_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestEikBCtrl_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikaligncase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikaligncase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include + +#include "bctesteikaligncase.h" +#include "bctesteikbctrlcontainer.h" +#include "bctesteikbctrl.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTesteikalignCase* CBCTesteikalignCase::NewL( + CBCTesteikbctrlContainer* aContainer ) + { + CBCTesteikalignCase* self = new( ELeave ) CBCTesteikalignCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTesteikalignCase::CBCTesteikalignCase( + CBCTesteikbctrlContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// + +CBCTesteikalignCase::~CBCTesteikalignCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- + +void CBCTesteikalignCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTesteikalignCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTesteikalignCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 1 ), LeftCBA, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTesteikalignCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTesteikalignCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestAlignApi || aCmd > EBCTestAlignApi ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestAlignApi: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTesteikalignCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTesteikalignCase::TestFunctionL() + { + // Test some API here + _LIT(creatAlign," create alignCtrol "); + _LIT(setMargin," invoke SetAllMarginsto() " ); + _LIT(setAlign," call SetAlignment()" ); + + CEikAlignedControl *alignCtrl = new ( ELeave ) CEikAlignedControl(); + AssertNotNullL( alignCtrl, creatAlign); + + //invoke SetAllMarginsTo + alignCtrl->SetAllMarginsTo( TInt(2) ); + AssertTrueL( ETrue,setMargin ); + + //invoke SetAlignment() + alignCtrl->SetAlignment(EHLeftVBottom); + AssertTrueL( ETrue,setAlign ); + + TPointerEvent pEvnt; + pEvnt.iType = TPointerEvent::EButton1Down; + alignCtrl->HandlePointerEventL( pEvnt ); + _LIT( ptEvnt," Test HandlePointerEventL()" ); + AssertTrueL( ETrue, ptEvnt); + + delete alignCtrl; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon eikbctrl test app +* +*/ + + +#include + +#include "BCTesteikbctrlApp.h" +#include "BCTesteikbctrlDocument.h" + + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTesteikbctrlApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTesteikbctrlApp::AppDllUid() const + { + return KUidBCTesteikbctrl; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTesteikbctrlApp::CreateDocumentL() +// Creates CBCTesteikbctrlDocument object. +// ---------------------------------------------------------------------------- + +CApaDocument* CBCTesteikbctrlApp::CreateDocumentL() + { + return CBCTesteikbctrlDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTesteikbctrlApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTesteikbctrlApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,82 @@ +/* +* 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 "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 bc for eikbctrl control api(s) +* +*/ + + +#include +#include + +#include "bctesteikbctrlAppUi.h" +#include "bctesteikbctrl.hrh" +#include "bctesteikbctrlview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlAppUi::CBCTesteikbctrlAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTesteikbctrlView* view = CBCTesteikbctrlView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTesteikbctrlAppUi::~CBCTesteikbctrlAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTesteikbctrlAppUi::~CBCTesteikbctrlAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTesteikbctrlAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,172 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +// the extra header make for test +#include + +// below header from framework +#include "bctesteikbctrlcase.h" +#include "bctesteikbctrlcontainer.h" +#include "bctesteikbctrl.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlCase* CBCTesteikbctrlCase::NewL( + CBCTesteikbctrlContainer* aContainer ) + { + CBCTesteikbctrlCase* self = new( ELeave ) CBCTesteikbctrlCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlCase::CBCTesteikbctrlCase( + CBCTesteikbctrlContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// + +CBCTesteikbctrlCase::~CBCTesteikbctrlCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 1 ), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCtrlCreat || aCmd > EBCTestCtrlCreat ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCtrlCreat: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlCase::TestFunctionL() + { + //tst text declare here + _LIT( creatBorder,"new a CEikBorderedControl object " ); + _LIT( setBorderTInt, " SetBorder( TInt) test for EikBctrl! " ) ; + _LIT( setBorderType, " SetBorder( TGulBorder::BorderType ) test for EikBctrl! " ) ; + _LIT( getBorder," Border( ) test for EikBctrl! " ) ; + _LIT( setAdjacent," invoke SetAdjacent" ); + _LIT( resourceChange, " call handleResourceChange " ); + _LIT( pointEvent, " call handlePointEvent" ); + _LIT( retHasBorder," HasBorder( ) test for EikBctrl! " ) ; + + //create no parameter border control + CEikBorderedControl * boder = new ( ELeave ) CEikBorderedControl(); + AssertNotNullL( boder,creatBorder ); + + //invoke SetBorder function + boder->SetBorder(TGulBorder::EDeepSunken); + AssertTrueL( ETrue,setBorderType ); + + boder->SetBorder(TInt(2)); + AssertTrueL( ETrue, setBorderTInt); + + //invoke border function + TGulBorder gulBorder = boder->Border(); + AssertTrueL( ETrue,getBorder ); + + boder->SetAdjacent(EGulAdjBottom); + AssertTrueL( ETrue,setAdjacent); + + //invoke handleresourcechange + boder->HandleResourceChange(TInt(1)); + AssertTrueL( ETrue,resourceChange); + + //invoke handlePointEventL function + TPointerEvent pEvnt; + pEvnt.iType = TPointerEvent::EButton1Down; + boder->HandlePointerEventL( pEvnt ); + AssertTrueL( ETrue, pointEvent); + + boder->HasBorder(); + AssertTrueL( ETrue, retHasBorder); + + CArrayFix* clrList = + new (ELeave) CArrayFixFlat(256); + CleanupStack::PushL(clrList); + boder->GetColorUseListL( *clrList ); + _LIT(gtClrUsrList," Test GetColorUseListL()" ); + AssertTrueL( ETrue, gtClrUsrList); + CleanupStack::Pop( clrList ); + delete clrList; + + //add on 21 June. + CCoeControl *coe = dynamic_cast( boder ); + coe->MinimumSize(); + _LIT( minsz,"Test MinimumSize()" ); + AssertTrueL( ETrue,minsz ); + + delete boder; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,123 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctesteikbctrlcontainer.h" +#include "bctestmiscellcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlContainer::CBCTesteikbctrlContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlContainer::~CBCTesteikbctrlContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTesteikbctrlContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTesteikbctrlContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTesteikbctrlContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTesteikbctrlContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlContainer::SetControl +// --------------------------------------------------------------------------- + +void CBCTesteikbctrlContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +CWindowGc& CBCTesteikbctrlContainer::GetSystemGc() + { + return CCoeEnv::Static()->SystemGc(); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrldocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrldocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon eikbctrl test application +* +*/ + + +#include "BCTesteikbctrlDocument.h" +#include "BCTesteikbctrlAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTesteikbctrlDocument* CBCTesteikbctrlDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTesteikbctrlDocument* CBCTesteikbctrlDocument::NewL( CEikApplication& aApp ) + { + CBCTesteikbctrlDocument* self = new( ELeave ) CBCTesteikbctrlDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTesteikbctrlDocument::~CBCTesteikbctrlDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTesteikbctrlDocument::~CBCTesteikbctrlDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTesteikbctrlDocument::CBCTesteikbctrlDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTesteikbctrlDocument::CBCTesteikbctrlDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTesteikbctrlDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTesteikbctrlDocument::CreateAppUiL() + { + return new( ELeave ) CBCTesteikbctrlAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbctrlview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,139 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctesteikbctrl.hrh" +#include +#include "bctesteikbctrlview.h" +#include "bctesteikbctrlcontainer.h" +#include "bctestutil.h" +#include "bctesteikbctrlcase.h" +#include "bctesteikbdialgcase.h" +#include "bctesteikaligncase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlView* CBCTesteikbctrlView::NewL() + { + CBCTesteikbctrlView* self = new( ELeave ) CBCTesteikbctrlView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- + +CBCTesteikbctrlView::CBCTesteikbctrlView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlView::ConstructL() + { + BaseConstructL( R_BCTESTEIKBCTRL_VIEW ); + _LIT(CtrlCase,"eikbctrl test case"); + _LIT(DialgCase,"eikdialg test case"); + _LIT(AlignCase, "align test case" ); + iContainer = new( ELeave ) CBCTesteikbctrlContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTesteikbctrlCase::NewL( iContainer ), + CtrlCase); + iTestUtil->AddTestCaseL( CBCTesteikalignCase::NewL( iContainer), + AlignCase); + iTestUtil->AddTestCaseL( CBCTesteikbdialgCase::NewL( iContainer ), + DialgCase); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTesteikbctrlView::~CBCTesteikbctrlView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTesteikbctrlView::Id() const + { + return KBCTesteikbctrlViewId; + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTesteikbctrlView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTesteikbctrlView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbdialgcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctesteikbdialgcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,363 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctesteikbdialgcase.h" +#include "bctesteikbctrlcontainer.h" +#include "bctesteikbctrl.hrh" +#include "avkon.hrh" +#include "bctestmiscellcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTesteikbdialgCase* CBCTesteikbdialgCase::NewL( + CBCTesteikbctrlContainer* aContainer ) + { + CBCTesteikbdialgCase* self = new( ELeave ) CBCTesteikbdialgCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTesteikbdialgCase::CBCTesteikbdialgCase( + CBCTesteikbctrlContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTesteikbdialgCase::~CBCTesteikbdialgCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTesteikbdialgCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTesteikbdialgCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTesteikbdialgCase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + DELAY(1), + LeftCBA, // delay between commands is 1*0.1 seconds = 0.1 seconds + REP(Down, 2), + Right, + KeyOK, + DELAY(1), + RightCBA, + + + LeftCBA, + REP(Down, 2), + Right, + REP(Down, 1), + KeyOK, + DELAY(1), + RightCBA, + + + LeftCBA, + REP(Down, 2), + Right, + REP(Down, 2), + KeyOK, + DELAY(1), + RightCBA, + TEND + }; + + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTesteikbdialgCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTesteikbdialgCase::RunL( TInt aCmd ) + { + if ( aCmd > EBCTestCmdMaxOutline || aCmd < EBCTestCmdEmptyOutline ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestBCtrlCmdOutline01: + TestFunctionL(); + break; + case EBCTestBCtrlCmdOutline02: + Test(); + break; + case EBCTestBCtrlCmdOutline03: + TestSetFromResL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTesteikbdialgCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTesteikbdialgCase::TestFunctionL() + { + + _LIT( eikdialg, " CEikDialog test for EikbDialog! " ) ; + _LIT( tstPrepare," test CEikDialog->PrepareLC() "); + _LIT( tstSetTitle,"test CEikDialog->SetTitleL()"); + _LIT( dimValue," set value = 1"); + _LIT( lineFocus," call SetLineNonFocusing " ); + _LIT( rTitle, "reset title" ); + TBuf16<50> dlgTstTxt(rTitle); + + // Test some API here + CBCTestMiscellCase* dialog = new ( ELeave ) CBCTestMiscellCase(); + dialog->ConstructAutoDialogLC( EEikDialogFlagNoDrag, + R_AVKON_SOFTKEYS_OK_BACK ); + AssertNotNullL( dialog, eikdialg); + _LIT( KEikDialog12, "CEikDialog::ConstructAutoDialogLC" ); + AssertTrueL( ETrue, KEikDialog12 ); + CleanupStack::PopAndDestroy( dialog ); + + dialog = new ( ELeave ) CBCTestMiscellCase(); + dialog->PrepareLC( R_DEMO_SINGLEPAGE_DIALOG ); + AssertTrueL(ETrue,tstPrepare); + + dialog->SetTitleL( dlgTstTxt ); + AssertTrueL( ETrue,tstSetTitle ); + + dialog->SetLineNonFocusing( EsinglePageDlgC2Id ); + AssertTrueL( ETrue,lineFocus ); + + dialog->MakeLineVisible( EsinglePageDlgC2Id,ETrue); + AssertNotNullL(dialog,dimValue); + + dialog->SetLineDimmedNow( EsinglePageDlgC2Id,ETrue); + _LIT( setLnDim," Test SetLineDimmedNow() " ); + AssertTrueL( ETrue,setLnDim ); + + dialog->MakeWholeLineVisible( EsinglePageDlgC2Id,ETrue); + AssertNotNullL(dialog,dimValue); + + //delete a line from resoure + dialog->DeleteLine( ESinglePageDlgC1Id ); + _LIT( delLine, " call DeleteLine() "); + AssertTrueL( ETrue, delLine); + + dialog->SetInitialCurrentLine(); + CEikCaptionedControl* curLine = dialog->CurrentLine(); + if (curLine) + { + dialog->TryChangeFocusToL(curLine->iId); + _LIT( chgFocus," test TryChangeFocusToL()" ); + AssertTrueL( ETrue,chgFocus); + } + + TInt pgID = dialog->ActivePageId(); + dialog->SetPageDensePacking( pgID ,ETrue); + _LIT( pgDensePack," invoke SetPageDensePacking()" ); + AssertTrueL( ETrue, pgDensePack); + + dialog->SetPageDimmedNow( pgID,ETrue ); + AssertTrueL( ETrue, dimValue); + + dialog->Title(); + _LIT( tT,"Test Title()" ); + AssertTrueL( ETrue,tT ); + + dialog->Control( EsinglePageDlgC2Id ); + _LIT( ctrl,"Test Control " ); + AssertTrueL( ETrue,ctrl ); + + dialog->ControlOrNull( EsinglePageDlgC2Id ); + _LIT( ctrlOrNull," Test ControlOrNull()" ); + AssertTrueL( ETrue,ctrlOrNull); + + dialog->ControlCaption( EsinglePageDlgC2Id ); + _LIT( cntrlCaption," Test ControlCaption "); + AssertTrueL( ETrue,cntrlCaption); + + dialog->ActivateFirstPageL(); + _LIT( actvFirstPg," Test ActivateFirstPageL()" ); + AssertTrueL( ETrue,actvFirstPg ); + + dialog->SetControlCaptionL( EsinglePageDlgC2Id, dimValue); + _LIT( setCtrlCaption," Test SetControlCaptionL()" ); + AssertTrueL(ETrue ,setCtrlCaption ); + + dialog->SetControlCaptionL( EsinglePageDlgC2Id, R_TITLE_TEXT1 ); + _LIT( KEikDialog7, "CEikDialog::SetControlCaptionL with resource Id" ); + AssertTrueL( ETrue, KEikDialog7 ); + + CArrayFix* clrList = + new (ELeave) CArrayFixFlat(1); + CleanupStack::PushL(clrList); + dialog->GetColorUseListL( *clrList ); + CleanupStack::Pop(); + delete clrList; + + dialog->IsEditable(); + _LIT( isEdit," Test IsEditable " ); + AssertTrueL( ETrue,isEdit ); + + dialog->MakeVisible(ETrue); + _LIT( mkVisible,"Test MakeVisible() " ); + AssertTrueL( ETrue, mkVisible); + + TKeyEvent kEvnt; + kEvnt.iCode = '0'; + dialog->OfferKeyEventL(kEvnt,EEventNull); + _LIT( ofKeyEvent," Test OfferKeyEventL() " ); + AssertTrueL( ETrue, ofKeyEvent ); + + dialog->SetEditableL( ETrue ); + _LIT( setEdit," Test SetEditableL() " ); + AssertTrueL( ETrue, setEdit ); + + TInt activePageIndex = dialog->ActivePageIndex(); + _LIT( KEikDialog1, "CEikDialog::ActivePageIndex" ); + AssertTrueL( ETrue, KEikDialog1 ); + + MEikCommandObserver* observer = dialog->ButtonCommandObserver(); + _LIT( KEikDialog2, "CEikDialog::ButtonCommandObserver" ); + AssertNotNullL( observer, KEikDialog2 ); + + dialog->AdjustAllIdsOnPage( 0, 0 ); + _LIT( KEikDialog3, "CEikDialog::AdjustAllIdsOnPage" ); + AssertTrueL( ETrue, KEikDialog3 ); + + dialog->HandleInteractionRefused( 0 ); + _LIT( KEikDialog4, "CEikDialog::HandleInteractionRefused" ); + AssertTrueL( ETrue, KEikDialog4 ); + + dialog->SetTitleL( R_TITLE_TEXT1 ); + _LIT( KEikDialog5, "CEikDialog::SetTitleL" ); + AssertTrueL( ETrue, KEikDialog5 ); + + dialog->PageChangedL( EsinglePageDlgC3Id ); + _LIT( KEikDialog6, "CEikDialog::PageChangedL" ); + AssertTrueL( ETrue, KEikDialog6 ); + + TInt delta = 5; + dialog->RotateFocusByL( delta ); + _LIT( KEikDialog8, "CEikDialog::RotateFocusByL" ); + AssertTrueL( ETrue, KEikDialog8 ); + + CEikCaptionedControl* becomesLatent = dialog->Line( + EsinglePageDlgC2Id ); + CEikCaptionedControl* nolongerLatent = dialog->Line( + EsinglePageDlgC3Id ); + becomesLatent->SetLatent( EFalse ); + nolongerLatent->SetLatent( ETrue ); + dialog->SwitchLineLatency( EsinglePageDlgC2Id, EsinglePageDlgC3Id ); + _LIT( KEikDialog9, "CEikDialog::SwitchLineLatency" ); + AssertTrueL( ETrue, KEikDialog9 ); + becomesLatent->SetLatent( EFalse ); + nolongerLatent->SetLatent( EFalse ); + + dialog->InsertLineL( 0, R_LINE_PAGE ); + _LIT(insertLine, "CEikDialog::InsertLineL" ); + AssertTrueL( ETrue,insertLine ); + + CEikButtonGroupContainer* currentBtGrp = CEikButtonGroupContainer::Current(); + CEikButtonGroupContainer* btGrp = dialog->SwapButtonGroupContainer( + currentBtGrp ); + dialog->SwapButtonGroupContainer( btGrp ); + _LIT( KEikDialog10, "CEikDialog::SwapButtonGroupContainer" ); + AssertNotNullL( btGrp, KEikDialog10 ); + + dialog->MakePanelButtonVisible( EAknSoftkeyBack, ETrue ); + _LIT( KEikDialog11, "CEikDialog::MakePanelButtonVisible" ); + AssertTrueL( ETrue, KEikDialog11 ); + + _LIT( KStreamName, "c:\\BCTestLog\\baseControl.txt" ); + RFs& tempServer = CEikonEnv::Static()->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + dialog->WriteInternalStateL( fWrite ); + _LIT( KEikDialog13, "CEikDialog::WriteInternalStateL" ); + AssertTrueL( ETrue, KEikDialog13 ); + CleanupStack::PopAndDestroy( &fWrite ); + tempServer.Delete( KStreamName ); + + dialog->RunLD(); + } + +void CBCTesteikbdialgCase::Test() + { + CBCTestMiscellCase *miscell = new ( ELeave ) CBCTestMiscellCase(); + CleanupStack::PushL( miscell ); + + CleanupStack::Pop(); + delete miscell; + + iContainer->DrawNow(); + _LIT( preContext," Test PrepareContext() " ); + AssertTrueL( ETrue,preContext ); + + } + +void CBCTesteikbdialgCase::TestSetFromResL() + { + _LIT( dialgCreat," if dialg have been created" ); + TBuf<32> tmpBuf(dialgCreat); + + CEikDialog *dialog = new ( ELeave ) CEikDialog(); + AssertNotNullL( dialog, dialgCreat ); + + dialog->ExecuteLD( R_DEMO_SINGLEPAGE_DIALOG ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctestmiscellcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikbctrl/src/bctestmiscellcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctestmiscellcase.h" +#include "bctesteikbctrlcontainer.h" +#include "bctesteikbctrl.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscellCase::CBCTestMiscellCase() + { + + } + +// --------------------------------------------------------------------------- +// CBCTestMiscellCase::ConstructL() +//---------------------------------------------------------------------------- + +void CBCTestMiscellCase::ConstructL() + { + } +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMiscellCase::~CBCTestMiscellCase() + { + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/Makefile Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +.PHONY: all + +all: compile run + +prepare: + bldmake bldfiles + +debug: + abld build winscw udeb + +compile: + abld build winscw + +arm: + abld build armv5 urel + +lib: + abld freeze winscw + abld build winscw udeb + +armlib: + abld freeze armv5 + abld build armv5 urel + +track: + tail -f %TMP%/epocwind.out + +run: + epoc + +clean: + abld clean winscw udeb + abld clean armv5 urel + abld clean winscw urel + abld clean armv5 udeb + del ..\sis\*.sisx + +sis: + make -C ..\sis + +install: + copy ..\sis\*.sisx %PUB%\exchange\liuxinyu diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bctesteikfrm.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bctesteikfrm.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: project specification file for the bctesteikfrm. +* +*/ + + +TARGET bctesteikfrm.exe +TARGETTYPE exe +UID 0x0 0x200045CD + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctesteikfrm.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +LANG 01 + +SOURCEPATH ../Src +SOURCE bctesteikfrmapp.cpp +SOURCE bctesteikfrmdocument.cpp +SOURCE bctesteikfrmappui.cpp +SOURCE bctesteikfrmview.cpp +SOURCE bctesteikfrmcontainer.cpp +SOURCE bctesteikfrmcase.cpp +SOURCE bctesteikdoc.cpp +SOURCE bctesteikproc.cpp +SOURCE bctestapplist.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY estor.lib + +START RESOURCE ../group/bctesteikfrm_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bctesteikfrm.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bctesteikfrm.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,220 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestEikFrm.hrh" +#include "BCTestEikFrm.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctesttemplate_BMP_FNAME APP_BITMAP_DIR"\\BCTestEikFrm.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestEikFrm"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesteikfrm_menubar_main; + cba = r_bctesteikfrm_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesteikfrm_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestEikFrm_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikfrm_view +// AVKON_VIEW for CBCTestEikFrmView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesteikfrm_view + { + menubar = r_bctesteikfrm_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikfrm_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesteikfrm_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesteikfrm_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesteikfrm_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikfrm_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteikfrm_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdEikApp; + txt = "Test EikApp"; + }, + MENU_ITEM + { + command = EBCTestCmdEikDoc; + txt = "Test EikDoc"; + }, + MENU_ITEM + { + command = EBCTestCmdEikProc; + txt = "Test EikProcess"; + }, + MENU_ITEM + { + command = EBCTestCmdEikAppList; + txt = "Test AppList"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteikfrm_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesteikfrm_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesteikfrm_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesteikfrm_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctesteikfrm_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesteikfrm_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestEikFrmCbaCmdNext; + txt = qtn_bctesteikfrm_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bctesteikfrm_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bctesteikfrm_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045CD // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestEikFrm"; + localisable_resource_file = "\\resource\\apps\\BCTestEikFrm"; + localisable_resource_id = R_BCTESTEIKFRM_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctesteikfrm.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctestapplist.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctestapplist.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_EIK_APPLIST_H +#define BCTEST_EIK_APPLIST_H + +#include "bctestcase.h" + +/** +* test case for various list classes +*/ +class CBCTestAppList: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestAppList* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestAppList(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + + /** + * Test functions + */ + void TestFunctionL(); + + + + void HandleErrL(TInt err); + + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestAppList(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + }; + +#endif // BCTEST_EIK_APPLIST_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikdoc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikdoc.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_EIKDOC_H +#define BCTEST_EIKDOC_H + +#include "bctestcase.h" + +/** +* test case for various list classes +*/ +class CBCTestEikDoc: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikDoc* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestEikDoc(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + + /** + * Test functions + */ + void TestFunctionL(); + + void TestFileL(); + + void TestOpsL(); + + void TestPropertyL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikDoc(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + }; + +#endif // BCTEST_EIKDOC_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrm.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrm.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +/* +* 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 "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: BCTestTemplate resource header file +* +*/ + + +#ifndef BCTESTEIKFRM_HRH +#define BCTESTEIKFRM_HRH + +enum TBCTestEikFrmMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + + EBCTestCmdEikApp, + EBCTestCmdEikDoc, + EBCTestCmdEikProc, + EBCTestCmdEikAppList, + + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestEikFrmCba + { + EBCTestEikFrmCbaCmdNext = 0x6300 + }; + +#endif // BCTESTEIKFRM_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrm.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrm.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: BCTestEikFrm localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTEIKFRM" +#define qtn_apps_tavl_grid "BCTESTEIKFRM" + +// MenuBar +#define qtn_bctesteikfrm_menubar "Option" +#define qtn_bctesteikfrm_cba_next "Next" +#define qtn_bctesteikfrm_autotest "Autotest" +#define qtn_bctesteikfrm_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTEIKFRMAPP_H +#define BCTESTEIKFRMAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestTemplate = { 0x200045CD }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestEikFrmApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestEikFrmApp : public CEikApplication + { + public: + CBCTestEikFrmApp(); + + void NewAppServerL(CApaAppServer*& aAppServer); + + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTemplateDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTemplate ). + * @return The value of KUidBCTestTemplate. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTEIKFRMPPUI_H +#define C_BCTESTEIKFRMPPUI_H + +#include + +class CBCTestEikFrmView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestEikFrmAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestEikFrmAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestEikFrmAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestEikFrmView* iView; + }; + +#endif // C_BCTESTEIKFRMPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_EIKFRM_CASE_H +#define BCTEST_EIKFRM_CASE_H + +#include "bctestcase.h" + +class CBCTestEikFrmContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestEikFrmCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikFrmCase* NewL( CBCTestEikFrmContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEikFrmCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikFrmCase( CBCTestEikFrmContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestEikFrmContainer* iContainer; + + }; + +#endif // BCTEST_EIKFRM_CASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_EIKFRM_CONTAINER_H +#define BCTEST_EIKFRM_CONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestEikFrmContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestEikFrmContainer(); + + /** + * Destructor + */ + virtual ~CBCTestEikFrmContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_EIKFRM_CONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTEIKFRMDOCUMENT_H +#define C_BCTESTEIKFRMDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestTemplateDocument application class. +*/ +class CBCTestEikFrmDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestEikFrmDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestEikFrmDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestEikFrmDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestEikFrmAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTEIKFRMDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikfrmview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_EIKFRM_VIEW_H +#define BCTEST_EIKFRM_VIEW_H + +#include + +const TUid KBCTestEikFrmViewId = { 1 }; + +class CBCTestEikFrmContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestEikFrmView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestEikFrmView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestEikFrmView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikFrmView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestEikFrmContainer* iContainer; + + }; + +#endif // BCTEST_EIKFRM_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikproc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/inc/bctesteikproc.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,94 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_EIK_PROC_H +#define BCTEST_EIK_PROC_H + +#include "bctestcase.h" + +/** +* test case for various list classes +*/ +class CBCTestEikProc: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikProc* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestEikProc(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + + /** + * Release resource used in test + */ + + /** + * Test functions + */ + void TestFunctionL(); + + void TestFileL(); + + void TestOpsL(); + + void HandleErrL(TInt err); + + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikProc(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + }; + +#endif // BCTEST_EIK_PROC_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/sis/bctesteikfrm.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/sis/bctesteikfrm.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesteikfrm.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctesteikfrm"},(0x200045CD),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctesteikfrm.exe"- +"!:\sys\bin\bctesteikfrm.exe" + +"\epoc32\data\z\resource\apps\bctesteikfrm.r01"- +"!:\resource\apps\bctesteikfrm.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctesteikfrm_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctesteikfrm_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctestapplist.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctestapplist.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,137 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +#include +#include +#include +#include +#include +#include +#include + +#include "bctestapplist.h" +#include "bctesteikfrm.hrh" +#include "bctesteikfrmapp.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestAppList* CBCTestAppList::NewL() + { + CBCTestAppList* self = new( ELeave ) CBCTestAppList(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestAppList::CBCTestAppList() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestAppList::~CBCTestAppList() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestAppList::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppList::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestAppList::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 3), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestAppList::RunL +// --------------------------------------------------------------------------- +// +void CBCTestAppList::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdEikAppList ) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestAppList::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestAppList::TestFunctionL() + { + CEikEmbeddableAppList* list = new (ELeave) CEikEmbeddableAppList; + CleanupStack::PushL(list); + AssertNotNullL( list, _L("CEikEmbeddableAppList ctor invoked")); + + list->ConstructL(); + AssertTrueL( ETrue, _L("CEikEmbeddableAppList symbian 2nd ctor invoked")); + + CleanupStack::PopAndDestroy(); //list + + list = new (ELeave) CEikEmbeddableAppList; + CleanupStack::PushL(list); + TApaEmbeddabilityFilter filter; + filter.AddEmbeddability(TApaAppCapability::ENotEmbeddable); + list->ConstructL(filter); + AssertTrueL( ETrue, _L("CEikEmbeddableAppList symbian 2nd ctor with filter invoked")); + + CApaProcess* proc = CEikonEnv::Static()->Process(); + CEikDocument* doc = NULL; + TRAPD(err, doc = list->CreateEmbeddedDocumentL(0, proc)); + if(err == KErrNotFound){ + AssertTrueL( ETrue, _L("CreateEmbeddedDocumentL leave because not found")); + } + else{ + CleanupStack::PushL(doc); + AssertNotNullL( doc, _L("CreateEmbeddedDocumentL invoked")); + CleanupStack::PopAndDestroy(); //doc + } + + + CleanupStack::PopAndDestroy(); //list + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikdoc.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikdoc.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,211 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +#include +#include +#include +#include +#include +#include + +#include "bctesteikdoc.h" +#include "bctesteikfrm.hrh" +#include "bctesteikfrmapp.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikDoc* CBCTestEikDoc::NewL() + { + CBCTestEikDoc* self = new( ELeave ) CBCTestEikDoc(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikDoc::CBCTestEikDoc() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikDoc::~CBCTestEikDoc() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikDoc::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikDoc::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikDoc::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 1), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestEikDoc::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikDoc::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdEikDoc ) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikDoc::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestEikDoc::TestFunctionL() + { + TestFileL(); + TestPropertyL(); + TestOpsL(); + } + +void CBCTestEikDoc::TestFileL() + { + CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document(); + + RFs& fs = CEikonEnv::Static()->FsSession(); + _LIT(KFileName, "C:\\BCTestLog\\foo.txt"); + CFileStore* store = doc->OpenFileL(EFalse, KFileName, fs); + AssertNotNullL(store, _L("CFileStore* CAknDocument::OpenFileL() invoked with EFalse.")); + delete store; + + store = NULL; + store = doc->OpenFileL(ETrue, KFileName, fs); + AssertNotNullL(store, _L("CFileStore* CAknDocument::OpenFileL() invoked with ETrue.")); + delete store; + + store = NULL; + RFile file; + if ( file.Open( fs, KFileName, EFileWrite | EFileShareAny ) != KErrNone ){ + file.Create( fs, KFileName, EFileWrite | EFileShareAny ); + } + + doc->OpenFileL(store, file); + AssertNotNullL(store, _L("void CAknDocument::OpenFileL() invoked.")); + delete store; + file.Close(); + + CStreamStore* strm = doc->EditStore(); + AssertNotNullL(strm, _L("StreamStore got")); + doc->SetEditStoreL(strm); + AssertTrueL( ETrue, _L("StreamStore set")); + + store = doc->CreateFileStoreLC(fs, KFileName); + AssertNotNullL( store, _L("file store created")); + CleanupStack::PopAndDestroy(); + } + +void CBCTestEikDoc::TestOpsL() +{ + CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document(); + doc->NewDocumentL(); + AssertTrueL( ETrue, _L("NewDocument() OK")); + + doc->ValidatePasswordL(); + AssertTrueL( ETrue, _L("password validated")); + + class CMonkObserver: public CBase, public MApaEmbeddedDocObserver + { + public: + void NotifyExit(TExitMode /*aMode*/){} + }; + /* + *not supported for non-embbed app + MApaEmbeddedDocObserver* observer = new (ELeave) CMonkObserver; + CleanupStack::PushL(observer); + TRAPD( err, doc->EditL(observer)); + if( err == KErrNotSupported ){ + AssertTrueL( ETrue, _L("EditL not supported for non-embedded app")); + } + CleanupStack::PopAndDestroy(); //observer + */ + AssertTrueL( ETrue, _L("EditL & PrepareEditL are not supported for non-embedded app")); + + CStreamStore* strm = doc->EditStore(); + doc->PrintL(*strm); + AssertTrueL( ETrue, _L("PrintL is empty")); + + doc->SaveL(); + AssertTrueL( ETrue, _L("SaveL() invoked")); + + CStreamDictionary* dict = CStreamDictionary::NewLC(); + + doc->StoreL(*strm, *dict); + AssertTrueL( ETrue, _L("store")); + + doc->RestoreL(*strm, *dict); + AssertTrueL( ETrue, _L("Restore")); + + CleanupStack::PopAndDestroy(); //dict +} + +void CBCTestEikDoc::TestPropertyL(){ + CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document(); + + //caption + TApaAppCaption caption = doc->AppCaption(); + _LIT(KCaption, "CEikDocument::AppCaption"); + AssertTrueL(ETrue, KCaption ); + + //empty + AssertTrueL( doc->IsEmpty(), _L("Alway Empity for EikDoc::IsEmpity()")); + + //changed + doc->SetChanged(ETrue); + AssertTrueL( doc->HasChanged(), _L("Doc has changed")); + + doc->SetChanged(EFalse); + AssertTrueL( !doc->HasChanged(), _L("Doc hasn't changed")); + + //file mode + doc->SetAppFileMode(EFileRead); + AssertTrueL( EFileRead == doc->AppFileMode(), _L("FileMode confirmed")); +} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestEikFrmApp.h" +#include "BCTestEikFrmDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +CBCTestEikFrmApp::CBCTestEikFrmApp():CEikApplication() + { + } + +// ---------------------------------------------------------------------------- +// TUid CBCTestEikFrmApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestEikFrmApp::AppDllUid() const + { + return KUidBCTestTemplate; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestEikFrmApp::CreateDocumentL() +// Creates CBCTestTemplateDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestEikFrmApp::CreateDocumentL() + { + return CBCTestEikFrmDocument::NewL( *this ); + } + +void CBCTestEikFrmApp::NewAppServerL(CApaAppServer*& aAppServer) + { + CBCTestEikFrmApp::NewAppServerL(aAppServer); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestEikFrmApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestEikFrmApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctesteikfrmAppUi.h" +#include "bctesteikfrm.hrh" +#include "bctesteikfrmview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestEikFrmAppUi::CBCTestEikFrmAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestEikFrmView* view = CBCTestEikFrmView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestEikFrmAppUi::~CBCTestEikFrmAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestEikFrmAppUi::~CBCTestEikFrmAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestEikFrmAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,175 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +#include +#include +#include +#include +#include +#include + +#include "bctesteikfrmcase.h" +#include "bctesteikfrmcontainer.h" +#include "bctesteikfrm.hrh" +#include "bctesteikfrmapp.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmCase* CBCTestEikFrmCase::NewL( + CBCTestEikFrmContainer* aContainer ) + { + CBCTestEikFrmCase* self = new( ELeave ) CBCTestEikFrmCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmCase::CBCTestEikFrmCase( + CBCTestEikFrmContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmCase::~CBCTestEikFrmCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmCase::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdEikApp ) + { + return; + } + + ReleaseCaseL(); + PrepareCaseL( aCmd ); + TestFunction(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdEikApp: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmCase::TestFunction() + { + CEikApplication* app = static_cast(CEikonEnv::Static()->EikAppUi()->Application()); + TFileName filename = app->BitmapStoreName(); + filename = filename.Right(filename.Length()-3 ); + filename.LowerCase(); + _LIT(KBmpFile, "resource\\apps\\bctesteikfrm.mbm"); + AssertTrueL( filename == KBmpFile, _L("CEikApplication::BitmapStoreName() invoked")); + + TBuf8<256> cap; + app->Capability(cap); + AssertTrueL( ETrue, _L("CEikApplication::Capability() got")); + app->GetDefaultDocumentFileName(filename); + filename.LowerCase(); + _LIT(KDocFile, "bctesteikfrm"); + AssertTrueL( filename == KDocFile, _L("CEikApplication::GetDefaultDocumentFileName() invoked")); + + filename = app->ResourceFileName(); + filename = filename.Right(filename.Length()-3 ); + filename.LowerCase(); + _LIT(KResFile, "resource\\apps\\bctesteikfrm.r01"); + AssertTrueL( filename == KResFile, _L("CEikApplication::ResourceFileName() invoked") ); + + TParse parse; + app->SetToIniFileNameL(parse); + AssertTrueL( ETrue, _L("CEikApplication::SetToIniFileNameL() parse got")); + + RFs& fs = CEikonEnv::Static()->FsSession(); + CDictionaryStore* store = app->OpenIniFileLC(fs); + AssertTrueL( ETrue, _L("CEikApplication::OpenIniFileLC() ini file opened")); + CleanupStack::PopAndDestroy(); + + //CApaAppServer* server = NULL; + //static_cast(app)->NewAppServerL(server); + //CleanupStack::PushL(server); + //AssertNotNullL(server, _L("CEikApplication::NewAppServerL() invoked.")); + //CleanupStack::PopAndDestroy(server); //server + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctesteikfrmcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmContainer::CBCTestEikFrmContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmContainer::~CBCTestEikFrmContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestEikFrmContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestEikFrmContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestEikFrmContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestEikFrmContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestEikFrmDocument.h" +#include "BCTestEikFrmAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestEikFrmDocument* CBCTestEikFrmDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestEikFrmDocument* CBCTestEikFrmDocument::NewL( CEikApplication& aApp ) + { + CBCTestEikFrmDocument* self = new( ELeave ) CBCTestEikFrmDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestEikFrmDocument::~CBCTestEikFrmDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestEikFrmDocument::~CBCTestEikFrmDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestEikFrmDocument::CBCTestEikFrmDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestEikFrmDocument::CBCTestEikFrmDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestEikFrmDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestEikFrmDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestEikFrmAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikfrmview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,137 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctesteikfrm.hrh" +#include +#include "bctesteikfrmview.h" +#include "bctesteikfrmcontainer.h" +#include "bctestutil.h" +#include "bctesteikfrmcase.h" +#include "bctesteikdoc.h" +#include "bctesteikproc.h" +#include "bctestapplist.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmView* CBCTestEikFrmView::NewL() + { + CBCTestEikFrmView* self = new( ELeave ) CBCTestEikFrmView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmView::CBCTestEikFrmView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmView::ConstructL() + { + BaseConstructL( R_BCTESTEIKFRM_VIEW ); + + iContainer = new( ELeave ) CBCTestEikFrmContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestEikFrmCase::NewL( iContainer ), + _L("EikFrm test case") ); + + iTestUtil->AddTestCaseL( CBCTestEikDoc::NewL(), _L("EikDoc test case") ); + iTestUtil->AddTestCaseL( CBCTestEikProc::NewL(), _L("EikProcess test case") ); + iTestUtil->AddTestCaseL( CBCTestAppList::NewL(), _L("AppList test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikFrmView::~CBCTestEikFrmView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestEikFrmView::Id() const + { + return KBCTestEikFrmViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestEikFrmView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestEikFrmView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikproc.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctesteikfrm/src/bctesteikproc.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,193 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +#include +#include +#include +#include +#include + +#include "bctesteikproc.h" +#include "bctesteikfrm.hrh" +#include "bctesteikfrmapp.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikProc* CBCTestEikProc::NewL() + { + CBCTestEikProc* self = new( ELeave ) CBCTestEikProc(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikProc::CBCTestEikProc() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikProc::~CBCTestEikProc() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikProc::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikProc::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikProc::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 2), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestEikProc::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikProc::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdEikProc ) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikProc::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestEikProc::TestFunctionL() + { + TestFileL(); + TestOpsL(); + } + +void CBCTestEikProc::TestFileL() +{ + CEikProcess* proc = CEikonEnv::Static()->Process(); + + // main store + CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document(); + CFileStore* store = proc->MainStore(); + AssertNotNullL( store , _L("main store got")); + proc->SetMainStore(store); + AssertTrueL( ETrue , _L("main store set")); + + // save + _LIT(KFileName, "C:\\BCTestLog\\foo.txt"); + TFileName newname(KFileName); + + { + TRAPD( err, proc->SaveToDirectFileStoreL(doc)); + HandleErrL(err); + } + + { + TRAPD(err, proc->SaveToDirectFileStoreL(doc, &newname)); + HandleErrL(err); + } + + { + TRAPD( err, proc->SaveToDirectFileStoreL(doc, &newname, ETrue)); + HandleErrL(err); + } + + { + TRAPD(err, proc->SaveToDirectFileStoreL(doc, &newname, EFalse)); + HandleErrL(err); + } + + _LIT(KTempFile, "C:\\BCTestLog\\temp.txt"); + TFileName tempname(KTempFile); + { + TRAPD(err, proc->SaveToDirectFileStoreL(doc, &newname, ETrue, &tempname)); + HandleErrL(err); + } + + { + TRAPD(err, proc->SaveToDirectFileStoreL(doc, &newname, EFalse, &tempname)); + HandleErrL(err); + } +} + +void CBCTestEikProc::HandleErrL(TInt err){ + if( err == KErrAlreadyExists ){ + AssertTrueL( ETrue, _L("save to direct file store already exist")); + } + else{ + AssertTrueL( ETrue, _L("save to direct file store invoked")); + } +} + +void CBCTestEikProc::TestOpsL() +{ + CEikProcess* proc = CEikonEnv::Static()->Process(); + + // lib name + TFileName docname, libname; + CEikonEnv::Static()->EikAppUi()->Application()->GetDefaultDocumentFileName(docname); + TRAPD( err, proc->AppFromDocL(libname, docname)); + if( err == KErrCorrupt ){ + AssertTrueL( ETrue, _L("AppFromDocL() fail: UID2 is not KUidAppDllDoc")); + } + else{ + AssertTrueL( ETrue, _L("AppFromDocL() return lib name")); + } + + // command tail end + TPtrC ptr = proc->CommandTailEnd(); + AssertTrueL( ETrue, _L("CommandTailEnd() invoked") ); + + // last used file + _LIT(KFileName, "C:\\BCTestLog\\foo.txt"); + proc->SetLastUsedFileL(CEikProcess::ELastCreatedFile, KFileName); + docname = proc->LastUsedFileL(CEikProcess::ELastCreatedFile); + AssertTrueL( docname == KFileName, _L("last used file got")); + + // main doc folder + TFileName folder = proc->MainDocFolder(); + AssertTrueL( ETrue, _L("main doc folder got") ); +} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinput_lst.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinput_lst.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinput_lst_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinput_lst_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinputaif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinputaif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,30 @@ +/* +* 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 "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: RSS for creating the aif file +* +*/ + + +#include + +RESOURCE AIF_DATA + { + app_uid = 0x101F84B0; + groupName="BCTest"; + num_icons = 2; + embeddability=KAppNotEmbeddable; + newfile=KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinputsmallicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinputsmallicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinputsmalliconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/aif/bctestfontinputsmalliconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bctestfontinput.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bctestfontinput.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,102 @@ +/* +* 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 "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: project specification file for the BCTestFontInput. +* +*/ + + +TARGET BCTestFontInput.exe +TARGETTYPE exe +UID 0x0 0x20004766 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestFontInput.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestfontinputapp.cpp +SOURCE bctestfontinputdocument.cpp +SOURCE bctestfontinputappui.cpp +SOURCE bctestfontinputview.cpp +SOURCE bctestfontinputcontainer.cpp +SOURCE bctestfontinputcase.cpp +SOURCE bctestframeinfocase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY fbscli.lib +LIBRARY akninputlanguage.lib +LIBRARY fontutils.lib +LIBRARY uiklaf.lib +LIBRARY gdi.lib +LIBRARY egul.lib +LIBRARY etext.lib +LIBRARY aknicon.lib + +// Creates Mbm file. +START BITMAP BCTestFontInput.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../DataSrc +SOURCE C8 SampleIcon.bmp +SOURCE C8 SampleIconMask.bmp +END + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/BCTestFontInput_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. +START BITMAP BCTestFontInput_Aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 BCTestfontinputsmallicon.bmp +source c8 BCTestfontinputsmalliconmask.bmp +source c8 BCTestfontinput_lst.bmp +source c8 BCTestfontinput_lst_mask.bmp +end + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bctestfontinput.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bctestfontinput.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,234 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestfontinput.hrh" +#include "BCTestfontinput.loc" + +#ifdef LANGUAGE_01 +#include "BCTestfontinput_01.loc" +#endif + +#ifdef LANGUAGE_31 +#include "BCTestfontinput_31.loc" +#endif + +#ifdef LANGUAGE_37 +#include "BCTestfontinput_37.loc" +#endif + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestfontinput_BMP_FNAME APP_BITMAP_DIR"\\BCTestFontInput.mbm" + +// MACROS + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestFontInput"; + } + + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestfontinput_menubar_main; + cba = r_bctestfontinput_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestfontinput_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestfontinput_view +// AVKON_VIEW for CBCTestFontInputView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestfontinput_view + { + menubar = r_bctestfontinput_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestfontinput_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestfontinput_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestfontinput_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestfontinput_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestfontinput_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestfontinput_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestLafEnv; + txt = " LafEnv"; + }, + MENU_ITEM + { + command = EBCTestFontSpec; + txt = " FontSpec "; + }, + MENU_ITEM + { + command = EBCTestInputFrame; + txt = " InputFrame "; + }, + MENU_ITEM + { + command = EBCTestInputInfo; + txt = " InputInfo "; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestfontinput_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestfontinput_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestfontinput_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestfontinput_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestfontinput_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestfontinput_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestFontInputCbaCmdNext; + txt = qtn_bctestfontinput_cba_next; + } + }; + } + +RESOURCE TBUF32 r_note_txt + { + buf = " Alert note %d and %d"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bctestfontinput_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bctestfontinput_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004766 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestFontInput"; + localisable_resource_file = "\\resource\\apps\\BCTestFontInput"; + localisable_resource_id = R_BCTESTFONTINPUT_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestFontInput.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,40 @@ +/* +* 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 "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: BCTestFontInput resource header file +* +*/ + + +#ifndef BCTESTFONTINPUT_HRH +#define BCTESTFONTINPUT_HRH + +enum TBCTestFontInputMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestInputFrame, + EBCTestInputInfo, + EBCTestFontSpec, + EBCTestLafEnv, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestFontInputCba + { + EBCTestFontInputCbaCmdNext = 0x6300 + }; + +#endif // BCTESTFONTINPUT_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,45 @@ +/* +* 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 "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: BCTestFontInput localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTFONTINPUT" +#define qtn_apps_tavl_grid "BCTESTFONTINPUT" + +// MenuBar +#define qtn_bctestfontinput_menubar "Option" +#define qtn_bctestfontinput_cba_next "Next" +#define qtn_bctestfontinput_autotest "Autotest" +#define qtn_bctestfontinput_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestfontinput_outline1 "Outline01" + +#define qtn_bctest_inputframe_infotext "Input frame" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestFontInput localise file +* +*/ + + +#include "bctestfontinput.loc" + +// LOCALISATION STRINGS + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput_31.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput_31.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestTemplate localise file +* +*/ + + +#include "bctestfontinput.loc" +#include "ChineseStrings.loc" + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput_37.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinput_37.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: BCTestfontinput localise file +* +*/ + + +#include "bctestfontinput.loc" +#include "ArabicStrings.loc" + + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestTEMPLATEAPP_H +#define BCTestTEMPLATEAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestFontInput = { 0x20004766 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestFontInputApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestFontInputApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestFontInputDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestFontInput ). + * @return The value of KUidBCTestFontInput. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for FontInput control API. +* +*/ + + +#ifndef C_BCTESTTEMPLATEAPPUI_H +#define C_BCTESTTEMPLATEAPPUI_H + +#include + +class CBCTestFontInputView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestFontInputAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestFontInputAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestFontInputAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestFontInputView* iView; + }; + +#endif // C_BCTESTTEMPLATEAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_FONTINPUTCASE_H +#define BCTEST_FONTINPUTCASE_H + +#include "bctestcase.h" +class CWsScreenDevice; + +class CBCTestFontInputContainer; +class CCoeControl; + + +/** +* test case for various list classes +*/ + +class CBCTestFontInputCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestFontInputCase* NewL( CBCTestFontInputContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestFontInputCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + + void TestFontSpecL(); + + void TestLafEnvL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestFontInputCase( CBCTestFontInputContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestFontInputContainer* iContainer; + + + }; + +#endif // BCTEST_TEMPLATECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_TEMPLATECONTAINER_H +#define BCTEST_TEMPLATECONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestFontInputContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestFontInputContainer(); + + /** + * Destructor + */ + virtual ~CBCTestFontInputContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_TEMPLATECONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTTEMPLATEDOCUMENT_H +#define C_BCTESTTEMPLATEDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestFontInputDocument application class. +*/ +class CBCTestFontInputDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestFontInputDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestFontInputDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestFontInputDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestFontInputAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTEMPLATEDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestfontinputview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for FontInput control API. +* +*/ + + +#ifndef BCTEST_TEMPLATE_VIEW_H +#define BCTEST_TEMPLATE_VIEW_H + +#include + +const TUid KBCTestFontInputViewId = { 1 }; + +class CBCTestFontInputContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestFontInputView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestFontInputView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestFontInputView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestFontInputView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestFontInputContainer* iContainer; + + }; + +#endif // BCTEST_TEMPLATE_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestframeinfocase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/inc/bctestframeinfocase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_FRAMEINFOCASE_H +#define BCTEST_FRAMEINFOCASE_H + +#include "bctestcase.h" + +class CBCTestFontInputContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestFrameInfoCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestFrameInfoCase* NewL( CBCTestFontInputContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestFrameInfoCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + + void TestInputInfoL(); + + void TestInputFrameL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestFrameInfoCase( CBCTestFontInputContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestFontInputContainer* iContainer; + + + }; + +#endif // BCTEST_TEMPLATECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/sis/bctestfontinput.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/sis/bctestfontinput.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +; +; 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: +; +; bctestfontinput.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestfontinput"},(0x20004766),1,0,0,TYPE=SA + + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101f7961), 0, 0, 0, {"Series60ProductID"} + + +; Target +"\epoc32\release\armv5\urel\bctestfontinput.exe"- +"!:\sys\bin\bctestfontinput.exe" + +"\epoc32\data\z\resource\apps\bctestfontinput.RSC"- +"!:\resource\apps\bctestfontinput.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestfontinput_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestfontinput_reg.RSC" + +; bctestutil DLL must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon FontInput test app +* +*/ + + +// INCLUDE FILES +#include "BCTestfontinputApp.h" +#include "BCTestfontinputDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestFontInputApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestFontInputApp::AppDllUid() const + { + return KUidBCTestFontInput; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestFontInputApp::CreateDocumentL() +// Creates CBCTestFontInputDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestFontInputApp::CreateDocumentL() + { + return CBCTestFontInputDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestFontInputApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestFontInputApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestfontinputAppUi.h" +#include "bctestfontinput.hrh" +#include "bctestfontinputview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestFontInputAppUi::CBCTestFontInputAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestFontInputAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestFontInputView* view = CBCTestFontInputView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestFontInputAppUi::~CBCTestFontInputAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestFontInputAppUi::~CBCTestFontInputAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestFontInputAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,346 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +// test header of Api +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestfontinputcase.h" +#include "bctestfontinputcontainer.h" +#include "bctestfontinput.hrh" + + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputCase* CBCTestFontInputCase::NewL( + CBCTestFontInputContainer* aContainer ) + { + CBCTestFontInputCase* self = new( ELeave ) CBCTestFontInputCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputCase::CBCTestFontInputCase( + CBCTestFontInputContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputCase::~CBCTestFontInputCase() + { + + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestFontInputCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestFontInputCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 2 ), LeftCBA, KeyOK,KeyOK,LeftCBA,Down,KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestFontInputCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestFontSpec || aCmd > EBCTestLafEnv ) + { + return; + } + switch ( aCmd ) + { + case EBCTestLafEnv: + TestLafEnvL(); + break; + case EBCTestFontSpec: + TestFontSpecL(); + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputCase::TestFontSpecL +// --------------------------------------------------------------------------- +// + +void CBCTestFontInputCase::TestFontSpecL() + { + // Test some API here + TAknFontSpecification fontSpec( 3 ); + + fontSpec.SetExactMatchRequired( ETrue ); + _LIT( stMatch, " Test SetExactMatchRequired() " ); + AssertTrueL( ETrue, stMatch ); + + fontSpec.SetTextPaneHeight( TInt( 3 ) ); + _LIT( stPaneHeight, " Test SetTextPaneHeight()" ); + AssertTrueL( ETrue, stPaneHeight ); + + fontSpec.SetFontCategory( EAknFontCategoryUndefined ); + _LIT( stFontCate, " Test SetFontCategory() " ); + AssertTrueL( ETrue, stFontCate ); + + fontSpec.SetPosture( EPostureUpright ); + _LIT( stPost, " Test SetPosTure() " ); + AssertTrueL( ETrue, stPost ); + + fontSpec.SetTextPaneHeightIsDesignHeight( ETrue ); + _LIT( stHeighIsDesHeight, " Test SetTextPaneHeightIsDesignHeight() " ); + AssertTrueL( ETrue, stHeighIsDesHeight ); + + fontSpec.SetUnits( TAknFontSpecification::EPixels); + _LIT( stUnits, " Test SetUnits()" ); + AssertTrueL( ETrue, stUnits ); + + fontSpec.SetWeight( EStrokeWeightNormal ); + _LIT( stWeight, " Test SetWeight() " ); + AssertTrueL( ETrue, stWeight ); + + TAknTextDecorationMetrics txtDecMetric( 3 ); + + txtDecMetric.BaselineToUnderlineOffset(); + _LIT( bsLnToUnderLn," Test BaseLineToUnderline)ffset() " ); + AssertTrueL( ETrue, bsLnToUnderLn ); + + txtDecMetric.UnderlineHeight(); + _LIT( underLnHeight," Test UnderlineHeight() " ); + AssertTrueL( ETrue, underLnHeight ); + + TInt lef,rgt,tp,bt; + txtDecMetric.GetLeftAndRightMargins( lef, rgt ); + _LIT( gtLeftAndRight, " Test GetLeftAndRightMargins() " ); + AssertTrueL( ETrue, gtLeftAndRight ); + + txtDecMetric.GetTopAndBottomMargins( tp,bt ); + _LIT( gtTandB, " Test GetTopAndBottomMargins() " ); + AssertTrueL( ETrue, gtTandB ); + + txtDecMetric.CursorWidth(); + _LIT( CurWidth, " Test CursorWidth() " ); + AssertTrueL( ETrue, CurWidth ); + + TAknTextDecorationMetrics txtDecMetric1( CCoeEnv::Static()->NormalFont() ); + _LIT( txtDecMetricsFont, " Test TAKnTextDecorationMetrics( Font )" ); + AssertTrueL( ETrue, txtDecMetricsFont ); + + TAknTextDecorationMetrics txtDecMetric2( fontSpec ); + _LIT( txtDecMetricsSpec," Test TAKnTextDecorationMetrics( Font )" ); + AssertTrueL( ETrue, txtDecMetricsSpec ); + + const CAknLayoutFont* layoutFont = + AknLayoutUtils::LayoutFontFromId( 3 ); + + TInt maxAscent = layoutFont->MaxAscent(); + _LIT( KLayoutFont1, "CAknLayoutFont::MaxAscent" ); + AssertTrueL( ETrue, KLayoutFont1 ); + + TAknTextDecorationMetrics metrics = layoutFont->TextDecorationMetrics(); + _LIT( KLayoutFont2, "CAknLayoutFont::TextDecorationMetrics" ); + AssertTrueL( ETrue, KLayoutFont2 ); + } + +void CBCTestFontInputCase::TestLafEnvL() + { + LafEnv::Beep(); + _LIT( beep," Test Beep() " ); + AssertTrueL( ETrue,beep ); + + LafEnv::ClockDllName(); + _LIT( clkName," Test ClockDllName() " ); + AssertTrueL( ETrue,clkName ); + + LafEnv::CoctlResourceFile(); + _LIT( ctlResFile," Test CoctlResourceFile() " ); + AssertTrueL( ETrue,ctlResFile ); + + LafEnv::CreateTextParserL( TInt( 3 ) ); + _LIT( crtTxtParser," Test CreateTextParserL() " ); + AssertTrueL( ETrue,crtTxtParser); + + LafEnv::DefaultBusyMsgCorner(); + _LIT(defBusyMsg," Test DefaultBusyMsgCorner() " ); + AssertTrueL( ETrue,defBusyMsg ); + + LafEnv::IsTaskListDisabledAtInitialization(); + _LIT( isTaskInit," Test IsTaskListDisabledAtInitialization" ); + AssertTrueL( ETrue,isTaskInit ); + + LafEnv::EditableControlStandardHeight( CEikonEnv::Static()->LafEnv() ); + _LIT( editHeight," Test EditableControlStandardHeight() " ); + AssertTrueL( ETrue,editHeight ); + + LafEnv::IsDefaultKey( EAknSoftkeyBack ); + _LIT( isDefKey," Test IsDefaultKey() " ); + AssertTrueL( ETrue,isDefKey ); + + CColorList *clrList = LafEnv::CreateColorListL( *CEikonEnv::Static() ); + _LIT(crtClrList," Test CreateColorListL() " ); + AssertTrueL( ETrue,crtClrList ); + + LafEnv::UpdateColorListL( clrList ); + _LIT( upClrList," Test UpdateColorListL() " ); + AssertTrueL( ETrue, upClrList ); + + + TInt fId = LafEnv::LoadPrivResFileL( *CEikonEnv::Static() ); + _LIT( ldResFile," Test LoadPrivResFileL() " ); + AssertTrueL( ETrue,ldResFile ); + CEikonEnv::Static()->DeleteResourceFile( fId ); + + fId = LafEnv::LoadCoreResFileL( *CEikonEnv::Static() ); + CEikonEnv::Static()->DeleteResourceFile( fId ); + _LIT( cResFile," Test LoadCoreResFileL() " ); + AssertTrueL( ETrue,cResFile ); + + CArrayPtr *ftArray = new (ELeave) + CArrayPtrSeg(10); + LafEnv::CreateSystemFontsL( *CEikonEnv::Static(),*ftArray ); + _LIT( crtSysFont," Test CreateSystemFontsL() " ); + AssertTrueL( ETrue,crtSysFont ); + + LafEnv::UpdateSystemFontsL( CEikonEnv::Static(),*ftArray ); + _LIT( upSysFont," Test UpdateSystemFontsL() " ); + AssertTrueL( ETrue,upSysFont ); + + LafEnv::ReleaseSystemFonts(*ftArray); + delete ftArray; + CArrayPtrFlat *arBitmaps = new + CArrayPtrFlat(16); + LafEnv::CreateSystemBitmapsL( *CEikonEnv::Static(), *arBitmaps); + _LIT( crtSysBitmap," Test CreateSystemBitmapsL() " ); + AssertTrueL( ETrue,crtSysBitmap ); + + LafEnv::UpdateSystemBitmapsL(*CEikonEnv::Static() , *arBitmaps,*clrList ); + _LIT( upSysBitmap," Test UpdateSystemBitmapsL() " ); + AssertTrueL( ETrue,upSysBitmap ); + + delete clrList; + delete arBitmaps; + + MEikBusyMsgWin *msgWin = LafEnv::NewBusyMsgWinL( *CCoeEnv::Static()); + msgWin->Release(); + _LIT( newMsgWin," Test NewBusyMsgWinL() " ); + AssertTrueL( ETrue,newMsgWin ); + + RWindowGroup rWinGrup = CCoeEnv::Static()->RootWin(); + MEikInfoMsgWin* infMsgWin = LafEnv::NewInfoMsgWinL( *CCoeEnv::Static(), + rWinGrup ); + _LIT( newinfMsgWinGrup," Test NewInfoMsgWinL() " ); + AssertTrueL( ETrue,newinfMsgWinGrup); + + infMsgWin->Release(); + + infMsgWin = LafEnv::NewInfoMsgWinL( *CCoeEnv::Static() ); + _LIT( newinfMsgWin," Test NewInfoMsgWinL() " ); + AssertTrueL( ETrue,newinfMsgWin ); + infMsgWin->Release(); + + LafEnv::DefaultLineSpacingInTwips(); + _LIT( defLnSpaTwip," Test DefaultLineSpaceingInTwinps() " ); + AssertTrueL( ETrue,defLnSpaTwip ); + + TCharFormat charFormat; + TCharFormatMask charFormatMask; + + LafEnv::PrepareCharFormatAndMask( charFormat,charFormatMask ); + _LIT( preCharFormat," Test PrepareCharFormatAndMask() " ); + AssertTrueL( ETrue,preCharFormat ); + + TGulBorder tBorder; + TRect tRect; + TGulBorder::TColors bColors; + LafEnv::DrawLogicalBorder( tBorder,CCoeEnv::Static()->SystemGc(),tRect,bColors); + _LIT( drawLogBoder," Test DrawLogicalBorder()" ); + AssertTrueL( ETrue,drawLogBoder ); + + TBuf<32> fPath; + TUid apUid = { 0x101F84F3 }; + RApaLsSession *rLsSession = new ( ELeave ) RApaLsSession(); + LafEnv::GetDefaultPath( fPath,apUid,*rLsSession,*CCoeEnv::Static() ); + delete rLsSession; + + _LIT(msg1," Alert 1 " ); + _LIT(msg2," Alert 2 " ); + _LIT(disAlert, " Test DisplayAlertAsNotifier() " ); + LafEnv::DisplayAlertAsNotifier( msg1,msg2 ); + AssertTrueL( ETrue,disAlert ); + + CFbsBitmap* bmp1 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp1 ); + CFbsBitmap* bmp2 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp2 ); + const TDesC& fileName = AknIconUtils::AvkonIconFileName(); + bmp1->Load( fileName, EMbmAvkonQgn_indi_battery_strength ); + bmp2->Load( fileName, EMbmAvkonQgn_prop_battery_icon ); + CArrayPtrFlat* bmpArray = new( ELeave ) + CArrayPtrFlat( 2 ); + CleanupStack::PushL( bmpArray ); + bmpArray->AppendL( bmp1 ); + bmpArray->AppendL( bmp2 ); + TUid matchUid = TUid::Uid( KLafUidEikonGrayVal ); + CFbsBitmap* bmp = LafEnv::MatchBitmap( *bmpArray, matchUid ); + _LIT( KMatchBitmap, "LafEnv::MatchBitmap" ); + AssertNotNullL( bmp, KMatchBitmap ); + CleanupStack::PopAndDestroy( 3 ); // are bmp1, bmp2 and bmpArray + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestfontinputcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputContainer::CBCTestFontInputContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputContainer::~CBCTestFontInputContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestFontInputContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestFontInputContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestFontInputContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestFontInputContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestFontInputContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestFontInputContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestFontInputContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon FontInput test application +* +*/ + + +// INCLUDE FILES +#include "BCTestfontinputDocument.h" +#include "BCTestfontinputAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestfontinputDocument* CBCTestfontinputDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestFontInputDocument* CBCTestFontInputDocument::NewL( CEikApplication& aApp ) + { + CBCTestFontInputDocument* self = new( ELeave ) CBCTestFontInputDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestFontInputDocument::~CBCTestFontInputDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestFontInputDocument::~CBCTestFontInputDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestFontInputDocument::CBCTestFontInputDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestFontInputDocument::CBCTestFontInputDocument( CEikApplication& aApp ) + :CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestFontInputDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestFontInputDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestFontInputAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestfontinputview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,139 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestfontinput.hrh" +#include "bctestfontinputview.h" +#include "bctestfontinputcontainer.h" +#include "bctestutil.h" +#include "bctestfontinputcase.h" +#include "bctestframeinfocase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputView* CBCTestFontInputView::NewL() + { + CBCTestFontInputView* self = new( ELeave ) CBCTestFontInputView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputView::CBCTestFontInputView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestFontInputView::ConstructL() + { + BaseConstructL( R_BCTESTFONTINPUT_VIEW ); + + iContainer = new( ELeave ) CBCTestFontInputContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT( fntInput,"FontInput test case" ); + _LIT( frmInfo," Frame Information " ); + + iTestUtil->AddTestCaseL( CBCTestFontInputCase::NewL( iContainer ), + fntInput); + + + iTestUtil->AddTestCaseL( CBCTestFrameInfoCase::NewL( iContainer ), + frmInfo); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFontInputView::~CBCTestFontInputView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestFontInputView::Id() const + { + return KBCTestFontInputViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestFontInputView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestFontInputView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestFontInputView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestFontInputView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestframeinfocase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestfontinput/src/bctestframeinfocase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,268 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +// test header of Api +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestframeinfocase.h" +#include "bctestfontinputcontainer.h" +#include "bctestfontinput.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestFrameInfoCase* CBCTestFrameInfoCase::NewL( + CBCTestFontInputContainer* aContainer ) + { + + CBCTestFrameInfoCase* self = new( ELeave ) CBCTestFrameInfoCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- + +CBCTestFrameInfoCase::CBCTestFrameInfoCase( + CBCTestFontInputContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFrameInfoCase::~CBCTestFrameInfoCase() + { + + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestFrameInfoCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestFrameInfoCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestFrameInfoCase::BuildScriptL() + { + AddTestL( DELAY( 2 ),LeftCBA,Down,Down,KeyOK,LeftCBA,Down,Down,Down,KeyOK,TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestFrameInfoCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestFrameInfoCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestInputFrame || aCmd > EBCTestInputInfo ) + { + return; + } + switch ( aCmd ) + { + case EBCTestInputInfo: + TestInputInfoL(); + break; + case EBCTestInputFrame: + TestInputFrameL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestFrameInfoCase::TestInputInfoL +// --------------------------------------------------------------------------- +// +void CBCTestFrameInfoCase::TestInputInfoL() + { + + CAknInputLanguageInfo* inFact = + AknInputLanguageInfoFactory::CreateInputLanguageInfoL(); + CleanupStack::PushL( inFact ); + + CAknInputLanguageList* inputList = new ( ELeave ) + CAknInputLanguageList( TInt( 1 ) ); + CleanupStack::PushL( inputList ); + _LIT( langList," Test CAknInputLanguageList() " ); + AssertTrueL( ETrue,langList); + + CArrayFixFlat* codeList = new( ELeave ) CArrayFixFlat( 1 ); + CleanupStack::PushL( codeList ); + codeList->AppendL( ELangEnglish ); + + TAknInputLanguageCapabilities capFilter; + capFilter.AssignCapability( + TAknInputLanguageCapabilities::EMultitap, ETrue ); + + inFact->AppendLanguagesL( inputList, codeList, capFilter ); + + TInt count = inputList->MdcaCount(); + _LIT( mdCount," Test MdcaCount() " ); + AssertTrueL( ETrue, mdCount ); + + if (count > 0) + { + TPtrC ptr = inputList->MdcaPoint( 0 ); + _LIT( KMdcaPoint, "CAknInputLanguageList::MdcaPoint" ); + AssertTrueL( ETrue, KMdcaPoint ); + + CAknInputLanguageItem* item = (*inputList)[0]; + + TLanguage code = item->LanguageCode(); + _LIT( KLanItem1, "CAknInputLanguageItem::LanguageCode" ); + AssertIntL( ELangEnglish, code, KLanItem1 ); + + TPtrC name = item->LanguageName(); + _LIT( KLanItem2, "CAknInputLanguageItem::LanguageName" ); + AssertTrueL( ETrue, KLanItem2 ); + + TAknInputLanguageCapabilities cap = item->Capabilities(); + _LIT( KLanItem3, "CAknInputLanguageItem::Capabilities" ); + AssertTrueL( ETrue, KLanItem3 ); + } + CleanupStack::PopAndDestroy( codeList ); + CleanupStack::PopAndDestroy( inputList ); + CleanupStack::PopAndDestroy( inFact ); + + TAknInputLanguageCapabilities inputCap; + TAknInputLanguageCapabilities desCap; + _LIT( langCap, " Test TAknInputLanguageCapabilities() " ); + AssertTrueL( ETrue, langCap ); + + inputCap.AssignCapability( TInt ( 1 ),EFalse ); + _LIT( assCap, " Test AssignCapability() " ); + AssertTrueL( ETrue, assCap ); + + inputCap.FilteredCapabilities( desCap ); + _LIT( filterCap, " Test FilteredCapabilities()" ); + AssertTrueL( ETrue, filterCap ); + + inputCap.HasAnySupport(); + _LIT( hasSup, " Test HasAnySupport() " ); + AssertTrueL( ETrue, hasSup ); + + inputCap.HasCapability( TInt ( 1 ) ); + _LIT( hasCap, " Test HasCapability() " ); + AssertTrueL( ETrue, hasCap ); + + inputCap.SetAllCapabilities(); + _LIT( stCap, " Test SetAllCapabilities() " ); + AssertTrueL( ETrue, stCap ); + + } + +// --------------------------------------------------------------------------- +// CBCTestFrameInfoCase::TestInputFrameL +// --------------------------------------------------------------------------- +// +void CBCTestFrameInfoCase::TestInputFrameL() + { + CEikEdwin* edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + edwin->ConstructL( 0, 30, 100, 1 ); + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + bmp->Load( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_stat_chi_pinyin ); + + CGulIcon* icon = CGulIcon::NewL( bmp ); + CleanupStack::PushL( icon ); + + CAknInputFrame* inputFrame = CAknInputFrame::NewL( edwin, + EFalse, icon ); + CleanupStack::PushL( inputFrame ); + CleanupStack::PopAndDestroy( inputFrame ); + CleanupStack::Pop( icon ); + CleanupStack::Pop( bmp ); + + inputFrame = CAknInputFrame::NewL( edwin, EFalse, + AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_stat_chi_pinyin, EMbmAvkonQgn_stat_chi_pinyin_mask ); + CleanupStack::PushL( inputFrame ); + _LIT( KInputFrame2, "CAknInputFrame::NewL with 4 parameters" ); + AssertNotNullL( inputFrame, KInputFrame2 ); + + inputFrame->Field(); + _LIT( fld," Test Field() " ); + AssertTrueL( ETrue,fld ); + + inputFrame->HandleControlEventL( edwin, + MCoeControlObserver::EEventStateChanged); + _LIT( hdCtrl," Test HandleControlEventL() " ); + AssertTrueL( ETrue,hdCtrl); + + inputFrame->MinimumSize(); + _LIT( minSize," Test MinimumSize() " ); + AssertTrueL( ETrue,minSize ); + + TKeyEvent kEvent; + kEvent.iCode = '0'; + inputFrame->OfferKeyEventL( kEvent,EEventKeyUp ); + _LIT( ofKeyEvnt," Test OfferKeyEventL() "); + AssertTrueL( ETrue,ofKeyEvnt ); + + inputFrame->SetLineState( ETrue ); + _LIT( stLnState," Test SetLineState() " ); + AssertTrueL( ETrue,stLnState ); + + inputFrame->SetInputContext( NULL ); + _LIT( stInputCn," Test SetInputContext() " ); + AssertTrueL( ETrue,stInputCn ); + + _LIT( KInfoText, "Test CAknInputFrame" ); + inputFrame->SetInfoTextL( KInfoText ); + _LIT( stInfoTxt," Test SetInfoTextL() " ); + AssertTrueL( ETrue, stInfoTxt ); + + CleanupStack::PopAndDestroy( inputFrame ); + CleanupStack::PopAndDestroy( edwin ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bctestForm.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bctestForm.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,78 @@ +/* +* 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 "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: This is project specification file for the BCTestForm. +* +*/ + + +TARGET BCTestForm.exe +TARGETTYPE exe +UID 0x0 0x20004747 +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin//PROGRAMS_DIR // sys/bin + +START RESOURCE BCTestForm.rss +HEADER +TARGETPATH resource/apps//APP_RESOURCE_DIR // resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE BCTestFormApp.cpp +SOURCE BCTestFormAppUi.cpp +SOURCE BCTestFormDocument.cpp +SOURCE BCTestFormView.cpp +SOURCE BCTestFormContainer.cpp +SOURCE BCtestformcase.cpp +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc +//USERINCLUDE ../AUTOTEST_inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY eikdlg.lib +LIBRARY aknnotify.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY commonengine.lib +LIBRARY AknSkins.lib +LIBRARY egul.lib +LIBRARY AknIcon.lib +LIBRARY CentralRepository.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/BCTestForm_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bctestForm.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bctestForm.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,6160 @@ +/* +* 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 "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: This file contains all the resources for the module. +* +*/ + + +// RESOURCE IDENTIFIER +NAME FORM + +// INCLUDES +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestform.loc" +#include "bctestForm.hrh" +#include "BCTestForm_01.loc" + +// CONSTANTS +#define BCTestFORM_EDWIN_WIDTH 1 +#define BCTestFORM_EDWIN_LINES 2 +#define BCTestFORM_NUMBER_EDITOR_MIN_VALUE01 10 +#define BCTestFORM_NUMBER_EDITOR_MAX_VALUE01 30 +#define BCTestFORM_NUMBER_EDITOR_MIN_VALUE02 0 +#define BCTestFORM_NUMBER_EDITOR_MAX_VALUE02 10 +#define BCTestFORM_DATE_MAX_DAY_VALUE 30 +#define BCTestFORM_DATE_MIN_DAY_VALUE 0 +#define BCTestFORM_DATE_MAX_MONTH_VALUE 11 +#define BCTestFORM_DATE_MIN_MONTH_VALUE 0 +#define BCTestFORM_DATE_MAX_YEAR_VALUE 2009 +#define BCTestFORM_DATE_MIN_YEAR_VALUE 2000 +#define BCTestFORM_TIME_MIN_SECOND_VALUE 0 +#define BCTestFORM_TIME_MAX_SECOND_VALUE 59 +#define BCTestFORM_TIME_MIN_MINUTE_VALUE 0 +#define BCTestFORM_TIME_MAX_MINUTE_VALUE 59 +#define BCTestFORM_TIME_MIN_HOUR_VALUE 0 +#define BCTestFORM_TIME_MAX_HOUR_VALUE 23 +#define BCTestFORM_DURATION_MIN_VALUE 0 +#define BCTestFORM_DURATION_MAX_VALUE 3600 +#define BCTestFORM_SECRET_MAX_LENGTH 8 +#define BCTestFORM_EDWIN_CHANGE_WIDTH 3 +#define BCTestFORM_EDWIN_CHANGE_LINES 5 +#define BCTestFORM_SLIDER_MIN_VALUE 0 +#define BCTestFORM_SLIDER_MAX_VALUE 20 +#define BCTestFORM_SLIDER_STEP 2 + +#define AVKON_BMP_FILENAME AVKON_ICON_FILE + +// MACROS + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestForm"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestform_menubar; +// cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; + cba = r_softkeys_options_back__options; + } +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestform_localisable_app_info + { + short_caption = qtn_apps_tafm_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tafm_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttest_view +// +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestform_view + { + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestform_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestform_menu; + txt = qtn_bctestform_menubar; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline01; + // cascade = r_bctestform_menu_softkey_cascade; + txt = qtn_bctestform_menu_softkey; + }, + /* MENU_ITEM + { + command = EBCTestFormCmdFormStates; + cascade = r_bctestform_menu_form_states_cascade; + txt = qtn_bctestform_menu_form_states; + }, + MENU_ITEM + { + command = EBCTestFormCmdMovingInsideForm; + cascade = r_bctestform_menu_moving_inside_form_cascade; + txt = qtn_bctestform_menu_move_in_form; + }, + /* MENU_ITEM + { + command = EAknAtFormCmdHintText; + cascade = r_aknatform_menu_hint_text_cascade; + txt = qtn_aknatform_menu_hint_text; + },*/ + /*MENU_ITEM + { + command = EBCTestFormCmdGeneralFormParameters; + cascade = r_bctestform_menu_general_form_parameters_cascade; + txt = qtn_bctestform_menu_gen_form_prm; + }, + /* MENU_ITEM + { + command = EAknAtFormCmdFormComponent; + cascade = r_aknatform_menu_form_component_cascade; + txt = qtn_aknatform_menu_component; + },*/ + /*MENU_ITEM + { + command = EBCTestFormCmdFieldLabel; + cascade = r_bctestform_menu_field_label_cascade; + txt = qtn_bctestform_menu_field_label; + }, + MENU_ITEM + { + command = EBCTestFormCmdTextField; + cascade = r_bctestform_menu_text_field_cascade; + txt = qtn_bctestform_menu_text_field; + }, + MENU_ITEM + { + command = EBCTestFormCmdSeparator; + cascade = r_bctestform_menu_separator_cascade; + txt = qtn_bctestform_menu_separator; + }, + MENU_ITEM + { + command = EBCTestFormCmdEmptyForm; + cascade = r_bctestform_menu_empty_form_cascade; + txt = qtn_bctestform_menu_empty_form; + }, + MENU_ITEM + { + command = EBCTestFormCmdAddingField; + cascade = r_bctestform_menu_adding_field_cascade; + txt = qtn_bctestform_menu_add_field; + }, + MENU_ITEM + { + command = EBCTestFormCmdRemovingField; + cascade = r_bctestform_menu_removing_field_cascade; + txt = qtn_bctestform_menu_remove_field; + }, + MENU_ITEM + { + command = EBCTestFormCmdLAF; + cascade = r_bctestform_menu_laf_cascade; + txt = qtn_bctestform_menu_laf; + }, + MENU_ITEM + { + command = EBCTestFormCmdSaveTest; + cascade = r_bctestform_menu_savetest_cascade; + txt = qtn_bctestform_menu_savetest; + }, + + MENU_ITEM + { + command = EBCTestFormCmdDoubleLine; + cascade = r_bctestform_menu_double_line_cascade; + txt = qtn_bctestform_menu_double_line; + }, + /* MENU_ITEM + { + command = EBCTestFormCmdAPITest; + cascade = r_bctestform_menu_api_test_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITest2; + cascade = r_bctestform_menu_api_test2_cascade; + txt = qtn_bctestform_menu_api_test2; + },*/ + MENU_ITEM + { + command = EBCTestFormCmdAutotest; + txt = qtn_bctestform_menu_autotest; + }, + + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestform_menu_exit; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_softkey_cascade +// Sub menu-pane of "Softkey" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_softkey_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline01; + txt = qtn_bctestform_menu_outline01; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_form_states_cascade +// Sub menu-pane of "Form states" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_form_states_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline02; + txt = qtn_bctestform_menu_outline02; + }, + /* MENU_ITEM + { + command = EBCTestFormCmdOutline03; + txt = qtn_bctestform_menu_outline03; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline04; + txt = qtn_bctestform_menu_outline04; + }, + */ + MENU_ITEM + { + command = EBCTestFormCmdOutline05; + txt = qtn_bctestform_menu_outline05; + }, + /* MENU_ITEM + { + command = EBCTestFormCmdOutline06; + txt = qtn_bctestform_menu_outline06; + }, + */ + MENU_ITEM + { + command = EBCTestFormCmdOutline07; + txt = qtn_bctestform_menu_outline07; + } + /* MENU_ITEM + { + command = EBCTestFormCmdOutline08; + txt = qtn_bctestform_menu_outline08; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline09; + txt = qtn_bctestform_menu_outline09; + } + */ + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_moving_inside_form_cascade +// Sub menu-pane of "Moving Inside Form" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_moving_inside_form_cascade + { + items = + { + /* MENU_ITEM + { + command = EBCTestFormCmdOutline11; + txt = qtn_bctestform_menu_outline11; + }, + */ + MENU_ITEM + { + command = EBCTestFormCmdOutline12; + txt = qtn_bctestform_menu_outline12; + }, + /* MENU_ITEM + { + command = EBCTestFormCmdOutline13; + txt = qtn_bctestform_menu_outline13; + },*/ + MENU_ITEM + { + command = EBCTestFormCmdOutline14; + txt = qtn_bctestform_menu_outline14; + }, + /* MENU_ITEM + { + command = EBCTestFormCmdOutline15; + txt = qtn_bctestform_menu_outline15; + },*/ + MENU_ITEM + { + command = EBCTestFormCmdOutline16; + txt = qtn_bctestform_menu_outline16; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline17; + txt = qtn_bctestform_menu_outline17; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_hint_text_cascade +// Sub menu-pane of "Hint text" menu +// +//----------------------------------------------------------------------------- +// +/*RESOURCE MENU_PANE r_bctestform_menu_hint_text_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline18; + txt = qtn_bctestform_menu_outline18; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline20; + txt = qtn_bctestform_menu_outline20; + } + }; + }*/ +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_general_form_parameters_cascade +// Sub menu-pane of "General Form Parameters" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_general_form_parameters_cascade + { + items = + { + /*MENU_ITEM + { + command = EBCTestFormCmdOutline21; + txt = qtn_bctestform_menu_outline21; + },*/ + MENU_ITEM + { + command = EBCTestFormCmdOutline22; + txt = qtn_bctestform_menu_outline22; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_form_component_cascade +// Sub menu-pane of "Component" menu +// +//----------------------------------------------------------------------------- +// +/*RESOURCE MENU_PANE r_bctestform_menu_form_component_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline23; + txt = qtn_bctestform_menu_outline23; + } + }; + } +*/ +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_field_label_cascade +// Sub menu-pane of "Field label" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_field_label_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline25; + txt = qtn_bctestform_menu_outline25; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline26; + txt = qtn_bctestform_menu_outline26; + } + /* MENU_ITEM + { + command = EBCTestFormCmdOutline27; + txt = qtn_bctestform_menu_outline27; + }*/ + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_text_field_cascade +// Sub menu-pane of "Text field" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_text_field_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline28; + txt = qtn_bctestform_menu_outline28; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline29; + txt = qtn_bctestform_menu_outline29; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline30; + txt = qtn_bctestform_menu_outline30; + } + /* MENU_ITEM + { + command = EBCTestFormCmdOutline31; + txt = qtn_bctestform_menu_outline31; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline32; + txt = qtn_bctestform_menu_outline32; + }*/ + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_separator_cascade +// Sub menu-pane of "Separator" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_separator_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline52; + txt = qtn_bctestform_menu_outline52; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_empty_form_cascade +// Sub menu-pane of "Empty Form" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_empty_form_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline53; + txt = qtn_bctestform_menu_outline53; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline54; + txt = qtn_bctestform_menu_outline54; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_adding_field_cascade +// Sub menu-pane of "Adding Field" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_adding_field_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline55; + txt = qtn_bctestform_menu_outline55; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline56; + txt = qtn_bctestform_menu_outline56; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_removing_field_cascade +// Sub menu-pane of "Removing Field" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_removing_field_cascade + { + items = + { + /* MENU_ITEM + { + command = EBCTestFormCmdOutline57; + txt = qtn_bctestform_menu_outline57; + },*/ + MENU_ITEM + { + command = EBCTestFormCmdOutline58; + txt = qtn_bctestform_menu_outline58; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_laf_cascade +// Sub menu-pane of "LAF" menu +// +//----------------------------------------------------------------------------- +// + +RESOURCE MENU_PANE r_bctestform_menu_laf_cascade + { + items = + { + /* MENU_ITEM + { + command = EBCTestFormCmdOutline59; + txt = qtn_bctestform_menu_outline59; + },*/ + MENU_ITEM + { + command = EBCTestFormCmdOutline60; + txt = qtn_bctestform_menu_outline60; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline67; + txt = qtn_bctestform_menu_outline67; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline68; + txt = qtn_bctestform_menu_outline68; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline70; + txt = qtn_bctestform_menu_outline70; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_savetest_cascade +// Sub menu-pane of "Save test" menu +// +//----------------------------------------------------------------------------- +// + +RESOURCE MENU_PANE r_bctestform_menu_savetest_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline83; + txt = qtn_bctestform_menu_outline83; + } + /* MENU_ITEM + { + command = EBCTestFormCmdOutline84; + txt = qtn_bctestform_menu_outline84; + }*/ + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_double_line_cascade +// Sub menu-pane of "Double Line" menu +// +//----------------------------------------------------------------------------- +// + +RESOURCE MENU_PANE r_bctestform_menu_double_line_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline101; + txt = qtn_bctestform_menu_outline101; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline102; + txt = qtn_bctestform_menu_outline102; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_api_test_cascade +// Sub menu-pane of "API Test1" menu +// +//----------------------------------------------------------------------------- +// + +/*RESOURCE MENU_PANE r_bctestform_menu_api_test_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline103; + txt = qtn_bctestform_menu_outline103; + }, + + MENU_ITEM + { + command = EBCTestFormCmdOutline104; + txt = qtn_bctestform_menu_outline104; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline105; + txt = qtn_bctestform_menu_outline105; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline106; + txt = qtn_bctestform_menu_outline106; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline107; + txt = qtn_bctestform_menu_outline107; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline108; + txt = qtn_bctestform_menu_outline108; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline109; + txt = qtn_bctestform_menu_outline109; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline110; + txt = qtn_bctestform_menu_outline110; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline111; + txt = qtn_bctestform_menu_outline111; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline112; + txt = qtn_bctestform_menu_outline112; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline113; + txt = qtn_bctestform_menu_outline113; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline114; + txt = qtn_bctestform_menu_outline114; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline115; + txt = qtn_bctestform_menu_outline115; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline116; + txt = qtn_bctestform_menu_outline116; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline117; + txt = qtn_bctestform_menu_outline117; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline118; + txt = qtn_bctestform_menu_outline118; + } + }; + }*/ +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_api_test_cascade +// Sub menu-pane of "API Test2" menu +// +//----------------------------------------------------------------------------- +// + +/*RESOURCE MENU_PANE r_bctestform_menu_api_test2_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestFormCmdOutline119; + txt = qtn_bctestform_menu_outline119; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline120; + txt = qtn_bctestform_menu_outline120; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline121; + txt = qtn_bctestform_menu_outline121; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline122; + txt = qtn_bctestform_menu_outline122; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline123; + txt = qtn_bctestform_menu_outline123; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline124; + txt = qtn_bctestform_menu_outline124; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline125; + txt = qtn_bctestform_menu_outline125; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline126; + txt = qtn_bctestform_menu_outline126; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline127; + txt = qtn_bctestform_menu_outline127; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline128; + txt = qtn_bctestform_menu_outline128; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline129; + txt = qtn_bctestform_menu_outline129; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline130; + txt = qtn_bctestform_menu_outline130; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline131; + txt = qtn_bctestform_menu_outline131; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline132; + txt = qtn_bctestform_menu_outline132; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline133; + txt = qtn_bctestform_menu_outline133; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline134; + txt = qtn_bctestform_menu_outline134; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline135; + txt = qtn_bctestform_menu_outline135; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline136; + txt = qtn_bctestform_menu_outline136; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline137; + txt = qtn_bctestform_menu_outline137; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline138; + txt = qtn_bctestform_menu_outline138; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline139; + txt = qtn_bctestform_menu_outline139; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline140; + txt = qtn_bctestform_menu_outline140; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline141; + txt = qtn_bctestform_menu_outline141; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline142; + txt = qtn_bctestform_menu_outline142; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline143; + txt = qtn_bctestform_menu_outline143; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline144; + txt = qtn_bctestform_menu_outline144; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline145; + txt = qtn_bctestform_menu_outline145; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline146; + txt = qtn_bctestform_menu_outline146; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline147; + txt = qtn_bctestform_menu_outline147; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline148; + txt = qtn_bctestform_menu_outline148; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline149; + txt = qtn_bctestform_menu_outline149; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline150; + txt = qtn_bctestform_menu_outline150; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline151; + txt = qtn_bctestform_menu_outline151; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline152; + txt = qtn_bctestform_menu_outline152; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline153; + txt = qtn_bctestform_menu_outline153; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline154; + txt = qtn_bctestform_menu_outline154; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline155; + txt = qtn_bctestform_menu_outline155; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline156; + txt = qtn_bctestform_menu_outline156; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline157; + txt = qtn_bctestform_menu_outline157; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline158; + txt = qtn_bctestform_menu_outline158; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline159; + txt = qtn_bctestform_menu_outline159; + }, + MENU_ITEM + { + command = EBCTestFormCmdOutline160; + txt = qtn_bctestform_menu_outline160; + } + }; + }*/ +//----------------------------------------------------------------------------- +// +// r_bctestform_text_label_title +// Text which is used by label +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestform_text_label_title + { + buf = qtn_bctestform_label_title; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_label_operation +// Text which is used by label +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestform_text_label_operation + { + buf = qtn_bctestform_label_operation; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_edwin_text +// Text which is used by editors +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestform_text_edwin_text + { + buf = qtn_bctestform_menu_outline01; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_secret_text +// Text which is used by editors +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestform_text_secret_text + { + buf = qtn_bctestform_menu_outline01; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_status_pane_title?? +// Text which is used on status pane +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestform_text_status_pane_title01 + { + buf = qtn_bctestform_menu_outline01; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title02 + { + buf = qtn_bctestform_menu_outline02; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title03 + { + buf = qtn_bctestform_menu_outline03; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title04 + { + buf = qtn_bctestform_menu_outline04; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title05 + { + buf = qtn_bctestform_menu_outline05; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title06 + { + buf = qtn_bctestform_menu_outline06; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title07 + { + buf = qtn_bctestform_menu_outline07; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title08 + { + buf = qtn_bctestform_menu_outline08; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title09 + { + buf = qtn_bctestform_menu_outline09; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title10 + { + buf = qtn_bctestform_menu_outline10; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title11 + { + buf = qtn_bctestform_menu_outline11; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title12 + { + buf = qtn_bctestform_menu_outline12; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title13 + { + buf = qtn_bctestform_menu_outline13; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title14 + { + buf = qtn_bctestform_menu_outline14; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title15 + { + buf = qtn_bctestform_menu_outline15; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title16 + { + buf = qtn_bctestform_menu_outline16; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title17 + { + buf = qtn_bctestform_menu_outline17; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title18 + { + buf = qtn_bctestform_menu_outline18; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title20 + { + buf = qtn_bctestform_menu_outline20; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title21 + { + buf = qtn_bctestform_menu_outline21; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title22 + { + buf = qtn_bctestform_menu_outline22; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title23 + { + buf = qtn_bctestform_menu_outline23; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title25 + { + buf = qtn_bctestform_menu_outline25; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title26 + { + buf = qtn_bctestform_menu_outline26; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title27 + { + buf = qtn_bctestform_menu_outline27; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title28 + { + buf = qtn_bctestform_menu_outline28; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title29 + { + buf = qtn_bctestform_menu_outline29; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title30 + { + buf = qtn_bctestform_menu_outline30; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title31 + { + buf = qtn_bctestform_menu_outline31; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title32 + { + buf = qtn_bctestform_menu_outline32; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title52 + { + buf = qtn_bctestform_menu_outline52; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title53 + { + buf = qtn_bctestform_menu_outline53; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title54 + { + buf = qtn_bctestform_menu_outline54; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title55 + { + buf = qtn_bctestform_menu_outline55; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title56 + { + buf = qtn_bctestform_menu_outline56; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title57 + { + buf = qtn_bctestform_menu_outline57; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title58 + { + buf = qtn_bctestform_menu_outline58; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title59 + { + buf = qtn_bctestform_menu_outline59; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title60 + { + buf = qtn_bctestform_menu_outline60; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title67 + { + buf = qtn_bctestform_menu_outline67; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title68 + { + buf = qtn_bctestform_menu_outline68; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title70 + { + buf = qtn_bctestform_menu_outline70; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title83 + { + buf = qtn_bctestform_menu_outline83; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title84 + { + buf = qtn_bctestform_menu_outline84; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title101 + { + buf = qtn_bctestform_menu_outline101; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title102 + { + buf = qtn_bctestform_menu_outline102; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title103 + { + buf = qtn_bctestform_menu_outline103; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title104 + { + buf = qtn_bctestform_menu_outline104; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title105 + { + buf = qtn_bctestform_menu_outline105; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title106 + { + buf = qtn_bctestform_menu_outline106; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title107 + { + buf = qtn_bctestform_menu_outline107; + } + + +RESOURCE TBUF256 r_bctestform_text_status_pane_title108 + { + buf = qtn_bctestform_menu_outline108; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title109 + { + buf = qtn_bctestform_menu_outline109; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title110 + { + buf = qtn_bctestform_menu_outline110; + } + +RESOURCE TBUF256 r_bctestform_text_status_pane_title111 + { + buf = qtn_bctestform_menu_outline111; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title112 + { + buf = qtn_bctestform_menu_outline112; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title113 + { + buf = qtn_bctestform_menu_outline113; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title114 + { + buf = qtn_bctestform_menu_outline114; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title115 + { + buf = qtn_bctestform_menu_outline115; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title116 + { + buf = qtn_bctestform_menu_outline116; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title117 + { + buf = qtn_bctestform_menu_outline117; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title118 + { + buf = qtn_bctestform_menu_outline118; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title119 + { + buf = qtn_bctestform_menu_outline119; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title120 + { + buf = qtn_bctestform_menu_outline120; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title121 + { + buf = qtn_bctestform_menu_outline121; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title122 + { + buf = qtn_bctestform_menu_outline122; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title123 + { + buf = qtn_bctestform_menu_outline123; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title124 + { + buf = qtn_bctestform_menu_outline124; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title125 + { + buf = qtn_bctestform_menu_outline125; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title126 + { + buf = qtn_bctestform_menu_outline126; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title127 + { + buf = qtn_bctestform_menu_outline127; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title128 + { + buf = qtn_bctestform_menu_outline128; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title129 + { + buf = qtn_bctestform_menu_outline129; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title130 + { + buf = qtn_bctestform_menu_outline130; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title131 + { + buf = qtn_bctestform_menu_outline131; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title132 + { + buf = qtn_bctestform_menu_outline132; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title133 + { + buf = qtn_bctestform_menu_outline133; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title134 + { + buf = qtn_bctestform_menu_outline134; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title135 + { + buf = qtn_bctestform_menu_outline135; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title136 + { + buf = qtn_bctestform_menu_outline136; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title137 + { + buf = qtn_bctestform_menu_outline137; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title138 + { + buf = qtn_bctestform_menu_outline138; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title139 + { + buf = qtn_bctestform_menu_outline139; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title140 + { + buf = qtn_bctestform_menu_outline140; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title141 + { + buf = qtn_bctestform_menu_outline141; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title142 + { + buf = qtn_bctestform_menu_outline142; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title143 + { + buf = qtn_bctestform_menu_outline143; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title144 + { + buf = qtn_bctestform_menu_outline144; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title145 + { + buf = qtn_bctestform_menu_outline145; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title146 + { + buf = qtn_bctestform_menu_outline146; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title147 + { + buf = qtn_bctestform_menu_outline147; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title148 + { + buf = qtn_bctestform_menu_outline148; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title149 + { + buf = qtn_bctestform_menu_outline149; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title150 + { + buf = qtn_bctestform_menu_outline150; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title151 + { + buf = qtn_bctestform_menu_outline151; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title152 + { + buf = qtn_bctestform_menu_outline152; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title153 + { + buf = qtn_bctestform_menu_outline153; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title154 + { + buf = qtn_bctestform_menu_outline154; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title155 + { + buf = qtn_bctestform_menu_outline155; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title156 + { + buf = qtn_bctestform_menu_outline156; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title157 + { + buf = qtn_bctestform_menu_outline157; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title158 + { + buf = qtn_bctestform_menu_outline158; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title159 + { + buf = qtn_bctestform_menu_outline159; + } +RESOURCE TBUF256 r_bctestform_text_status_pane_title160 + { + buf = qtn_bctestform_menu_outline160; + } + +RESOURCE TBUF256 r_bctestform_resource_caption + { + buf = qtn_bctestform_menu_outline01; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_field_dialog +// Standard for Form. there are two text fields. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_text_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_text_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_field_form +// Standard for Form. there are two text fields. +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline135; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline135; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline135; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline135; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_field_dialog +// Standard for Form. there are a text field and number field. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_text_number_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_text_number_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_field_form +// Standard for Form. there are a text field and number field. +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_number_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline84; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + + }; + tooltip = qtn_bctestform_menu_outline84; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline67; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline60; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_hide_empty_field_dialog +// For Outline05 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_hide_empty_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_hide_empty_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_hide_empty_field_form +// For Outline05 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_hide_empty_field_form + { + flags = EEikFormHideEmptyFields; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline01; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline01; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline01; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline01; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_many_row_field_dialog +// For Outline14,15 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_many_row_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_many_row_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_many_row_field_form +// For Outline14,15 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_many_row_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline01; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin07; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin08; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin09; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin10; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin11; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin12; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin13; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin14; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin15; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin16; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin17; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_navipane_dialog +// For Outline16 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_navipane_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_navipane_pages; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_navipane_pages +// For Outline16 +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_navipane_pages + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_text_field_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_text_number_field_another_form; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_field_another_form +// there are a text field and number field. +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_number_field_another_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_with_icon_dialog +// For Outline22 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_text_number_with_icon_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_text_number_with_icon_pages; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_with_icon_pages +// For Outline22 +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_text_number_with_icon_pages + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_text_number_field_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_only_icon_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage03; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_text_number_with_icon_form; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_only_icon_form +// For Outline22 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_only_icon_form + { + flags = EEikFormShowBitmaps; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_folder_small; + bmpmask = EMbmAvkonQgn_prop_folder_small_mask; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + id = EBCTestFormDlgCtrlIdNumber02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_nrtyp_phone; + bmpmask = EMbmAvkonQgn_prop_nrtyp_phone_mask; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_with_icon_form +// For Outline22 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_number_with_icon_form + { + flags = EEikFormShowBitmaps; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_folder_small; + bmpmask = EMbmAvkonQgn_prop_folder_small_mask; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_nrtyp_phone; + bmpmask = EMbmAvkonQgn_prop_nrtyp_phone_mask; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_date_with_icon_dialog +// For Outline23 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_text_number_date_with_icon_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_text_number_date_with_icon_pages; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_date_with_icon_pages +// For Outline23 +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_text_number_date_with_icon_pages + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_text_number_date_without_icon_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_text_number_date_with_icon_form; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_date_without_icon_form +// For Outline23 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_number_date_without_icon_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_number_date_with_icon_form +// For Outline23 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_number_date_with_icon_form + { + flags = EEikFormShowBitmaps; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_folder_small; + bmpmask = EMbmAvkonQgn_prop_folder_small_mask; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + id = EBCTestFormDlgCtrlIdNumber02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_nrtyp_phone; + bmpmask = EMbmAvkonQgn_prop_nrtyp_phone_mask; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_change_space_field_dialog +// For Outline28 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_change_space_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_change_space_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_change_space_field_form +// For Outline28 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_change_space_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_CHANGE_WIDTH; + lines = BCTestFORM_EDWIN_CHANGE_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_all_editor_field_dialog +// For Outline29,59 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_all_editor_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_all_editor_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_all_editor_field_form +// For Outline29,59 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_all_editor_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_separator_field_dialog +// For Outline52 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_separator_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_separator_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_separator_feild_form +// For Outline52 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_separator_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys | + EEikDlgItemSeparatorAfter; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_one_empty_field_dialog +// For Outline53 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_one_empty_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_one_empty_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_one_empty_field_form +// For Outline53 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_one_empty_field_form + { + flags = EEikFormHideEmptyFields; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_none_field_dialog +// For Outline54 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_none_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_none_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_none_field_form +// For Outline54 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_none_field_form + { + items = + { + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_number_field_dialog +// For Outline60 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_number_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_number_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_number_field_form +// For Outline60 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_number_field_form + { + items = + { + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE02; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE02; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE02; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE02; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_one_field_dialog +// For Outline67 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_text_one_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_text_one_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_one_field_form +// For Outline67 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_one_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_slider_field_dialog +// For Outline17 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_text_slider_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagButtonsRight | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_text_slider_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_text_slider_field_form +// For Outline17 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_text_slider_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EAknCtSlider; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSlider01; + control = SLIDER + { + layout = EAknFormSliderLayout1; + minvalue = BCTestFORM_SLIDER_MIN_VALUE; + maxvalue = BCTestFORM_SLIDER_MAX_VALUE; + step = BCTestFORM_SLIDER_STEP; + minlabel = qtn_bctestform_menu_outline23; + maxlabel = qtn_bctestform_menu_outline23; + //valuelabel = qtn_bctestform_form_value_label; + valuetype = EAknSliderValuePercentage; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_three_slider_field_dialog +// For Outline68 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_three_slider_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagButtonsRight | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_three_slider_field_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_three_slider_field_form +// For Outline68 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_three_slider_field_form + { + items = + { + DLG_LINE + { + type = EAknCtSlider; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSlider01; + control = SLIDER + { + layout = EAknFormSliderLayout1; + minvalue = BCTestFORM_SLIDER_MIN_VALUE; + maxvalue = BCTestFORM_SLIDER_MAX_VALUE; + step = BCTestFORM_SLIDER_STEP; + minlabel = qtn_bctestform_menu_outline23; + maxlabel = qtn_bctestform_menu_outline23; + valuetype = EAknSliderValuePercentage; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EAknCtSlider; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSlider02; + control = SLIDER + { + layout = EAknFormSliderLayout2; + minvalue = BCTestFORM_SLIDER_MIN_VALUE; + maxvalue = BCTestFORM_SLIDER_MAX_VALUE; + step = BCTestFORM_SLIDER_STEP; + minlabel = qtn_bctestform_menu_outline23; + maxlabel = qtn_bctestform_menu_outline23; + valuetype = EAknSliderValuePercentage; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EAknCtSlider; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSlider03; + control = SLIDER + { + layout = EAknFormSliderLayout3; + minvalue = BCTestFORM_SLIDER_MIN_VALUE; + maxvalue = BCTestFORM_SLIDER_MAX_VALUE; + step = BCTestFORM_SLIDER_STEP; + minlabel = qtn_bctestform_menu_outline23; + maxlabel = qtn_bctestform_menu_outline23; + valuetype = EAknSliderValuePercentage; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_moving_through_line_dialog +// For Outline12 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_moving_through_line_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestform_moving_through_line_form; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_moving_through_line_form +// For Outline12 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_moving_through_line_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_navigate_six_pages_dialog +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_navigate_six_pages_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_navigate_six_pages; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_navigate_six_pages +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_navigate_six_pages + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_six_edwin_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_six_number_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage03; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_six_date_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage04; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_six_time_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage05; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_six_duration_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage06; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_six_secret_form; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_edwin_form +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_edwin_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdEdwin06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_number_form +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_number_form + { + items = + { + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_date_form +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_date_form + { + items = + { + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_time_form +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_time_form + { + items = + { + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdTime06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_duration_form +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_duration_form + { + items = + { + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDuration06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_secret_form +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_secret_form + { + items = + { + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdSecret06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_double_line_form + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_double_line_form_pages; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_form_pages +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_double_line_form_pages + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_double_line_edwin_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_double_line_number_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage03; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_double_line_date_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage04; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_double_line_time_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage05; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_double_line_duration_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage06; + text = qtn_bctestform_menu_outline23; + form = r_bctestform_double_line_secret_form; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_edwin_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_edwin_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = "asdf"; + id = 2222; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = 1; + lines = 1; + maxlength = 2; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + //base_line_delta = 21; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_number_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_number_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdNumber06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_outline23; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_date_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_date_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_outline23; + id = EBCTestFormDlgCtrlIdDate01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDate02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDate03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDate04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDate05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDateEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDate06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DATE_EDITOR + { + minDate = DATE + { + day = BCTestFORM_DATE_MIN_DAY_VALUE; + month = BCTestFORM_DATE_MIN_MONTH_VALUE; + year = BCTestFORM_DATE_MIN_YEAR_VALUE; + }; + maxDate = DATE + { + day = BCTestFORM_DATE_MAX_DAY_VALUE; + month = BCTestFORM_DATE_MAX_MONTH_VALUE; + year = BCTestFORM_DATE_MAX_YEAR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_time_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_time_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdTime01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdTime02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdTime03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdTime04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdTime05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtTimeEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdTime06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = TIME_EDITOR + { + flags = EEikTimeForce24HourFormat; + minTime = TIME + { + second = BCTestFORM_TIME_MIN_SECOND_VALUE; + minute = BCTestFORM_TIME_MIN_MINUTE_VALUE; + hour = BCTestFORM_TIME_MIN_HOUR_VALUE; + }; + maxTime = TIME + { + second = BCTestFORM_TIME_MAX_SECOND_VALUE; + minute = BCTestFORM_TIME_MAX_MINUTE_VALUE; + hour = BCTestFORM_TIME_MAX_HOUR_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_duration_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_duration_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDuration01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDuration02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDuration03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDuration04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDuration05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtDurationEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdDuration06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = DURATION_EDITOR + { + flags = EEikTimeForce24HourFormat; + minDuration = DURATION + { + seconds = BCTestFORM_DURATION_MIN_VALUE; + }; + maxDuration = DURATION + { + seconds = BCTestFORM_DURATION_MAX_VALUE; + }; + }; + tooltip = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_secret_form +// For Outline101 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_secret_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdSecret01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdSecret02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdSecret03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdSecret04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdSecret05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtSecretEd; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdSecret06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = SECRETED + { + num_letters = BCTestFORM_SECRET_MAX_LENGTH; + }; + tooltip = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_and_single_line_form +// For Outline102 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_double_and_single_line_form + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_double_and_single_line_form_pages; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_and_single_line_form_pages +// For Outline102 +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_double_and_single_line_form_pages + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_double_line_text_number_field_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_text_number_field_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage03; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_double_line_icon_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage04; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_double_line_text_number_with_icon_form; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_text_number_field_form +// For Outline102 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_text_number_field_form + { + flags = EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin11; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdNumber06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_icon_form +// For Outline102 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_icon_form + { + flags = EEikFormShowBitmaps | EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_folder_small; + bmpmask = EMbmAvkonQgn_prop_folder_small_mask; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + id = EBCTestFormDlgCtrlIdNumber02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_api_test; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_nrtyp_phone; + bmpmask = EMbmAvkonQgn_prop_nrtyp_phone_mask; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_double_line_text_number_with_icon_form +// For Outline102 +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_double_line_text_number_with_icon_form + { + flags = EEikFormShowBitmaps | EEikFormUseDoubleSpacedFormat; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_folder_small; + bmpmask = EMbmAvkonQgn_prop_folder_small_mask; + }, + DLG_LINE + { + type = EEikCtNumberEditor; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdNumber03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = NUMBER_EDITOR + { + min = BCTestFORM_NUMBER_EDITOR_MIN_VALUE01; + max = BCTestFORM_NUMBER_EDITOR_MAX_VALUE01; + }; + tooltip = qtn_bctestform_menu_api_test; + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_prop_nrtyp_phone; + bmpmask = EMbmAvkonQgn_prop_nrtyp_phone_mask; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestform_api_test_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestform_api_test_menubar + { + titles= + { + MENU_TITLE { menu_pane=r_bctestform_api_test_menu; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_api_test_menu +// Menu-pane of derived form +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_api_test_menu + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestChangeFocus; + cascade = r_bctestform_menu_change_focus_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetCaption; + cascade = r_bctestform_menu_set_caption_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestActivatePage; + cascade = r_bctestform_menu_activate_page_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestChecks; + cascade = r_bctestform_menu_checks_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestResetLine; + cascade = r_bctestform_menu_reset_line_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestPreNPost; + cascade = r_bctestform_menu_pre_n_post_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSizeNPos; + cascade = r_bctestform_menu_size_n_pos_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSaveTest; + cascade = r_bctestform_menu_save_test_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_title_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_page_dimmed_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_line_dimmed_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_line_visible_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_whole_line_visible_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_create_line_by_typea_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_create_line_by_typeb_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_control_caption; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_control; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_control_or_null; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_active_page_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_find_line_index_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_cba_btn_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_title_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_id_of_focus_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_adjust_ids_on_page_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_line_focusing_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + cascade = r_bctestform_menu_set_form_flag_cascade; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestViewFormFlags; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_change_focus_cascade +// Sub menu-pane of "Change Focus" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_change_focus_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestTryChangeFocus; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestTryChangeFocusToFirst; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestTryChangeFocusToMiddle; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestTryChangeFocusToLast; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestRotateFocusByOne; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestRotateFocusByThree; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestRotateFocusByMinusTwo; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_set_caption_cascade +// Sub menu-pane of "Set Caption" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_caption_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetCaptionFromResource; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetCaptionFromUser; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_activate_page_cascade +// Sub menu-pane of "Activate Page" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_activate_page_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestActivateFirstPage; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_checks_cascade +// Sub menu-pane of "Checks" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_checks_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestActivePage; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestGetBorderStyle; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestGetFlags; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestGetLine; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestShowDialogFlags; + txt = qtn_bctestform_menu_api_test; + } + + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_reset_line_cascade +// Sub menu-pane of "Reset Line" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_reset_line_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestResetLineMinimumSizes; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_pre_n_post_cascade +// Sub menu-pane of "Pre N Post" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_pre_n_post_cascade + { + items= + { + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_size_n_pos_cascade +// Sub menu-pane of "Size N Pos" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_size_n_pos_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSizeNPos10x10; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSizeNPos100x100; + txt = qtn_bctestform_menu_api_test; + } + + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_save_test_cascade +// Sub menu-pane of "Save Test" menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_save_test_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetChangesPendingTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetChagnesPendingFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_set_title_cascade +// Sub menu-pane of Set Title menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_title_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetTitleFromDes; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetTitleFromRes; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_set_page_dimmed +// Sub menu-pane of Set Page Dimmed +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_page_dimmed_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetPageDimmedNowTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetPageDimmedNowFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_set_line_dimmed +// Sub menu-pane of Set Line Dimmed +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_line_dimmed_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetLineDimmedNowTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetLineDimmedNowFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_set_line_visible +// Sub menu-pane of Set Line VIsible +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_line_visible_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestMakeLineVisibleTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestMakeLineVisibleFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_set_line_visible +// Sub menu-pane of Set Line VIsible +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_whole_line_visible_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestMakeWholeLineVisibleTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestMakeWholeLineVisibleFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typea_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_create_line_by_typea_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestCreateLineByTypeANext; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_create_line_by_typeb_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestCreateLineByTypeBEnd; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_control_caption + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestControlCaptionChangeCaption; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_control + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestControlSetText; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_control_or_null + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestControlOrNullSetText; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_active_page_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestActivePageIndexShow; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestActivePageIdShow; + txt = qtn_bctestform_menu_api_test; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_find_line_index_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestFindLineIndex; + txt = qtn_bctestform_menu_api_test; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_cba_btn_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestButtonGroupContainer; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSwapButtonGroupContainer; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestButtonCommandObserver; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_title_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestTitle; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_id_of_focus_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestIdOfFocus; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_adjust_ids_on_page_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestAdjustAllIdsOnPage; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_line_focusing_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetLineNonFocusingTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetLineNonFocusingFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_create_line_by_typeb_cascade +// create line by typeA cascade. +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestform_menu_set_form_flag_cascade + { + items= + { + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetFormFlagDeletingTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetFormFlagDeletingFalse; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetFormFlagUnsavedEditTrue; + txt = qtn_bctestform_menu_api_test; + }, + MENU_ITEM + { + command = EBCTestFormCmdAPITestSetFormFlagUnsavedEditFalse; + txt = qtn_bctestform_menu_api_test; + } + }; + } + +RESOURCE CBA r_bctestform_dialog_buttons + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeyEmpty; + txt = ""; + }, + CBA_BUTTON + { + id = EAknSoftkeyBack; + txt = "Cancel"; + } + }; + } + +RESOURCE DIALOG r_bctestform_information_note + { + flags = EAknInformationNoteFlags; + buttons = r_bctestform_dialog_buttons; + items= + { + DLG_LINE + { + type=EAknCtNote; + id=89; + control= AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = "Text Will Go Here"; + plural_label = ""; + imagefile=AVKON_BMP_FILENAME; + imageid = EMbmAvkonQgn_note_info; + imagemask = EMbmAvkonQgn_note_info_mask; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestform_menu_save_test_cascade +// For API Test contains a custom control +// +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +// +// r_bctestform_navigate_six_pages_dialog +// For Outline70 +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestform_navigate_six_pages_dialog_api + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestform_navigate_six_pages_api; + } + + + + +//----------------------------------------------------------------------------- +// +// r_bctestform_navigate_six_pages_with_custom +// For Outline API +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestform_navigate_six_pages_api + { + items = + { + PAGE + { + id = EBCTestFormPageCtrlIdPage01; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_six_edwin_form_with_custom; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage02; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_six_number_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage03; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_six_date_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage04; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_six_time_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage05; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_six_duration_form; + }, + PAGE + { + id = EBCTestFormPageCtrlIdPage06; + text = qtn_bctestform_menu_api_test; + form = r_bctestform_six_secret_form; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestform_six_edwin_form_with_custom +// For Outline API Test +// +//----------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestform_six_edwin_form_with_custom + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestform_menu_api_test; + id = EBCTestFormDlgCtrlIdEdwin06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTestFORM_EDWIN_WIDTH; + lines = BCTestFORM_EDWIN_LINES; + maxlength = EBCTestFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestform_menu_api_test; + }, + DLG_LINE + { + type=EBCTestFormCustomControlTypeA; + prompt = "Custom Control" ; + id= EBCTestFormDlgCtrlIdCustom01; + itemflags = EEikDlgItemSeparatorAfter| EEikDlgItemTakesEnterKey ; + control=EDWIN { flags= KMultiLineExpandingEditorFlags; width=6; max_view_height_in_lines=2;base_line_delta=21;}; + tooltip="Enter Text" ; + } + }; + } + + + + +RESOURCE CBA r_bctestform_cmd_buttons_a + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeyDetails; + txt = "Please"; + }, + CBA_BUTTON + { + id = EAknSoftkeyEmpty; + txt = "Wait"; + }, + CBA_BUTTON + { + id = EAknSoftkeyDetails; + txt = "Please"; + } + }; + } + +RESOURCE CBA r_bctestform_cmd_buttons_b + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeyDetails; + txt = "Press"; + }, + CBA_BUTTON + { + id = EAknSoftkeyEmpty; + txt = "Me"; + }, + CBA_BUTTON + { + id = EAknSoftkeyDetails; + txt = "Press"; + } + }; + } + +RESOURCE DIALOG r_bctestform_number_query + { + flags=EGeneralQueryFlags; + buttons=R_AVKON_SOFTKEYS_OK_CANCEL; + items= + { + DLG_LINE + { + type=EAknCtQuery; + id=EGeneralQuery; + control= AVKON_DATA_QUERY + { + layout = ENumberLayout; + control=AVKON_INTEGER_EDWIN + { + min=1; + max=400; + }; + }; + } + }; + } + + +RESOURCE DIALOG r_bctestform_data_query_single_line_editor + { + flags = EEikDialogFlagWait|EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagCbaButtons | EEikDialogFlagNoShadow; + buttons=R_AVKON_SOFTKEYS_DONE_CANCEL; + items= + { + DLG_LINE + { + type=EAknCtQuery; + id=EGeneralQuery; + itemflags=EEikDlgItemTakesEnterKey; + control= AVKON_DATA_QUERY + { + layout = EDataLayout; + label = "Data query:"; + control=EDWIN + { + flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; + maxlength=1000; + width=16; + lines=1; + max_view_height_in_lines=1; + }; + }; + } + }; + } + +RESOURCE CBA r_softkeys_options_back__options + { + buttons = + { + CBA_BUTTON {id=EAknSoftkeyOptions; txt = "Options";}, + CBA_BUTTON {id=EAknSoftkeyExit; txt = "Back"; }, + CBA_BUTTON {id=EAknSoftkeyOptions; txt = "Options";} + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bctestForm_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bctestForm_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004747 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestForm"; + + localisable_resource_file = "\\resource\\apps\\BCTestForm"; + localisable_resource_id = R_BCTESTFORM_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: This file provides the information required for building the +* : whole of a AknAtForm. +* +*/ + + + +PRJ_MMPFILES +BCTestForm.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestFormView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestFormView.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,157 @@ +/* +* 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 "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: view of application +* +*/ + + +#ifndef BCTESTFORMVIEW_H +#define BCTESTFORMVIEW_H + +// INCLUDES +#include +#include +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CBCTestFormContainer; + +// CLASS DECLARATION + +/** +* CBCTestFormView view class. +* +*/ +class CBCTestFormView : public CAknView + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CBCTestFormView* NewL(); + + /** + * Destructor. + */ + virtual ~CBCTestFormView(); + + public: // New functions + + /** + * + * @param aIndex + */ + void DisplayNextOutlineL(); + CBCTestFormContainer* Container() const; + + public: // From CAknView. + + /** + * From CAknView, Id. + * Returns the ID of view. + * @return The ID of view. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * handles the commands. if the command is command which is require to + * display outline-screen, the command is reported to container class. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + private: // New functions + + /** + * Default constructor. + */ + CBCTestFormView(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + /** + * Set title text to status-pane + * @param aCommand + */ + void IndicateTitlePaneTextL( TInt aCommand ); + + private: // From CAknView + + /** + * From CAknView, DoActivateL. + * Creates the Container class object. + * @param aPrevViewId aPrevViewId is not used. + * @param aCustomMessageId aCustomMessageId is not used. + * @param aCustomMessage aCustomMessage is not used. + */ + void DoActivateL( + const TVwsViewId& aPrevViewId, + TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + /** + * From CAknView, DoDeactivate. + * Deletes the Container class object. + */ + void DoDeactivate(); + + /** + * Utility methods + */ + void SetupAPIOutlineL(TInt aCommand); + private: // Data + + CBCTestFormContainer* iContainer; + TInt iCurrentOutline; + + }; + +/** +* CBCTestFormTestAdd container control class. +*/ +class CBCTestFormTestAdd : public CAknForm + { + public: // Constructor and Detructor + /** + * Default constructor. + */ + CBCTestFormTestAdd(); + + /** + * Destructor. + */ + virtual ~CBCTestFormTestAdd(); + + protected: + /** + * From CAknForm, + * Add item for testing uses customised dialog. + */ + void AddItemL(); + + private: + // In order to prevent adding controls which ID is the same. + TInt iNewItemId; + }; + +#endif // BCTestFormVIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestFormcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestFormcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,151 @@ +/* +* 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 "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 bc of the form control API(s) +* +*/ + + +#include +#include +#include + +#include "bctestcase.h" + +/** +* test class for aknform control in test case. +*/ +class CBCTestFormAdd : public CAknForm + { + public: // Constructor and Detructor + /** + * Default constructor. + */ + CBCTestFormAdd(); + + /** + * Destructor. + */ + virtual ~CBCTestFormAdd(); + /** + * test function AddItemL + */ + void TestAddItemL(); + /** + * test function SaveFormDataL + */ + void TestSaveFormDataL(); + /** + * test function DoNotSaveFormDataL + */ + void TestDoNotSaveFormDataL(); + /** + * test function Deleting + */ + TBool TestDeleting(); + /** + * test function UnsavedEdit + */ + void TestUnsavedEdit(); + /** + * test function EditCurrentLabelL + */ + void TestEditCurrentLabelL(); + /** + * test function QuerySaveChangeL + */ + TBool TestQuerySaveChangeL(); + /** + * test function PrepareForFocusTransitionL + */ + void TestPrepareForFocusTransitionL(); + /** + * test function PostLayoutDynInitL + */ + void TestPostLayoutDynInitL(); + /** + * test function SetInitialCurrentLine + */ + void TestSetInitialCurrentLine(); + /** + * test function SetChangesPending + */ + void TestSetChangesPending(); + /** + * test function SetFormFlag + */ + void TestSetFormFlag(); + /** + * test function OkToExitL + */ + void TestOkToExitL(); + /** + * test function DeleteCurrentItemL + */ + void TestDeleteCurrentItemL(); + protected: + + private: + // In order to prevent adding controls which ID is the same. + // TInt iNewItemId; + }; +/** +* test case for aknform +*/ +class CBCTestFormView; +class CBCTestFormContainer; +class CAknForm; +class CEikMenuPane; + +class CBCTestFormCase: public CBCTestCase + { + public: + static CBCTestFormCase* NewL( CBCTestFormView* aView ); + static CBCTestFormCase* NewLC( CBCTestFormView* aView ); + virtual ~CBCTestFormCase(); + + virtual void RunL(int aCmd); //from CBCTestCase + + + protected: // new + virtual void TearDownL(); + /** + * do necessary setup things. + */ + virtual void SetupL(); + + + CBCTestFormCase( CBCTestFormView* aView ); + void ConstructL(); + + private: + void ScriptCreateL(); + /** + * test Function for OutLine2 + */ + void TestCreateL(); + + /** + * test Function for OutLine1 + */ + void TryCreateL(); + + CBCTestFormContainer* Container() const; + + private: // Data + CBCTestFormView * iView; // not own, just reference + CAknForm * iForm; // own + CEikMenuPane * iPane; + CBCTestFormAdd *iAknFormTest; + }; + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestform.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestform.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,346 @@ +/* +* 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 "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 headers for project bctestform.app +* +*/ + + +#ifndef BCTestForm_HRH +#define BCTestForm_HRH + +enum TBCTestFormMenuCommands + { + EBCTestFormCmdEmptyOutline = 0x600, + + EBCTestFormCmdSoftkey, + EBCTestFormCmdOutline01, + + EBCTestFormCmdFormStates, + EBCTestFormCmdOutline02, + EBCTestFormCmdOutline03, + EBCTestFormCmdOutline04, + EBCTestFormCmdOutline05, + EBCTestFormCmdOutline06, + EBCTestFormCmdOutline07, + EBCTestFormCmdOutline08, + EBCTestFormCmdOutline09, + EBCTestFormCmdOutline10, + EBCTestFormCmdMaxOutline, + + EBCTestFormCmdMovingInsideForm, + EBCTestFormCmdOutline11, + EBCTestFormCmdOutline12, + EBCTestFormCmdOutline13, + EBCTestFormCmdOutline14, + EBCTestFormCmdOutline15, + EBCTestFormCmdOutline16, + EBCTestFormCmdOutline17, + + EBCTestFormCmdHintText, + EBCTestFormCmdOutline18, + EBCTestFormCmdOutline20, + + EBCTestFormCmdGeneralFormParameters, + EBCTestFormCmdOutline21, + EBCTestFormCmdOutline22, + + EBCTestFormCmdFormComponent, + EBCTestFormCmdOutline23, + + EBCTestFormCmdFieldLabel, + EBCTestFormCmdOutline25, + EBCTestFormCmdOutline26, + EBCTestFormCmdOutline27, + + EBCTestFormCmdTextField, + EBCTestFormCmdOutline28, + EBCTestFormCmdOutline29, + EBCTestFormCmdOutline30, + EBCTestFormCmdOutline31, + EBCTestFormCmdOutline32, + + EBCTestFormCmdSeparator, + EBCTestFormCmdOutline52, + + EBCTestFormCmdEmptyForm, + EBCTestFormCmdOutline53, + EBCTestFormCmdOutline54, + + EBCTestFormCmdAddingField, + EBCTestFormCmdOutline55, + EBCTestFormCmdOutline56, + + EBCTestFormCmdRemovingField, + EBCTestFormCmdOutline57, + EBCTestFormCmdOutline58, + + EBCTestFormCmdLAF, + EBCTestFormCmdOutline59, + EBCTestFormCmdOutline60, + EBCTestFormCmdOutline67, + EBCTestFormCmdOutline68, + EBCTestFormCmdOutline70, + + EBCTestFormCmdSaveTest, + EBCTestFormCmdOutline83, + EBCTestFormCmdOutline84, + + EBCTestFormCmdDoubleLine, + EBCTestFormCmdOutline101, + EBCTestFormCmdOutline102, + + EBCTestFormCmdAPITest, + EBCTestFormCmdOutline103, + EBCTestFormCmdOutline104, + EBCTestFormCmdOutline105, + EBCTestFormCmdOutline106, + EBCTestFormCmdOutline107, + EBCTestFormCmdOutline108, + EBCTestFormCmdOutline109, + EBCTestFormCmdOutline110, + EBCTestFormCmdOutline111, + EBCTestFormCmdOutline112, + EBCTestFormCmdOutline113, + EBCTestFormCmdOutline114, + EBCTestFormCmdOutline115, + EBCTestFormCmdOutline116, + EBCTestFormCmdOutline117, + EBCTestFormCmdOutline118, + EBCTestFormCmdOutline119, + EBCTestFormCmdOutline120, + EBCTestFormCmdAPITest2, + EBCTestFormCmdOutline121, + EBCTestFormCmdOutline122, + EBCTestFormCmdOutline123, + EBCTestFormCmdOutline124, + EBCTestFormCmdOutline125, + EBCTestFormCmdOutline126, + EBCTestFormCmdOutline127, + EBCTestFormCmdOutline128, + EBCTestFormCmdOutline129, + EBCTestFormCmdOutline130, + EBCTestFormCmdOutline131, + EBCTestFormCmdOutline132, + EBCTestFormCmdOutline133, + EBCTestFormCmdOutline134, + EBCTestFormCmdOutline135, + EBCTestFormCmdOutline136, + EBCTestFormCmdOutline137, + EBCTestFormCmdOutline138, + EBCTestFormCmdOutline139, + EBCTestFormCmdOutline140, + EBCTestFormCmdOutline141, + EBCTestFormCmdOutline142, + EBCTestFormCmdOutline143, + EBCTestFormCmdOutline144, + EBCTestFormCmdOutline145, + EBCTestFormCmdOutline146, + EBCTestFormCmdOutline147, + EBCTestFormCmdOutline148, + EBCTestFormCmdOutline149, + EBCTestFormCmdOutline150, + EBCTestFormCmdOutline151, + EBCTestFormCmdOutline152, + EBCTestFormCmdOutline153, + EBCTestFormCmdOutline154, + EBCTestFormCmdOutline155, + EBCTestFormCmdOutline156, + EBCTestFormCmdOutline157, + EBCTestFormCmdOutline158, + EBCTestFormCmdOutline159, + EBCTestFormCmdOutline160, + EBCTestFormCmdAutotest, + EBCTestFormCmdExit, + + + + + + + + +// Cmds for derived form + + EBCTestFormCmdAPITestChangeFocus, + EBCTestFormCmdAPITestTryChangeFocus, + EBCTestFormCmdAPITestTryChangeFocusToFirst, + EBCTestFormCmdAPITestTryChangeFocusToMiddle, + EBCTestFormCmdAPITestTryChangeFocusToLast, + EBCTestFormCmdAPITestRotateFocusByOne, + EBCTestFormCmdAPITestRotateFocusByThree, + EBCTestFormCmdAPITestRotateFocusByMinusTwo, + + EBCTestFormCmdAPITestSetCaption, + EBCTestFormCmdAPITestSetCaptionFromResource, + EBCTestFormCmdAPITestSetCaptionFromUser, + + EBCTestFormCmdAPITestActivatePage, + EBCTestFormCmdAPITestActivateFirstPage, + + + EBCTestFormCmdAPITestIdOfFocus, + + EBCTestFormCmdAPITestChecks, + EBCTestFormCmdAPITestActivePage, + EBCTestFormCmdAPITestGetBorderStyle, + EBCTestFormCmdAPITestGetFlags, + EBCTestFormCmdAPITestGetLine, + EBCTestFormCmdAPITestShowDialogFlags, + + EBCTestFormCmdAPITestResetLine, + EBCTestFormCmdAPITestResetLineMinimumSizes, + + EBCTestFormCmdAPITestPreNPost, + + EBCTestFormCmdAPITestSizeNPos, + EBCTestFormCmdAPITestSizeNPos10x10, + EBCTestFormCmdAPITestSizeNPos100x100, + + EBCTestFormCmdAPITestSaveTest, + EBCTestFormCmdAPITestSetChangesPendingTrue, + EBCTestFormCmdAPITestSetChagnesPendingFalse, + + + EBCTestFormCmdAPITestSetTitleFromDes, + EBCTestFormCmdAPITestSetTitleFromRes, + + EBCTestFormCmdAPITestSetPageDimmedNowTrue, + EBCTestFormCmdAPITestSetPageDimmedNowFalse, + + EBCTestFormCmdAPITestSetLineDimmedNowTrue, + EBCTestFormCmdAPITestSetLineDimmedNowFalse, + + EBCTestFormCmdAPITestMakeLineVisibleTrue, + EBCTestFormCmdAPITestMakeLineVisibleFalse, + + EBCTestFormCmdAPITestMakeWholeLineVisibleTrue, + EBCTestFormCmdAPITestMakeWholeLineVisibleFalse, + EBCTestFormCmdAPITestMakeWholeLineVisible, + + EBCTestFormCmdAPITestCreateLineByTypeANext, + EBCTestFormCmdAPITestCreateLineByTypeBEnd, + + EBCTestFormCmdAPITestControlCaptionChangeCaption, + + EBCTestFormCmdAPITestControlSetText, + + EBCTestFormCmdAPITestControlOrNullSetText, + + EBCTestFormCmdAPITestActivePageIndexShow, + EBCTestFormCmdAPITestActivePageIdShow, + + EBCTestFormCmdAPITestFindLineIndex, + + EBCTestFormCmdAPITestTitle, + EBCTestFormCmdAPITestButtonGroupContainer, + EBCTestFormCmdAPITestSwapButtonGroupContainer, + EBCTestFormCmdAPITestButtonCommandObserver, + + EBCTestFormCmdAPITestAdjustAllIdsOnPage, + + EBCTestFormCmdAPITestSetLineNonFocusingTrue, + EBCTestFormCmdAPITestSetLineNonFocusingFalse, + + EBCTestFormCmdAPITestSetFormFlagDeletingTrue, + EBCTestFormCmdAPITestSetFormFlagDeletingFalse, + EBCTestFormCmdAPITestSetFormFlagUnsavedEditTrue, + EBCTestFormCmdAPITestSetFormFlagUnsavedEditFalse, + + EBCTestFormCmdAPITestViewFormFlags, + + EBCTestFormCmdAPITestHamed + + + }; + +enum TBCTestFormDialogControlIds + { + EBCTestFormDlgCtrlIdEdwin01 = 0x100, + EBCTestFormDlgCtrlIdEdwin02, + EBCTestFormDlgCtrlIdEdwin03, + EBCTestFormDlgCtrlIdEdwin04, + EBCTestFormDlgCtrlIdEdwin05, + EBCTestFormDlgCtrlIdEdwin06, + EBCTestFormDlgCtrlIdEdwin07, + EBCTestFormDlgCtrlIdEdwin08, + EBCTestFormDlgCtrlIdEdwin09, + EBCTestFormDlgCtrlIdEdwin10, + EBCTestFormDlgCtrlIdEdwin11, + EBCTestFormDlgCtrlIdEdwin12, + EBCTestFormDlgCtrlIdEdwin13, + EBCTestFormDlgCtrlIdEdwin14, + EBCTestFormDlgCtrlIdEdwin15, + EBCTestFormDlgCtrlIdEdwin16, + EBCTestFormDlgCtrlIdEdwin17, + EBCTestFormDlgCtrlIdNumber01, + EBCTestFormDlgCtrlIdNumber02, + EBCTestFormDlgCtrlIdNumber03, + EBCTestFormDlgCtrlIdNumber04, + EBCTestFormDlgCtrlIdNumber05, + EBCTestFormDlgCtrlIdNumber06, + EBCTestFormDlgCtrlIdDate01, + EBCTestFormDlgCtrlIdDate02, + EBCTestFormDlgCtrlIdDate03, + EBCTestFormDlgCtrlIdDate04, + EBCTestFormDlgCtrlIdDate05, + EBCTestFormDlgCtrlIdDate06, + EBCTestFormDlgCtrlIdTime01, + EBCTestFormDlgCtrlIdTime02, + EBCTestFormDlgCtrlIdTime03, + EBCTestFormDlgCtrlIdTime04, + EBCTestFormDlgCtrlIdTime05, + EBCTestFormDlgCtrlIdTime06, + EBCTestFormDlgCtrlIdDuration01, + EBCTestFormDlgCtrlIdDuration02, + EBCTestFormDlgCtrlIdDuration03, + EBCTestFormDlgCtrlIdDuration04, + EBCTestFormDlgCtrlIdDuration05, + EBCTestFormDlgCtrlIdDuration06, + EBCTestFormDlgCtrlIdSecret01, + EBCTestFormDlgCtrlIdSecret02, + EBCTestFormDlgCtrlIdSecret03, + EBCTestFormDlgCtrlIdSecret04, + EBCTestFormDlgCtrlIdSecret05, + EBCTestFormDlgCtrlIdSecret06, + EBCTestFormDlgCtrlIdSlider01, + EBCTestFormDlgCtrlIdSlider02, + EBCTestFormDlgCtrlIdSlider03, + EBCTestFormDlgCtrlIdCustom01, + + EBCTestFormDlgCtrlIdDynamic + }; + +enum TBCTestFormPageControlIds + { + EBCTestFormPageCtrlIdPage01 = 1, // must start from one + EBCTestFormPageCtrlIdPage02, + EBCTestFormPageCtrlIdPage03, + EBCTestFormPageCtrlIdPage04, + EBCTestFormPageCtrlIdPage05, + EBCTestFormPageCtrlIdPage06 + }; + +enum TBCTestFormFieldInfo + { + EBCTestFormEdwinMaxLength = 64 + }; + +enum TCustomControlIds + { + EBCTestFormCustomControlTypeA = 3969 + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestform.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestform.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,192 @@ +/* +* 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 "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: common localised strings for bctestForm +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tafm_list "BCTESTFORM" +#define qtn_apps_tafm_grid "BCTESTFORM" + +// MenuBar +#define qtn_bctestform_menubar "Option" +#define qtn_bctestform_menu_softkey "OUTLINE1" +#define qtn_bctestform_menu_form_states "Form states" +#define qtn_bctestform_menu_move_in_form "Moving" +#define qtn_bctestform_menu_hint_text "Hint text" +#define qtn_bctestform_menu_gen_form_prm "General form prm" +#define qtn_bctestform_menu_component "Form component" +#define qtn_bctestform_menu_field_label "Field label" +#define qtn_bctestform_menu_text_field "Text field" +#define qtn_bctestform_menu_separator "Separator" +#define qtn_bctestform_menu_empty_form "Empty form" +#define qtn_bctestform_menu_add_field "Add field" +#define qtn_bctestform_menu_remove_field "Remove field" +#define qtn_bctestform_menu_laf "For LAF" +#define qtn_bctestform_menu_savetest "Save test" +#define qtn_bctestform_menu_exit "Exit" +#define qtn_bctestform_menu_autotest "Autotest" +#define qtn_bctestform_menu_double_line "Double Line" +#define qtn_bctestform_menu_api_test "API Test" +#define qtn_bctestform_menu_api_test2 "API Test2" + +#define qtn_bctestform_menu_outline101 "OUTLINE101" +#define qtn_bctestform_menu_outline102 "OUTLINE102" +#define qtn_bctestform_menu_outline103 "OUTLINE103" +#define qtn_bctestform_menu_outline104 "OUTLINE104" +#define qtn_bctestform_menu_outline105 "OUTLINE105" +#define qtn_bctestform_menu_outline106 "OUTLINE106" +#define qtn_bctestform_menu_outline107 "OUTLINE107" +#define qtn_bctestform_menu_outline108 "OUTLINE108" +#define qtn_bctestform_menu_outline109 "OUTLINE109" +#define qtn_bctestform_menu_outline110 "OUTLINE110" +#define qtn_bctestform_menu_outline111 "OUTLINE111" +#define qtn_bctestform_menu_outline112 "OUTLINE112" +#define qtn_bctestform_menu_outline113 "OUTLINE113" +#define qtn_bctestform_menu_outline114 "OUTLINE114" +#define qtn_bctestform_menu_outline115 "OUTLINE115" +#define qtn_bctestform_menu_outline116 "OUTLINE116" +#define qtn_bctestform_menu_outline117 "OUTLINE117" +#define qtn_bctestform_menu_outline118 "OUTLINE118" +#define qtn_bctestform_menu_outline119 "OUTLINE119 to 160" +#define qtn_bctestform_menu_outline120 "OUTLINE120" +#define qtn_bctestform_menu_outline121 "OUTLINE121" +#define qtn_bctestform_menu_outline122 "OUTLINE122" +#define qtn_bctestform_menu_outline123 "OUTLINE123" +#define qtn_bctestform_menu_outline124 "OUTLINE124" +#define qtn_bctestform_menu_outline125 "OUTLINE125" +#define qtn_bctestform_menu_outline126 "OUTLINE126" +#define qtn_bctestform_menu_outline127 "OUTLINE127" +#define qtn_bctestform_menu_outline128 "OUTLINE128" +#define qtn_bctestform_menu_outline129 "OUTLINE129" +#define qtn_bctestform_menu_outline130 "OUTLINE130" +#define qtn_bctestform_menu_outline131 "OUTLINE131" +#define qtn_bctestform_menu_outline132 "OUTLINE132" +#define qtn_bctestform_menu_outline133 "OUTLINE133" +#define qtn_bctestform_menu_outline134 "OUTLINE134" +#define qtn_bctestform_menu_outline135 "OUTLINE135" +#define qtn_bctestform_menu_outline136 "OUTLINE136" +#define qtn_bctestform_menu_outline137 "OUTLINE137" +#define qtn_bctestform_menu_outline138 "OUTLINE138" +#define qtn_bctestform_menu_outline139 "OUTLINE139" +#define qtn_bctestform_menu_outline140 "OUTLINE140" +#define qtn_bctestform_menu_outline141 "OUTLINE141" +#define qtn_bctestform_menu_outline142 "OUTLINE142" +#define qtn_bctestform_menu_outline143 "OUTLINE143" +#define qtn_bctestform_menu_outline144 "OUTLINE144" +#define qtn_bctestform_menu_outline145 "OUTLINE145" +#define qtn_bctestform_menu_outline146 "OUTLINE146" +#define qtn_bctestform_menu_outline147 "OUTLINE147" +#define qtn_bctestform_menu_outline148 "OUTLINE148" +#define qtn_bctestform_menu_outline149 "OUTLINE149" +#define qtn_bctestform_menu_outline150 "OUTLINE150" +#define qtn_bctestform_menu_outline151 "OUTLINE151" +#define qtn_bctestform_menu_outline152 "OUTLINE152" +#define qtn_bctestform_menu_outline153 "OUTLINE153" +#define qtn_bctestform_menu_outline154 "OUTLINE154" +#define qtn_bctestform_menu_outline155 "OUTLINE155" +#define qtn_bctestform_menu_outline156 "OUTLINE156" +#define qtn_bctestform_menu_outline157 "OUTLINE157" +#define qtn_bctestform_menu_outline158 "OUTLINE158" +#define qtn_bctestform_menu_outline159 "OUTLINE159" +#define qtn_bctestform_menu_outline160 "OUTLINE160" + + + + + + + + +// Sub menubar of "Softkey" menu +#define qtn_bctestform_menu_outline01 "OUTLINE01" + +// Sub menubar of "Form states" menu +#define qtn_bctestform_menu_outline02 "OUTLINE02" +#define qtn_bctestform_menu_outline03 "OUTLINE03" +#define qtn_bctestform_menu_outline04 "OUTLINE04" +#define qtn_bctestform_menu_outline05 "OUTLINE05" +#define qtn_bctestform_menu_outline06 "OUTLINE06" +#define qtn_bctestform_menu_outline07 "OUTLINE07" +#define qtn_bctestform_menu_outline08 "OUTLINE08" +#define qtn_bctestform_menu_outline09 "OUTLINE09" +#define qtn_bctestform_menu_outline10 "OUTLINE10" + +// Sub menubar of "Moving" menu +#define qtn_bctestform_menu_outline11 "OUTLINE11" +#define qtn_bctestform_menu_outline12 "OUTLINE12" +#define qtn_bctestform_menu_outline13 "OUTLINE13" +#define qtn_bctestform_menu_outline14 "OUTLINE14" +#define qtn_bctestform_menu_outline15 "OUTLINE15" +#define qtn_bctestform_menu_outline16 "OUTLINE16" +#define qtn_bctestform_menu_outline17 "OUTLINE17" + +// Sub menubar of "Hint text" menu +#define qtn_bctestform_menu_outline18 "OUTLINE18" +#define qtn_bctestform_menu_outline20 "OUTLINE20" + +// Sub menubar of "General form parameter" menu +#define qtn_bctestform_menu_outline21 "OUTLINE21" +#define qtn_bctestform_menu_outline22 "OUTLINE22" + +// Sub menubar of "Form component" menu +#define qtn_bctestform_menu_outline23 "OUTLINE23" + +// Sub menubar of "Field label" menu +#define qtn_bctestform_menu_outline25 "OUTLINE25" +#define qtn_bctestform_menu_outline26 "OUTLINE26" +#define qtn_bctestform_menu_outline27 "OUTLINE27" + +// Sub menubar of "Text field" menu +#define qtn_bctestform_menu_outline28 "OUTLINE28" +#define qtn_bctestform_menu_outline29 "OUTLINE29" +#define qtn_bctestform_menu_outline30 "OUTLINE30" +#define qtn_bctestform_menu_outline31 "OUTLINE31" +#define qtn_bctestform_menu_outline32 "OUTLINE32" + +// Sub menubar of "Separator" menu +#define qtn_bctestform_menu_outline52 "OUTLINE52" + +// Sub menubar of "Empty form" menu +#define qtn_bctestform_menu_outline53 "OUTLINE53" +#define qtn_bctestform_menu_outline54 "OUTLINE54" + +// Sub menubar of "Adding a field" menu +#define qtn_bctestform_menu_outline55 "OUTLINE55" +#define qtn_bctestform_menu_outline56 "OUTLINE56" + +// Sub menubar of "Removing a field" menu +#define qtn_bctestform_menu_outline57 "OUTLINE57" +#define qtn_bctestform_menu_outline58 "OUTLINE58" + +// Sub menubar of "For LAF" menu +#define qtn_bctestform_menu_outline59 "OUTLINE59" +#define qtn_bctestform_menu_outline60 "OUTLINE60" +#define qtn_bctestform_menu_outline67 "OUTLINE67" +#define qtn_bctestform_menu_outline68 "OUTLINE68" +#define qtn_bctestform_menu_outline70 "OUTLINE70" + +// Sub menubar of "For LAF" menuSave test +#define qtn_bctestform_menu_outline83 "OUTLINE83" +#define qtn_bctestform_menu_outline84 "OUTLINE84" + +// Messages +#define qtn_bctestform_label_title "BCTestForm\nSample Application" +#define qtn_bctestform_label_operation "Press space key to\ndisplay next outline" + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestform_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestform_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,225 @@ +/* +* Copyright (c) 2003 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: english localization +* +*/ + + +// LOCALISATION STRINGS + +// Label field text +#define qtn_bctest_form_label_edwin "edwin" +#define qtn_bctest_form_label_ed1 "ed1" +#define qtn_bctest_form_label_ed2 "ed2" +#define qtn_bctest_form_label_ed3 "ed3" +#define qtn_bctest_form_label_ed4 "ed4" +#define qtn_bctest_form_label_ed5 "ed5" +#define qtn_bctest_form_label_ed6 "ed6" +#define qtn_bctest_form_label_ed7 "ed7" +#define qtn_bctest_form_label_ed8 "ed8" +#define qtn_bctest_form_label_ed9 "ed9" +#define qtn_bctest_form_label_ed10 "ed10" +#define qtn_bctest_form_label_ed11 "ed11" +#define qtn_bctest_form_label_ed12 "ed12" +#define qtn_bctest_form_label_ed13 "ed13" +#define qtn_bctest_form_label_ed14 "ed14" +#define qtn_bctest_form_label_ed15 "ed15" +#define qtn_bctest_form_label_ed16 "ed16" +#define qtn_bctest_form_label_ed17 "ed17" +#define qtn_bctest_form_label_number "value" +#define qtn_bctest_form_label_num1 "num1" +#define qtn_bctest_form_label_num2 "num2" +#define qtn_bctest_form_label_num3 "num3" +#define qtn_bctest_form_label_num4 "num4" +#define qtn_bctest_form_label_num5 "num5" +#define qtn_bctest_form_label_num6 "num6" +#define qtn_bctest_form_label_date "date" +#define qtn_bctest_form_label_date1 "date1" +#define qtn_bctest_form_label_date2 "date2" +#define qtn_bctest_form_label_date3 "date3" +#define qtn_bctest_form_label_date4 "date4" +#define qtn_bctest_form_label_date5 "date5" +#define qtn_bctest_form_label_date6 "date6" +#define qtn_bctest_form_label_time "time" +#define qtn_bctest_form_label_time1 "time1" +#define qtn_bctest_form_label_time2 "time2" +#define qtn_bctest_form_label_time3 "time3" +#define qtn_bctest_form_label_time4 "time4" +#define qtn_bctest_form_label_time5 "time5" +#define qtn_bctest_form_label_time6 "time6" +#define qtn_bctest_form_label_durat "durat" +#define qtn_bctest_form_label_durat1 "durat1" +#define qtn_bctest_form_label_durat2 "durat2" +#define qtn_bctest_form_label_durat3 "durat3" +#define qtn_bctest_form_label_durat4 "durat4" +#define qtn_bctest_form_label_durat5 "durat5" +#define qtn_bctest_form_label_durat6 "durat6" +#define qtn_bctest_form_label_secret "pswd" +#define qtn_bctest_form_label_secr1 "pswd1" +#define qtn_bctest_form_label_secr2 "pswd2" +#define qtn_bctest_form_label_secr3 "pswd3" +#define qtn_bctest_form_label_secr4 "pswd4" +#define qtn_bctest_form_label_secr5 "pswd5" +#define qtn_bctest_form_label_secr6 "pswd6" +#define qtn_bctest_form_label_slider "slider" +#define qtn_bctest_form_label_sldr1 "slider1" +#define qtn_bctest_form_label_sldr2 "slider2" +#define qtn_bctest_form_label_sldr3 "slider3" + +// Hint text +#define qtn_bctest_hint_text_edwin "Text Editor" +#define qtn_bctest_hint_text_number "Number Editor" +#define qtn_bctest_hint_text_date "Date Editor" +#define qtn_bctest_hint_text_time "Time Editor" +#define qtn_bctest_hint_text_durat "Duration Editor" +#define qtn_bctest_hint_text_secret "Secret Editor" +#define qtn_bctest_hint_text_slider "Slider" + +// Navipane page label text +#define qtn_bctest_form_label_page1 "Page1" +#define qtn_bctest_form_label_page2 "Page2" +#define qtn_bctest_form_label_page3 "Page3" +#define qtn_bctest_form_label_page4 "Page4" +#define qtn_bctest_form_label_edwin "edwin" +#define qtn_bctest_form_label_num "num" +#define qtn_bctest_form_label_date "date" +#define qtn_bctest_form_label_time "time" +#define qtn_bctest_form_label_durat "durat" +#define qtn_bctest_form_label_pass "pass" + +// Slider label text +#define qtn_bctest_form_label_sdmin "min" +#define qtn_bctest_form_label_sdmax "max" +#define qtn_bctest_form_value_label "%U" +#define qtn_bctest_form_header_label "HeaderLabel" + +// Sample Editor text +#define qtn_bctest_form_edwin_text "Edwin text." +#define qtn_bctest_form_secret_text "Password" + +// Derived Form Menu text +#define qtn_bctest_menu_change_focus "Change Focus" +#define qtn_bctest_menu_try_change_focus "Try To Focus" +#define qtn_bctest_menu_try_change_focus_to_first "Try To Focus First" +#define qtn_bctest_menu_try_change_focus_to_middle "Try To Focus Middle" +#define qtn_bctest_menu_try_change_focus_to_last "Try To Focus Last" +#define qtn_bctest_menu_rotate_focus_by_one "Rotate Focus +1" +#define qtn_bctest_menu_rotate_focus_by_three "Rotate Focus +3" +#define qtn_bctest_menu_rotate_focus_by_minus_two "Rotate Focus -2" + +#define qtn_bctest_menu_set_caption "Set Caption" +#define qtn_bctest_menu_set_caption_from_resource "From Resource" +#define qtn_bctest_menu_set_caption_from_user "From User" + + +#define qtn_bctest_menu_activate_page "Activate Page" +#define qtn_bctest_menu_activate_first_page "First Page" + +#define qtn_bctest_menu_checks "Show" +#define qtn_bctest_menu_active_page "Active Page" +#define qtn_bctest_menu_get_border_style "Get Border Style" +#define qtn_bctest_menu_get_flags "Get PageFlags" +#define qtn_bctest_menu_get_line "1st Line on 1st page" +#define qtn_bctest_menu_dialog_flags "Dialog Flags" + +#define qtn_bctest_menu_reset_line "Reset Line" +#define qtn_bctest_menu_reset_line_minimum_sizes "Minimum Sizes" + +#define qtn_bctest_menu_pre_n_post "Pre N Post" + +#define qtn_bctest_menu_size_n_pos "Size N Pos" +#define qtn_bctest_menu_size_n_pos_10x10 "10 x 10" +#define qtn_bctest_menu_size_n_pos_100x100 "100 x 100" + +#define qtn_bctest_menu_save_test "Save Test" +#define qtn_bctest_menu_set_changes_pending_true "Changes Pending True" +#define qtn_bctest_menu_set_changes_pending_false "Changes Pending False" + +#define qtn_bctest_menu_set_page_dimmed "Page Dimmed" +#define qtn_bctest_menu_set_page_dimmed_true "(Active) true" +#define qtn_bctest_menu_set_page_dimmed_false "(Active) false" + +#define qtn_bctest_menu_set_line_dimmed "Line Dimmed" +#define qtn_bctest_menu_set_line_dimmed_true "true" +#define qtn_bctest_menu_set_line_dimmed_false "false" + +#define qtn_bctest_menu_set_line_visible "Line Visible" +#define qtn_bctest_menu_set_line_visible_true "true" +#define qtn_bctest_menu_set_line_visible_false "false" + +#define qtn_bctest_menu_set_whole_line_visible "Whole Line Visible" +#define qtn_bctest_menu_set_whole_line_visible_true "true" +#define qtn_bctest_menu_set_whole_line_visible_false "false" + +#define qtn_bctest_menu_create_line_by_typea "Create Line By TypeA" +#define qtn_bctest_menu_create_line_by_typea_next "Next" + +#define qtn_bctest_menu_create_line_by_typeb "Create Line By TypeB" +#define qtn_bctest_menu_create_line_by_typeb_end "End Of Page" + +#define qtn_bctest_menu_control_caption "ControlCaption" +#define qtn_bctest_menu_control_caption_change_caption "ChangeCaption" + +#define qtn_bctest_menu_control "Control (Edwin)" +#define qtn_bctest_menu_control_set_text "Set Text" + +#define qtn_bctest_menu_control_or_null "ControlOrNull(Edwin)" +#define qtn_bctest_menu_control_or_null_set_text "Set Text" + +#define qtn_bctest_menu_active_page "Active Page" +#define qtn_bctest_menu_active_page_index_show " Index (show)" +#define qtn_bctest_menu_active_page_id_show " Id (show)" + +#define qtn_bctest_menu_find_line_index "Find Line Index" +#define qtn_bctest_menu_find_line_index_current "current" + +#define qtn_bctest_menu_cba_methods "Cba Methods" +#define qtn_bctest_menu_cba_btn_grp_container "Btn Grp Container" +#define qtn_bctest_menu_cba_swap_btn_grp_container "Swap Btn Grp Container" +#define qtn_bctest_menu_cba_btn_command_obs "BtnCommandObserver" + +#define qtn_bctest_menu_title "Title" +#define qtn_bctest_menu_title_test "Test" + +#define qtn_bctest_menu_id_of_focus "Id Of Focus" +#define qtn_bctest_menu_id_of_focus_test "Test" + +#define qtn_bctest_menu_adjust_ids_on_page "AdjustAllIdsOnPage" +#define qtn_bctest_menu_adjust_ids_on_page_test "Test" + +#define qtn_bctest_menu_set_line_focusing "Set Line Non Focusing" +#define qtn_bctest_menu_set_line_focusing_true "true" +#define qtn_bctest_menu_set_line_focusing_false "false" + +#define qtn_bctest_menu_set_form_flag "Set Form Flag" +#define qtn_bctest_menu_set_form_flag_deleting_true "deleting true" +#define qtn_bctest_menu_set_form_flag_deleting_false "deleting false" +#define qtn_bctest_menu_set_form_flag_usaved_edit_true "unsaved edit true" +#define qtn_bctest_menu_set_form_flag_usaved_edit_false "unsaved edit false" + +#define qtn_bctest_menu_view_form_flags "View form flags" + + +#define qtn_bctest_menu_set_title_test "Set Title" +#define qtn_bctest_menu_set_title_des_test "from Descriptor" +#define qtn_bctest_menu_set_title_res_test "from Resource" + + + +// texts used in derived form +#define qtn_bctest_resource_caption "Resource" + + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,55 @@ +/* +* 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 "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: main application class +* +*/ + +#ifndef BCTESTFORMAPP_H +#define BCTESTFORMAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestForm = { 0x20004747 }; // UID of the application + +// CLASS DECLARATION + +/** +* CBCTestFormApplication application class. +* Provides factory to create concrete document object. +*/ +class CBCTestFormApplication : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestFormDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID (KUidBCTestForm). + * @return The value of KUidBCTestForm. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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: ui class +* +*/ + + +#ifndef BCTESTFORMAPPUI_H +#define BCTESTFORMAPPUI_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +//class CAknAtScreenCaptureContainer; +class CBCTestUtil; +// CONSTANTS + +// CLASS DECLARATION + +/** +* Application UI class. +* Provides support for the following features: +* - UIKON control architecture +* - view architecture +* - status pane +*/ +class CBCTestFormAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * Default constructor. + */ + CBCTestFormAppUi(); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + /** + * Destructor. + */ + virtual ~CBCTestFormAppUi(); + + private: // From CEikAppUi + CBCTestUtil* iTestUtil; + /** + * From CEikAppUi, HandleCommandL. + * Handles the commands. + * @param aCommand Command to be handled + */ + void HandleCommandL( TInt aCommand ); +//CAknAtScreenCaptureContainer* iScreenCaptureContainer; + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,145 @@ +/* +* 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 "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: container control +* +*/ + + +#ifndef BCTestFormCONTAINER_H +#define BCTestFormCONTAINER_H + +const TUid KCRUidAknFep = { 0x101F876D }; +const TUint32 KAknFepPredTxtFlag = 0x00000007; +// INCLUDES +#include + + // turn T9 on/off +#include + +// FORWARD DECLARATIONS +class CBCTestFormView; +class CEikLabel; + +// CLASS DECLARATION + +/** +* CBCTestFormContainer container control class. +*/ +class CBCTestFormContainer : public CCoeControl + { + private: // Enumerations + + enum TBCTestFormComponentControls + { + EBCTestFormComponentLabel + }; + + public: // Constructors and destructor + + /** + * Overload constructor. + * @param aView Pointer to view class object. + */ + CBCTestFormContainer( CBCTestFormView* aView ); + + /** + * Symbian 2nd phase constructor. + * @param aRect Frame rectangle for container. + */ + void ConstructL( const TRect& aRect ); + + /** + * Destructor. + */ + virtual ~CBCTestFormContainer(); + + public: // New functions + + /** + * + * @param aResourceId + */ + void SetTextToLabelL( TInt aResourceId ); + + /** + * + * @param aResourceId + */ + void DisplayFormL( TInt aResourceId ); + + private: // New functions + + /** + * Creates the label object. + */ + void CreateLabelL(); + + private: // From CCoeControl + + /** + * From CCoeControl, OfferKeyEventL. + * Handles the key events. + * @return EKeyWasConsumed, EKeyWasNotConsumed + * @param aKeyEvent Key event + * @param aType Type of key event (EEventKey, EEventKeyUp, EEventKeyDown) + */ + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + + /** + * From CCoeControl, HandleResourceChange. + * Make dynamic resolution change smoother. + * @param aType A message UID value. + */ + void HandleResourceChange( TInt aType ); + + /** + * From CCoeControl, SizeChanged. + * + */ + void SizeChanged(); + + /** + * From CCoeControl, CountComponentControls. + * Returns number of component. + * @return Number of controls + */ + TInt CountComponentControls() const; + + /** + * From CCoeControl, ComponentControl. + * Returns pointer to particular component. + * @return Pointer to Control's component control, identified by index + * @param aIndex Index of the control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + + /** + * From CCoeControl, Draw. + * + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + + private: // Data + + CBCTestFormView* iView; + CEikLabel* iLabel; + + }; + +#endif //BCTestFormCONTAINER_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/inc/bctestformdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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: document of application +* +*/ + + +#ifndef BCTESTFORMDOCUMENT_H +#define BCTESTFORMDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestFormDocument application class. +*/ +class CBCTestFormDocument : public CAknDocument + { + public: // Constructors and destructor + + /** + * Symbian two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestFormDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestFormDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestFormDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestFormAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // BCTestFormDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/sis/bctestform.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/sis/bctestform.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestForm-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestForm"},(0x20004747),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestForm.exe"- +"!:\sys\bin\BCTestForm.exe" + +"\epoc32\data\z\resource\apps\BCTestForm.RSC"- +"!:\resource\apps\BCTestForm.RSC" + +"\epoc32\data\z\private\10003a3f\apps\bctestform_reg.RSC"- +"!:\private\10003a3f\import\apps\bctestform_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormApp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormApp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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 bctestform application +* +*/ + +// INCLUDE FILES +#include "BCTestFormApp.h" +#include "BCTestFormDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestFormApplication::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestFormApplication::AppDllUid() const + { + return KUidBCTestForm; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestFormApplication::CreateDocumentL() +// Creates CBCTestFormDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestFormApplication::CreateDocumentL() + { + return CBCTestFormDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= + +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestFormApplication. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestFormApplication; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormAppUi.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormAppUi.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,105 @@ +/* +* 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 "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 bctestform application +* +*/ + +// INCLUDE FILES +#include + +#include + +#include "BCTestFormAppUi.h" +#include "BCTestFormView.h" +#include "BCTestForm.hrh" + +#include "bctestutil.h" +#include "bctestsuite.h" +#include "bctestformcase.h" +// ============================ MEMBER FUNCTIONS =============================== + +// ---------------------------------------------------------------------------- +// CBCTestFormAppUi::CBCTestFormAppUi() +// C++ default constructor can NOT contain any code, that +// might leave. +// ---------------------------------------------------------------------------- +// +CBCTestFormAppUi::CBCTestFormAppUi() + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormAppUi::ConstructL() +// Symbian 2nd phase constructor can leave. +// ---------------------------------------------------------------------------- +// +void CBCTestFormAppUi::ConstructL() + { + _LIT( strClassName,"CTestForm" ); + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // Creates CBCTestFormView class object. + CBCTestFormView* view = CBCTestFormView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); // transfer ownership + CleanupStack::Pop(); + + ActivateLocalViewL( view->Id() ); + + iTestUtil = CBCTestUtil::NewL(); + + iTestUtil->AddTestCaseL( CBCTestFormCase::NewL( view ),strClassName ); + } +// ---------------------------------------------------------------------------- +// CBCTestFormAppUi::~CBCTestFormAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormAppUi::~CBCTestFormAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormAppUi::HandleCommandL( TInt ) +// Handles the commands. +// ---------------------------------------------------------------------------- +// +void CBCTestFormAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EBCTestFormCmdAutotest: + if ( iTestUtil ) + { + iTestUtil->RunL(); + } + return; + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + // + // map the UI event to test cases in test suite. + // + if(aCommand > EBCTestFormCmdEmptyOutline && aCommand <= EBCTestFormCmdMaxOutline) + { + iTestUtil->RunL( aCommand ); + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormContainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormContainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,269 @@ +/* +* 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 "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 bctestform application +* +*/ + + + +// INCLUDE FILES +#include +#include +#include +#include +#include +#include +#include +#include "BCTestForm.hrh" +#include "BCTestFormView.h" +#include "BCTestFormContainer.h" + + +// CONSTANTS +const TInt KBCTestFormCountComponent = 1; +const TInt KBCTestFormMessageBufLength = 256; + +// MACROS +#define BCTestForm_BACKGROUND_COLOR AKN_LAF_COLOR( 219 ) + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestFormContainer::CBCTestFormContainer( CBCTestFormView* ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormContainer::CBCTestFormContainer( CBCTestFormView* aView ) + : iView( aView ), + iLabel( NULL ) + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::ConstructL( const TRect& ) +// Symbian 2nd phase constructor can leave. +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::ConstructL( const TRect& aRect ) + { + CRepository* repository = NULL; + TRAPD(ret, repository = CRepository::NewL(KCRUidAknFep)); + if (ret == KErrNone) + { + ret = repository->Set( KAknFepPredTxtFlag, 0 ); + } + delete repository; + + CreateWindowL(); + + CreateLabelL(); + + + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestFormContainer::~CBCTestFormContainer() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormContainer::~CBCTestFormContainer() + { + delete iLabel; + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::SetTextToLabelL( TInt ) +// +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::SetTextToLabelL( TInt aResourceId ) + { + TBuf messageString( NULL ); + iCoeEnv->ReadResourceL( messageString, aResourceId ); + iLabel->SetTextL( messageString ); + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::DisplayFormL( TInt ) +// +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::DisplayFormL( TInt aResourceId ) + { + CAknForm* form = new( ELeave ) CAknForm; + CleanupStack::PushL( form ); + form->ConstructL(); + CleanupStack::Pop(); + + if ( aResourceId == R_BCTESTFORM_DOUBLE_LINE_FORM) + { + form->PrepareLC( aResourceId ); + TBuf edwinString( NULL ); + iCoeEnv->ReadResourceL( edwinString, R_BCTESTFORM_TEXT_EDWIN_TEXT ); + CEikEdwin* myEdwin = + STATIC_CAST(CEikEdwin*, + form->ControlOrNull(EBCTestFormDlgCtrlIdEdwin01)) ; + if ( myEdwin ) + { + myEdwin->SetTextL(&edwinString); + } + TBuf secretString( NULL ); + iCoeEnv->ReadResourceL( secretString, R_BCTESTFORM_TEXT_SECRET_TEXT ); + CEikSecretEditor* secEd = + STATIC_CAST(CEikSecretEditor*, + form->ControlOrNull(EBCTestFormDlgCtrlIdSecret01)); + if ( secEd ) + { + secEd->SetText(secretString); + } + form->RunLD(); + } + else if ( aResourceId == R_BCTESTFORM_DOUBLE_AND_SINGLE_LINE_FORM) + { + form->PrepareLC( aResourceId ); + TBuf edwinString( NULL ); + iCoeEnv->ReadResourceL( edwinString, R_BCTESTFORM_TEXT_EDWIN_TEXT ); + CEikEdwin* myEdwin = + STATIC_CAST(CEikEdwin*, + form->ControlOrNull(EBCTestFormDlgCtrlIdEdwin01)) ; + if ( myEdwin ) + { + myEdwin->SetTextL(&edwinString); + } + myEdwin = STATIC_CAST(CEikEdwin*, + form->ControlOrNull(EBCTestFormDlgCtrlIdEdwin11)) ; + if ( myEdwin ) + { + myEdwin->SetTextL(&edwinString); + } + form->RunLD(); + } + else + { + form->ExecuteLD( aResourceId ); + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::CreateLabelL() +// Creates label object. +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::CreateLabelL() + { + if ( !iLabel ) + { + iLabel = new( ELeave ) CEikLabel; + iLabel->SetContainerWindowL( *this ); + iLabel->SetAlignment( EHCenterVCenter ); + iLabel->SetFont( iEikonEnv->TitleFont() ); + + } + SetTextToLabelL( R_BCTESTFORM_TEXT_LABEL_TITLE ); + } + +// ---------------------------------------------------------------------------- +// TKeyResponse CBCTestFormContainer::OfferKeyEventL( const TKeyEvent&, +// TEventCode ) +// Handles the key events. +// ---------------------------------------------------------------------------- +// +TKeyResponse CBCTestFormContainer::OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ) + { + if ( aType != EEventKey ) + { + return EKeyWasNotConsumed; + } + switch ( aKeyEvent.iCode ) + { + case EKeySpace: + case EKeyOK: + iView->DisplayNextOutlineL(); + DrawNow(); + break; + default: + return EKeyWasNotConsumed; + } + return EKeyWasConsumed; + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::SizeChanged() +// Called by framework when the view size is changed +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::SizeChanged() + { + iLabel->SetRect( Rect() ); + } + +// ---------------------------------------------------------------------------- +// TInt CBCTestFormContainer::CountComponentControls() const +// Returns number of component. +// ---------------------------------------------------------------------------- +// +TInt CBCTestFormContainer::CountComponentControls() const + { + // returns nbr of controls inside this container + return KBCTestFormCountComponent; + } + +// ---------------------------------------------------------------------------- +// CCoeControl* CBCTestFormContainer::ComponentControl( TInt ) const +// Returns pointer to particular component. +// ---------------------------------------------------------------------------- +// +CCoeControl* CBCTestFormContainer::ComponentControl( TInt aIndex ) const + { + switch ( aIndex ) // Component is... + { + case EBCTestFormComponentLabel: // Label object. + return iLabel; + default: // Exception : returns NULL value. + return NULL; + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::Draw( const TRect& ) const +// Clears the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( BCTestForm_BACKGROUND_COLOR ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormContainer::HandleResourceChange(TInt) +// Makes dynamic resolution change smoother +// ---------------------------------------------------------------------------- +// +void CBCTestFormContainer::HandleResourceChange(TInt aType) + { + if (aType == KEikDynamicLayoutVariantSwitch) + { + } + CCoeControl::HandleResourceChange( aType ); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormDocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormDocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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 bctestform application +* +*/ + + +// INCLUDE FILES +#include "BCTestFormDocument.h" +#include "BCTestFormAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestFormDocument* CBCTestFormDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormDocument* CBCTestFormDocument::NewL( CEikApplication& aApp ) + { + CBCTestFormDocument* self = new( ELeave ) CBCTestFormDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestFormDocument::~CBCTestFormDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormDocument::~CBCTestFormDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestFormDocument::CBCTestFormDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormDocument::CBCTestFormDocument( CEikApplication& aApp ) +: CAknDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestFormDocument::CreateAppUiL() +// Constructs CBCTestFormAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestFormDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestFormAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormView.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormView.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,283 @@ +/* +* 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 "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 bctestform application +* +*/ + + +// INCLUDE FILES +#include +#include +#include +#include + +#include +#include +#include + +#include "BCTestForm.hrh" +#include "BCTestFormView.h" +#include "BCTestFormContainer.h" + +// CONSTANTS +const TUid KViewId = { 1 }; // UID of view +const TInt KBCTestFormTitleBufLength = 256; +const TInt KBCTestFormResourceIdInitialize = 0; + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestFormView::CBCTestFormView() +// Default constructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormView::CBCTestFormView() + : iContainer( NULL ), + iCurrentOutline( EBCTestFormCmdEmptyOutline ) + { + } + +// ----------------------------------------------------------------------------- +// CAknAtVolumeView::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CBCTestFormView* CBCTestFormView::NewL() + { + CBCTestFormView* self = new( ELeave ) CBCTestFormView; + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + } + + +// ---------------------------------------------------------------------------- +// void CBCTestFormView::ConstructL() +// Symbian 2nd phase constructor. +// ---------------------------------------------------------------------------- +// +void CBCTestFormView::ConstructL() + { + BaseConstructL( R_BCTESTFORM_VIEW ); + } + +// ---------------------------------------------------------------------------- +// CBCTestFormView::~CBCTestFormView() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestFormView::~CBCTestFormView() + { + // Deletes the container class object. + if ( iContainer ) + { + // Removes container from view control stack. + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormView::DisplayNextOutlineL( TInt ) +// +// ---------------------------------------------------------------------------- +// +void CBCTestFormView::DisplayNextOutlineL() + { + switch ( iCurrentOutline ) + { + case EBCTestFormCmdEmptyOutline: + HandleCommandL( EBCTestFormCmdOutline01 ); + break; + case EBCTestFormCmdOutline01: + HandleCommandL( EBCTestFormCmdOutline02 ); + break; + case EBCTestFormCmdOutline02: + HandleCommandL( EBCTestFormCmdOutline03 ); + break; + default: + HandleCommandL( EBCTestFormCmdEmptyOutline ); + break; + } + } + +// ---------------------------------------------------------------------------- +// TUid CBCTestFormView::Id() +// Returns ID of view. +// ---------------------------------------------------------------------------- +// +TUid CBCTestFormView::Id() const + { + return KViewId; + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormView::HandleCommandL( TInt ) +// Handles the commands. +// ---------------------------------------------------------------------------- +// +void CBCTestFormView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + AppUi()->ProcessCommandL( EAknCmdExit ); + break; + case EAknCmdExit: + AppUi()->HandleCommandL( EAknCmdExit ); + break; + + default: + break; + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormView::IndicateTitlePaneTextL( TInt ) +// Set title text to status-pane +// ---------------------------------------------------------------------------- +// +void CBCTestFormView::IndicateTitlePaneTextL( TInt aCommand ) + { + TBool useDefaultText( EFalse ); + TInt resourceId( KBCTestFormResourceIdInitialize ); + switch ( aCommand ) + { + case EBCTestFormCmdEmptyOutline: + useDefaultText = ETrue; + break; + case EBCTestFormCmdOutline01: + resourceId = R_BCTESTFORM_TEXT_STATUS_PANE_TITLE01; + break; + case EBCTestFormCmdOutline02: + resourceId = R_BCTESTFORM_TEXT_STATUS_PANE_TITLE02; + break; + default: + useDefaultText = ETrue; + break; + } + + CAknTitlePane* titlePane = STATIC_CAST( + CAknTitlePane*, + StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); + if ( useDefaultText ) + { + titlePane->SetTextToDefaultL(); + } + else + { + TBuf titleText( NULL ); + iEikonEnv->ReadResourceL( titleText, resourceId ); + titlePane->SetTextL( titleText ); + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) +// Creates container class object. +// ---------------------------------------------------------------------------- +// +void CBCTestFormView::DoActivateL( + const TVwsViewId& /*aPrevViewId*/, + TUid /*aCustomMessageId*/, + const TDesC8& /*aCustomMessage*/ ) + { + // Creates container object. + if ( !iContainer ) + { + iContainer = new( ELeave ) CBCTestFormContainer( this ); + iContainer->SetMopParent(this); + iContainer->ConstructL( ClientRect() ); + // Adds container to view control stack. + AppUi()->AddToStackL( *this, iContainer ); + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormView::DoDeactivate() +// Deletes container class object. +// ---------------------------------------------------------------------------- +// +void CBCTestFormView::DoDeactivate() + { + // Deletes the container class object. + if ( iContainer ) + { + // Removes container from view control stack. + AppUi()->RemoveFromStack( iContainer ); + delete iContainer; + iContainer = NULL; + } + } + +void CBCTestFormView::SetupAPIOutlineL(TInt aCommand) + { + iCurrentOutline = aCommand; + IndicateTitlePaneTextL( aCommand ); + iContainer->SetTextToLabelL( R_BCTESTFORM_TEXT_LABEL_OPERATION ); + } + +// ---------------------------------------------------------------------------- +// C++ default constructor can NOT contain any code, that +// might leave. +// ---------------------------------------------------------------------------- +// +CBCTestFormTestAdd::CBCTestFormTestAdd() + { + iNewItemId = EBCTestFormDlgCtrlIdEdwin02 + 1; + } + +// Destructor +CBCTestFormTestAdd::~CBCTestFormTestAdd() + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestFormTestAdd::AddItemL() +// Add item for testing uses customised dialog. +// ---------------------------------------------------------------------------- +// + + +void CBCTestFormTestAdd::AddItemL() + { + // Add Edwin control + _LIT( caption, "Add ed" ) ; + + CCoeControl* myEdControl = CreateLineByTypeL(caption, ActivePageId(), + iNewItemId , + EEikCtEdwin, + NULL) ; + + CEikEdwin* myEdwin = STATIC_CAST(CEikEdwin*, myEdControl) ; + myEdwin->ConstructL(EEikEdwinNoHorizScrolling | EEikEdwinResizable, 10, + 64, 10); + myEdwin->CreateTextViewL(); + Line(iNewItemId )->ActivateL(); + + SetEditableL(IsEditable()) ; + DrawNow() ; + // In order to prevent adding controls which ID is the same, + // Id of next adding control is different from the others. + iNewItemId++; + } + +CBCTestFormContainer* CBCTestFormView::Container() const + { + return iContainer; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestform/src/bctestFormcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,424 @@ +/* +* 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 "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: bc test case For bctestform application +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestFormcase.h" +#include "BCTestForm.hrh" +#include "BCTestFormView.h" +#include "BCTestFormContainer.h" +#include "bctestlogger.h" +#include "autotestcommands.h" + + +// --------------------------------------------------------------------------- +// dtor, do nothing. +// --------------------------------------------------------------------------- +// +CBCTestFormCase::CBCTestFormCase( CBCTestFormView* aView ): + iView(aView) + { + } + +// --------------------------------------------------------------------------- +// dtor, do nothing. +// --------------------------------------------------------------------------- +// +CBCTestFormCase::~CBCTestFormCase() + { + } + + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::ConstructL() + { + ScriptCreateL(); + } +// --------------------------------------------------------------------------- +// symbian NewL +// --------------------------------------------------------------------------- +// +CBCTestFormCase* CBCTestFormCase::NewL( CBCTestFormView* aView ) + { + CBCTestFormCase* self = CBCTestFormCase::NewLC( aView ); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// symbian NewLC +// --------------------------------------------------------------------------- +// +CBCTestFormCase* CBCTestFormCase::NewLC( CBCTestFormView* aView ) + { + CBCTestFormCase* self = new ( ELeave ) CBCTestFormCase( aView ); + CleanupStack::PushL( self ); + self->ConstructL(); + return self; + } + +// --------------------------------------------------------------------------- +// override from CBCTestCase, response for relative command ID. +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::RunL(int aCmd) + { + if( aCmdEBCTestFormCmdOutline06 ) + return; + + SetupL(); + switch(aCmd) + { + case EBCTestFormCmdOutline01: + TryCreateL(); + break; + case EBCTestFormCmdOutline02: + TestCreateL(); + break; + default: + break; + } + TearDownL(); + + } + +// --------------------------------------------------------------------------- +// build the test scripts +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::ScriptCreateL() + { + // + // method 2: add test script dynamically + // + + AddTestL( LeftCBA, TEND ); + AddTestL( LeftCBA, TEND ); + for(int i = 0;i<4;i++) + { + AddTestL( RightCBA, TEND ); + } + for(int j=0;j<3;j++)\ + { + AddTestL( RightCBA, TEND ); + } + AddTestL( LeftCBA, TEND ); + AddTestL( LeftCBA, TEND ); + for(int k = 0;k<5;k++) + { + AddTestL( LeftCBA, TEND ); + } + } + +// --------------------------------------------------------------------------- +// test Function for OutLine1 +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::TryCreateL() + { + _LIT( KConstructL, "Functon ConstructL called" ); + _LIT( KDynInitMenuPaneL, "Functon DynInitMenuPaneL called" ); + _LIT( KProcessCommandL, "Functon ProcessCommandL called" ); + _LIT( KAddItemL, "Function AddItemL is called" ); + _LIT( KDeleteCurrentItemL, "Function DeleteCurrentItemL is called"); + _LIT( KUnsavedEdit, "Function UnsavedEdit is called" ); + _LIT( KDoNotSaveFormDataL, "Function DoNotSaveFormDataL is called" ); + _LIT( KTestQuerySaveChangeL, "Function TestQuerySaveChangeL is called" ); + _LIT( KPostLayoutDynInitL, "Function PostLayoutDynInitL is called" ); + _LIT( KTestSetChangesPending, "Function TestSetChangesPending is called" ); + _LIT( KSetFormFlag, "Function SetFormFlag is called" ); + _LIT( KSaveFormDataL, "Function SaveFormDataL is called" ); + _LIT( KOkToExitL, "Function OkToExitL is called" ); + _LIT( KSetInitialCurrentLine, "Function SetInitialCurrentLine is called" ); + _LIT( KDeleting, "Function Deleting is called" ); + _LIT( KPrepareForFocusTransitionL, + "Function PrepareForFocusTransitionL is called" ); + _LIT( KTestEditCurrentLabelL, "Function TestEditCurrentLabelL is called" ); + _LIT( KHandlePointerEventL, "Function HandlePointerEventL is called" ); + _LIT( KHandleResourceChange, "Function HandleResourceChange is called" ); + _LIT( KHandleControlStateChangeL, "Function HandleControlStateChangeL is called" ); + + iForm = new (ELeave) CAknForm; + iForm->ConstructL(); + + AssertTrueL( ETrue, KConstructL ); + iForm->PrepareLC( R_BCTESTFORM_MOVING_THROUGH_LINE_DIALOG ); + CleanupStack::Pop(); + iPane = new ( ELeave ) CEikMenuPane( iForm ); + iPane->ConstructL( iPane, 0 ); + iForm->DynInitMenuPaneL( R_BCTESTFORM_MOVING_THROUGH_LINE_DIALOG, iPane ); + AssertTrueL( ETrue, KDynInitMenuPaneL ); + + iForm->ProcessCommandL( EAknFormCmdEdit ); + iForm->ProcessCommandL( EAknFormCmdAdd ); + iForm->ProcessCommandL( EAknFormCmdSave ); + iForm->ProcessCommandL( EAknFormCmdLabel ); + iForm->ProcessCommandL( EAknFormCmdDelete ); + AssertTrueL( ETrue, KProcessCommandL ); + + + TPointerEvent pointerEvent; + iForm->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iForm->HandleResourceChange( 1 ); + AssertTrueL( ETrue, KHandleResourceChange ); + + iAknFormTest = new ( ELeave ) CBCTestFormAdd; + iAknFormTest->ConstructL(); + iAknFormTest->PrepareLC( R_BCTESTFORM_MOVING_THROUGH_LINE_DIALOG ); + CleanupStack::Pop(); + + iAknFormTest->TestAddItemL(); + AssertTrueL( ETrue, KAddItemL ); + + iAknFormTest->TestDeleteCurrentItemL(); + AssertTrueL( ETrue, KDeleteCurrentItemL ); + + iAknFormTest->TestUnsavedEdit(); + AssertTrueL( ETrue, KUnsavedEdit ); + + iAknFormTest->TestDoNotSaveFormDataL(); + AssertTrueL( ETrue, KDoNotSaveFormDataL ); + + iAknFormTest->TestQuerySaveChangeL(); + AssertTrueL( ETrue, KTestQuerySaveChangeL ); + + iAknFormTest->TestPostLayoutDynInitL(); + AssertTrueL( ETrue, KPostLayoutDynInitL ); + + iAknFormTest->TestSetChangesPending(); + AssertTrueL( ETrue, KTestSetChangesPending ); + + iAknFormTest->TestSetFormFlag(); + AssertTrueL( ETrue, KSetFormFlag ); + + iAknFormTest->TestSaveFormDataL(); + AssertTrueL( ETrue, KSaveFormDataL ); + + iAknFormTest->TestOkToExitL(); + AssertTrueL( ETrue, KOkToExitL ); + + iAknFormTest->TestSetInitialCurrentLine(); + AssertTrueL( ETrue, KSetInitialCurrentLine ); + + iAknFormTest->TestDeleting(); + AssertTrueL( ETrue, KDeleting ); + + iAknFormTest->TestPrepareForFocusTransitionL(); + AssertTrueL( ETrue, KPrepareForFocusTransitionL ); + + iAknFormTest->TestEditCurrentLabelL(); + AssertTrueL( ETrue, KTestEditCurrentLabelL ); + AssertTrueL( ETrue, KHandleControlStateChangeL ); + + + delete iAknFormTest; + iAknFormTest = NULL; + delete iPane; + iPane = NULL; + delete iForm; + iForm=NULL; + } + + +// --------------------------------------------------------------------------- +// test Function for OutLine2 +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::TestCreateL() + { + } + +// --------------------------------------------------------------------------- +// getter of the container +// --------------------------------------------------------------------------- +// +CBCTestFormContainer* CBCTestFormCase::Container() const + { + return iView->Container(); + } + +// --------------------------------------------------------------------------- +// do necessary setup jobs. +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::SetupL() + { + } + +// --------------------------------------------------------------------------- +// do release jobs. +// --------------------------------------------------------------------------- +// +void CBCTestFormCase::TearDownL() + { + } + + +// --------------------------------------------------------------------------- +// dtor, do nothing. +// --------------------------------------------------------------------------- +// +CBCTestFormAdd::CBCTestFormAdd() + { + } + +// Destructor +// --------------------------------------------------------------------------- +// dtor, do nothing. +// --------------------------------------------------------------------------- +// +CBCTestFormAdd::~CBCTestFormAdd() + { + } + +// --------------------------------------------------------------------------- +// test Function AddItemL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestAddItemL() + { + AddItemL(); + } + +// --------------------------------------------------------------------------- +// test Function SaveFormDataL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestSaveFormDataL() + { + SaveFormDataL(); + } + +// --------------------------------------------------------------------------- +// test Function DoNotSaveFormDataL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestDoNotSaveFormDataL() + { + DoNotSaveFormDataL(); + } + +// --------------------------------------------------------------------------- +// test Function Deleting +// --------------------------------------------------------------------------- +// +TBool CBCTestFormAdd::TestDeleting() + { + TBool iDeleting; + iDeleting = Deleting(); + return iDeleting; + } +// --------------------------------------------------------------------------- +// test Function UnsavedEdit +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestUnsavedEdit() + { + UnsavedEdit(); + } +// --------------------------------------------------------------------------- +// test Function EditCurrentLabelL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestEditCurrentLabelL() + { + EditCurrentLabelL(); + } +// --------------------------------------------------------------------------- +// test Function QuerySaveChangeL +// --------------------------------------------------------------------------- +// +TBool CBCTestFormAdd::TestQuerySaveChangeL() + { + TBool iQuerySaveChangeL; + iQuerySaveChangeL = QuerySaveChangesL(); + return iQuerySaveChangeL; + } +// --------------------------------------------------------------------------- +// test Function PrepareForFocusTransitionL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestPrepareForFocusTransitionL() + { + PrepareForFocusTransitionL(); + } +// --------------------------------------------------------------------------- +// test Function PostLayoutDynInitL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestPostLayoutDynInitL() + { + PostLayoutDynInitL(); + } +// --------------------------------------------------------------------------- +// test Function DeleteCurrentItemL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestDeleteCurrentItemL() + { + DeleteCurrentItemL(); + } +// --------------------------------------------------------------------------- +// test Function SetInitialCurrentLine +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestSetInitialCurrentLine() + { + SetInitialCurrentLine(); + } +// --------------------------------------------------------------------------- +// test Function SetChangesPending +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestSetChangesPending() + { + SetChangesPending( EFalse ); + } +// --------------------------------------------------------------------------- +// test Function SetFormFlag +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestSetFormFlag() + { + SetFormFlag( EDeleting, ETrue ); + SetFormFlag( EDeleting, EFalse ); + } +// --------------------------------------------------------------------------- +// test Function OkToExitL +// --------------------------------------------------------------------------- +// +void CBCTestFormAdd::TestOkToExitL() + { + OkToExitL( EAknSoftkeyOptions ); + SetEditableL( ETrue ); + OkToExitL( EAknSoftkeyBack ); + + HandleControlStateChangeL( 1 ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bctestgrids.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bctestgrids.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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: project specification file for the BCTestGrids. +* +*/ + + +TARGET bctestgrids.exe +TARGETTYPE exe +UID 0x0 0x200045D0 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestgrids.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctestgridsapp.cpp +SOURCE bctestgridsdocument.cpp +SOURCE bctestgridsappui.cpp +SOURCE bctestgridsview.cpp +SOURCE bctestgridscontainer.cpp +SOURCE bctestforcolourandgms.cpp +SOURCE bctestforakngrid.cpp +SOURCE bctestformandview.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eikctl.lib + +START RESOURCE ../group/bctestgrids_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bctestgrids.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bctestgrids.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,324 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME GRID + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestgrids.hrh" +#include "bctestgrids.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestgrids_BMP_FNAME APP_BITMAP_DIR"\\bctestgrids.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctest_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestgrids_menubar_main; + cba = r_bctestgrids_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestgrids_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\bctestgrids_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestgrids_view +// AVKON_VIEW for CBCTestGridsView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestgrids_view + { + menubar = r_bctestgrids_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestgrids_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestgrids_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestgrids_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestgrids_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestgrids_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestgrids_case_menu + { + items = + { + MENU_ITEM + { + txt = qtn_bctestforcolourandgms; + cascade = r_bctestgrids_colourandgms_submenu_case_menu; + }, + MENU_ITEM + { + command = EBCTestForCAknGrid; + txt = qtn_bctestforcakngrid; + }, + MENU_ITEM + { + txt = qtn_bctestformandview; + cascade = r_bctestgrids_mandview_submenu_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestgrids_colourandgms_submenu_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestgrids_colourandgms_submenu_case_menu +{ + items = + { + MENU_ITEM + { + command = EBCTestForColour; + txt = qtn_bctestforcolour; + }, + MENU_ITEM + { + command = EBCTestForGms; + txt = qtn_bctestforgms; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestgrids_mandview_submenu_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestgrids_mandview_submenu_case_menu +{ + items = + { + MENU_ITEM + { + command = EBCTestForCAknGridM; + txt = qtn_bctestforcakngridm; + }, + MENU_ITEM + { + command = EBCTestForCAknGridView; + txt = qtn_bctestforcakngridview; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestgrids_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestgrids_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestgrids_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestgrids_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestgrids_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestgrids_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestGridsCbaCmdNext; + txt = qtn_bctestgrids_cba_next; + } + }; + } + + +// ---------------------------------------------------------------------------- +// +// r_bctestgrids_grid +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE GRID r_bctestgrids_grid + { + version = 0; + flags = 0; + height = 5; // in items + width = 10; // in chars + array_id = 0; + emptytext = ""; + style = 0; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestgrids_grid_two +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE GRID r_bctestgrids_grid_two + { + version = 1; + flags = 1; + height = 5; // in items + width = 10; // in chars + array_id = 0; + emptytext = ""; + style = 0; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestgrids_array +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestgrids_array + { + items = + { + LBUF + { + txt = qtn_bctestgrids_item_1; + }, + LBUF + { + txt = qtn_bctestgrids_item_2; + }, + LBUF + { + txt = qtn_bctestgrids_item_3; + } + }; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bctestgrids_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bctestgrids_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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: resources for the module +* +*/ + + +#include +#include + +#include "bctestgrids.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045D0 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_bctest_app_file; + localisable_resource_file = qtn_bctest_resource; + localisable_resource_id = R_BCTESTGRIDS_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_bctest_group; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestGrids.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestforakngrid.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestforakngrid.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,112 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTFORAKNGRID_H +#define C_CBCTESTFORAKNGRID_H + +#include + +#include "bctestcase.h" + +class CBCTestGridsContainer; +class CCoeControl; +class CEikonEnv; +class CAknGrid; + +/** + * test case for various list classes + */ +class CBCTestForAknGrid: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestForAknGrid* NewL( CBCTestGridsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestForAknGrid(); + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test TestCAknGridL + */ + void TestCAknGridL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestForAknGrid( CBCTestGridsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * Set up for TestCAknGridL + */ + CAknGrid* SetUpCAknGridL(); + + /** + * Tear Down for TestCAknGridL + */ + void TearDownCAknGridL( CAknGrid* aGrid ); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CEikonEnv* iEnv; + + /** + * Pointer to container. + * not own + */ + CBCTestGridsContainer* iContainer; + + }; + +/** + * for testing protected fuctions of CBCTestForAknGrid + */ +class CBCTestForGrid: public CAknGrid + { + friend class CBCTestForAknGrid; + }; + +#endif // BCTESTFORAKNGRID_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestforcolourandgms.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestforcolourandgms.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,99 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTFORCOLOURANDGMS_H +#define C_CBCTESTFORCOLOURANDGMS_H + +#include "bctestcase.h" + +class CBCTestGridsContainer; +class CCoeControl; + +/** + * test case for various list classes + */ +class CBCTestForColourAndGms: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestForColourAndGms* NewL( CBCTestGridsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestForColourAndGms(); + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test TestTestColourSelectionGridL + */ + void TestColourSelectionGridL(); + /** + * Test TestakngmsstylegridL + */ + void TestAknGmsStyleGridL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestForColourAndGms( CBCTestGridsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + /** + * TestCAknGMSStyleGridViewL + */ + void TestCAknGMSStyleGridViewL(); + /** + * TestCAknGMSStyleGridL + */ + void TestCAknGMSStyleGridL(); + /** + * TestCAknGMSPopupGridL + */ + void TestCAknGMSPopupGridL(); + +private: // data + /** + * Pointer to container. + * not own + */ + CBCTestGridsContainer* iContainer; + + }; + +#endif // BCTESTFORCOLOURANDGMS_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestformandview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestformandview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTGRIDSCASE_H +#define C_CBCTESTGRIDSCASE_H + +#include "bctestcase.h" + +class CBCTestGridsContainer; +class CCoeControl; +class CEikonEnv; + +/** + * test case for various list classes + */ +class CBCTestForMAndView: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestForMAndView* NewL( CBCTestGridsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestForMAndView(); + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + void TestForAknGridML(); + + /** + * Test TestForAknGridViewL + */ + void TestForAknGridViewL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestForMAndView( CBCTestGridsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CEikonEnv* iEnv; + + /** + * Pointer to container. + * not own + */ + CBCTestGridsContainer* iContainer; + + }; + +class CBCTestForGridView: public CAknGridView + { + friend class CBCTestForMAndView; + }; + +#endif // BCTESTGRIDSCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgrids.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgrids.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +/* +* 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 "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: BCTestGrids resource header file +* +*/ + + +#ifndef BCTESTGRIDS_HRH +#define BCTESTGRIDS_HRH + +enum TBCTestGridsMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestForColour, + EBCTestForGms, + + EBCTestForCAknGrid, + + EBCTestForCAknGridM, + EBCTestForCAknGridView, + + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestGridsCba + { + EBCTestGridsCbaCmdNext = 0x6300 + }; + +#endif // BCTESTGRIDS_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgrids.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgrids.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,60 @@ +/* +* 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 "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: BCTestGrids localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTGRIDS" +#define qtn_apps_tavl_grid "BCTESTGRIDS" + +// MenuBar +#define qtn_bctestgrids_menubar "Option" +#define qtn_bctestgrids_cba_next "Next" +#define qtn_bctestgrids_autotest "Autotest" +#define qtn_bctestgrids_menu_exit "Exit" + +//Name +#define qtn_bctest_buf "bctestgrids" +#define qtn_bctest_app_file "bctestgrids" +#define qtn_bctest_resource "\\resource\\apps\\bctestgrids" +#define qtn_bctest_group "BCTest" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestforcolourandgms "BCTestForColourAndGms" +#define qtn_bctestforcolour "BCTestForColour" +#define qtn_bctestforgms "BCTestForGms" +#define qtn_bctestforcakngrid "BCTestForCAknGrid" +#define qtn_bctestforcakngridm "BCTestForCAknGridM" +#define qtn_bctestforcakngridview "BCTestForCAknGridView" +#define qtn_bctestformandview "BCTestForMAndView" + +#define qtn_bctestgrids_item_1 "array 1" +#define qtn_bctestgrids_item_2 "array 2" +#define qtn_bctestgrids_item_3 "array 3" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 \ + to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTGRIDSAPP_H +#define C_CBCTESTGRIDSAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestGrids = { 0x200045D0 }; // UID of the application. + +// CLASS DECLARATION + +/** + * CBCTestGridsApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestGridsApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestGridsDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestGrids ). + * @return The value of KUidBCTestGrids. + */ + TUid AppDllUid() const; + }; + +#endif + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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 BC for Grids control API. +* +*/ + + +#ifndef C_BCTESTGRIDSAPPUI_H +#define C_BCTESTGRIDSAPPUI_H + +#include + +class CBCTestGridsView; + +/** + * Application UI class + */ +class CBCTestGridsAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestGridsAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestGridsAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestGridsView* iView; + }; + +#endif // C_BCTESTGRIDSAPPUI_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridscase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridscase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_GRIDSCASE_H +#define BCTEST_GRIDSCASE_H + +#include "bctestcase.h" + +class CBCTestGridsContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestGridsCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestGridsCase* NewL( CBCTestGridsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestGridsCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestGridsCase( CBCTestGridsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestGridsContainer* iContainer; + + }; + +#endif // BCTEST_GRIDSCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridscontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridscontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_CBCTESTGRIDSCONTAINER_H +#define C_CBCTESTGRIDSCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestGridsContainer: public CCoeControl + { +friend class CBCTestForMAndView; + +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestGridsContainer(); + + /** + * Destructor + */ + virtual ~CBCTestGridsContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + }; + +#endif // BCTESTGRIDSCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 C_BCTESTGRIDSDOCUMENT_H +#define C_BCTESTGRIDSDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** + * CBCTestGridsDocument application class. + */ +class CBCTestGridsDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestGridsDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestGridsDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestGridsDocument( CEikApplication& aApp ); + +private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestGridsAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTGRIDSDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/inc/bctestgridsview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,97 @@ +/* +* 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 "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 BC for Grids control API. +* +*/ + + +#ifndef C_CBCTESTGRIDSVIEW_H +#define C_CBCTESTGRIDSVIEW_H + +#include + +const TUid KBCTestGridsViewId = { 1 }; + +class CBCTestGridsContainer; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestGridsView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestGridsView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestGridsView(); + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestGridsView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestGridsContainer* iContainer; + }; + +#endif // BCTESTGRIDSVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/sis/bctestgrids.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/sis/bctestgrids.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestGrids.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestGrids"},(0x200045D0),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestGrids.exe"- +"!:\sys\bin\BCTestGrids.exe" + +"\epoc32\data\z\resource\apps\BCTestGrids.RSC"- +"!:\resource\apps\BCTestGrids.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestGrids_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestGrids_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestforakngrid.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestforakngrid.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,390 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "bctestforakngrid.h" +#include "bctestgridscontainer.h" +#include "bctestgrids.hrh" + +const TInt KPointX = 1; +const TInt KPointY = 1; +const TInt KZero = 0; +const TInt KOne = 1; +const TInt KTwo = 2; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestForAknGrid* CBCTestForAknGrid::NewL( + CBCTestGridsContainer* aContainer ) + { + CBCTestForAknGrid* self = new( ELeave ) CBCTestForAknGrid( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestForAknGrid::CBCTestForAknGrid( + CBCTestGridsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestForAknGrid::~CBCTestForAknGrid() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestForAknGrid::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestForAknGrid::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestForAknGrid::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestForAknGrid::RunL +// --------------------------------------------------------------------------- +// +void CBCTestForAknGrid::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdEmptyOutline || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestForCAknGrid: + TestCAknGridL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestForAknGrid::SetUpCAknGridL +// --------------------------------------------------------------------------- +// +CAknGrid* CBCTestForAknGrid::SetUpCAknGridL() + { + CAknGrid* grid1 = new( ELeave) CAknGrid(); + CleanupStack::PushL( grid1 ); + _LIT( KCAknGrid, "CAknGrid test" ); + AssertTrueL( ETrue, KCAknGrid ); + + + CAknGridM* model = new( ELeave ) CAknGridM(); + CleanupStack::PushL( model ); + grid1->SetModel( model ); + _LIT( KSetModel, "SetModel test" ); + AssertTrueL( ETrue, KSetModel ); + CleanupStack::Pop( model ); + + grid1->ConstructL( iContainer, 0 ); + _LIT( KConstructL, "ConstructL For CAknGrid test" ); + AssertTrueL( ETrue, KConstructL ); + + CleanupStack::PopAndDestroy( grid1 ); + grid1 = NULL; + + CAknGrid* grid = new( ELeave) CAknGrid(); + CleanupStack::PushL( grid ); + + grid->SetContainerWindowL ( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTGRIDS_GRID ); + grid->ConstructFromResourceL( reader ); + _LIT( KConstructFromResourceL, "ConstructFromResourceL test" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + return grid; + } + +// --------------------------------------------------------------------------- +// CBCTestForAknGrid::TearDownCAknGridL +// --------------------------------------------------------------------------- +// +void CBCTestForAknGrid::TearDownCAknGridL( CAknGrid* aGrid ) + { + CleanupStack::PopAndDestroy( aGrid ); + _LIT( KDesCAknGrid, "~CAknGrid test" ); + AssertTrueL( ETrue, KDesCAknGrid ); + } +// --------------------------------------------------------------------------- +// CBCTestForAknGrid::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestForAknGrid::TestCAknGridL() + { + // Test some API here + CAknGrid* grid = SetUpCAknGridL(); + + //for block coverage + grid->SizeChanged(); + grid->HandleItemAdditionL(); + grid->HandleItemRemovalL(); + + TSize size = iContainer->Rect().Size(); + grid->SetLayoutL( ETrue, ETrue, ETrue, KOne, KOne, size, KZero, KZero ); + grid->SetLayoutL( EFalse, ETrue, ETrue, KOne, KOne, size, KZero, KZero ); + _LIT( KSetLayoutL, "SetLayoutL test" ); + AssertTrueL( ETrue, KSetLayoutL ); + + grid->SetPrimaryScrollingType( CAknGridView::EScrollStops ); + _LIT( KSetPrimaryScrollingType, "SetPrimaryScrollingType test" ); + AssertTrueL( ETrue, KSetPrimaryScrollingType ); + + grid->SetSecondaryScrollingType( CAknGridView::EScrollStops ); + _LIT( KSetSecondaryScrollingType, "SetSecondaryScrollingType test" ); + AssertTrueL( ETrue, KSetSecondaryScrollingType ); + + TPoint point( KPointX, KPointY ); + grid->SetStartPositionL( point ); + _LIT( KSetStartPositionL, "SetStartPositionL test" ); + AssertTrueL( ETrue, KSetStartPositionL ); + + TInt dataIndex = grid->CurrentDataIndex(); + _LIT( KCurrentDataIndex, "CurrentDataIndex test" ); + AssertTrueL( ETrue, KCurrentDataIndex ); + + grid->SetCurrentDataIndex( dataIndex ); + _LIT( KSetCurrentDataIndex, "SetCurrentDataIndex test" ); + AssertTrueL( ETrue, KSetCurrentDataIndex ); + + TInt indexOfPosition = grid->IndexOfPosition( point ); + _LIT( KIndexOfPosition, "IndexOfPosition test" ); + AssertTrueL( ETrue, KIndexOfPosition ); + + TPoint positionAtIndex = grid->PositionAtIndex( indexOfPosition ); + _LIT( KPositionAtIndex, "PositionAtIndex test" ); + AssertTrueL( ETrue, KPositionAtIndex ); + + CFormattedCellListBoxItemDrawer* intemFrawer = grid->ItemDrawer(); + _LIT( KItemDrawer, "ItemDrawer test" ); + AssertTrueL( ETrue, KItemDrawer ); + + _LIT( text, "xxxxxxxxxxx" ); + grid->SetEmptyGridTextL( text ); + _LIT( KSetEmptyGridTextL, "SetEmptyGridTextL test" ); + AssertTrueL( ETrue, KSetEmptyGridTextL); + + CListBoxView* boxView = grid->MakeViewClassInstanceL(); + delete boxView; + _LIT( KMakeViewClassInstanceL, "MakeViewClassInstanceL test" ); + AssertTrueL( ETrue, KMakeViewClassInstanceL); + + TInt width = grid->ColumnWidth(); + _LIT( KColumnWidth, "ColumnWidth test" ); + AssertTrueL( ETrue, KColumnWidth); + + TInt columnWidthZero = 0; + TInt columnWidthTwo = 2; + grid->SetColumnWidth( columnWidthTwo ); + grid->SetColumnWidth( columnWidthZero ); + _LIT( KSetColumnWidth, "SetColumnWidth test" ); + AssertTrueL( ETrue, KSetColumnWidth ); + + grid->UpdateScrollBarsL(); + _LIT( KUpdateScrollBarsL, "UpdateScrollBarsL test" ); + AssertTrueL( ETrue, KUpdateScrollBarsL ); + + grid->HandleItemAdditionL(); + _LIT( KHandleItemAdditionL, "HandleItemAdditionL test" ); + AssertTrueL( ETrue, KHandleItemAdditionL ); + + grid->HandleItemRemovalL(); + _LIT( KHandleItemRemovalL, "HandleItemRemovalL test" ); + AssertTrueL( ETrue, KHandleItemRemovalL ); + + TKeyEvent keyEvent1 = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse response = grid->OfferKeyEventL( keyEvent1, EEventNull ); + TKeyEvent keyEvent2 = { EKeyUpArrow, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent2, EEventNull ); + TKeyEvent keyEvent3 = { EKeyDownArrow, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent3, EEventNull ); + TKeyEvent keyEvent4 = { EKeyLeftArrow, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent4, EEventNull ); + TKeyEvent keyEvent5 = { EKeyRightArrow, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent5, EEventNull ); + TKeyEvent keyEvent6 = { EKeyPageUp, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent6, EEventNull ); + TKeyEvent keyEvent7 = { EKeyPageDown, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent7, EEventNull ); + TKeyEvent keyEvent8 = { EKeyHome, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent8, EEventNull ); + TKeyEvent keyEvent9 = { EKeyEnd, EStdKeySpace, 0, 0 }; + response = grid->OfferKeyEventL( keyEvent9, EEventNull ); + _LIT( KOfferKeyEventL, "OfferKeyEventL test" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + grid->SetItemHeightL( KZero ); + grid->SetItemHeightL( KTwo ); + _LIT( KSetItemHeightL, "SetItemHeightL test" ); + AssertTrueL( ETrue, KSetItemHeightL ); + + grid->SizeChanged(); + _LIT( KSizeChanged, "SizeChanged test" ); + AssertTrueL( ETrue, KSizeChanged ); + + CTextListBoxModel* listBoxModel = grid->Model(); + _LIT( KModel, "Model test" ); + AssertTrueL( ETrue, KModel); + + TRect rect = iContainer->Rect(); + grid->SetRect( rect ); + _LIT( KSetRect, "SetRect test" ); + AssertTrueL( ETrue, KSetRect); + + grid->HandleViewRectSizeChangeL(); + _LIT( KHandleViewRectSizeChangeL, "HandleViewRectSizeChangeL test" ); + AssertTrueL( ETrue, KHandleViewRectSizeChangeL); + + TInt itemIndex = 1; + grid->SetTopItemIndex( itemIndex ); + _LIT( KSetTopItemIndex, "SetTopItemIndex test" ); + AssertTrueL( ETrue, KSetTopItemIndex ); + + grid->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + grid->HandleResourceChange( KEikPartialForeground ); + _LIT( KHandleResourceChange, "HandleResourceChange test" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + grid->FocusChanged( ENoDrawNow ); + _LIT( KFocusChanged, "FocusChanged test" ); + AssertTrueL( ETrue, KFocusChanged ); + + TPointerEvent pointerEvent = { TPointerEvent::EButton1Up, + EModifierAutorepeatable, TPoint( 20, 20 ), TPoint( 0, 0 ) }; + grid->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, "HandlePointerEventL test" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + TearDownCAknGridL( grid ); + + CBCTestForGrid* testForGrid = new( ELeave ) CBCTestForGrid(); + CleanupStack::PushL( testForGrid ); + + testForGrid->SetContainerWindowL ( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTGRIDS_GRID ); + testForGrid->ConstructFromResourceL( reader ); + _LIT( KConstructFromResourceL, "ConstructFromResourceL test" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + TInt nudgeValue = testForGrid->HorizontalNudgeValue(); + _LIT( KHorizontalNudgeValue, "HorizontalNudgeValue test" ); + AssertTrueL( ETrue, KHorizontalNudgeValue ); + + TInt granularity = testForGrid->HorizScrollGranularityInPixels(); + _LIT( KHorizScrollGranularityInPixels, + "HorizScrollGranularityInPixels test" ); + AssertTrueL( ETrue, KHorizScrollGranularityInPixels ); + + testForGrid->AdjustTopItemIndex(); + _LIT( KAdjustTopItemIndex, "AdjustTopItemIndex test" ); + AssertTrueL( ETrue, KAdjustTopItemIndex ); + + testForGrid->HandleDragEventL( point ); + _LIT( KHandleDragEventL, "HandleDragEventL test" ); + AssertTrueL( ETrue, KHandleDragEventL ); + + testForGrid->RestoreClientRectFromViewRect( rect ); + _LIT( KRestoreClientRectFromViewRect, + "RestoreClientRectFromViewRect test" ); + AssertTrueL( ETrue, KRestoreClientRectFromViewRect ); + + testForGrid->AdjustRectHeightToWholeNumberOfItems( rect ); + _LIT( KAdjustRectHeightToWholeNumberOfItems, + "AdjustRectHeightToWholeNumberOfItems test" ); + AssertTrueL( ETrue, KAdjustRectHeightToWholeNumberOfItems ); + + testForGrid->UpdateScrollBarThumbs(); + _LIT( KUpdateScrollBarThumbs, "UpdateScrollBarThumbs test" ); + AssertTrueL( ETrue, KUpdateScrollBarThumbs ); + + TInt controls = testForGrid->CountComponentControls(); + _LIT( KCountComponentControls, "CountComponentControls test" ); + AssertTrueL( ETrue, KCountComponentControls ); + + testForGrid->MoveToNextOrPreviousItemL( point ); + _LIT( KMoveToNextOrPreviousItemL, "MoveToNextOrPreviousItemL test" ); + AssertTrueL( ETrue, KMoveToNextOrPreviousItemL ); + + testForGrid->CalcGridSizeL(); + _LIT( KCalcGridSizeL, "CalcGridSizeL test" ); + AssertTrueL( ETrue, KCalcGridSizeL ); + + CEikScrollBar* scrollBar = new( ELeave ) CEikScrollBar(); + CleanupStack::PushL( scrollBar ); + testForGrid->HandleScrollEventL( scrollBar, EEikScrollUp ); + _LIT( KHandleScrollEventL, "HandleScrollEventL test" ); + AssertTrueL( ETrue, KHandleScrollEventL ); + CleanupStack::PopAndDestroy( scrollBar ); + + CleanupStack::PopAndDestroy( testForGrid ); + + //test for block coverage + CAknGrid* gridForBlock = new( ELeave) CAknGrid(); + CleanupStack::PushL( gridForBlock ); + + gridForBlock->SetContainerWindowL ( *iContainer ); + + TResourceReader readerForBlock; + iEnv->CreateResourceReaderLC( readerForBlock, R_BCTESTGRIDS_GRID_TWO ); + grid->ConstructFromResourceL( readerForBlock ); + CleanupStack::PopAndDestroy(); //readerForBlock + + CleanupStack::PopAndDestroy( gridForBlock ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestforcolourandgms.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestforcolourandgms.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,304 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "bctestforcolourandgms.h" +#include "bctestgridscontainer.h" +#include "bctestgrids.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestForColourAndGms* CBCTestForColourAndGms::NewL( + CBCTestGridsContainer* aContainer ) + { + CBCTestForColourAndGms* self = new( ELeave ) CBCTestForColourAndGms( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestForColourAndGms::CBCTestForColourAndGms( + CBCTestGridsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestForColourAndGms::~CBCTestForColourAndGms() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, LeftCBA, KeyOK, LeftCBA, TEND ); + AddTestL( LeftCBA, KeyOK, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::RunL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdEmptyOutline || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestForColour: + TestColourSelectionGridL(); + break; + case EBCTestForGms: + TestAknGmsStyleGridL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::TestColourSelectionGridL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::TestColourSelectionGridL() + { + // Test some API here + CArrayFixFlat* array = new( ELeave ) CArrayFixFlat(1); + CleanupStack::PushL( array ); + TRgb rgb = ( KRgbRed, KRgbGreen, KRgbBlue ); + array->AppendL( rgb ); + TBool noneChosen = ETrue; + CAknColourSelectionGrid* colourSelectionGrid = + CAknColourSelectionGrid::NewL( array, ETrue, noneChosen, rgb ); + CleanupStack::PushL( colourSelectionGrid ); + _LIT( KNewL, "NewL for CAknColourSelectionGrid test" ); + AssertTrueL( ETrue, KNewL ); + + TBool executeLD = colourSelectionGrid->ExecuteLD(); + _LIT( KExecuteLD, "ExecuteLD for CAknColourSelectionGrid test" ); + AssertTrueL( ETrue, KExecuteLD); + + CleanupStack::Pop( colourSelectionGrid ); + _LIT( KDesCAknColourSelectionGrid, + "~CAknColourSelectionGrid for CAknColourSelectionGrid test" ); + AssertTrueL( ETrue, KDesCAknColourSelectionGrid); + + CleanupStack::PopAndDestroy( array ); + + } +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::TestCAknGMSStyleGridViewL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::TestCAknGMSStyleGridViewL() + { + CAknGMSStyleGridView* gridView = + new( ELeave ) CAknGMSStyleGridView(); + CleanupStack::PushL( gridView ); + _LIT( KTestCAknGMSStyleGridView, "TestCAknGMSStyleGridView test" ); + AssertTrueL( ETrue, KTestCAknGMSStyleGridView ); + + _LIT( KDraw, "Draw For CAknGMSStyleGridView test" ); + AssertTrueL( ETrue, KDraw ); + + TRect rect = iContainer->Rect(); + gridView->SetupLayout( rect, EFalse, -1 ); + _LIT( KSetupLayout, "SetupLayout test" ); + AssertTrueL( ETrue, KSetupLayout ); + + CleanupStack::PopAndDestroy( gridView ); + } + +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::TestCAknGMSStyleGridL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::TestCAknGMSStyleGridL() + { + CAknGMSStyleGrid* styleGrid = + CAknGMSStyleGrid::NewL( iContainer, EFalse ); + CleanupStack::PushL( styleGrid ); + _LIT( KNewL, "NewL For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KNewL ); + + _LIT( KCAknGMSStyleGrid, "CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KCAknGMSStyleGrid ); + + _LIT( KCAknGMSStyleGrid2, "CAknGMSStyleGrid( TBool ) test" ); + AssertTrueL( ETrue, KCAknGMSStyleGrid2 ); + + _LIT( KConstructL, "ConstructL For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KConstructL ); + + styleGrid->SetupLayout(); + _LIT( KSetupLayout, "SetupLayout For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KSetupLayout ); + + TPointerEvent pointerEvent = + { TPointerEvent::EButton1Up, EModifierAutorepeatable, + TPoint( 20, 20 ), TPoint( 0, 0 ) }; + styleGrid->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "HandlePointerEventL For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + styleGrid->SizeChanged(); + _LIT( KSizeChanged, "SizeChanged For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KSizeChanged ); + + TSize minimumSize = styleGrid->MinimumSize(); + _LIT( KMinimumSize, "MinimumSize For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KMinimumSize ); + + TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse response = styleGrid->OfferKeyEventL( keyEvent, + EEventNull ); + _LIT( KOfferKeyEventL, "OfferKeyEventL For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + TRect rect = iContainer->Rect(); + styleGrid->Draw( rect ); + _LIT( KDraw, "Draw For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KDraw ); + + CListBoxView* listBoxView = styleGrid->MakeViewClassInstanceL(); + CleanupStack::PushL( listBoxView ); + _LIT( KMakeViewClassInstanceL, + "MakeViewClassInstanceL For CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KMakeViewClassInstanceL ); + CleanupStack::PopAndDestroy( listBoxView ); + + CleanupStack::PopAndDestroy( styleGrid ); + _LIT( KDesCAknGMSStyleGrid, "~CAknGMSStyleGrid test" ); + AssertTrueL( ETrue, KDesCAknGMSStyleGrid ); + + CAknGMSStyleGrid* styleGridForBlock = + CAknGMSStyleGrid::NewL( iContainer, ETrue ); + CleanupStack::PushL( styleGridForBlock ); + + styleGridForBlock->SizeChanged(); + minimumSize = styleGridForBlock->MinimumSize(); + + CleanupStack::PopAndDestroy( styleGridForBlock ); + } + +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::TestCAknGMSPopupGridL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::TestCAknGMSPopupGridL() + { + CAknGMSStyleGrid* styleGrid = + CAknGMSStyleGrid::NewL( iContainer, EFalse ); + CleanupStack::PushL( styleGrid ); + CAknGMSPopupGrid* popupGrid = CAknGMSPopupGrid::NewL( styleGrid, + R_BCTESTGRIDS_CBA_OPTIONS_NEXT, AknPopupLayouts::EMenuWindow ); + CleanupStack::PushL( popupGrid ); + _LIT( KCAknGMSPopupGrid, "CAknGMSPopupGrid test" ); + AssertTrueL( ETrue, KCAknGMSPopupGrid ); + + popupGrid->SetupWindowLayout( AknPopupLayouts::EMenuWindow ); + popupGrid->SetupWindowLayout( AknPopupLayouts::EMenuGraphicWindow ); + popupGrid->SetupWindowLayout( AknPopupLayouts::EMenuGraphicHeadingWindow ); + popupGrid->SetupWindowLayout( AknPopupLayouts::EMenuDoubleWindow ); + popupGrid->SetupWindowLayout( + AknPopupLayouts::EMenuDoubleLargeGraphicWindow ); + popupGrid->SetupWindowLayout( AknPopupLayouts::EPopupSNotePopupWindow ); + popupGrid->SetupWindowLayout( + AknPopupLayouts::EMenuUnknownColumnWindow ); + popupGrid->SetupWindowLayout( + AknPopupLayouts::EMenuUnknownFormattedCellWindow ); + popupGrid->SetupWindowLayout( AknPopupLayouts::EMenuDoubleWindow ); + + _LIT( KSetupWindowLayout, + "SetupWindowLayout For CAknGMSPopupGrid test" ); + AssertTrueL( ETrue, KSetupWindowLayout ); + + TAknPopupWindowLayoutDef def; + TRect rect = iContainer->Rect(); + TInt lines = 1; + popupGrid->CalcPopupGridLargeGraphicWindow( def, rect, lines ); + _LIT( KCalcPopupGridLargeGraphicWindow, + "CalcPopupGridLargeGraphicWindow For CAknGMSPopupGrid test" ); + AssertTrueL( ETrue, KCalcPopupGridLargeGraphicWindow ); + + popupGrid->SetupPopupGridLargeGraphicWindow( def, lines, ETrue ); + _LIT( KSetupPopupGridLargeGraphicWindow, + "SetupPopupGridLargeGraphicWindow test" ); + AssertTrueL( ETrue, KSetupPopupGridLargeGraphicWindow ); + + popupGrid->PopupGridLargeGraphicGraphics( def ); + _LIT( KPopupGridLargeGraphicGraphics, + "PopupGridLargeGraphicGraphics test" ); + AssertTrueL( ETrue, KPopupGridLargeGraphicGraphics ); + + TPointerEvent pointerEvent = + { TPointerEvent::EButton1Up, EModifierAutorepeatable, + TPoint( 20, 20 ), TPoint( 0, 0 ) }; + popupGrid->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "HandlePointerEventL For CAknGMSPopupGrid test" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + CleanupStack::PopAndDestroy( popupGrid ); + CleanupStack::PopAndDestroy( styleGrid ); + } +// --------------------------------------------------------------------------- +// CBCTestForColourAndGms::TestakngmsstylegridL +// --------------------------------------------------------------------------- +// +void CBCTestForColourAndGms::TestAknGmsStyleGridL() + { + TestCAknGMSStyleGridViewL(); + TestCAknGMSStyleGridL(); + TestCAknGMSPopupGridL(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestformandview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestformandview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,552 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestformandview.h" +#include "bctestgridscontainer.h" +#include "bctestgrids.hrh" + +const TInt KItemHeight = 20; +const TInt KDimensionX = 1; +const TInt KDimensionY = 2; +const TInt KItemX = 1; +const TInt KItemY = 1; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KZero = 0; +const TInt KNegative = -2; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestForMAndView* CBCTestForMAndView::NewL( + CBCTestGridsContainer* aContainer ) + { + CBCTestForMAndView* self = new( ELeave ) CBCTestForMAndView( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestForMAndView::CBCTestForMAndView( + CBCTestGridsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestForMAndView::~CBCTestForMAndView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestForMAndView::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestForMAndView::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestForMAndView::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, Down, Down, KeyOK, KeyOK, TEND ); + AddTestL( LeftCBA, Down, Down, KeyOK, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestForMAndView::RunL +// --------------------------------------------------------------------------- +// +void CBCTestForMAndView::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdEmptyOutline || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestForCAknGridM: + TestForAknGridML(); + break; + case EBCTestForCAknGridView: + TestForAknGridViewL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestForMAndView::TestForAknGridML +// --------------------------------------------------------------------------- +// +void CBCTestForMAndView::TestForAknGridML() + { + CAknGridM* gridM = new( ELeave ) CAknGridM(); + CleanupStack::PushL( gridM ); + _LIT( KCAknGridM, "CAknGridM test" ); + AssertTrueL( ETrue, KCAknGridM ); + + CDesCArray* array = iEnv->ReadDesCArrayResourceL( R_BCTESTGRIDS_ARRAY ); + + gridM->ConstructL ( array, ELbmOwnsItemArray ); + + TInt number = gridM->NumberOfItems(); + _LIT( KNumberOfItems, "NumberOfItems test" ); + AssertTrueL( ETrue, KNumberOfItems ); + + TInt dataIndex = 0; + TBool indexContainsData = gridM->IndexContainsData( dataIndex ); + _LIT( KIndexContainsData, "IndexContainsData test" ); + AssertTrueL( ETrue, KIndexContainsData ); + + TInt numEmpty = 0; + gridM->SetStartCells( numEmpty ); + _LIT( KSetStartCells, "SetStartCells test" ); + AssertTrueL( ETrue, KSetStartCells ); + + TInt numberOfData = gridM->NumberOfData(); + _LIT( KNumberOfData, "NumberOfData test" ); + AssertTrueL( ETrue, KNumberOfData ); + + TInt index = gridM->IndexOfFirstDataItem(); + _LIT( KIndexOfFirstDataItem, "IndexOfFirstDataItem test" ); + AssertTrueL( ETrue, KIndexOfFirstDataItem ); + + gridM->IndexOfLastDataItem(); + _LIT( KIndexOfLastDataItem, "IndexOfLastDataItem test" ); + AssertTrueL( ETrue, KIndexOfLastDataItem ); + + TInt itemIndex = 0; + TPtrC itemText = gridM->ItemText( itemIndex ); + _LIT( KItemText, "ItemText test" ); + AssertTrueL( ETrue, KItemText ); + + + CleanupStack::PopAndDestroy( gridM ); + _LIT( KDesCAknGridM, "~CAknGridM test" ); + AssertTrueL( ETrue, KDesCAknGridM ); + } + + +// --------------------------------------------------------------------------- +// CBCTestForMAndView::TestForAknGridViewL +// --------------------------------------------------------------------------- +// +void CBCTestForMAndView::TestForAknGridViewL() + { + CAknGrid *aknGrid = new( ELeave ) CAknGrid(); + CleanupStack::PushL( aknGrid ); + + aknGrid->SetContainerWindowL ( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTGRIDS_GRID ); + aknGrid->ConstructFromResourceL( reader ); + _LIT( KConstructFromResourceL, "ConstructFromResourceL test" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + CAknGridView* gridView = aknGrid->GridView(); + _LIT( KCAknGridView, "CAknGridView test" ); + AssertTrueL( ETrue, KCAknGridView ); + + TInt listBoxIndex = 0; + TInt dataIndex = gridView->ActualDataIndex( listBoxIndex ); + _LIT( KActualDataIndex, "ActualDataIndex test" ); + AssertTrueL( ETrue, KActualDataIndex ); + + TInt listBoxIndex1 = gridView->ListBoxIndex( dataIndex ); + _LIT( KListBoxIndex, "ListBoxIndex test" ); + AssertTrueL( ETrue, KListBoxIndex ); + + TInt currentDataIndex = gridView->CurrentDataIndex(); + _LIT( KCurrentDataIndex, "CurrentDataIndex test" ); + AssertTrueL( ETrue, KCurrentDataIndex ); + + gridView->SetCurrentDataIndex( dataIndex ); + _LIT( KSetCurrentDataIndex, "SetCurrentDataIndex test" ); + AssertTrueL( ETrue, KSetCurrentDataIndex ); + + gridView->SetPrimaryScrollingType( CAknGridView::EScrollFollowsGrid ); + _LIT( KSetPrimaryScrollingType, "SetPrimaryScrollingType test" ); + AssertTrueL( ETrue, KSetPrimaryScrollingType ); + + gridView->SetSecondaryScrollingType( CAknGridView::EScrollFollowsGrid ); + _LIT( KSetSecondaryScrollingType, "SetSecondaryScrollingType test" ); + AssertTrueL( ETrue, KSetSecondaryScrollingType ); + + TSize size = iContainer->Rect().Size(); + gridView->SetGridCellDimensions( size ); + _LIT( KSetGridCellDimensions, "SetGridCellDimensions test" ); + AssertTrueL( ETrue, KSetGridCellDimensions ); + + TSize gridCellDimensions = gridView->GridCellDimensions(); + _LIT( KGridCellDimensions, "GridCellDimensions test" ); + AssertTrueL( ETrue, KGridCellDimensions ); + + gridView->SetSpacesBetweenItems( size ); + _LIT( KSetSpacesBetweenItems, "SetSpacesBetweenItems test" ); + AssertTrueL( ETrue, KSetSpacesBetweenItems ); + + TBool isPrimaryVertical = gridView->IsPrimaryVertical(); + _LIT( KIsPrimaryVertical, "IsPrimaryVertical test" ); + AssertTrueL( ETrue, KIsPrimaryVertical ); + + TInt itemIndex = 1; + TInt rowIndex = 1; + TInt colIndex = 1; + gridView->DataIndexFromLogicalPos( itemIndex, rowIndex, colIndex ); + _LIT( KDataIndexFromLogicalPos, "DataIndexFromLogicalPos test" ); + AssertTrueL( ETrue, KDataIndexFromLogicalPos ); + + TInt negative = -2; + gridView->LogicalPosFromDataIndex( itemIndex, rowIndex, colIndex ); + gridView->LogicalPosFromDataIndex( negative, rowIndex, colIndex ); + gridView->LogicalPosFromDataIndex( itemIndex, negative, colIndex ); + gridView->LogicalPosFromDataIndex( negative, rowIndex, colIndex ); + gridView->LogicalPosFromDataIndex( itemIndex, rowIndex, negative ); + gridView->LogicalPosFromDataIndex( negative, rowIndex, negative ); + gridView->LogicalPosFromDataIndex( itemIndex, negative, negative ); + gridView->LogicalPosFromDataIndex( negative, negative, negative ); + _LIT( KLogicalPosFromDataIndex, "LogicalPosFromDataIndex test" ); + AssertTrueL( ETrue, KLogicalPosFromDataIndex ); + + CAknGridView::SGrid gridDetailPos1 = { size, 1, 1, 1, 1, size, size }; + gridView->SetGridDetails( gridDetailPos1 ); + gridView->ListBoxIndexFromLogicalPos( itemIndex, rowIndex, colIndex ); + TInt isVisible = + gridView->CalcNewTopItemIndexSoItemIsVisible( KZero ); + CAknGridView::SGrid gridDetailPos2 = { size, 0, 1, 1, 1, size, size }; + gridView->SetGridDetails( gridDetailPos2 ); + gridView->ListBoxIndexFromLogicalPos( itemIndex, rowIndex, colIndex ); + _LIT( KListBoxIndexFromLogicalPos, "ListBoxIndexFromLogicalPos test" ); + AssertTrueL( ETrue, KListBoxIndexFromLogicalPos ); + + gridView->LogicalPosFromListBoxIndex( itemIndex, rowIndex, colIndex ); + _LIT( KLogicalPosFromListBoxIndex, "LogicalPosFromListBoxIndex test" ); + AssertTrueL( ETrue, KLogicalPosFromListBoxIndex ); + + gridView->DrawEmptyList(); + _LIT( KDrawEmptyList, "DrawEmptyList test" ); + AssertTrueL( ETrue, KDrawEmptyList ); + + CAknGridView::SGrid gridDetail = { size, 1, 1, 1, 1, size, size }; + gridView->SetGridDetails( gridDetail ); + _LIT( KSetGridDetails, "SetGridDetails test" ); + AssertTrueL( ETrue, KSetGridDetails ); + + gridView->MoveToItemIndexL( itemIndex, CAknGridView::ENoSelection ); + gridView->MoveToItemIndexL( negative, CAknGridView::ENoSelection ); + _LIT( KMoveToItemIndex, "MoveToItemIndex test" ); + AssertTrueL( ETrue, KMoveToItemIndex ); + + TInt numberOfColsInView = gridView->NumberOfColsInView(); + _LIT( KNumberOfColsInView, "NumberOfColsInView test" ); + AssertTrueL( ETrue, KNumberOfColsInView ); + + TInt numberOfRowsInView = gridView->NumberOfRowsInView(); + _LIT( KNumberOfRowsInView, "NumberOfRowsInView test" ); + AssertTrueL( ETrue, KNumberOfRowsInView ); + + gridView->DrawMatcherCursor(); + _LIT( KDrawMatcherCursor, "DrawMatcherCursor test" ); + AssertTrueL( ETrue, KDrawMatcherCursor ); + + TInt currentItemIndex = gridView->CurrentItemIndex(); + _LIT( KCurrentItemIndex, "CurrentItemIndex test" ); + AssertTrueL( ETrue, KCurrentItemIndex ); + gridView->ScrollToMakeItemVisible( KNegative ); + currentItemIndex = gridView->CurrentItemIndex(); + + TInt columnWidth = 1; + gridView->SetColumnWidth( columnWidth ); + _LIT( KSetColumnWidth, "SetColumnWidth test" ); + AssertTrueL( ETrue, KSetColumnWidth ); + + gridView->MoveCursorL( CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorPreviousItem, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorNextColumn, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorPreviousColumn, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorPreviousPage, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorNextPage, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorFirstItem, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorLastItem, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorNextScreen, + CAknGridView::ENoSelection ); + gridView->MoveCursorL( CAknGridView::ECursorPrevScreen, + CAknGridView::ENoSelection ); + + _LIT( KMoveCursorL, "MoveCursorL test" ); + AssertTrueL( ETrue, KMoveCursorL ); + + gridView->Draw( NULL ); + _LIT( KDraw, "Draw test" ); + AssertTrueL( ETrue, KDraw ); + + gridView->DrawItem( itemIndex ); + gridView->DrawItem( KZero ); + _LIT( KDrawItem, "DrawItem test" ); + AssertTrueL( ETrue, KDrawItem ); + + TPoint point = gridView->ItemPos( itemIndex ); + _LIT( KItemPos, "ItemPos test" ); + AssertTrueL( ETrue, KItemPos ); + + gridView->CalcBottomItemIndex(); + _LIT( KCalcBottomItemIndex, "CalcBottomItemIndex test" ); + AssertTrueL( ETrue, KCalcBottomItemIndex ); + + isVisible = + gridView->CalcNewTopItemIndexSoItemIsVisible( itemIndex ); + _LIT( KCalcNewTopItemIndexSoItemIsVisible, + "CalcNewTopItemIndexSoItemIsVisible test" ); + AssertTrueL( ETrue, KCalcNewTopItemIndexSoItemIsVisible ); + + gridView->DrawItemRange( KZero, KOne ); + gridView->DrawItemRange( KNegative, KOne ); + _LIT( KDrawItemRange, "DrawItemRange test" ); + AssertTrueL( ETrue, KDrawItemRange ); + + gridView->SetTopItemIndex( itemIndex ); + _LIT( KSetTopItemIndex, "SetTopItemIndex test" ); + AssertTrueL( ETrue, KSetTopItemIndex ); + + gridView->SetItemHeight( KItemHeight ); + _LIT( KSetItemHeight, "SetItemHeight test" ); + AssertTrueL( ETrue, KSetItemHeight ); + + TBool posToItemIndex = gridView->XYPosToItemIndex( point, itemIndex ); + _LIT( KXYPosToItemIndex, "XYPosToItemIndex test" ); + AssertTrueL( ETrue, KXYPosToItemIndex ); + + gridView->CalcDataWidth(); + _LIT( KCalcDataWidth, "CalcDataWidth test" ); + AssertTrueL( ETrue, KCalcDataWidth ); + + TRect rect = iContainer->Rect(); + TInt visibleWidth = gridView->VisibleWidth( rect ); + _LIT( KVisibleWidth, "VisibleWidth test" ); + AssertTrueL( ETrue, KVisibleWidth ); + + CAknGridView::SGrid gridDetailIndex1 = { size, 0, 1, 1, 1, size, size }; + gridView->SetGridDetails( gridDetailIndex1 ); + TBool visible = gridView->ScrollToMakeItemVisible( KOne ); + visible = gridView->ScrollToMakeItemVisible( KNegative ); + TInt itemIsVisible = + gridView->CalculateHScrollOffsetSoItemIsVisible( itemIndex ); + CAknGridView::SGrid gridDetailIndex2 = { size, 1, 1, 1, 1, size, size }; + gridView->SetGridDetails( gridDetailIndex2 ); + visible = gridView->ScrollToMakeItemVisible( KOne ); + visible = gridView->ScrollToMakeItemVisible( KNegative ); + _LIT( KScrollToMakeItemVisible, "ScrollToMakeItemVisible test" ); + AssertTrueL( ETrue, KScrollToMakeItemVisible ); + + itemIsVisible = + gridView->CalculateHScrollOffsetSoItemIsVisible( itemIndex ); + _LIT( KCalculateHScrollOffsetSoItemIsVisible, + "CalculateHScrollOffsetSoItemIsVisible test" ); + AssertTrueL( ETrue, KCalculateHScrollOffsetSoItemIsVisible ); + + TSize itemSize = gridView->ItemSize( 0 ); + _LIT( KItemSize, "ItemSize test" ); + AssertTrueL( ETrue, KItemSize ); + + gridView->CalcRowAndColIndexesFromItemIndex( itemIndex, rowIndex, + colIndex ); + _LIT( KCalcRowAndColIndexesFromItemIndex, + "CalcRowAndColIndexesFromItemIndex test" ); + AssertTrueL( ETrue, KCalcRowAndColIndexesFromItemIndex ); + + gridView->CalcItemIndexFromRowAndColIndexes( itemIndex, rowIndex, + colIndex ); + _LIT( KCalcItemIndexFromRowAndColIndexes, + "CalcItemIndexFromRowAndColIndexes test" ); + AssertTrueL( ETrue, KCalcItemIndexFromRowAndColIndexes ); + + + CBCTestForGridView* testForGridView = new( ELeave ) CBCTestForGridView(); + CleanupStack::PushL( testForGridView ); + + /*CTextListBoxModel* listBoxModel = aknGrid->Model(); + CDesCArray* array = iEnv->ReadDesCArrayResourceL( R_BCTESTGRIDS_ARRAY ); + listBoxModel->ConstructL ( array, ELbmOwnsItemArray ); + CFormattedCellListBoxItemDrawer* itemDrawer = aknGrid->ItemDrawer();*/ + + CAknGridM* listBoxModel = new( ELeave ) CAknGridM(); + CleanupStack::PushL( listBoxModel ); + CDesCArray* array = iEnv->ReadDesCArrayResourceL( R_BCTESTGRIDS_ARRAY ); + CleanupStack::PushL( array ); + listBoxModel->ConstructL ( array, ELbmOwnsItemArray ); + CleanupStack::Pop( array ); + CFormattedCellListBoxData* data = CFormattedCellListBoxData::NewL(); + CleanupStack::PushL( data ); + CFormattedCellListBoxItemDrawer* itemDrawer = new( ELeave ) + CFormattedCellListBoxItemDrawer( listBoxModel, iEnv->NormalFont(), + data ); + itemDrawer->FormattedCellData()->SetControl( aknGrid ); + CleanupStack::PushL( itemDrawer ); + CWsScreenDevice* screen = iEnv->ScreenDevice(); + RWindowGroup& groupWin = iEnv->RootWin(); + RWindow& wsWindow = iContainer->Window(); + testForGridView->ConstructL( listBoxModel, itemDrawer, screen, + &groupWin, &wsWindow, rect, KItemHeight ); + + + TSize gridDimension( KDimensionX, KDimensionY ); + TSize betweenItems( KItemX, KItemY ); + TSize sizeOfItem( size.iWidth / KOne, size.iHeight / KTwo ); + TInt flags = CAknGridView::ELeftToRight | CAknGridView::ETopToBottom | + CAknGridView::EPrimaryIsVertical; + CAknGridView::SGrid gridDetail2 = + { gridDimension, flags, KTwo, KOne, KTwo, betweenItems, sizeOfItem }; + testForGridView->SetGridDetails( gridDetail2 ); + TSize betweenItemsTwo( KNegative, KOne ); + CAknGridView::SGrid gridDetail3 = { gridDimension, flags, KTwo, KOne, + KTwo, betweenItemsTwo, sizeOfItem }; + testForGridView->SetGridDetails( gridDetail3 ); + TSize betweenItemsThree( KNegative, KNegative ); + CAknGridView::SGrid gridDetail4 = { gridDimension, flags, KTwo, KOne, KTwo, + betweenItemsThree, sizeOfItem }; + testForGridView->SetGridDetails( gridDetail4 ); + + TInt startColIndex = 0; + TInt endColIndex = 1; + testForGridView->DrawColumnRange( startColIndex, endColIndex ); + _LIT( KDrawColumnRange, "DrawColumnRange test" ); + AssertTrueL( ETrue, KDrawColumnRange ); + + testForGridView->ClearUnusedItemSpace( KZero, KOne ); + _LIT( KClearUnusedItemSpace, "ClearUnusedItemSpace test" ); + AssertTrueL( ETrue, KClearUnusedItemSpace ); + + testForGridView->UpdateHScrollOffsetBasedOnTopItemIndex(); + _LIT( KUpdateHScrollOffsetBasedOnTopItemIndex, + "UpdateHScrollOffsetBasedOnTopItemIndex test" ); + AssertTrueL( ETrue, KUpdateHScrollOffsetBasedOnTopItemIndex ); + + testForGridView->DoMoveL( CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + _LIT( KDoMoveL, "DoMoveL test" ); + AssertTrueL( ETrue, KDoMoveL ); + + TBool itemExists = testForGridView->ItemExists( listBoxIndex ); + _LIT( KItemExists, "ItemExists test" ); + AssertTrueL( ETrue, KItemExists ); + + //for block coverage + CAknGridView::SGrid gridDetailForScroll1 = { gridDimension, KOne, KOne, + KOne, KOne, betweenItemsThree, sizeOfItem }; + testForGridView->SetGridDetails( gridDetailForScroll1 ); + + testForGridView->SetPrimaryScrollingType( CAknGridView::EScrollStops ); + testForGridView->SetSecondaryScrollingType( CAknGridView::EScrollStops ); + testForGridView->DoMoveL(CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + + testForGridView->SetPrimaryScrollingType( + CAknGridView::EScrollFollowsGrid ); + testForGridView->SetSecondaryScrollingType( + CAknGridView::EScrollFollowsGrid ); + testForGridView->DoMoveL(CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + + testForGridView->SetPrimaryScrollingType( + CAknGridView::EScrollFollowsItemsAndStops ); + testForGridView->SetSecondaryScrollingType( + CAknGridView::EScrollFollowsItemsAndStops ); + testForGridView->DoMoveL(CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + + CAknGridView::SGrid gridDetailForScroll2 = { gridDimension, KZero, KOne, + KOne, KOne, betweenItemsThree, sizeOfItem }; + testForGridView->SetGridDetails( gridDetailForScroll2 ); + + testForGridView->SetPrimaryScrollingType( + CAknGridView::EScrollFollowsItemsAndLoops ); + testForGridView->SetSecondaryScrollingType( + CAknGridView::EScrollFollowsItemsAndLoops ); + testForGridView->DoMoveL(CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + + testForGridView->SetPrimaryScrollingType( + CAknGridView::EScrollIncrementLineAndStops ); + testForGridView->SetSecondaryScrollingType( + CAknGridView::EScrollIncrementLineAndStops ); + testForGridView->DoMoveL(CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + + testForGridView->SetPrimaryScrollingType( + CAknGridView::EScrollIncrementLineAndLoops ); + testForGridView->SetSecondaryScrollingType( + CAknGridView::EScrollIncrementLineAndLoops ); + testForGridView->DoMoveL(CAknGridView::ECursorNextItem, + CAknGridView::ENoSelection ); + testForGridView->DoMoveL(CAknGridView::ECursorPreviousItem, + CAknGridView::ENoSelection ); + testForGridView->DoMoveL(CAknGridView::ECursorNextColumn, + CAknGridView::ENoSelection ); + testForGridView->DoMoveL(CAknGridView::ECursorPreviousColumn, + CAknGridView::ENoSelection ); + + CleanupStack::Pop( itemDrawer ); + CleanupStack::Pop( data ); + CleanupStack::PopAndDestroy( listBoxModel ); + CleanupStack::PopAndDestroy( testForGridView ); + + CleanupStack::PopAndDestroy( aknGrid ); + _LIT( KDesCAknGridView, "~CAknGridView test" ); + AssertTrueL( ETrue, KDesCAknGridView ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Grids test app +* +*/ + + +// INCLUDE FILES +#include + +#include "bctestgridsapp.h" +#include "bctestgridsdocument.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestGridsApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestGridsApp::AppDllUid() const + { + return KUidBCTestGrids; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestGridsApp::CreateDocumentL() +// Creates CBCTestGridsDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestGridsApp::CreateDocumentL() + { + return CBCTestGridsDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestGridsApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestGridsApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for grids control api(s) +* +*/ + +#include +#include + +#include "bctestgridsappui.h" +#include "bctestgrids.hrh" +#include "bctestgridsview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestGridsAppUi::CBCTestGridsAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestGridsAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestGridsView* view = CBCTestGridsView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestGridsAppUi::~CBCTestGridsAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestGridsAppUi::~CBCTestGridsAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestGridsAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridscase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridscase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,145 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include "bctestgridscase.h" +#include "bctestgridscontainer.h" +#include "bctestgrids.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestGridsCase* CBCTestGridsCase::NewL( + CBCTestGridsContainer* aContainer ) + { + CBCTestGridsCase* self = new( ELeave ) CBCTestGridsCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestGridsCase::CBCTestGridsCase( + CBCTestGridsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestGridsCase::~CBCTestGridsCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestGridsCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestGridsCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestGridsCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestGridsCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestGridsCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunction(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestGridsCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestGridsCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestGridsCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestGridsCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestGridsCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestGridsCase::TestFunction() + { + // Test some API here + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridscontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridscontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestgridscontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestGridsContainer::CBCTestGridsContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestGridsContainer::~CBCTestGridsContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestGridsContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestGridsContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestGridsContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestGridsContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestGridsContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestGridsContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestGridsContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestGridsContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestGridsContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestGridsContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestGridsContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Grids test application +* +*/ + + +// INCLUDE FILES +#include "bctestgridsdocument.h" +#include "bctestgridsappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestGridsDocument* CBCTestGridsDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestGridsDocument* CBCTestGridsDocument::NewL( CEikApplication& aApp ) + { + CBCTestGridsDocument* self = new( ELeave ) CBCTestGridsDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestGridsDocument::~CBCTestGridsDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestGridsDocument::~CBCTestGridsDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestGridsDocument::CBCTestGridsDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestGridsDocument::CBCTestGridsDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestGridsDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestGridsDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestGridsAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestgrids/src/bctestgridsview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,139 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestgrids.hrh" +#include "bctestgridsview.h" +#include "bctestgridscontainer.h" +#include "bctestutil.h" +#include "bctestforcolourandgms.h" +#include "bctestforakngrid.h" +#include "bctestformandview.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestGridsView* CBCTestGridsView::NewL() + { + CBCTestGridsView* self = new( ELeave ) CBCTestGridsView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestGridsView::CBCTestGridsView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestGridsView::ConstructL() + { BaseConstructL( R_BCTESTGRIDS_VIEW ); + + iContainer = new( ELeave ) CBCTestGridsContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT( KColourAndGms, "ColourAndGms test case" ); + iTestUtil->AddTestCaseL( CBCTestForColourAndGms::NewL( iContainer ), + KColourAndGms ); + _LIT( KAknGrid,"AknGrid test case" ); + iTestUtil->AddTestCaseL( CBCTestForAknGrid::NewL( iContainer ), + KAknGrid ); + _LIT( KAknMAndView,"AknMAndView test case" ); + iTestUtil->AddTestCaseL( CBCTestForMAndView::NewL( iContainer ), + KAknMAndView ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestGridsView::~CBCTestGridsView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestGridsView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestGridsView::Id() const + { + return KBCTestGridsViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestGridsView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestGridsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestGridsView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestGridsView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestGridsView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestGridsView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/aif/BCTestImage.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/aif/BCTestImage.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bctestimage.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bctestimage.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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: project specification file for the BCTestImage. +* +*/ + + +TARGET BCTestImage.exe +TARGETTYPE exe +UID 0x0 0x20004757 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestImage.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestimageapp.cpp +SOURCE bctestimagedocument.cpp +SOURCE bctestimageappui.cpp +SOURCE bctestimageview.cpp +SOURCE bctestimagecontainer.cpp +SOURCE bctestimagecase.cpp +SOURCE bctestimage_pro.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY fbscli.lib +LIBRARY bafl.lib +LIBRARY estor.lib + +START BITMAP BCTestImage_Aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 BCTestImage.bmp +end + + +START RESOURCE ../group/bctestimage_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bctestimage.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bctestimage.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,221 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestimage.hrh" +#include "BCTestimage.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestimage_BMP_FNAME APP_BITMAP_DIR"\\BCTestImage.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctestimage; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestimage_menubar_main; + cba = r_bctestimage_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestimage_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestimage_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestimage_view +// AVKON_VIEW for CBCTestImageView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestimage_view + { + menubar = r_bctestimage_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestimage_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestimage_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestimage_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestimage_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestimage_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestimage_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestimage_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestimage_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestimage_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestimage_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestimage_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestimage_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestimage_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestImageCbaCmdNext; + txt = qtn_bctestimage_cba_next; + } + }; + } + +//----------------------------------------------------------------------------- +// r_bctestimage_aimage +// To be called by: ContructFromResourceL +// +//----------------------------------------------------------------------------- + +RESOURCE IMAGE r_bctestimage_aimage + { + horiz_align = EEikLabelAlignHCenter; + vert_align = EEikLabelAlignVTop; + bmpfile = "z:\\resource\\apps\\BCTestImage_Aif.mbm"; + bmpid = 0; + bmpmask = 0xffff; + extension = 0; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bctestimage_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bctestimage_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004757 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestImage"; + localisable_resource_file = "\\resource\\apps\\BCTestImage"; + localisable_resource_id = R_BCTESTIMAGE_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestImage.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimage.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimage.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestImage resource header file +* +*/ + + +#ifndef BCTESTIMAGE_HRH +#define BCTESTIMAGE_HRH + +enum TBCTestImageMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestImageCba + { + EBCTestImageCbaCmdNext = 0x6300 + }; + +#endif // BCTESTIMAGE_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimage.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimage.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 "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: BCTestImage localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTIMAGE" +#define qtn_apps_tavl_grid "BCTESTIMAGE" + +// MenuBar +#define qtn_bctestimage_menubar "Option" +#define qtn_bctestimage_cba_next "Next" +#define qtn_bctestimage_autotest "Autotest" +#define qtn_bctestimage_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestimage_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +#define qtn_bctestimage "BCTestImage" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimage_pro.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimage_pro.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,27 @@ +/* +* 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: +* +*/ + + +#include + +class CBCTestImage_pro : public CEikImage + { + public: + CBCTestImage_pro(); + ~CBCTestImage_pro(); + void testWriteInternalL() const; + }; \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimageapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimageapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTIMAGEAPP_H +#define BCTESTIMAGEAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestImage = { 0x20004757 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestImageApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestImageApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestImageDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestImage ). + * @return The value of KUidBCTestImage. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimageappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimageappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTIMAGEAPPUI_H +#define C_BCTESTIMAGEAPPUI_H + +#include + +class CBCTestImageView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestImageAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestImageAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestImageAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestImageView* iView; + }; + +#endif // C_BCTESTIMAGEAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimagecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimagecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_IMAGECASE_H +#define BCTEST_IMAGECASE_H + +#include "bctestimagecase.h" +#include "bctestcase.h" + +class CBCTestImageContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestImageCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestImageCase* NewL( CBCTestImageContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestImageCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestImageCase( CBCTestImageContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestImageContainer* iContainer; + + }; + +#endif // BCTEST_IMAGECASE_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimagecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimagecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_IMAGECONTAINER_H +#define BCTEST_IMAGECONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestImageContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestImageContainer(); + + /** + * Destructor + */ + virtual ~CBCTestImageContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_IMAGECONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimagedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimagedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTIMAGEDOCUMENT_H +#define C_BCTESTIMAGEDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestImageDocument application class. +*/ +class CBCTestImageDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestImageDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestImageDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestImageDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestImageAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTIMAGEDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimageview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/inc/bctestimageview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_IMAGE_VIEW_H +#define BCTEST_IMAGE_VIEW_H + +#include + +const TUid KBCTestImageViewId = { 1 }; + +class CBCTestImageContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestImageView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestImageView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestImageView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestImageView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestImageContainer* iContainer; + + }; + +#endif // BCTEST_IMAGE_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/sis/bctestimage.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/sis/bctestimage.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestimage.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestimage"},(0x20004757),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestimage.exe"- +"!:\sys\bin\bctestimage.exe" + +"\epoc32\data\z\resource\apps\bctestimage.RSC"- +"!:\resource\apps\bctestimage.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestimage_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestimage_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimage_pro.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimage_pro.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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: +* +*/ + +#include +#include +#include +#include +#include + +#include "bctestimage_pro.h" +#include "bctestassert.h" + +_LIT(KStreamName, "c:\\BCTestLog\\testImage.txt"); + + +CBCTestImage_pro::~CBCTestImage_pro() +{ + +} + +CBCTestImage_pro::CBCTestImage_pro() +{ + +} + +void CBCTestImage_pro::testWriteInternalL() const +{ + RFs tempServer = CEikonEnv::Static()->FsSession(); + + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + WriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy(&fWrite ); +} + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimageapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimageapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestImageApp.h" +#include "BCTestImageDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestImageApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestImageApp::AppDllUid() const + { + return KUidBCTestImage; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestImageApp::CreateDocumentL() +// Creates CBCTestImageDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestImageApp::CreateDocumentL() + { + return CBCTestImageDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestImageApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestImageApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimageappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimageappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestimageAppUi.h" +#include "bctestimage.hrh" +#include "bctestimageview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestImageAppUi::CBCTestImageAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestImageAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestImageView* view = CBCTestImageView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestImageAppUi::~CBCTestImageAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestImageAppUi::~CBCTestImageAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestImageAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimagecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimagecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,253 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestimagecase.h" +#include "bctestimagecontainer.h" +#include "bctestimage.hrh" +#include "bctestimage_pro.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestImageCase* CBCTestImageCase::NewL( + CBCTestImageContainer* aContainer ) + { + CBCTestImageCase* self = new( ELeave ) CBCTestImageCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestImageCase::CBCTestImageCase( + CBCTestImageContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestImageCase::~CBCTestImageCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestImageCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestImageCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestImageCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestImageCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestImageCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestImageCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestImageCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestImageCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestImageCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestImageCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestImageCase::TestFunctionL() + { + _LIT( strBitmap,"Class CEikImage Function Bitmap tested" ); + _LIT( strConstructFromResourceL,"Class CEikImage Function ConstructFromResourceL tested" ); + _LIT( strCreatePictureFromFileL,"Class CEikImage Function CreatePictureFromFileL tested" ); + _LIT( strHandlePointerEventL,"Class CEikImage Function HandlePointerEventL tested" ); + _LIT( strIsPictureOwnedExternally,"Class CEikImage Function IsPictureOwnedExternally tested" ); + _LIT( strMask,"Class CEikImage Function Masktested" ); + _LIT( strMinimumSize,"Class CEikImage Function MinimumSize tested" ); + _LIT( strSetBitmap,"Class CEikImage Function SetBitmap tested" ); + _LIT( strSetBrushStyle,"Class CEikImage Function SetBrushStyle tested" ); + _LIT( strSetEmphasis,"Class CEikImage Function SetSetEmphasis tested" ); + _LIT( strSetMask,"Class CEikImage Function SetMask tested" ); + _LIT( strSetNewBitmaps,"Class CEikImage Function SetNewBitmaps tested" ); + _LIT( strSetPicture,"Class CEikImage Function SetPicture tested" ); + _LIT( strSetPictureOwnedExternally,"Class CEikImage Function SetPictureOwnedExternally tested" ); + _LIT( strWriteInternalStateL,"Class CEikImage Function WriteInternalStateL tested" ); + + //create hEikImge, hBitmap, hMask + CEikImage* hEikImage = new ( ELeave ) CEikImage(); + + CFbsBitmap* hBitmap = new (ELeave) CFbsBitmap(); + CFbsBitmap* hMask = new (ELeave) CFbsBitmap(); + + + hEikImage ->SetBitmap(hBitmap); + AssertNotNullL( hEikImage, strSetBitmap ); + + hEikImage->SetMask(hMask); + AssertNotNullL( hEikImage, strSetMask ); + + hEikImage->Bitmap(); + AssertNotNullL( hEikImage, strBitmap ); + + hEikImage->Mask(); + AssertNotNullL( hEikImage, strMask); + + + hEikImage->SetPicture(hBitmap, hMask); + AssertNotNullL( hEikImage, strSetPicture); + + + CFbsBitmap* jBitmap = new (ELeave) CFbsBitmap(); + CFbsBitmap* jMask = new (ELeave) CFbsBitmap(); + + hEikImage->SetNewBitmaps(jBitmap, jMask); + AssertNotNullL( hEikImage, strSetNewBitmaps); + + + //================================================= + + hEikImage->SetEmphasis(ETrue); + AssertTrueL( ETrue, strSetEmphasis); + + hEikImage->SetPictureOwnedExternally(ETrue); + AssertTrueL( ETrue, strSetPictureOwnedExternally); + + TBool abool = hEikImage->IsPictureOwnedExternally(); + AssertTrueL( ETrue, strIsPictureOwnedExternally); + + hEikImage->SetBrushStyle(CGraphicsContext::ESolidBrush); + AssertTrueL( ETrue, strSetBrushStyle); + + TPointerEvent pointerEvent; + CleanupStack::PushL( hEikImage ); + hEikImage->HandlePointerEventL( pointerEvent ); + AssertNotNullL( hEikImage,strHandlePointerEventL ); + + CleanupStack::PopAndDestroy(hEikImage ); + hEikImage = NULL; + + //================================================== + + CEikImage* jEikImage = new ( ELeave ) CEikImage(); + CleanupStack::PushL( jEikImage ); + _LIT(KAknResourceFileName, "z:\\resource\\apps\\BCTestImage_Aif.mbm"); + jEikImage->CreatePictureFromFileL(KAknResourceFileName, 0); + AssertTrueL( ETrue,strCreatePictureFromFileL ); + + + jEikImage->MinimumSize(); + AssertTrueL( ETrue, strMinimumSize ); + + CleanupStack::PopAndDestroy(jEikImage); + jEikImage=NULL; + + //================================================== + CEikImage* kEikImage = new ( ELeave ) CEikImage(); + CleanupStack::PushL( kEikImage ); + TResourceReader reader; + CEikonEnv::Static()->CreateResourceReaderLC( reader, R_BCTESTIMAGE_AIMAGE ); + kEikImage->ConstructFromResourceL( reader ); + AssertTrueL( ETrue,strConstructFromResourceL ); + CleanupStack::PopAndDestroy(2, kEikImage); + kEikImage=NULL; + + //================================================== + CBCTestImage_pro* testImagePtr = new (ELeave) CBCTestImage_pro(); + CleanupStack::PushL(testImagePtr); + testImagePtr->testWriteInternalL(); + AssertTrueL( ETrue, strWriteInternalStateL); + CleanupStack::PopAndDestroy(testImagePtr); + testImagePtr=NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimagecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimagecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestimagecontainer.h" + +//#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestImageContainer::CBCTestImageContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestImageContainer::~CBCTestImageContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestImageContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestImageContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestImageContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestImageContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestImageContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestImageContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestImageContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestImageContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestImageContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestImageContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestImageContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimagedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimagedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestImageDocument.h" +#include "BCTestImageAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestImageDocument* CBCTestImageDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestImageDocument* CBCTestImageDocument::NewL( CEikApplication& aApp ) + { + CBCTestImageDocument* self = new( ELeave ) CBCTestImageDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestImageDocument::~CBCTestImageDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestImageDocument::~CBCTestImageDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestImageDocument::CBCTestImageDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestImageDocument::CBCTestImageDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestImageDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestImageDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestImageAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimageview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestimage/src/bctestimageview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,133 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestimage.hrh" +#include +#include "bctestimageview.h" +#include "bctestimagecontainer.h" +#include "bctestutil.h" +#include "bctestimagecase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestImageView* CBCTestImageView::NewL() + { + CBCTestImageView* self = new( ELeave ) CBCTestImageView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestImageView::CBCTestImageView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestImageView::ConstructL() + { + BaseConstructL( R_BCTESTIMAGE_VIEW ); + + iContainer = new( ELeave ) CBCTestImageContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + _LIT(Ktest, "Template test case"); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestImageCase::NewL( iContainer ), + Ktest ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestImageView::~CBCTestImageView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestImageView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestImageView::Id() const + { + return KBCTestImageViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestImageView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestImageView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestImageView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestImageView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestImageView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestImageView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bctestkeylock.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bctestkeylock.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: project specification file for the BCTestKeyLock. +* +*/ + + +TARGET BCTestKeyLock.exe +TARGETTYPE exe +UID 0x0 0x20004764 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestKeyLock.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestkeylockapp.cpp +SOURCE bctestkeylockdocument.cpp +SOURCE bctestkeylockappui.cpp +SOURCE bctestkeylockview.cpp +SOURCE bctestkeylockcontainer.cpp +SOURCE bctestkeylockcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +START RESOURCE ../group/bctestkeylock_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bctestkeylock.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bctestkeylock.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,203 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestKeyLock.hrh" +#include "BCTestKeyLock.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestKeyLock_BMP_FNAME APP_BITMAP_DIR"\\BCTestKeyLock.mbm" + + +// MACROS + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestKeyLock"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestKeyLock_menubar_main; + cba = r_bctestKeyLock_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestKeyLock_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestKeyLock_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestKeyLock_view +// AVKON_VIEW for CBCTestKeyLockView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestKeyLock_view + { + menubar = r_bctestKeyLock_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestKeyLock_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestKeyLock_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestKeyLock_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestKeyLock_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestKeyLock_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestKeyLock_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestKeyLock_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestKeyLock_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestKeyLock_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestKeyLock_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestKeyLock_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestKeyLock_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestKeyLock_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestKeyLockCbaCmdNext; + txt = qtn_bctestKeyLock_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bctestkeylock_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bctestkeylock_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004764 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestKeyLock"; + localisable_resource_file = "\\resource\\apps\\BCTestKeyLock"; + localisable_resource_id = R_BCTESTKEYLOCK_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestkeylock.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylock.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylock.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestKeyLock resource header file +* +*/ + + +#ifndef BCTESTKeyLock_HRH +#define BCTESTKeyLock_HRH + +enum TBCTestKeyLockMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestKeyLockCba + { + EBCTestKeyLockCbaCmdNext = 0x6300 + }; + +#endif // BCTESTKeyLock_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylock.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylock.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestKeyLock localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTKeyLock" +#define qtn_apps_tavl_grid "BCTESTKeyLock" + +// MenuBar +#define qtn_bctestKeyLock_menubar "Option" +#define qtn_bctestKeyLock_cba_next "Next" +#define qtn_bctestKeyLock_autotest "Autotest" +#define qtn_bctestKeyLock_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestKeyLock_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestKeyLockAPP_H +#define BCTestKeyLockAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestKeyLock = { 0x20004764 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestKeyLockApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestKeyLockApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestKeyLockDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestKeyLock ). + * @return The value of KUidBCTestKeyLock. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for KeyLock control API. +* +*/ + + +#ifndef C_BCTESTKeyLockAPPUI_H +#define C_BCTESTKeyLockAPPUI_H + +#include + +class CBCTestKeyLockView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestKeyLockAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestKeyLockAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestKeyLockAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestKeyLockView* iView; + }; + +#endif // C_BCTESTKeyLockAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,105 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_KeyLockCASE_H +#define BCTEST_KeyLockCASE_H + +#include "bctestcase.h" +#include //KeyLock API + +class CBCTestKeyLockContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestKeyLockCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestKeyLockCase* NewL( CBCTestKeyLockContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestKeyLockCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestKeyLockCase( CBCTestKeyLockContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestKeyLockContainer* iContainer; + + }; + +#endif // BCTEST_KeyLockCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_KeyLockCONTAINER_H +#define BCTEST_KeyLockCONTAINER_H + +#include +#include //KeyLock API +/** +* container class +*/ +class CBCTestKeyLockContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestKeyLockContainer(); + + /** + * Destructor + */ + virtual ~CBCTestKeyLockContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_KeyLockCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTKeyLockDOCUMENT_H +#define C_BCTESTKeyLockDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestKeyLockDocument application class. +*/ +class CBCTestKeyLockDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestKeyLockDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestKeyLockDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestKeyLockDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestKeyLockAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTKeyLockDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/inc/bctestkeylockview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for KeyLock control API. +* +*/ + + +#ifndef BCTEST_KeyLock_VIEW_H +#define BCTEST_KeyLock_VIEW_H + +#include + +const TUid KBCTestKeyLockViewId = { 1 }; + +class CBCTestKeyLockContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestKeyLockView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestKeyLockView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestKeyLockView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestKeyLockView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestKeyLockContainer* iContainer; + + }; + +#endif // BCTEST_KeyLock_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/sis/bctestkeylock.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/sis/bctestkeylock.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestkeylock.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestkeylock"},(0x20004764),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestkeylock.exe"- +"!:\sys\bin\bctestkeylock.exe" + +"\epoc32\data\z\resource\apps\bctestkeylock.RSC"- +"!:\resource\apps\bctestkeylock.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestkeylock_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestkeylock_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon KeyLock test app +* +*/ + + +// INCLUDE FILES +#include "BCTestKeyLockApp.h" +#include "BCTestKeyLockDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestKeyLockApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestKeyLockApp::AppDllUid() const + { + return KUidBCTestKeyLock; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestKeyLockApp::CreateDocumentL() +// Creates CBCTestKeyLockDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestKeyLockApp::CreateDocumentL() + { + return CBCTestKeyLockDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestKeyLockApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestKeyLockApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for KeyLock control api(s) +* +*/ + +#include +#include + +#include "bctestKeyLockAppUi.h" +#include "bctestKeyLock.hrh" +#include "bctestKeyLockview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestKeyLockAppUi::CBCTestKeyLockAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestKeyLockView* view = CBCTestKeyLockView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestKeyLockAppUi::~CBCTestKeyLockAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestKeyLockAppUi::~CBCTestKeyLockAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestKeyLockAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,213 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include "bctestKeyLockcase.h" +#include "bctestKeyLockcontainer.h" +#include "bctestKeyLock.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockCase* CBCTestKeyLockCase::NewL( + CBCTestKeyLockContainer* aContainer ) + { + CBCTestKeyLockCase* self = new( ELeave ) CBCTestKeyLockCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockCase::CBCTestKeyLockCase( + CBCTestKeyLockContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockCase::~CBCTestKeyLockCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockCase::BuildScriptL() + { + // Add script as your need. + #ifdef __WINSCW__ + { + AddTestL( LeftCBA, KeyOK, TEND ); + } + #else + { + AddTestL( LeftCBA, KeyOK, TEND ); + AddTestL( LeftCBA, TEND ); + AddTestL( Key1, TEND ); + AddTestL( Key2, TEND ); + AddTestL( Key3, TEND ); + AddTestL( Key4, TEND ); + AddTestL( Key5, TEND ); + AddTestL( LeftCBA, TEND ); + AddTestL( RightCBA, TEND ); + AddTestL( RightCBA, TEND ); + AddTestL( RightCBA, TEND ); + } + #endif + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunction(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockCase::TestFunction() + { + + _LIT( strConnect,"Class RAknKeyLock Function Connect tested" ); + _LIT( strIsKeyLockEnabled, "Class RAknKeyLock Function IsKeyLockEnabled tested" ); + _LIT( strEnableKeyLock, "Class RAknKeyLock Function EnableKeyLock tested" ); + _LIT( strDisableKeyLock, "Class RAknKeyLock Function DisableKeyLock tested" ); + _LIT( strEnableWithoutNote, "Class RAknKeyLock Function EnableWithoutNote tested" ); + _LIT( strDisableWithoutNote, "Class RAknKeyLock Function DisableWithoutNote tested" ); + _LIT( strEnableAutoLockEmulation, "Class RAknKeyLock Function EnableAutoLockEmulation tested" ); + _LIT( strEnableSoftNotifications, "Class RAknKeyLock Function EnableSoftNotifications tested" ); + _LIT( strCancelAllNotifications, "Class RAknKeyLock Function CancelAllNotifications tested" ); + _LIT( strOfferKeyLock, "Class RAknKeyLock Function OfferKeyLock tested" ); + _LIT( strClose, "Class RAknKeyLock Function Close tested" ); + + RAknKeyLock iKeyLock; + TInt tempResult = iKeyLock.Connect(); + tempResult = tempResult; + AssertTrueL( ETrue, strConnect ); + + TBool isKeyLocked = iKeyLock.IsKeyLockEnabled(); + AssertTrueL( ETrue, strIsKeyLockEnabled ); + + iKeyLock.EnableKeyLock(); + AssertTrueL( ETrue, strEnableKeyLock ); + + iKeyLock.DisableKeyLock(); + AssertTrueL( ETrue, strDisableKeyLock ); + + iKeyLock.EnableWithoutNote(); + AssertTrueL( ETrue, strEnableWithoutNote ); + + iKeyLock.DisableWithoutNote(); + AssertTrueL( ETrue, strDisableWithoutNote ); + + iKeyLock.EnableAutoLockEmulation(); + AssertTrueL( ETrue, strEnableAutoLockEmulation ); + + iKeyLock.EnableSoftNotifications( ETrue ); + AssertTrueL( ETrue, strEnableSoftNotifications ); + + iKeyLock.CancelAllNotifications(); + AssertTrueL( ETrue, strCancelAllNotifications ); + + iKeyLock.OfferKeyLock(); + AssertTrueL( ETrue, strOfferKeyLock ); + + iKeyLock.DisableKeyLock(); + isKeyLocked = iKeyLock.IsKeyLockEnabled(); + + iKeyLock.Close(); + AssertTrueL( ETrue, strClose ); + + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,123 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestKeyLockcontainer.h" +#include "bctestKeyLock.hrh" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockContainer::CBCTestKeyLockContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockContainer::~CBCTestKeyLockContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestKeyLockContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestKeyLockContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestKeyLockContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestKeyLockContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } +// ---------------------------------------------------------------------------- +// void CAknAtSoftkeyContainer::TestKeylock +// Test Keylock API +// ---------------------------------------------------------------------------- +// + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon KeyLock test application +* +*/ + + +// INCLUDE FILES +#include "BCTestKeyLockDocument.h" +#include "BCTestKeyLockAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestKeyLockDocument* CBCTestKeyLockDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestKeyLockDocument* CBCTestKeyLockDocument::NewL( CEikApplication& aApp ) + { + CBCTestKeyLockDocument* self = new( ELeave ) CBCTestKeyLockDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestKeyLockDocument::~CBCTestKeyLockDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestKeyLockDocument::~CBCTestKeyLockDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestKeyLockDocument::CBCTestKeyLockDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestKeyLockDocument::CBCTestKeyLockDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestKeyLockDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestKeyLockDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestKeyLockAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestkeylock/src/bctestkeylockview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestKeyLock.hrh" +#include +#include "bctestKeyLockview.h" +#include "bctestKeyLockcontainer.h" +#include "bctestutil.h" +#include "bctestKeyLockcase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockView* CBCTestKeyLockView::NewL() + { + CBCTestKeyLockView* self = new( ELeave ) CBCTestKeyLockView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockView::CBCTestKeyLockView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockView::ConstructL() + { + BaseConstructL( R_BCTESTKEYLOCK_VIEW ); + + iContainer = new( ELeave ) CBCTestKeyLockContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestKeyLockCase::NewL( iContainer ), + _L("KeyLock test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestKeyLockView::~CBCTestKeyLockView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestKeyLockView::Id() const + { + return KBCTestKeyLockViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestKeyLockView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestKeyLockView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bctestlabelinfoindicators.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bctestlabelinfoindicators.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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: project specification file for the bctestlabelinfoindicators +* +*/ + + +TARGET bctestlabelinfoindicators.exe +TARGETTYPE exe +UID 0x0 0x2000475B + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestlabelinfoindicators.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG sc + +SOURCEPATH ../src +SOURCE bctestlabelinfoindicatorsapp.cpp +SOURCE bctestlabelinfoindicatorsdocument.cpp +SOURCE bctestlabelinfoindicatorsappui.cpp +SOURCE bctestlabelinfoindicatorsview.cpp +SOURCE bctestlabelinfoindicatorscontainer.cpp +SOURCE bctestlabelinfoindicatorscase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY AknIcon.lib +LIBRARY AknSkins.lib +LIBRARY avkon.lib +LIBRARY apparc.lib +LIBRARY aknnotify.lib +LIBRARY apgrfx.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY cone.lib +LIBRARY egul.lib +LIBRARY euser.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY eikctl.lib +LIBRARY eikdlg.lib +LIBRARY eikcdlg.lib +LIBRARY estor.lib +LIBRARY aknpictograph.lib + +START RESOURCE ../group/bctestlabelinfoindicators_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bctestlabelinfoindicators.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bctestlabelinfoindicators.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,348 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME LIIN + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestlabelinfoindicators.hrh" +#include "bctestlabelinfoindicators.loc" + +// RESOURCE DEFINITIONS +//---------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//---------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//---------------------------------------------------------------------------- +// +// TBUF16 +// +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctestmisccontrol_buf; + } + +//---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestlabelinfoindicators_menubar; + cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; + } + +// --------------------------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestlabelinfoindicators_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_view +// +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestlabelinfoindicators_view + { + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_menubar +// MenuBar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestlabelinfoindicators_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestlabelinfoindicators_menu; + txt = qtn_bctestlabelinfoindicators_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_menu +// Menu pane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlabelinfoindicators_menu + { + items = + { + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsFilenameLabel; + cascade = r_bctestlabelinfoindicators_menu_filename_label_cascade; + txt = qtn_bctestlabelinfoindicators_menu_filenamelabel; + }, + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsLabel; + cascade = r_bctestlabelinfoindicators_menu_label_cascade; + txt = qtn_bctestlabelinfoindicators_menu_label; + }, + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsIndicators; + cascade = r_bctestlabelinfoindicators_menu_indicators_cascade; + txt = qtn_bctestlabelinfoindicators_menu_indicators; + }, + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsInfoPopupNote; + cascade = r_bctestlabelinfoindicators_menu_infopopupnote_cascade; + txt = qtn_bctestlabelinfoindicators_menu_infopopupnote; + }, + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsCmdAutotest; + txt = qtn_bctestlabelinfoindicators_menu_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestlabelinfoindicators_menu_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_menu_filename_label_cascade +// Sub menu-pane of "Eik filename label" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlabelinfoindicators_menu_filename_label_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsCmdOutline01; + txt = qtn_bctestlabelinfoindicators_menu_out01; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_menu_label_cascade +// Sub menu-pane of "Eik label" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlabelinfoindicators_menu_label_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsCmdOutline02; + txt = qtn_bctestlabelinfoindicators_menu_out02; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_menu_indicators_cascade +// Sub menu-pane of "Indicators" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlabelinfoindicators_menu_indicators_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsCmdOutline03; + txt = qtn_bctestlabelinfoindicators_menu_out03; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_menu_infopopupnote_cascade +// Sub menu-pane of "Info popup note" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlabelinfoindicators_menu_infopopupnote_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestLabelInfoIndicatorsCmdOutline04; + txt = qtn_bctestlabelinfoindicators_menu_out04; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_label +// label +// +//---------------------------------------------------------------------------- +// +RESOURCE LABEL r_bctestlabelinfoindicators_label + { + horiz_align = EEikLabelAlignHCenter; + vert_align = EEikLabelAlignVTop; + standard_font = EEikLabelFontNormal; + reserve_length = 20; + txt = qtn_bctestlabelinfoindicators_label; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_indicator_pane +// indicator_pane +// +//---------------------------------------------------------------------------- +// +RESOURCE INDICATOR_PANE r_bctestlabelinfoindicators_indicator_pane + { + indicators = + { + INDICATOR + { + uid = EAknIndicatorIrActive; + npriority = 10; + wpriority = 20; + bmpfile = AVKON_BITMAP_FILE; + states = INDICATOR_STATE + { + id = EAknIndicatorStateAnimate; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_ir_blank; + narrowbmpid = EMbmAvkonQgn_stat_ir_uni_blank; + }; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_ir; + narrowbmpid = EMbmAvkonQgn_stat_ir_uni; + }; + }; + }, + INDICATOR + { + uid = EAknIndicatorEnvelope; + npriority = 20; + wpriority = 30; + bmpfile = AVKON_BITMAP_FILE; + states = INDICATOR_STATE + { + id = EAknIndicatorStateAnimate; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_message_blank; + narrowbmpid = EMbmAvkonQgn_stat_message_uni_blank; + }; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_message; + narrowbmpid = EMbmAvkonQgn_stat_message_uni; + }; + }; + }, + INDICATOR + { + uid = EAknIndicatorMissedCalls; + npriority = 20; + wpriority = 30; + states = INDICATOR_STATE + { + id = EAknIndicatorStateOn; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_missed_calls_uni; + narrowbmpid = EMbmAvkonQgn_stat_missed_calls_uni; + }; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlabelinfoindicators_indicator +// indicator +// +//---------------------------------------------------------------------------- +// +RESOURCE INDICATOR r_bctestlabelinfoindicators_indicator + { + npriority = 0xffff; + wpriority = 0xffff; + } + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bctestlabelinfoindicators_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bctestlabelinfoindicators_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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 "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 bctestlabelinfoindicators +* +*/ + + +#include +#include + +#include "bctestlabelinfoindicators.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475B // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_apps_name; + localisable_resource_file = qtn_localization_filename; + localisable_resource_id = + R_BCTESTLABELINFOINDICATORS_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestlabelinfoindicators.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicators.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicators.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ +/* +* 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 "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: bctestlabelinfoindicators resource header file +* +*/ + + +#ifndef BCTESTLABELINFOINDICATORS_HRH +#define BCTESTLABELINFOINDICATORS_HRH + +enum TBCTestLabelInfoIndicatorsMenuGroupCommands + { + EBCTestLabelInfoIndicatorsFilenameLabel = 0x6000, + EBCTestLabelInfoIndicatorsLabel, + EBCTestLabelInfoIndicatorsInfoPopupNote, + EBCTestLabelInfoIndicatorsIndicators, + EBCTestLabelInfoIndicatorsCmdAutotest + }; + +enum TBCTestLabelInfoIndicatorsMenuCommands + { + EBCTestLabelInfoIndicatorsCmdEmptyOutline = 0x6020, + EBCTestLabelInfoIndicatorsCmdOutline01, + EBCTestLabelInfoIndicatorsCmdOutline02, + EBCTestLabelInfoIndicatorsCmdOutline03, + EBCTestLabelInfoIndicatorsCmdOutline04, + EBCTestLabelInfoIndicatorsCmdMaxOutline + }; + +#endif // BCTESTLABELINFOINDICATORS_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicators.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicators.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,57 @@ +/* +* 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 "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: bctestlabelinfoindicators localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTLABELINFOINDICATORS" +#define qtn_apps_tavl_grid "BCTESTLABELINFOINDICATORS" + +// MenuBar +#define qtn_bctestlabelinfoindicators_menubar "Options" +#define qtn_bctestlabelinfoindicators_menu_filenamelabel "Eik filename label" +#define qtn_bctestlabelinfoindicators_menu_label "Eik label" +#define qtn_bctestlabelinfoindicators_menu_indicators "Indicators" +#define qtn_bctestlabelinfoindicators_menu_infopopupnote "Info popup note" +#define qtn_bctestlabelinfoindicators_menu_autotest "Autotest" +#define qtn_bctestlabelinfoindicators_menu_exit "Exit" + +// Sub menubar of "Eik filename label" menu +#define qtn_bctestlabelinfoindicators_menu_out01 "OUTLINE01" + +// Sub menubar of "Eik label" menu +#define qtn_bctestlabelinfoindicators_menu_out02 "OUTLINE02" + +// Sub menubar of "Info popup note" menu +#define qtn_bctestlabelinfoindicators_menu_out03 "OUTLINE03" + +// Sub menubar of "Indicators" menu +#define qtn_bctestlabelinfoindicators_menu_out04 "OUTLINE04" + +// Eik Label +#define qtn_bctestlabelinfoindicators_label "This is eik label" + +// registraton string +#define qtn_apps_name "bctestlabelinfoindicators" +#define qtn_localization_filename \ + "\\resource\\apps\\bctestlabelinfoindicators" +#define qtn_group_name "BCTest" + +#define qtn_bctestmisccontrol_buf "LabelInfoIndi" + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTLABELINFOINDICATORSAPP_H +#define C_CBCTESTLABELINFOINDICATORSAPP_H + +#include + +// UID of the application. +const TUid KUidBCTestLabelInfoIndicators = { 0x2000475B }; + +/** + * CBCTestLabelInfoIndicatorsApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestLabelInfoIndicatorsApp : public CAknApplication + { +private: + +// From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestLabelInfoIndicatorsDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestLabelInfoIndicators ). + * @return The value of KUidBCTestLabelInfoIndicators. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESTLABELINFOINDICATORSAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Declares test bc for labelinfoindicators appui. +* +*/ + + +#ifndef C_CBCTESTLABELINFOINDICATORSAPPUI_H +#define C_CBCTESTLABELINFOINDICATORSAPPUI_H + +#include + +class CBCTestLabelInfoIndicatorsView; + +/** + * Application UI class + */ +class CBCTestLabelInfoIndicatorsAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestLabelInfoIndicatorsAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestLabelInfoIndicatorsAppUi(); + +private: + +// From CEikAppUi + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointer to the view. + * own + */ + CBCTestLabelInfoIndicatorsView* iView; + + }; + +#endif // C_CBCTESTLABELINFOINDICATORSAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorscase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorscase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,114 @@ +/* +* 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 "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: Declares test bc for labelinfoindicators testcase. +* +*/ + + +#ifndef C_CBCTESTLABELINFOINDICATORSCASE_H +#define C_CBCTESTLABELINFOINDICATORSCASE_H + +#include "bctestcase.h" + +class CBCTestLabelInfoIndicatorsContainer; +class CCoeControl; + +/** + * test case for various labelinfoindicators classes + */ +class CBCTestLabelInfoIndicatorsCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestLabelInfoIndicatorsCase* NewL( + CBCTestLabelInfoIndicatorsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestLabelInfoIndicatorsCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestFunctionsForFileNameLabelL function + */ + void TestFunctionsForFileNameLabelL(); + + /** + * TestFunctionsForEikLabelL function + */ + void TestFunctionsForEikLabelL(); + + /** + * TestFunctionsForIndicatorsL function + */ + void TestFunctionsForIndicatorsL(); + + /** + * TestFunctionsForIndicatorsOverLoadL function + */ + void TestFunctionsForIndicatorsOverLoadL(); + + /** + * TestFunctionsForInfoPopupNoteL function + */ + void TestFunctionsForInfoPopupNoteL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestLabelInfoIndicatorsCase( + CBCTestLabelInfoIndicatorsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestLabelInfoIndicatorsContainer* iContainer; + + /** + * Pointer to CEikonEnv. + * not own + */ + CEikonEnv* iEikEnv; + + }; + +#endif // C_CBCTESTLABELINFOINDICATORSCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorscontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorscontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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: Declares test bc for labelinfoindicators container. +* +*/ + + +#ifndef C_CBCTESTLABELINFOINDICATORSCONTAINER_H +#define C_CBCTESTLABELINFOINDICATORSCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestLabelInfoIndicatorsContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestLabelInfoIndicatorsContainer(); + + /** + * Destructor + */ + virtual ~CBCTestLabelInfoIndicatorsContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * get iCoeEnv + */ + CCoeEnv* GetCoeEnv(); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: + +// from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTLABELINFOINDICATORSCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Declares test bc for labelinfoindicators document. +* +*/ + + +#ifndef C_CBCTESTLABELINFOINDICATORSDOCUMENT_H +#define C_CBCTESTLABELINFOINDICATORSDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestLabelInfoIndicatorsDocument application class. +*/ +class CBCTestLabelInfoIndicatorsDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestLabelInfoIndicatorsDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestLabelInfoIndicatorsDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestLabelInfoIndicatorsDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestLabelInfoIndicatorsAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + +}; + +#endif // C_CBCTESTLABELINFOINDICATORSDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestlabelinfoindicatorsview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,102 @@ +/* +* 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 "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: Declares test bc for labelinfoindicators view. +* +*/ + + +#ifndef C_CBCTESTLABELINFOINDICATORSVIEW_H +#define C_CBCTESTLABELINFOINDICATORSVIEW_H + +#include + +class CBCTestLabelInfoIndicatorsContainer; +class CBCTestUtil; + +const TUid KBCTestLabelInfoIndicatorsViewId = { 1 }; + +/** + * Application View class + */ +class CBCTestLabelInfoIndicatorsView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestLabelInfoIndicatorsView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestLabelInfoIndicatorsView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: + +// from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestLabelInfoIndicatorsView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestLabelInfoIndicatorsContainer* iContainer; + + }; + +#endif // C_CBCTESTLABELINFOINDICATORSVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubaknindicator.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubaknindicator.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: Invoke akn indicator's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBAKNINDICATOR_H +#define C_CBCTESTSUBAKNINDICATOR_H + +#include + +/** + * Invoke akn indicator's protected APIs + */ +class CBCTestSubAknIndicator: public CAknIndicatorContainer + { + + friend class CBCTestLabelInfoIndicatorsCase; + + }; + +#endif // C_CBCTESTSUBAKNINDICATOR_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubakninfopopupnoteobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubakninfopopupnoteobserver.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,45 @@ +/* +* 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 "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: MAknInfoPopupNoteObserver's sub class +* +*/ + + +#ifndef T_TBCTESTSUBAKNINFOPOPUPNOTEOBSERVER_H +#define T_TBCTESTSUBAKNINFOPOPUPNOTEOBSERVER_H + +#include + +/** + * MAknInfoPopupNoteObserver's sub class + */ +class TBCTestSubAknInfoPopupNoteObserver : public MAknInfoPopupNoteObserver + { +public: + +// from MAknInfoPopupNoteObserver + + /** + * Handles events reported from info popup note. + * @param aController The controller that controls the note, from + * where the event originates. + * @param aEvent The event. + */ + void HandleInfoPopupNoteEvent( + CAknInfoPopupNoteController* /*aController*/, + MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent /*aEvent*/ ){} + + }; + +#endif // T_TBCTESTSUBAKNINFOPOPUPNOTEOBSERVER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubaknpictographanimatorcallback.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubaknpictographanimatorcallback.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,49 @@ +/* +* 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 "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: MAknPictographAnimatorCallBack's sub class +* +*/ + + +#ifndef T_TBCTESTSUBAKNPICTOGRAPHANIMATORCALLBACK_H +#define T_TBCTESTSUBAKNPICTOGRAPHANIMATORCALLBACK_H + +#include + +/** + * MAknPictographAnimatorCallBack's sub class + */ +class TBCTestSubAknPictographAnimatorCallBack + : public MAknPictographAnimatorCallBack + { +public: + +// from MAknPictographAnimatorCallBack + + /** + * This function is called when a redraw is needed for drawing + * new frames of animated pictographs. It should + * + * 1) Draw or clear the background of pictographs + * 2) If the pictographs are amongst text, draw the text + * 3) Draw the pictographs using MAknPictographDrawer interface + * + * In many cases, it is sufficient to implement this simply by + * calling CCoeControl::DrawNow for the appropriate control. + */ + void DrawPictographArea(){} + + }; + +#endif // T_TBCTESTSUBAKNPICTOGRAPHANIMATORCALLBACK_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubeikfilenamelabel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubeikfilenamelabel.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: Invoke eik filename label's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKFILENAMELABEL_H +#define C_CBCTESTSUBEIKFILENAMELABEL_H + +#include + +/** + * Invoke eik filename label's protected APIs + */ +class CBCTestSubEikFileNameLabel: public CEikFileNameLabel + { + + friend class CBCTestLabelInfoIndicatorsCase; + + }; + +#endif // C_CBCTESTSUBEIKFILENAMELABEL_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubeiklabel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/inc/bctestsubeiklabel.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: Invoke eik label's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKLABEL_H +#define C_CBCTESTSUBEIKLABEL_H + +#include + +/** + * Invoke eik label's protected APIs + */ +class CBCTestSubEikLabel: public CEikLabel + { + + friend class CBCTestLabelInfoIndicatorsCase; + + }; + +#endif // C_CBCTESTSUBEIKLABEL_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/sis/bctestlabelinfoindicators.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/sis/bctestlabelinfoindicators.pkg Fri Sep 17 09:37:58 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 "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: Package file for project bctestlabelinfoindicators +; + +; Languages +&EN + +; Header +#{"UIFW_bctestlabelinfoindicators"},(0x2000475B),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestlabelinfoindicators.exe"- +"!:\sys\bin\bctestlabelinfoindicators.exe" + +"\epoc32\data\z\resource\apps\bctestlabelinfoindicators.rsc"- +"!:\resource\apps\bctestlabelinfoindicators.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestlabelinfoindicators_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestlabelinfoindicators_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,62 @@ +/* +* 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 "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: Implements main application class. +* +*/ + + +// INCLUDE FILES +#include "bctestlabelinfoindicatorsapp.h" +#include "bctestlabelinfoindicatorsdocument.h" +#include + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestLabelInfoIndicatorsApp::AppDllUid() +// Returns application UID. +// --------------------------------------------------------------------------- +// +TUid CBCTestLabelInfoIndicatorsApp::AppDllUid() const + { + return KUidBCTestLabelInfoIndicators; + } + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestLabelInfoIndicatorsApp::CreateDocumentL() +// Creates CBCTestLabelInfoIndicatorsDocument object. +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestLabelInfoIndicatorsApp::CreateDocumentL() + { + return CBCTestLabelInfoIndicatorsDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestLabelInfoIndicatorsApp. +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestLabelInfoIndicatorsApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication( NewApplication ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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: Implements test bc for labelinfoindicators appui. +* +*/ + +#include +#include + +#include "bctestlabelinfoindicatorsappui.h" +#include "bctestlabelinfoindicators.hrh" +#include "bctestlabelinfoindicatorsview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsAppUi::CBCTestLabelInfoIndicatorsAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestLabelInfoIndicatorsView* view = + CBCTestLabelInfoIndicatorsView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsAppUi::~CBCTestLabelInfoIndicatorsAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsAppUi::~CBCTestLabelInfoIndicatorsAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EEikCmdExit: + case EAknSoftkeyExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorscase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorscase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,736 @@ +/* +* 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 "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: Implements test bc for labelinfoindicators. +* +*/ + + +#include +#include +#include +#include // CEikFileNameLabel +#include // CEikLabel +#include // CEikonEnv +#include // TResourceRead +#include // RBufWriteStream +#include // CAknIndicatorContainer +#include +#include // CAknInfoPopupNoteController +#include // TGulAlignmentValue +#include // KAknsMessageSkinChange +#include // KEikDynamicLayoutVariantSwitch +#include // CAknPictographInterface +#include + +#include "bctestlabelinfoindicatorscase.h" +#include "bctestsubeiklabel.h" +#include "bctestsubaknindicator.h" +#include "bctestsubakninfopopupnoteobserver.h" +#include "bctestsubaknpictographanimatorcallback.h" +#include "bctestsubeikfilenamelabel.h" +#include "bctestlabelinfoindicatorscase.h" +#include "bctestlabelinfoindicatorscontainer.h" +#include "bctestlabelinfoindicators.hrh" +#include "autotestcommands.h" + +// Constant for CEikFileNameLabel +_LIT( KEFNLEikFileNameLabel, "EikFileNameLabel created" ); +_LIT( KEFNLConstructL, "Invoke CEikFileNameLabel's ConstructL()" ); +_LIT( KEFNLGetColorUseListL, + "Invoke CEikFileNameLabel's GetColorUseListL()" ); +_LIT( KEFNLHandlePointerEventL, + "Invoke CEikFileNameLabel's HandlePointerEventL()" ); +_LIT( KEFNLHandleResourceChange, + "Invoke CEikFileNameLabel's HandleResourceChange()" ); +_LIT( KEFNLMinimumSize, "Invoke CEikFileNameLabel's MinimumSize()" ); +_LIT( KEFNLUpdateL, "Invoke CEikFileNameLabel's UpdateL()" ); +_LIT( KEFNLDraw, "Invoke CEikFileNameLabel's Draw()" ); + +// Constant for CEikLabel +_LIT( KELEikLabel, "EikLabel created" ); +_LIT( KELSetFont, "Invoke CEikFileNameLabel's SetFont()" ); +_LIT( KELSetTextL, "Invoke CEikFileNameLabel's SetTextL()" ); +_LIT( KELText, "This is eik label" ); +_LIT( KELCalcMinimumSize, + "Invoke CEikFileNameLabel's CalcMinimumSize()" ); +_LIT( KELEnablePictographsL, + "Invoke CEikFileNameLabel's EnablePictographsL()" ); +_LIT( KELBufferReserveLength, + "Invoke CEikFileNameLabel's BufferReserveLength()" ); +_LIT( KELCropText, "Invoke CEikFileNameLabel's CropText()" ); +_LIT( KELDisablePictographs, + "Invoke CEikFileNameLabel's DisablePictographs()" ); +_LIT( KELGetColorUseListL, + "Invoke CEikLabel's GetColorUseListL()" ); +_LIT( KELHandlePointerEventL, + "Invoke CEikLabel's HandlePointerEventL()" ); +_LIT( KELHandleResourceChange, + "Invoke CEikLabel's HandleResourceChange()" ); +_LIT( KELMinimumSize, "Invoke CEikLabel's MinimumSize()" ); +_LIT( KELPixelGapBetweenLines, + "Invoke CEikLabel's PixelGapBetweenLines()" ); +_LIT( KELSetPixelGapBetweenLines, + "Invoke CEikLabel's SetPixelGapBetweenLines()" ); +_LIT( KELLogicalToVisualConversionUsed, + "Invoke CEikLabel's LogicalToVisualConversionUsed()" ); +_LIT( KELSetBrushStyle, + "Invoke CEikLabel's SetBrushStyle()" ); +_LIT( KELSetBrushStyleFromContext, + "Invoke CEikLabel's SetBrushStyleFromContext()" ); +_LIT( KELSetBufferReserveLengthL, + "Invoke CEikLabel's SetBufferReserveLengthL()" ); +_LIT( KELSetEmphasis, "Invoke CEikLabel's SetEmphasis()" ); +_LIT( KELSetLabelAlignment, + "Invoke CEikLabel's SetLabelAlignment()" ); +_LIT( KELSetStrikethrough, + "Invoke CEikLabel's SetStrikethrough()" ); +_LIT( KELSetUnderlining, + "Invoke CEikLabel's SetUnderlining()" ); +_LIT( KELUseLogicalToVisualConversion, + "Invoke CEikLabel's UseLogicalToVisualConversion()" ); +_LIT( KELConstructFromResourceL, + "Invoke CEikLabel's ConstructFromResourceL()" ); +_LIT( KELWriteInternalStateL, + "Invoke CEikLabel's WriteInternalStateL()" ); +_LIT( KELDraw, "Invoke CEikLabel's Draw()" ); + +// Constant for CAknIndicatorContainer +_LIT( KAICAknIndicatorContainer, "CAknIndicatorContainer created" ); +_LIT( KAICConstruct, + "Invoke CAknIndicatorContainer's ConstructL()" ); +_LIT( KAICSetIncallBubbleFlags, + "Invoke CAknIndicatorContainer's SetIncallBubbleFlags()" ); +_LIT( KAICAknIndicatorContainerOver, + "CAknIndicatorContainer created again" ); +_LIT( KAICConstructFromResourceL, + "Invoke CAknIndicatorContainer's ConstructFromResourceL()" ); +_LIT( KAICHandlePointerEventL, + "Invoke CAknIndicatorContainer's HandlePointerEventL()" ); +_LIT( KAICHandleStatusPaneSizeChange, + "Invoke CAknIndicatorContainer's HandleStatusPaneSizeChange()" ); +_LIT( KAICIndicatorContext, + "Invoke CAknIndicatorContainer's IndicatorContext()" ); +_LIT( KAICSetIndicatorState, + "Invoke CAknIndicatorContainer's SetIndicatorState()" ); +_LIT( KAICIndicatorState, + "Invoke CAknIndicatorContainer's IndicatorState()" ); +_LIT( KAICSetIncallBubbleAllowedInIdle, + "Invoke CAknIndicatorContainer's SetIncallBubbleAllowedInIdle()" ); +_LIT( KAICSetIncallBubbleAllowedInUsual, + "Invoke CAknIndicatorContainer's SetIncallBubbleAllowedInUsual()" ); +_LIT( KAICSetIndicatorValue, + "Invoke CAknIndicatorContainer's SetIndicatorValue()" ); +_LIT( KAICString, "This is indicator" ); +_LIT( KAICSetIndicatorValueL, + "Invoke CAknIndicatorContainer's SetIndicatorValueL()" ); +_LIT( KAICSetIndicatorObserver, + "Invoke CAknIndicatorContainer's SetIndicatorObserver()" ); +_LIT( KAICCountComponentControls, + "Invoke CAknIndicatorContainer's CountComponentControls()" ); +_LIT( KAICHandleResourceChange, + "Invoke CAknIndicatorContainer's HandleResourceChange()" ); +_LIT( KAICPositionChanged, + "Invoke CAknIndicatorContainer's PositionChanged()" ); +_LIT( KAICSizeChanged, + "Invoke CAknIndicatorContainer's SizeChanged()" ); + +// Constant for CAknInfoPopupNoteController +_LIT( KAIPNCCAknInfoPopupNoteController, + "CAknInfoPopupNoteController created" ); +_LIT( KAIPNCText, "This is infopopupnote" ); +_LIT( KAIPNCSetTextL, "Invoke CAknIndicatorContainer's SetTextL()" ); +_LIT( KAIPNCShowInfoPopupNote, + "Invoke CAknIndicatorContainer's ShowInfoPopupNote()" ); +_LIT( KAIPNCHideInfoPopupNote, + "Invoke CAknIndicatorContainer's HideInfoPopupNote()" ); +_LIT( KAIPNCRestoreDefaultPosition, + "Invoke CAknIndicatorContainer's RestoreDefaultPosition()" ); +_LIT( KAIPNCSetPositionAndAlignment, + "Invoke CAknIndicatorContainer's SetPositionAndAlignment()" ); +_LIT( KAIPNCSetPositionByHighlight, + "Invoke CAknIndicatorContainer's SetPositionByHighlight()" ); +_LIT( KAIPNCSetTooltipModeL, + "Invoke CAknIndicatorContainer's SetTooltipModeL()" ); +_LIT( KAIPNCSetTimeDelayBeforeShow, + "Invoke CAknIndicatorContainer's SetTimeDelayBeforeShow()" ); +_LIT( KAIPNCSetTimePopupInView, + "Invoke CAknIndicatorContainer's SetTimePopupInView()" ); +_LIT( KAIPNCAddObserverL, + "Invoke CAknIndicatorContainer's AddObserverL()" ); +_LIT( KAIPNCRemoveObserver, + "Invoke CAknIndicatorContainer's RemoveObserver()" ); + +const TInt KZero = 0; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KThree = 3; +const TInt KFour = 4; +const TInt KFive = 5; +const TInt KTen = 10; +const TInt KFifty = 50; +const TInt KTwoHundred = 200; +const TInt KTenThousand = 10000; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsCase* CBCTestLabelInfoIndicatorsCase::NewL( + CBCTestLabelInfoIndicatorsContainer* aContainer ) + { + CBCTestLabelInfoIndicatorsCase* self = new( ELeave ) + CBCTestLabelInfoIndicatorsCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsCase::CBCTestLabelInfoIndicatorsCase( + CBCTestLabelInfoIndicatorsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsCase::~CBCTestLabelInfoIndicatorsCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::ConstructL() + { + iEikEnv = static_cast ( iContainer->GetCoeEnv() ); + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline1 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + KeyOK, + KeyOK, + + //outline2 + LeftCBA, + Down, + KeyOK, + KeyOK, + + //outline3 + LeftCBA, + REP( Down, KTwo ), + KeyOK, + KeyOK, + + //outline4 + LeftCBA, + REP( Down, KThree ), + KeyOK, + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestLabelInfoIndicatorsCmdOutline01 ) + || ( aCmd > EBCTestLabelInfoIndicatorsCmdOutline04 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestLabelInfoIndicatorsCmdOutline01: + TestFunctionsForFileNameLabelL(); + break; + case EBCTestLabelInfoIndicatorsCmdOutline02: + TestFunctionsForEikLabelL(); + break; + case EBCTestLabelInfoIndicatorsCmdOutline03: + TestFunctionsForIndicatorsL(); + break; + case EBCTestLabelInfoIndicatorsCmdOutline04: + TestFunctionsForInfoPopupNoteL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::TestFunctionsForFileNameLabelL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::TestFunctionsForFileNameLabelL() + { + CEikFileNameLabel* filenameLabel = new( ELeave ) CEikFileNameLabel; + CleanupStack::PushL( filenameLabel ); + AssertNotNullL( filenameLabel, KEFNLEikFileNameLabel ); + + // Invoke CEikFileNameLabel's ConstructL() + filenameLabel->ConstructL(); + AssertTrueL( ETrue, KEFNLConstructL ); + + // Invoke CEikFileNameLabel's GetColorUseListL() + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KFour ); + CleanupStack::PushL( colorUseList ); + filenameLabel->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KEFNLGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + // Invoke CEikFileNameLabel's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + filenameLabel->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KEFNLHandlePointerEventL ); + + // Invoke CEikFileNameLabel's HandleResourceChange() + filenameLabel->HandleResourceChange( KAknsMessageSkinChange ); + filenameLabel->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + AssertTrueL( ETrue, KEFNLHandleResourceChange ); + + // Invoke CEikFileNameLabel's MinimumSize() + filenameLabel->MinimumSize(); + AssertTrueL( ETrue, KEFNLMinimumSize ); + + // Invoke CEikFileNameLabel's UpdateL() + filenameLabel->UpdateL(); + AssertTrueL( ETrue, KEFNLUpdateL ); + + // Invoke CEikFileNameLabel's Draw() + CBCTestSubEikFileNameLabel* subFilenamelabel = + static_cast ( filenameLabel ); + subFilenamelabel->DrawNow(); + AssertTrueL( ETrue, KEFNLDraw ); + + CleanupStack::PopAndDestroy( filenameLabel ); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::TestFunctionsForEikLabelL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::TestFunctionsForEikLabelL() + { + CEikLabel* eikLabel = new(ELeave) CEikLabel; + CleanupStack::PushL( eikLabel ); + AssertNotNullL( eikLabel, KELEikLabel ); + + // Invoke CEikLabel's SetFont() + eikLabel->SetFont( iEikEnv->LegendFont() ); + AssertTrueL( ETrue, KELSetFont ); + + // Invoke CEikLabel's SetTextL() + eikLabel->SetTextL( TPtrC() ); + AssertTrueL( ETrue, KELSetTextL ); + + // Invoke CEikLabel's CalcMinimumSize() + TPtrC ptr( KELText ); + eikLabel->CalcMinimumSize( ptr ); + AssertTrueL( ETrue, KELCalcMinimumSize ); + + // Invoke CEikLabel's EnablePictographsL() + TBCTestSubAknPictographAnimatorCallBack subCallBack; + CAknPictographInterface* interface = + CAknPictographInterface::NewL( *iContainer, subCallBack ); + CleanupStack::PushL( interface ); + eikLabel->EnablePictographsL( *interface ); + AssertTrueL( ETrue, KELEnablePictographsL ); + CleanupStack::PopAndDestroy( interface ); + + // Invoke CEikLabel's BufferReserveLength() + eikLabel->BufferReserveLength(); + AssertTrueL( ETrue, KELBufferReserveLength ); + + // Invoke CEikLabel's CropText() + eikLabel->CropText(); + AssertTrueL( ETrue, KELCropText ); + + // Invoke CEikLabel's DisablePictographs() + eikLabel->DisablePictographs(); + AssertTrueL( ETrue, KELDisablePictographs ); + + // Invoke CEikLabel's GetColorUseListL() + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KFour ); + CleanupStack::PushL( colorUseList ); + eikLabel->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KELGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + // Invoke CEikLabel's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + eikLabel->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KELHandlePointerEventL ); + + // Invoke CEikLabel's HandleResourceChange() + eikLabel->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue, KELHandleResourceChange ); + + // Invoke CEikLabel's MinimumSize() + eikLabel->MinimumSize(); + AssertTrueL( ETrue, KELMinimumSize ); + + // Invoke CEikLabel's PixelGapBetweenLines() + TInt pixelGap = eikLabel->PixelGapBetweenLines(); + AssertTrueL( ETrue, KELPixelGapBetweenLines ); + + // Invoke CEikLabel's SetPixelGapBetweenLines() + eikLabel->SetPixelGapBetweenLines( pixelGap ); + AssertTrueL( ETrue, KELSetPixelGapBetweenLines ); + + // Invoke CEikLabel's LogicalToVisualConversionUsed() + eikLabel->LogicalToVisualConversionUsed(); + AssertTrueL( ETrue, KELLogicalToVisualConversionUsed ); + + // Invoke CEikLabel's SetBrushStyle() + eikLabel->SetBrushStyle( CWindowGc::ESolidBrush ); + AssertTrueL( ETrue, KELSetBrushStyle ); + + // Invoke CEikLabel's SetBrushStyleFromContext() + eikLabel->SetBrushStyleFromContext(); + AssertTrueL( ETrue, KELSetBrushStyleFromContext ); + + // Invoke CEikLabel's SetBufferReserveLengthL() + eikLabel->SetBufferReserveLengthL( KTen ); + AssertTrueL( ETrue, KELSetBufferReserveLengthL ); + + // Invoke CEikLabel's SetEmphasis() + eikLabel->SetEmphasis( CEikLabel::EFullEmphasis ); + AssertTrueL( ETrue, KELSetEmphasis ); + + // Invoke CEikLabel's SetLabelAlignment() + eikLabel->SetLabelAlignment( KZero ); + AssertTrueL( ETrue, KELSetLabelAlignment ); + + // Invoke CEikLabel's SetStrikethrough() + eikLabel->SetStrikethrough( ETrue ); + AssertTrueL( ETrue, KELSetStrikethrough ); + + // Invoke CEikLabel's SetUnderlining() + eikLabel->SetUnderlining( ETrue ); + AssertTrueL( ETrue, KELSetUnderlining ); + + // Invoke CEikLabel's UseLogicalToVisualConversion() + eikLabel->UseLogicalToVisualConversion( ETrue ); + AssertTrueL( ETrue, KELUseLogicalToVisualConversion ); + + CleanupStack::PopAndDestroy( eikLabel ); + eikLabel = NULL; + + eikLabel = new(ELeave) CEikLabel; + CleanupStack::PushL( eikLabel ); + + // Invoke CEikLabel's ConstructFromResourceL() + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( + reader, R_BCTESTLABELINFOINDICATORS_LABEL ); + eikLabel->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KELConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + CBCTestSubEikLabel* subEikLabel = + static_cast ( eikLabel ); + + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + subEikLabel->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KELWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + subEikLabel->DrawNow(); + AssertTrueL( ETrue, KELDraw ); + + CleanupStack::PopAndDestroy( eikLabel ); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::TestFunctionsForIndicatorsL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::TestFunctionsForIndicatorsL() + { + CAknIndicatorContainer* indicator = + new( ELeave ) CAknIndicatorContainer(); + CleanupStack::PushL( indicator ); + AssertNotNullL( indicator, KAICAknIndicatorContainer ); + + // Invoke CAknIndicatorContainer's ConstructL() + indicator->ConstructL(); + AssertTrueL( ETrue, KAICConstruct ); + + // Invoke CAknIndicatorContainer's SetIncallBubbleFlags() + indicator->SetIncallBubbleFlags( EAknStatusBubbleVisible ); + AssertTrueL( ETrue, KAICSetIncallBubbleFlags ); + + CBCTestSubAknIndicator* subIndicator = + static_cast ( indicator ); + + // Invoke CAknIndicatorContainer's HandleResourceChange() + subIndicator->HandleResourceChange( KEikColorResourceChange ); + subIndicator->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + subIndicator->HandleResourceChange( KEikMessageFadeAllWindows ); + AssertTrueL( ETrue, KAICHandleResourceChange ); + + CleanupStack::PopAndDestroy( indicator ); + indicator = NULL; + + indicator = new( ELeave ) CAknIndicatorContainer( + CAknIndicatorContainer::EQueryEditorIndicators ); + CleanupStack::PushL( indicator ); + AssertNotNullL( indicator, KAICAknIndicatorContainerOver ); + + // Invoke CAknIndicatorContainer's ConstructFromResourceL() & ConstructL() + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( + reader, R_BCTESTLABELINFOINDICATORS_INDICATOR ); + indicator->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KAICConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + // Invoke CAknIndicatorContainer's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + indicator->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KAICHandlePointerEventL ); + + // Invoke CAknIndicatorContainer's HandleStatusPaneSizeChange() + indicator->HandleStatusPaneSizeChange(); + AssertTrueL( ETrue, KAICHandleStatusPaneSizeChange ); + + // Invoke CAknIndicatorContainer's IndicatorContext() + indicator->IndicatorContext(); + AssertTrueL( ETrue, KAICIndicatorContext ); + + // Invoke CAknIndicatorContainer's SetIndicatorState() + indicator->SetIndicatorState( + TUid::Uid( EAknNaviPaneEditorIndicatorProgressBar ), + EAknIndicatorStateAnimate ); + AssertTrueL( ETrue, KAICSetIndicatorState ); + + // Invoke CAknIndicatorContainer's IndicatorState() + indicator->IndicatorState( + TUid::Uid( EAknNaviPaneEditorIndicatorProgressBar ) ); + AssertTrueL( ETrue, KAICIndicatorState ); + + // Invoke CAknIndicatorContainer's SetIncallBubbleAllowedInIdle() + indicator->SetIncallBubbleAllowedInIdle( ETrue ); + AssertTrueL( ETrue, KAICSetIncallBubbleAllowedInIdle ); + + // Invoke CAknIndicatorContainer's SetIncallBubbleAllowedInUsual() + indicator->SetIncallBubbleAllowedInUsual( ETrue ); + AssertTrueL( ETrue, KAICSetIncallBubbleAllowedInUsual ); + + // Invoke CAknIndicatorContainer's SetIndicatorValue() + indicator->SetIndicatorValue( + TUid::Uid( EAknNaviPaneEditorIndicatorProgressBar ), KZero, KFive ); + AssertTrueL( ETrue, KAICSetIndicatorValue ); + + // Invoke CAknIndicatorContainer's SetIndicatorValueL() + indicator->SetIndicatorValueL( + TUid::Uid( EAknNaviPaneEditorIndicatorMessageLength ), KAICString ); + AssertTrueL( ETrue, KAICSetIndicatorValueL ); + + // Invoke CAknIndicatorContainer's SetIndicatorObserver() + indicator->SetIndicatorObserver( NULL, + TUid::Uid( EAknNaviPaneEditorIndicatorWaitBar ) ); + AssertTrueL( ETrue, KAICSetIndicatorObserver ); + + subIndicator = + static_cast ( indicator ); + + // Invoke CAknIndicatorContainer's CountComponentControls() + subIndicator->CountComponentControls(); + AssertTrueL( ETrue, KAICCountComponentControls ); + + // Invoke CAknIndicatorContainer's PositionChanged() + subIndicator->PositionChanged(); + AssertTrueL( ETrue, KAICPositionChanged ); + + TPoint p( KZero, KZero ); + TSize s( KTen, KFifty ); + subIndicator->SetExtent( p, s ); + + // Invoke CAknIndicatorContainer's SizeChanged() + subIndicator->SizeChanged(); + AssertTrueL( ETrue, KAICSizeChanged ); + + // Invoke CAknIndicatorContainer's HandleResourceChange() + subIndicator->HandleResourceChange( KEikColorResourceChange ); + subIndicator->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + subIndicator->HandleResourceChange( KEikMessageFadeAllWindows ); + AssertTrueL( ETrue, KAICHandleResourceChange ); + + CleanupStack::PopAndDestroy( indicator ); + TestFunctionsForIndicatorsOverLoadL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::TestFunctionsForIndicatorsOverLoadL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::TestFunctionsForIndicatorsOverLoadL() + { + CAknIndicatorContainer* indicator = + new( ELeave ) CAknIndicatorContainer(); + CleanupStack::PushL( indicator ); + AssertNotNullL( indicator, KAICAknIndicatorContainerOver ); + + // Invoke CAknIndicatorContainer's ConstructFromResourceL() & ConstructL() + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( + reader, R_BCTESTLABELINFOINDICATORS_INDICATOR_PANE ); + indicator->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KAICConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + // Invoke CAknIndicatorContainer's SetIndicatorState() + indicator->SetIndicatorState( + TUid::Uid( EAknIndicatorEnvelope ), + EAknIndicatorStateAnimate ); + AssertTrueL( ETrue, KAICSetIndicatorState ); + + // Invoke CAknIndicatorContainer's IndicatorState() + indicator->IndicatorState( + TUid::Uid( EAknIndicatorEnvelope ) ); + AssertTrueL( ETrue, KAICIndicatorState ); + + // Invoke CAknIndicatorContainer's SetIndicatorValue() + indicator->SetIndicatorValue( + TUid::Uid( EAknIndicatorEnvelope ), KZero, KFive ); + AssertTrueL( ETrue, KAICSetIndicatorValue ); + + // Invoke CAknIndicatorContainer's SetIndicatorValueL() + indicator->SetIndicatorValueL( + TUid::Uid( EAknIndicatorMissedCalls ), KAICString ); + AssertTrueL( ETrue, KAICSetIndicatorValueL ); + + CBCTestSubAknIndicator* subIndicator = + static_cast ( indicator ); + + // Invoke CAknIndicatorContainer's CountComponentControls() + subIndicator->CountComponentControls(); + AssertTrueL( ETrue, KAICCountComponentControls ); + + subIndicator->ComponentControl( KThree ); + + TPoint p( KZero, KZero ); + TSize s( KTen, KFifty ); + subIndicator->SetExtent( p, s ); + + CleanupStack::PopAndDestroy( indicator ); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsCase::TestFunctionsForInfoPopupNoteL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsCase::TestFunctionsForInfoPopupNoteL() + { + CAknInfoPopupNoteController* infoPopupNote = + CAknInfoPopupNoteController::NewL(); + CleanupStack::PushL( infoPopupNote ); + AssertNotNullL( infoPopupNote, KAIPNCCAknInfoPopupNoteController ); + + // Invoke CAknInfoPopupNoteController's SetTextL() + infoPopupNote->SetTextL( KAIPNCText ); + AssertTrueL( ETrue, KAIPNCSetTextL ); + + // Invoke CAknInfoPopupNoteController's ShowInfoPopupNote() + infoPopupNote->ShowInfoPopupNote(); + AssertTrueL( ETrue, KAIPNCShowInfoPopupNote ); + + // Invoke CAknInfoPopupNoteController's HideInfoPopupNote() + infoPopupNote->HideInfoPopupNote(); + AssertTrueL( ETrue, KAIPNCHideInfoPopupNote ); + + // Invoke CAknInfoPopupNoteController's RestoreDefaultPosition() + infoPopupNote->RestoreDefaultPosition(); + AssertTrueL( ETrue, KAIPNCRestoreDefaultPosition ); + + // Invoke CAknInfoPopupNoteController's SetPositionAndAlignment() + TPoint posi( KTen, KTen ); + infoPopupNote->SetPositionAndAlignment( posi, EHLeftVTop ); + AssertTrueL( ETrue, KAIPNCSetPositionAndAlignment ); + + // Invoke CAknInfoPopupNoteController's SetPositionByHighlight() + TRect rect( KZero, KZero, KFifty, KFifty ); + infoPopupNote->SetPositionByHighlight( rect ); + AssertTrueL( ETrue, KAIPNCSetPositionByHighlight ); + + // Invoke CAknInfoPopupNoteController's SetTooltipModeL() + infoPopupNote->SetTooltipModeL( ETrue ); + AssertTrueL( ETrue, KAIPNCSetTooltipModeL ); + + // Invoke CAknInfoPopupNoteController's SetTimeDelayBeforeShow() + infoPopupNote->SetTimeDelayBeforeShow( KTenThousand ); + AssertTrueL( ETrue, KAIPNCSetTimeDelayBeforeShow ); + + // Invoke CAknInfoPopupNoteController's SetTimePopupInView() + infoPopupNote->SetTimePopupInView( KTenThousand ); + AssertTrueL( ETrue, KAIPNCSetTimePopupInView ); + + // Invoke CAknInfoPopupNoteController's AddObserverL() + TBCTestSubAknInfoPopupNoteObserver subObserver; + infoPopupNote->AddObserverL( subObserver ); + AssertTrueL( ETrue, KAIPNCAddObserverL ); + + infoPopupNote->RemoveObserver( subObserver ); + AssertTrueL( ETrue, KAIPNCRemoveObserver ); + + CleanupStack::PopAndDestroy( infoPopupNote ); + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorscontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorscontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,120 @@ +/* +* 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 "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: Implements test bc for labelinfoindicators container. +* +*/ + + +#include "bctestlabelinfoindicatorscontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsContainer::CBCTestLabelInfoIndicatorsContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsContainer::~CBCTestLabelInfoIndicatorsContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestLabelInfoIndicatorsContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestLabelInfoIndicatorsContainer + ::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +CCoeEnv* CBCTestLabelInfoIndicatorsContainer::GetCoeEnv() + { + return iCoeEnv; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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: Implements test bc for labelinfoindicators document. +* +*/ + + +// INCLUDE FILES +#include "bctestlabelinfoindicatorsdocument.h" +#include "bctestlabelinfoindicatorsappUi.h" + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsDocument* CBCTestLabelInfoIndicatorsDocument +// ::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsDocument* CBCTestLabelInfoIndicatorsDocument + ::NewL( CEikApplication& aApp ) + { + CBCTestLabelInfoIndicatorsDocument* self = new( ELeave ) + CBCTestLabelInfoIndicatorsDocument( aApp ); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsDocument::~CBCTestLabelInfoIndicatorsDocument() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsDocument::~CBCTestLabelInfoIndicatorsDocument() + { + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsDocument:: +// CBCTestLabelInfoIndicatorsDocument( CEikApplication& ) +// Overload constructor. +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsDocument + ::CBCTestLabelInfoIndicatorsDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// --------------------------------------------------------------------------- +// CEikAppUi* CBCTestLabelInfoIndicatorsDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestLabelInfoIndicatorsDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestLabelInfoIndicatorsAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlabelinfoindicators/src/bctestlabelinfoindicatorsview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,135 @@ +/* +* 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 "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: Implements test bc for labelinfoindicators view. +* +*/ + + +#include +#include + +#include "bctestlabelinfoindicators.hrh" +#include "bctestlabelinfoindicatorsview.h" +#include "bctestlabelinfoindicatorscontainer.h" +#include "bctestutil.h" +#include "bctestlabelinfoindicatorscase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsView* CBCTestLabelInfoIndicatorsView::NewL() + { + CBCTestLabelInfoIndicatorsView* self = + new ( ELeave ) CBCTestLabelInfoIndicatorsView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsView::CBCTestLabelInfoIndicatorsView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsView::ConstructL() + { + BaseConstructL( R_BCTESTLABELINFOINDICATORS_VIEW ); + + iContainer = new( ELeave ) CBCTestLabelInfoIndicatorsContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT( KLabelInfoIndicatorsCaseComment, "LabelInfoIndicators case" ); + iTestUtil->AddTestCaseL( + CBCTestLabelInfoIndicatorsCase::NewL( iContainer ), + KLabelInfoIndicatorsCaseComment ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLabelInfoIndicatorsView::~CBCTestLabelInfoIndicatorsView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestLabelInfoIndicatorsView::Id() const + { + return KBCTestLabelInfoIndicatorsViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsView:: + DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestLabelInfoIndicatorsView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestLabelInfoIndicatorsView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EBCTestLabelInfoIndicatorsCmdAutotest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestLabelInfoIndicatorsCmdEmptyOutline && + aCommand < EBCTestLabelInfoIndicatorsCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlistAif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlistAif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ +/* +* 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 "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: RSS for creating the aif file +* +*/ + + +#include + +RESOURCE AIF_DATA + { + app_uid = 0x101F84A1; + groupName="BCTest"; + caption_list= + { + CAPTION + { + code = ELangEnglish; + caption = "BCTestLIST"; + } + }; + num_icons = 2; + embeddability=KAppNotEmbeddable; + newfile=KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlistSmallIcon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlistSmallIcon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlistSmallIconMask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlistSmallIconMask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlist_lst.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlist_lst.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlist_lst_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/aif/bctestlist_lst_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/LShellIcon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/LShellIcon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/LShellIcon_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/LShellIcon_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/athene.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/athene.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/athene_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/athene_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/check.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/check.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/check_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/check_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo2.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo2.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo2_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo2_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo3.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo3.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo3_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo3_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo4.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo4.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo4_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo4_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo5.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo5.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo5_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo5_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo6.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo6.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo6_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/golgo6_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/marked_add.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/marked_add.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/marked_add_m.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/marked_add_m.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/marked_add_mask_soft.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/marked_add_mask_soft.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/non_check.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/non_check.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/non_check_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/non_check_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/prop_group_small.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/prop_group_small.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/prop_group_small_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/prop_group_small_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/qgn_indi_marked_add.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/datasrc/qgn_indi_marked_add.svg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,8 @@ + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/Icons_List.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/Icons_List.mk Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +# +# Copyright (c) 2005 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: +# + +ifeq (WINS,$(findstring WINS, $(PLATFORM))) +ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\Z +else +ZDIR=\epoc32\data\z +endif + +TARGETDIR=$(ZDIR)\resource\apps +HEADERDIR=\epoc32\include + +ICONTARGETFILENAME=$(TARGETDIR)\bctestList.mif + +#ok +HEADERFILENAME=$(HEADERDIR)\bctestList.mbg + +do_nothing : + @rem do_nothing + +MAKMAKE : do_nothing + +BLD : do_nothing + +CLEAN : do_nothing + +LIB : do_nothing + +CLEANLIB : do_nothing + +RESOURCE : + mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \ + /c8,8 ..\DataSrc\golgo2.bmp \ + /c8,8 ..\DataSrc\golgo3.bmp \ + /c8,8 ..\DataSrc\golgo4.bmp \ + /c8,8 ..\DataSrc\golgo5.bmp \ + /c8,8 ..\DataSrc\golgo6.bmp \ + /c8,8 ..\DataSrc\athene.bmp \ + /c8,8 ..\DataSrc\marked_add.bmp \ + /c8,1 ..\DataSrc\qgn_indi_marked_add.svg \ + /c8,1 ..\DataSrc\check.bmp \ + /c8,1 ..\DataSrc\non_check.bmp \ + /c8,1 ..\DataSrc\prop_group_small.bmp \ + /c8,1 ..\DataSrc\LShellIcon.bmp + +FREEZE : do_nothing + +SAVESPACE : do_nothing + +RELEASABLES : + @echo $(HEADERFILENAME) && \ + @echo $(ICONTARGETFILENAME) + +FINAL : do_nothing diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bctestlist.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bctestlist.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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: This is project specification file for the AknAtList +* +*/ + + +TARGET BCTestList.exe +TARGETTYPE exe +UID 0x0 0x20004748 +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin + +START RESOURCE bctestList.rss +HEADER +TARGETPATH /resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestListApp.cpp +SOURCE bctestListAppUi.cpp +SOURCE bctestListDocument.cpp +SOURCE bctestlistcontainer.cpp +SOURCE bctestlistview.cpp +SOURCE bctestlistbasecase.cpp +SOURCE bctestlistcolumncase.cpp +SOURCE bctestlistformattedcase.cpp +SOURCE bctestlistsettingcase.cpp +SOURCE bctestlistpopupcase.cpp +SOURCE bctestlistgridcase.cpp +SOURCE bctestlistdecoratorcase.cpp +SOURCE bctestlistcolumnbasecase.cpp +SOURCE bctestlistformatbasecase.cpp +SOURCE bctestlisteiklistcase.cpp +SOURCE bctestlistselectioncase.cpp + +USERINCLUDE . ../Inc +// for autotest +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY eikctl.lib +LIBRARY bafl.lib +LIBRARY eikdlg.lib +LIBRARY AknSkins.lib +LIBRARY AknIcon.lib +LIBRARY egul.lib +LIBRARY gdi.lib +LIBRARY efsrv.lib +LIBRARY estor.lib + +// for autotest +LIBRARY bctestutil.lib + + //START BITMAP section removed and moved to icons.mk + //because of .svg icons + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestList_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. +START BITMAP bctestList_Aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 bctestlistsmallicon.bmp +source c8 bctestlistsmalliconmask.bmp +source c8 bctestlist_lst.bmp +source c8 bctestlist_lst_mask.bmp +end + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bctestlist.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bctestlist.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,6029 @@ +/* +* 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 "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 bctestlist +* +*/ + + +// RESOURCE IDENTIFIER +NAME BCLT + +// INCLUDES +#include +#include +#include +#include +#include +#include + +#include +#include "bctestlist.hrh" +#include "bctestList.loc" +#include "bctestlist_01.loc" + +#define AVKON_BMP_FILENAME "z:"APP_BITMAP_DIR"\\avkon2.mbm" +#define BCTESTLIST_BMP_FILENAME APP_BITMAP_DIR"\\bctestlist.mbm" + +#define CHECKBOX_SETTING_PAGE_NUMBER 1 + +RESOURCE RSS_SIGNATURE { } +RESOURCE TBUF { buf="BCTestList"; } + +// ---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +// ---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + cba = r_bctestlist_softkeys_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestlist_localisable_app_info + { + short_caption = qtn_apps_tals_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tals_list; + number_of_icons = 2; + //icon_file = "\\resource\\apps\\AknAtList_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_softkeys_options_next +// Softkey +// +//----------------------------------------------------------------------------- +// +RESOURCE CBA r_bctestlist_softkeys_options_next + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeyOptions; + txt = text_softkey_option; + }, + CBA_BUTTON + { + id = EAknSoftkeyBack; + txt = text_softkey_back; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_view +// AVKON_VIEW for CAknAtColumnView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestlist_view + { + menubar = r_bctestlist_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_menubar_main +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestlist_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestlist_exit; + }, + MENU_TITLE + { + menu_pane = r_bctestlist_main_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_main_menu +// Menu Pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_main_menu + { + items = + { + MENU_ITEM + { + cascade = r_bctestlist_column_menu; + txt = qtn_bctestlist_menu_column; + }, + MENU_ITEM + { + cascade = r_bctestlist_formatted_menu; + txt = qtn_bctestlist_menu_formatted; + }, + MENU_ITEM + { + cascade = r_bctestlist_setting_menu; + txt = qtn_bctestlist_menu_setting_list; + }, + MENU_ITEM + { + cascade = r_bctestlist_popup_menu; + txt = qtn_bctestlist_menu_popup_list; + }, + MENU_ITEM + { + cascade = r_bctestlist_grid_menu; + txt = qtn_bctestlist_menu_grid_list; + }, + MENU_ITEM + { + cascade = r_bctestlist_other_menu; + txt = qtn_bctestlist_menu_other; + }, + MENU_ITEM + { + cascade = r_bctestlist_columnbase_menu; + txt = qtn_bctestlist_menu_columnbase; + }, + MENU_ITEM + { + cascade = r_bctestlist_formatbase_menu; + txt = qtn_bctestlist_menu_formatbase; + }, + MENU_ITEM + { + cascade = r_bctestlist_eiklist_menu; + txt = qtn_bctestlist_menu_eiklist; + }, + MENU_ITEM + { + cascade = r_bctestlist_selection_menu; + txt = qtn_bctestlist_menu_selection; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_column_menu +// cascade menu for column list boxes +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_column_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline01; + txt = qtn_bctestlist_outline01; + }, + MENU_ITEM + { + command = EBCTestCmdOutline02; + txt = qtn_bctestlist_outline02; + }, + MENU_ITEM + { + command = EBCTestCmdOutline03; + txt = qtn_bctestlist_outline03; + }, + MENU_ITEM + { + command = EBCTestCmdOutline04; + txt = qtn_bctestlist_outline04; + }, + MENU_ITEM + { + command = EBCTestCmdOutline05; + txt = qtn_bctestlist_outline05; + }, + MENU_ITEM + { + command = EBCTestCmdOutline06; + txt = qtn_bctestlist_outline06; + }, + MENU_ITEM + { + command = EBCTestCmdOutline07; + txt = qtn_bctestlist_outline07; + }, + MENU_ITEM + { + command = EBCTestCmdOutline08; + txt = qtn_bctestlist_outline08; + }, + MENU_ITEM + { + command = EBCTestCmdOutline09; + txt = qtn_bctestlist_outline09; + }, + MENU_ITEM + { + command = EBCTestCmdOutline10; + txt = qtn_bctestlist_outline10; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_formatted_menu +// cascade menu for column list boxes +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_formatted_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline10; + txt = qtn_bctestlist_outline10; + }, + MENU_ITEM + { + command = EBCTestCmdOutline11; + txt = qtn_bctestlist_outline11; + }, + MENU_ITEM + { + command = EBCTestCmdOutline12; + txt = qtn_bctestlist_outline12; + }, + MENU_ITEM + { + command = EBCTestCmdOutline13; + txt = qtn_bctestlist_outline13; + }, + MENU_ITEM + { + command = EBCTestCmdOutline14; + txt = qtn_bctestlist_outline14; + }, + MENU_ITEM + { + command = EBCTestCmdOutline15; + txt = qtn_bctestlist_outline15; + }, + MENU_ITEM + { + command = EBCTestCmdOutline16; + txt = qtn_bctestlist_outline16; + }, + MENU_ITEM + { + command = EBCTestCmdOutline17; + txt = qtn_bctestlist_outline17; + }, + MENU_ITEM + { + command = EBCTestCmdOutline18; + txt = qtn_bctestlist_outline18; + }, + MENU_ITEM + { + command = EBCTestCmdOutline19; + txt = qtn_bctestlist_outline19; + }, + MENU_ITEM + { + command = EBCTestCmdOutline20; + txt = qtn_bctestlist_outline20; + }, + MENU_ITEM + { + command = EBCTestCmdOutline21; + txt = qtn_bctestlist_outline21; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_setting_menu +// cascade menu for setting list boxes +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_setting_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline23; + txt = qtn_bctestlist_outline23; + }, + MENU_ITEM + { + command = EBCTestCmdOutline24; + txt = qtn_bctestlist_outline24; + }, + MENU_ITEM + { + command = EBCTestCmdOutline25; + txt = qtn_bctestlist_outline25; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_popup_menu +// cascade menu for popup list boxes +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_popup_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline26; + txt = qtn_bctestlist_outline26; + }, + MENU_ITEM + { + command = EBCTestCmdOutline27; + txt = qtn_bctestlist_outline27; + }, + MENU_ITEM + { + command = EBCTestCmdOutline28; + txt = qtn_bctestlist_outline28; + }, + MENU_ITEM + { + command = EBCTestCmdOutline29; + txt = qtn_bctestlist_outline29; + }, + MENU_ITEM + { + command = EBCTestCmdOutline30; + txt = qtn_bctestlist_outline30; + }, + MENU_ITEM + { + command = EBCTestCmdOutline31; + txt = qtn_bctestlist_outline31; + }, + MENU_ITEM + { + command = EBCTestCmdOutline32; + txt = qtn_bctestlist_outline32; + }, + MENU_ITEM + { + command = EBCTestCmdOutline33; + txt = qtn_bctestlist_outline33; + }, + MENU_ITEM + { + command = EBCTestCmdOutline34; + txt = qtn_bctestlist_outline34; + }, + MENU_ITEM + { + command = EBCTestCmdOutline35; + txt = qtn_bctestlist_outline35; + }, + MENU_ITEM + { + command = EBCTestCmdOutline36; + txt = qtn_bctestlist_outline36; + }, + MENU_ITEM + { + command = EBCTestCmdOutline37; + txt = qtn_bctestlist_outline37; + }, + MENU_ITEM + { + command = EBCTestCmdOutline38; + txt = qtn_bctestlist_outline38; + }, + MENU_ITEM + { + command = EBCTestCmdOutline39; + txt = qtn_bctestlist_outline39; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestlist_grid_menu +// cascade menu for grid pane list boxes +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_grid_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline40; + txt = qtn_bctestlist_outline40; + }, + MENU_ITEM + { + command = EBCTestCmdOutline41; + txt = qtn_bctestlist_outline41; + }, + MENU_ITEM + { + command = EBCTestCmdOutline42; + txt = qtn_bctestlist_outline42; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_other_menu +// cascade menu for other cases +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_other_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline43; + txt = qtn_bctestlist_outline43; + }, + MENU_ITEM + { + command = EBCTestCmdOutline44; + txt = qtn_bctestlist_outline44; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_columnbase_menu +// cascade menu for column base class cases +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_columnbase_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline45; + txt = qtn_bctestlist_outline45; + }, + MENU_ITEM + { + command = EBCTestCmdOutline46; + txt = qtn_bctestlist_outline46; + }, + MENU_ITEM + { + command = EBCTestCmdOutline47; + txt = qtn_bctestlist_outline47; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_formatbase_menu +// cascade menu for column base class cases +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_formatbase_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline48; + txt = qtn_bctestlist_outline48; + }, + MENU_ITEM + { + command = EBCTestCmdOutline49; + txt = qtn_bctestlist_outline49; + }, + MENU_ITEM + { + command = EBCTestCmdOutline50; + txt = qtn_bctestlist_outline50; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_eiklist_menu +// cascade menu for list class in eikstd +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_eiklist_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline51; + txt = qtn_bctestlist_outline51; + }, + MENU_ITEM + { + command = EBCTestCmdOutline52; + txt = qtn_bctestlist_outline52; + }, + MENU_ITEM + { + command = EBCTestCmdOutline53; + txt = qtn_bctestlist_outline53; + }, + MENU_ITEM + { + command = EBCTestCmdOutline54; + txt = qtn_bctestlist_outline54; + }, + MENU_ITEM + { + command = EBCTestCmdOutline55; + txt = qtn_bctestlist_outline55; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_selection_menu +// cascade menu for selection list +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_selection_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline56; + txt = qtn_bctestlist_outline56; + }, + MENU_ITEM + { + command = EBCTestCmdOutline57; + txt = qtn_bctestlist_outline57; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_exit +// Menu Pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlist_exit + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestlist_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestlist_exit; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_popupfind +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_popupfind + { + array_id = r_bctestlist_item_single_popupfind; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_1_add_rm +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_1_add_rm + { + array_id = r_bctestlist_item_single1_add_rm; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_markable +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_markable + { + array_id = r_bctestlist_item_single_markable; + flags = EAknListBoxMarkableList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_markable_shortcut +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_markable_shortcut + { + array_id = r_bctestlist_item_single_markable; + flags = EAknListBoxMarkableListWithShortcuts; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_3 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_3 + { + array_id = r_bctestlist_item_single3; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_4 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_4 + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMarkableList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_5 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_5 + { + array_id = r_bctestlist_item_single4; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_6 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_6 + { + array_id = r_bctestlist_item_single5; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_7 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_7 + { + array_id = r_bctestlist_item_single6; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_sub +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +/*RESOURCE LISTBOX r_bctestlist_single_sub + { + array_id = r_bctestlist_item_single_sub; + flags = EAknListBoxSelectionList; + } +*/ +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_number +// ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_number_indicator +// ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_number_indicator + { + array_id = r_bctestlist_item_single_number_indicator; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_heading +// ListBox( Single Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_graphic +// ListBox( Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_graphic_multi +// ListBox( Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_graphic_multi + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_large_graphic +// ListBox( Single Large Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_graphic_heading +// ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_graphic_heading_multi +// ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_graphic_heading_multi + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMultiselectionList; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_number_heading +// ListBox( Single Number Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_big_single +// ListBox( Big Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_big_single_number +// ListBox( Big Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_big_single_graphic +// ListBox( Big Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double +// ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double_add_rm +// ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double_add_rm + { + array_id = r_bctestlist_item_double_add_rm; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double_number +// ListBox( Double Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double_graphic +// ListBox( Double Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double2_graphic +// ListBox( Double2 Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double2_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double_large_graphic +// ListBox( Double Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double2_large_graphic +// ListBox( Double2 Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double2_large_graphic + { + array_id = r_bctestlist_item_double2_large_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double2_graphic_large_graphic +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double2_graphic_large_graphic + { + array_id = r_bctestlist_item_double2_graphic_large_graphic; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double2_large +// ListBox( Double2 Large ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double2_large + { + array_id = r_bctestlist_item_double2_large; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double_time +// ListBox( Double Time ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_double_time + { + array_id = r_bctestlist_item_double_time; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_layout1 +// ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_layout1 + { + array_id = r_bctestlist_pane_layout1; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_layout2 +// ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_layout2 + { + array_id = r_bctestlist_pane_layout2; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_setting +// ListBox( Setting style ) +// +//----------------------------------------------------------------------------- +// +/*RESOURCE LISTBOX r_bctestlist_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxSelectionList; + } +*/ +//----------------------------------------------------------------------------- +// +// r_bctestlist_setting +// ListBox( Setting style ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_setting_add_rm + { + array_id = r_bctestlist_item_setting_add_rm; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_setting_number +// ListBox( Setting style ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_selectionlist_?? +// ListBox( EAknListBoxSelectionList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_selectionlist_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_setting_add_rm + { + array_id = r_bctestlist_item_setting_add_rm; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_selectionlist_withs_?? +// ListBox( EAknListBoxSelectionListWithShortcuts ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single + { + array_id = r_bctestlist_item_single_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single_number + { + array_id = r_bctestlist_item_single_number_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single_heading + { + array_id = r_bctestlist_item_single_heading_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single_graphic + { + array_id = r_bctestlist_item_single_graphic_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_big_single + { + array_id = r_bctestlist_item_big_single_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_big_single_number + { + array_id = r_bctestlist_item_big_single_number_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_double + { + array_id = r_bctestlist_item_double_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_double_number + { + array_id = r_bctestlist_item_double_number_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_setting + { + array_id = r_bctestlist_item_setting_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_setting_number + { + array_id = r_bctestlist_item_setting_number_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectionlist_withs_double_graphic + { + array_id = r_bctestlist_item_double_graphic_for_withs; + flags = EAknListBoxSelectionListWithShortcuts; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_menulist_?? +// ListBox( EAknListBoxMenuList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_menulist_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_menulist_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMenuList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_markablelist_?? +// ListBox( EAknListBoxMarkableList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_markablelist_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMarkableList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_markablelist_withs_?? +// ListBox( EAknListBoxMarkableList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single + { + array_id = r_bctestlist_item_single_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single_number + { + array_id = r_bctestlist_item_single_number_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single_heading + { + array_id = r_bctestlist_item_single_heading_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single_graphic + { + array_id = r_bctestlist_item_single_graphic_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_big_single + { + array_id = r_bctestlist_item_big_single_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_big_single_number + { + array_id = r_bctestlist_item_big_single_number_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_double + { + array_id = r_bctestlist_item_double_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_double_number + { + array_id = r_bctestlist_item_double_number_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_setting + { + array_id = r_bctestlist_item_setting_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_setting_number + { + array_id = r_bctestlist_item_setting_number_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablelist_withs_double_graphic + { + array_id = r_bctestlist_item_double_graphic_for_withs; + flags = EAknListBoxMarkableListWithShortcuts; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_multiselectionlist_?? +// ListBox( EAknListBoxMultiselectionList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_multiselectionlist_?? +// ListBox( EAknListBoxMultiselectionListWithShortcuts ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single + { + array_id = r_bctestlist_item_single_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single_number + { + array_id = r_bctestlist_item_single_number_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single_heading + { + array_id = r_bctestlist_item_single_heading_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single_graphic + { + array_id = r_bctestlist_item_single_graphic_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_big_single + { + array_id = r_bctestlist_item_big_single_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_big_single_number + { + array_id = r_bctestlist_item_big_single_number_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_double + { + array_id = r_bctestlist_item_double_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_double_number + { + array_id = r_bctestlist_item_double_number_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_setting + { + array_id = r_bctestlist_item_setting_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_setting_number + { + array_id = r_bctestlist_item_setting_number_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_multiselectionlist_withs_double_graphic + { + array_id = r_bctestlist_item_double_graphic_for_withs; + flags = EAknListBoxMultiselectionListWithShortcuts; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_selectiongrid_?? +// ListBox( EAknListBoxSelectionGrid ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_selectiongrid_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxSelectionGrid; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionGrid; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_selection_grid +// +//----------------------------------------------------------------------------- +// +RESOURCE GRID r_bctestlist_selection_grid + { + flags = EAknListBoxSelectionGrid; + array_id = r_bctestlist_item_selection_grid; + flags = EAknListBoxMarkableGrid; + emptytext = qtn_bctestlist_empty_selection_grid; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_selectiongrid_withs_?? +// ListBox( EAknListBoxSelectionGridWithShortcuts ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single + { + array_id = r_bctestlist_item_single_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single_number + { + array_id = r_bctestlist_item_single_number_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single_heading + { + array_id = r_bctestlist_item_single_heading_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single_graphic + { + array_id = r_bctestlist_item_single_graphic_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_big_single + { + array_id = r_bctestlist_item_big_single_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_big_single_number + { + array_id = r_bctestlist_item_big_single_number_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_double + { + array_id = r_bctestlist_item_double_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_double_number + { + array_id = r_bctestlist_item_double_number_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_setting + { + array_id = r_bctestlist_item_setting_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_setting_number + { + array_id = r_bctestlist_item_setting_number_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_selectiongrid_withs_double_graphic + { + array_id = r_bctestlist_item_double_graphic_for_withs; + flags = EAknListBoxSelectionGridWithShortcuts; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_markablegrid_?? +// ListBox( EAknListBoxMarkableGrid ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_markablegrid_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMarkableGrid; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMarkableGrid; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_markablegrid_withs_?? +// ListBox( EAknListBoxMarkableGridWithShortcuts ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single + { + array_id = r_bctestlist_item_single_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single_number + { + array_id = r_bctestlist_item_single_number_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single_heading + { + array_id = r_bctestlist_item_single_heading_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single_graphic + { + array_id = r_bctestlist_item_single_graphic_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_big_single + { + array_id = r_bctestlist_item_big_single_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_big_single_number + { + array_id = r_bctestlist_item_big_single_number_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_double + { + array_id = r_bctestlist_item_double_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_double_number + { + array_id = r_bctestlist_item_double_number_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_setting + { + array_id = r_bctestlist_item_setting_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_setting_number + { + array_id = r_bctestlist_item_setting_number_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +RESOURCE LISTBOX r_bctestlist_markablegrid_withs_double_graphic + { + array_id = r_bctestlist_item_double_graphic_for_withs; + flags = EAknListBoxMarkableGridWithShortcuts; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_menugrid_?? +// ListBox( EAknListBoxMenuGrid ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_menugrid_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMenuGrid; + } + +RESOURCE LISTBOX r_bctestlist_menugrid_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMenuGrid; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_dialogselection_?? +// ListBox( EAknListBoxSelectionList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_dialogselection_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxSelectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogselection_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_dialogmenu_?? +// ListBox( EAknListBoxMenuList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_dialogmenu_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMenuList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmenu_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMenuList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_viewer_?? +// ListBox( EAknListBoxViewerFlags ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_viewer_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +RESOURCE LISTBOX r_bctestlist_viewer_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_dialogmarkable_?? +// ListBox( EAknListBoxMarkableList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMarkableList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmarkable_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMarkableList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_dialogmulti_?? +// ListBox( EAknListBoxMultiselectionList ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_dialogmulti_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxMultiselectionList; + } + +RESOURCE LISTBOX r_bctestlist_dialogmulti_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxMultiselectionList; + } + + + +//----------------------------------------------------------------------------- +// +// r_bctestlist_loop_?? +// ListBox( EAknListBoxLoopScrolling ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestlist_loop_single + { + array_id = r_bctestlist_item_single1; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_single_number + { + array_id = r_bctestlist_item_single_number; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_single_heading + { + array_id = r_bctestlist_item_single_heading; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_single_graphic + { + array_id = r_bctestlist_item_single_graphic; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_single_graphic_heading + { + array_id = r_bctestlist_item_single_graphic_heading; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_single_number_heading + { + array_id = r_bctestlist_item_single_number_heading; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_single_large_graphic + { + array_id = r_bctestlist_item_single_large_graphic; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_big_single + { + array_id = r_bctestlist_item_big_single; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_big_single_number + { + array_id = r_bctestlist_item_big_single_number; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_big_single_graphic + { + array_id = r_bctestlist_item_big_single_graphic; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_double + { + array_id = r_bctestlist_item_double; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_double_number + { + array_id = r_bctestlist_item_double_number; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_double_large_graphic + { + array_id = r_bctestlist_item_double_large_graphic; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_setting + { + array_id = r_bctestlist_item_setting; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_setting_number + { + array_id = r_bctestlist_item_setting_number; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +RESOURCE LISTBOX r_bctestlist_loop_double_graphic + { + array_id = r_bctestlist_item_double_graphic; + flags = EAknListBoxSelectionList | EAknListBoxLoopScrolling; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single1 +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single1 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_s1; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s3; + }, + LBUF + { + txt = qtn_bctestlist_item_s4; + }, + LBUF + { + txt = qtn_bctestlist_item_s5; + }, + LBUF + { + txt = qtn_bctestlist_item_s6; + }, + LBUF + { + txt = qtn_bctestlist_item_s7; + }, + LBUF + { + txt = qtn_bctestlist_item_s8; + }, + LBUF + { + txt = qtn_bctestlist_item_s9; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single1_add_rm +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single1_add_rm + { + items = + { + LBUF { txt = qtn_bctestlist_item_s1_add; }, + LBUF { txt = qtn_bctestlist_item_s2_rm; }, + LBUF { txt = qtn_bctestlist_item_s3; }, + LBUF { txt = qtn_bctestlist_item_s4; }, + LBUF { txt = qtn_bctestlist_item_s5; }, + LBUF { txt = qtn_bctestlist_item_s6; }, + LBUF { txt = qtn_bctestlist_item_s7; }, + LBUF { txt = qtn_bctestlist_item_s8; }, + LBUF { txt = qtn_bctestlist_item_s9; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_popupfind +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_popupfind + { + items = + { + LBUF { txt = qtn_bctestlist_item_popupfind; }, + LBUF { txt = qtn_bctestlist_item_s1; }, + LBUF { txt = qtn_bctestlist_item_s1; }, + LBUF { txt = qtn_bctestlist_item_s2; }, + LBUF { txt = qtn_bctestlist_item_s3; }, + LBUF { txt = qtn_bctestlist_item_s4; }, + LBUF { txt = qtn_bctestlist_item_s5; }, + LBUF { txt = qtn_bctestlist_item_s6; }, + LBUF { txt = qtn_bctestlist_item_s7; }, + LBUF { txt = qtn_bctestlist_item_s8; }, + LBUF { txt = qtn_bctestlist_item_s9; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_item_bctestlist_single_markable +// Items array for ListBox +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_markable + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_this_is; + }, + LBUF + { + txt = qtn_bctestlist_item_markable_list; + }, + LBUF + { + txt = qtn_bctestlist_item_s10; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s12; + }, + LBUF + { + txt = qtn_bctestlist_item_s4; + }, + LBUF + { + txt = qtn_bctestlist_item_s5; + }, + LBUF + { + txt = qtn_bctestlist_item_s6; + }, + LBUF + { + txt = qtn_bctestlist_item_s7; + }, + LBUF + { + txt = qtn_bctestlist_item_s8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single3 +// Items array for ListBox( Single 3 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single3 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_s1; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s3; + }, + LBUF + { + txt = qtn_bctestlist_item_s4; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single4 +// Items array for ListBox( Single 4 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single4 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_this_is; + }, + LBUF + { + txt = qtn_bctestlist_item_multisel_list; + }, + LBUF + { + txt = qtn_bctestlist_item_press_0; + }, + LBUF + { + txt = qtn_bctestlist_item_s10; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s3; + }, + LBUF + { + txt = qtn_bctestlist_item_s11; + }, + LBUF + { + txt = qtn_bctestlist_item_s5; + }, + LBUF + { + txt = qtn_bctestlist_item_s6; + }, + LBUF + { + txt = qtn_bctestlist_item_s7; + }, + LBUF + { + txt = qtn_bctestlist_item_s8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single5 +// Items array for ListBox( Single 5 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single5 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_s1; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s3; + }, + LBUF + { + txt = qtn_bctestlist_item_s4; + }, + LBUF + { + txt = qtn_bctestlist_item_s5; + }, + LBUF + { + txt = qtn_bctestlist_item_s9; + }, + LBUF + { + txt = qtn_bctestlist_item_s6; + }, + LBUF + { + txt = qtn_bctestlist_item_s7; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single6 +// Items array for ListBox( Single 6 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single6 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_open1; + }, + LBUF + { + txt = qtn_bctestlist_item_open2; + }, + LBUF + { + txt = qtn_bctestlist_item_s1; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s3; + }, + LBUF + { + txt = qtn_bctestlist_item_s4; + }, + LBUF + { + txt = qtn_bctestlist_item_s5; + }, + LBUF + { + txt = qtn_bctestlist_item_s6; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_number +// Items array for ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_number + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sn1; + }, + LBUF + { + txt = qtn_bctestlist_item_sn2; + }, + LBUF + { + txt = qtn_bctestlist_item_sn3; + }, + LBUF + { + txt = qtn_bctestlist_item_sn4; + }, + LBUF + { + txt = qtn_bctestlist_item_sn5; + }, + LBUF + { + txt = qtn_bctestlist_item_sn6; + }, + LBUF + { + txt = qtn_bctestlist_item_sn7; + }, + LBUF + { + txt = qtn_bctestlist_item_sn8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_number_indicator +// Items array for ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_number_indicator + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sni1; + }, + LBUF + { + txt = qtn_bctestlist_item_sni2; + }, + LBUF + { + txt = qtn_bctestlist_item_sni3; + }, + LBUF + { + txt = qtn_bctestlist_item_sni4; + }, + LBUF + { + txt = qtn_bctestlist_item_sni5; + }, + LBUF + { + txt = qtn_bctestlist_item_sni6; + }, + LBUF + { + txt = qtn_bctestlist_item_sni7; + }, + LBUF + { + txt = qtn_bctestlist_item_sni8; + }, + LBUF + { + txt = qtn_bctestlist_item_sni9; + }, + LBUF + { + txt = qtn_bctestlist_item_sni10; + }, + LBUF + { + txt = qtn_bctestlist_item_sni11; + }, + LBUF + { + txt = qtn_bctestlist_item_sni12; + }, + LBUF + { + txt = qtn_bctestlist_item_sni13; + }, + LBUF + { + txt = qtn_bctestlist_item_sni14; + }, + LBUF + { + txt = qtn_bctestlist_item_sni15; + }, + LBUF + { + txt = qtn_bctestlist_item_sni16; + }, + LBUF + { + txt = qtn_bctestlist_item_sni17; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_heading +// Items array for ListBox( Single Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_heading + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sh1; + }, + LBUF + { + txt = qtn_bctestlist_item_sh2; + }, + LBUF + { + txt = qtn_bctestlist_item_sh3; + }, + LBUF + { + txt = qtn_bctestlist_item_sh4; + }, + LBUF + { + txt = qtn_bctestlist_item_sh5; + }, + LBUF + { + txt = qtn_bctestlist_item_sh6; + }, + LBUF + { + txt = qtn_bctestlist_item_sh7; + }, + LBUF + { + txt = qtn_bctestlist_item_sh8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_graphic +// Items array for ListBox( Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_graphic + { + items = + { + LBUF { txt = qtn_bctestlist_item_sg1; }, + LBUF { txt = qtn_bctestlist_item_sg2; }, + LBUF { txt = qtn_bctestlist_item_sg3; }, + LBUF { txt = qtn_bctestlist_item_sg4; }, + LBUF { txt = qtn_bctestlist_item_sg5; }, + LBUF { txt = qtn_bctestlist_item_sg6; }, + LBUF { txt = qtn_bctestlist_item_sg7; }, + LBUF { txt = qtn_bctestlist_item_sg8; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_large_graphic +// Items array for ListBox( Singl Large Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_large_graphic + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_slg1; + }, + LBUF + { + txt = qtn_bctestlist_item_slg2; + }, + LBUF + { + txt = qtn_bctestlist_item_slg3; + }, + LBUF + { + txt = qtn_bctestlist_item_slg4; + }, + LBUF + { + txt = qtn_bctestlist_item_slg5; + }, + LBUF + { + txt = qtn_bctestlist_item_slg6; + }, + LBUF + { + txt = qtn_bctestlist_item_slg7; + }, + LBUF + { + txt = qtn_bctestlist_item_slg8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_graphic_heading +// Items array for ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_graphic_heading + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sgh1; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh2; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh3; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh4; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh5; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh6; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh7; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_number_heading +// Items array for ListBox( Single Number Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_number_heading + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_snh1; + }, + LBUF + { + txt = qtn_bctestlist_item_snh2; + }, + LBUF + { + txt = qtn_bctestlist_item_snh3; + }, + LBUF + { + txt = qtn_bctestlist_item_snh4; + }, + LBUF + { + txt = qtn_bctestlist_item_snh5; + }, + LBUF + { + txt = qtn_bctestlist_item_snh6; + }, + LBUF + { + txt = qtn_bctestlist_item_snh7; + }, + LBUF + { + txt = qtn_bctestlist_item_snh8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_big_single +// Items array for ListBox( Big Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_big_single + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_bs1; + }, + LBUF + { + txt = qtn_bctestlist_item_bs2; + }, + LBUF + { + txt = qtn_bctestlist_item_bs3; + }, + LBUF + { + txt = qtn_bctestlist_item_bs4; + }, + LBUF + { + txt = qtn_bctestlist_item_bs5; + }, + LBUF + { + txt = qtn_bctestlist_item_bs6; + }, + LBUF + { + txt = qtn_bctestlist_item_bs7; + }, + LBUF + { + txt = qtn_bctestlist_item_bs8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_big_single_number +// Items array for ListBox( Big Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_big_single_number + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_bsn1; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn2; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn3; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn4; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn5; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn6; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn7; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_big_single_graphic +// Items array for ListBox( Big Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_big_single_graphic + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_bsg1; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg2; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg3; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg4; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg5; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg6; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg7; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double +// Items array for ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_d1; + }, + LBUF + { + txt = qtn_bctestlist_item_d2; + }, + LBUF + { + txt = qtn_bctestlist_item_d3; + }, + LBUF + { + txt = qtn_bctestlist_item_d4; + }, + LBUF + { + txt = qtn_bctestlist_item_d5; + }, + LBUF + { + txt = qtn_bctestlist_item_d6; + }, + LBUF + { + txt = qtn_bctestlist_item_d7; + }, + LBUF + { + txt = qtn_bctestlist_item_d8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_add_rm +// Items array for ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_add_rm + { + items = + { + LBUF { txt = qtn_bctestlist_item_s1_add; }, + LBUF { txt = qtn_bctestlist_item_s2_rm; }, + LBUF { txt = qtn_bctestlist_item_d3; }, + LBUF { txt = qtn_bctestlist_item_d4; }, + LBUF { txt = qtn_bctestlist_item_d5; }, + LBUF { txt = qtn_bctestlist_item_d6; }, + LBUF { txt = qtn_bctestlist_item_d7; }, + LBUF { txt = qtn_bctestlist_item_d8; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_number +// Items array for ListBox( Double Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_number + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dn1; + }, + LBUF + { + txt = qtn_bctestlist_item_dn2; + }, + LBUF + { + txt = qtn_bctestlist_item_dn3; + }, + LBUF + { + txt = qtn_bctestlist_item_dn4; + }, + LBUF + { + txt = qtn_bctestlist_item_dn5; + }, + LBUF + { + txt = qtn_bctestlist_item_dn6; + }, + LBUF + { + txt = qtn_bctestlist_item_dn7; + }, + LBUF + { + txt = qtn_bctestlist_item_dn8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_graphic +// Items array for ListBox( Double Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_graphic + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dg1; + }, + LBUF + { + txt = qtn_bctestlist_item_dg2; + }, + LBUF + { + txt = qtn_bctestlist_item_dg3; + }, + LBUF + { + txt = qtn_bctestlist_item_dg4; + }, + LBUF + { + txt = qtn_bctestlist_item_dg5; + }, + LBUF + { + txt = qtn_bctestlist_item_dg6; + }, + LBUF + { + txt = qtn_bctestlist_item_dg7; + }, + LBUF + { + txt = qtn_bctestlist_item_dg8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_large_graphic +// Items array for ListBox( Double Large Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_large_graphic + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dlg1; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg2; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg3; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg4; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg5; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg6; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg7; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double2_large_graphic +// Items array for ListBox( Double Large Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double2_large_graphic + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dl2g1; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g2; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g3; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g4; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g5; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g6; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g7; + }, + LBUF + { + txt = qtn_bctestlist_item_dl2g8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double2_graphic_large_graphic +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double2_graphic_large_graphic + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_d2lgl1; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl2; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl3; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl4; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl5; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl6; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl7; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl8; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl9; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl10; + }, + LBUF + { + txt = qtn_bctestlist_item_d2lgl11; + } + }; + } + + + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double2_large +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double2_large + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dl21; + }, + LBUF + { + txt = qtn_bctestlist_item_dl22; + }, + LBUF + { + txt = qtn_bctestlist_item_dl23; + }, + LBUF + { + txt = qtn_bctestlist_item_dl24; + }, + LBUF + { + txt = qtn_bctestlist_item_dl25; + }, + LBUF + { + txt = qtn_bctestlist_item_dl26; + }, + LBUF + { + txt = qtn_bctestlist_item_dl27; + }, + LBUF + { + txt = qtn_bctestlist_item_dl28; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_time +// Items array for ListBox( Double Time ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_time + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dt1; + }, + LBUF + { + txt = qtn_bctestlist_item_dt2; + }, + LBUF + { + txt = qtn_bctestlist_item_dt3; + }, + LBUF + { + txt = qtn_bctestlist_item_dt4; + }, + LBUF + { + txt = qtn_bctestlist_item_dt5; + }, + LBUF + { + txt = qtn_bctestlist_item_dt6; + }, + LBUF + { + txt = qtn_bctestlist_item_dt7; + }, + LBUF + { + txt = qtn_bctestlist_item_dt8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_pane_layout1 +// Items array for ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_pane_layout1 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sgh9; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh10; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh_mulsel_list; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_pane_layout2 +// Items array for ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_pane_layout2 + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sgh10; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh_mulsel_list; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_setting +// Items array for ListBox( Setting ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_setting + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_st1; + }, + LBUF + { + txt = qtn_bctestlist_item_st2; + }, + LBUF + { + txt = qtn_bctestlist_item_st3; + }, + LBUF + { + txt = qtn_bctestlist_item_st4; + }, + LBUF + { + txt = qtn_bctestlist_item_st5; + }, + LBUF + { + txt = qtn_bctestlist_item_st6; + }, + LBUF + { + txt = qtn_bctestlist_item_st7; + }, + LBUF + { + txt = qtn_bctestlist_item_st8; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_setting_add_rm +// Items array for ListBox( Setting ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_setting_add_rm + { + items = + { + LBUF { txt = qtn_bctestlist_item_st1_add; }, + LBUF { txt = qtn_bctestlist_item_st2_rm; }, + LBUF { txt = qtn_bctestlist_item_st3; }, + LBUF { txt = qtn_bctestlist_item_st4; }, + LBUF { txt = qtn_bctestlist_item_st5; }, + LBUF { txt = qtn_bctestlist_item_st6; }, + LBUF { txt = qtn_bctestlist_item_st7; }, + LBUF { txt = qtn_bctestlist_item_st8; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_setting_number +// Items array for ListBox( Setting Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_setting_number + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_stn1; + }, + LBUF + { + txt = qtn_bctestlist_item_stn2; + }, + LBUF + { + txt = qtn_bctestlist_item_stn3; + }, + LBUF + { + txt = qtn_bctestlist_item_stn4; + }, + LBUF + { + txt = qtn_bctestlist_item_stn5; + }, + LBUF + { + txt = qtn_bctestlist_item_stn6; + }, + LBUF + { + txt = qtn_bctestlist_item_stn7; + }, + LBUF + { + txt = qtn_bctestlist_item_stn8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_for_withs +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_s1; + }, + LBUF + { + txt = qtn_bctestlist_item_s2; + }, + LBUF + { + txt = qtn_bctestlist_item_s3; + }, + LBUF + { + txt = qtn_bctestlist_item_s4; + }, + LBUF + { + txt = qtn_bctestlist_item_s5; + }, + LBUF + { + txt = qtn_bctestlist_item_s6; + }, + LBUF + { + txt = qtn_bctestlist_item_s7; + }, + LBUF + { + txt = qtn_bctestlist_item_s8; + }, + LBUF + { + txt = qtn_bctestlist_item_s13; + }, + LBUF + { + txt = qtn_bctestlist_item_s14; + }, + LBUF + { + txt = qtn_bctestlist_item_s15; + }, + LBUF + { + txt = qtn_bctestlist_item_s16; + }, + LBUF + { + txt = qtn_bctestlist_item_s17; + }, + LBUF + { + txt = qtn_bctestlist_item_s18; + }, + LBUF + { + txt = qtn_bctestlist_item_s19; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_number_for_withs +// Items array for ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_number_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sn1; + }, + LBUF + { + txt = qtn_bctestlist_item_sn2; + }, + LBUF + { + txt = qtn_bctestlist_item_sn3; + }, + LBUF + { + txt = qtn_bctestlist_item_sn4; + }, + LBUF + { + txt = qtn_bctestlist_item_sn5; + }, + LBUF + { + txt = qtn_bctestlist_item_sn6; + }, + LBUF + { + txt = qtn_bctestlist_item_sn7; + }, + LBUF + { + txt = qtn_bctestlist_item_sn8; + }, + LBUF + { + txt = qtn_bctestlist_item_sn9; + }, + LBUF + { + txt = qtn_bctestlist_item_sn10; + }, + LBUF + { + txt = qtn_bctestlist_item_sn11; + }, + LBUF + { + txt = qtn_bctestlist_item_sn12; + }, + LBUF + { + txt = qtn_bctestlist_item_sn13; + }, + LBUF + { + txt = qtn_bctestlist_item_sn14; + }, + LBUF + { + txt = qtn_bctestlist_item_sn15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_heading_for_withs +// Items array for ListBox( Single Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_heading_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sh1; + }, + LBUF + { + txt = qtn_bctestlist_item_sh2; + }, + LBUF + { + txt = qtn_bctestlist_item_sh3; + }, + LBUF + { + txt = qtn_bctestlist_item_sh4; + }, + LBUF + { + txt = qtn_bctestlist_item_sh5; + }, + LBUF + { + txt = qtn_bctestlist_item_sh6; + }, + LBUF + { + txt = qtn_bctestlist_item_sh7; + }, + LBUF + { + txt = qtn_bctestlist_item_sh8; + }, + LBUF + { + txt = qtn_bctestlist_item_sh9; + }, + LBUF + { + txt = qtn_bctestlist_item_sh10; + }, + LBUF + { + txt = qtn_bctestlist_item_sh11; + }, + LBUF + { + txt = qtn_bctestlist_item_sh12; + }, + LBUF + { + txt = qtn_bctestlist_item_sh13; + }, + LBUF + { + txt = qtn_bctestlist_item_sh14; + }, + LBUF + { + txt = qtn_bctestlist_item_sh15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_graphic_for_withs +// Items array for ListBox( Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_graphic_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sg1; + }, + LBUF + { + txt = qtn_bctestlist_item_sg2; + }, + LBUF + { + txt = qtn_bctestlist_item_sg3; + }, + LBUF + { + txt = qtn_bctestlist_item_sg4; + }, + LBUF + { + txt = qtn_bctestlist_item_sg5; + }, + LBUF + { + txt = qtn_bctestlist_item_sg6; + }, + LBUF + { + txt = qtn_bctestlist_item_sg7; + }, + LBUF + { + txt = qtn_bctestlist_item_sg8; + }, + LBUF + { + txt = qtn_bctestlist_item_sg9; + }, + LBUF + { + txt = qtn_bctestlist_item_sg10; + }, + LBUF + { + txt = qtn_bctestlist_item_sg11; + }, + LBUF + { + txt = qtn_bctestlist_item_sg12; + }, + LBUF + { + txt = qtn_bctestlist_item_sg13; + }, + LBUF + { + txt = qtn_bctestlist_item_sg14; + }, + LBUF + { + txt = qtn_bctestlist_item_sg15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_large_graphic_for_withs +// Items array for ListBox( Singl Large Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_large_graphic_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_slg1; + }, + LBUF + { + txt = qtn_bctestlist_item_slg2; + }, + LBUF + { + txt = qtn_bctestlist_item_slg3; + }, + LBUF + { + txt = qtn_bctestlist_item_slg4; + }, + LBUF + { + txt = qtn_bctestlist_item_slg5; + }, + LBUF + { + txt = qtn_bctestlist_item_slg6; + }, + LBUF + { + txt = qtn_bctestlist_item_slg7; + }, + LBUF + { + txt = qtn_bctestlist_item_slg8; + }, + LBUF + { + txt = qtn_bctestlist_item_slg9; + }, + LBUF + { + txt = qtn_bctestlist_item_slg10; + }, + LBUF + { + txt = qtn_bctestlist_item_slg11; + }, + LBUF + { + txt = qtn_bctestlist_item_slg12; + }, + LBUF + { + txt = qtn_bctestlist_item_slg13; + }, + LBUF + { + txt = qtn_bctestlist_item_slg14; + }, + LBUF + { + txt = qtn_bctestlist_item_slg15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_graphic_heading_for_withs +// Items array for ListBox( Single Graphic Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_graphic_heading_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_sgh1; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh2; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh3; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh4; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh5; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh6; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh7; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh8; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh11; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh12; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh13; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh14; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh15; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh16; + }, + LBUF + { + txt = qtn_bctestlist_item_sgh17; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_single_number_heading_for_withs +// Items array for ListBox( Single Number Heading ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_single_number_heading_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_snh1; + }, + LBUF + { + txt = qtn_bctestlist_item_snh2; + }, + LBUF + { + txt = qtn_bctestlist_item_snh3; + }, + LBUF + { + txt = qtn_bctestlist_item_snh4; + }, + LBUF + { + txt = qtn_bctestlist_item_snh5; + }, + LBUF + { + txt = qtn_bctestlist_item_snh6; + }, + LBUF + { + txt = qtn_bctestlist_item_snh7; + }, + LBUF + { + txt = qtn_bctestlist_item_snh8; + }, + LBUF + { + txt = qtn_bctestlist_item_snh9; + }, + LBUF + { + txt = qtn_bctestlist_item_snh10; + }, + LBUF + { + txt = qtn_bctestlist_item_snh11; + }, + LBUF + { + txt = qtn_bctestlist_item_snh12; + }, + LBUF + { + txt = qtn_bctestlist_item_snh13; + }, + LBUF + { + txt = qtn_bctestlist_item_snh14; + }, + LBUF + { + txt = qtn_bctestlist_item_snh15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_big_single_for_withs +// Items array for ListBox( Big Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_big_single_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_bs1; + }, + LBUF + { + txt = qtn_bctestlist_item_bs2; + }, + LBUF + { + txt = qtn_bctestlist_item_bs3; + }, + LBUF + { + txt = qtn_bctestlist_item_bs4; + }, + LBUF + { + txt = qtn_bctestlist_item_bs5; + }, + LBUF + { + txt = qtn_bctestlist_item_bs6; + }, + LBUF + { + txt = qtn_bctestlist_item_bs7; + }, + LBUF + { + txt = qtn_bctestlist_item_bs8; + }, + LBUF + { + txt = qtn_bctestlist_item_bs9; + }, + LBUF + { + txt = qtn_bctestlist_item_bs10; + }, + LBUF + { + txt = qtn_bctestlist_item_bs11; + }, + LBUF + { + txt = qtn_bctestlist_item_bs12; + }, + LBUF + { + txt = qtn_bctestlist_item_bs13; + }, + LBUF + { + txt = qtn_bctestlist_item_bs14; + }, + LBUF + { + txt = qtn_bctestlist_item_bs15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_big_single_number_for_withs +// Items array for ListBox( Big Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_big_single_number_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_bsn1; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn2; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn3; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn4; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn5; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn6; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn7; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn8; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn9; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn10; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn11; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn12; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn13; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn14; + }, + LBUF + { + txt = qtn_bctestlist_item_bsn15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_big_single_graphic_for_withs +// Items array for ListBox( Big Single Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_big_single_graphic_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_bsg1; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg2; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg3; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg4; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg5; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg6; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg7; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg8; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg9; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg10; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg11; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg12; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg13; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg14; + }, + LBUF + { + txt = qtn_bctestlist_item_bsg15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_for_withs +// Items array for ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_d1; + }, + LBUF + { + txt = qtn_bctestlist_item_d2; + }, + LBUF + { + txt = qtn_bctestlist_item_d3; + }, + LBUF + { + txt = qtn_bctestlist_item_d4; + }, + LBUF + { + txt = qtn_bctestlist_item_d5; + }, + LBUF + { + txt = qtn_bctestlist_item_d6; + }, + LBUF + { + txt = qtn_bctestlist_item_d7; + }, + LBUF + { + txt = qtn_bctestlist_item_d8; + }, + LBUF + { + txt = qtn_bctestlist_item_d9; + }, + LBUF + { + txt = qtn_bctestlist_item_d10; + }, + LBUF + { + txt = qtn_bctestlist_item_d11; + }, + LBUF + { + txt = qtn_bctestlist_item_d12; + }, + LBUF + { + txt = qtn_bctestlist_item_d13; + }, + LBUF + { + txt = qtn_bctestlist_item_d14; + }, + LBUF + { + txt = qtn_bctestlist_item_d15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_number_for_withs +// Items array for ListBox( Double Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_number_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dn1; + }, + LBUF + { + txt = qtn_bctestlist_item_dn2; + }, + LBUF + { + txt = qtn_bctestlist_item_dn3; + }, + LBUF + { + txt = qtn_bctestlist_item_dn4; + }, + LBUF + { + txt = qtn_bctestlist_item_dn5; + }, + LBUF + { + txt = qtn_bctestlist_item_dn6; + }, + LBUF + { + txt = qtn_bctestlist_item_dn7; + }, + LBUF + { + txt = qtn_bctestlist_item_dn8; + }, + LBUF + { + txt = qtn_bctestlist_item_dn9; + }, + LBUF + { + txt = qtn_bctestlist_item_dn10; + }, + LBUF + { + txt = qtn_bctestlist_item_dn11; + }, + LBUF + { + txt = qtn_bctestlist_item_dn12; + }, + LBUF + { + txt = qtn_bctestlist_item_dn13; + }, + LBUF + { + txt = qtn_bctestlist_item_dn14; + }, + LBUF + { + txt = qtn_bctestlist_item_dn15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_graphic_for_withs +// Items array for ListBox( Double Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_graphic_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dg1; + }, + LBUF + { + txt = qtn_bctestlist_item_dg2; + }, + LBUF + { + txt = qtn_bctestlist_item_dg3; + }, + LBUF + { + txt = qtn_bctestlist_item_dg4; + }, + LBUF + { + txt = qtn_bctestlist_item_dg5; + }, + LBUF + { + txt = qtn_bctestlist_item_dg6; + }, + LBUF + { + txt = qtn_bctestlist_item_dg7; + }, + LBUF + { + txt = qtn_bctestlist_item_dg8; + }, + LBUF + { + txt = qtn_bctestlist_item_dg9; + }, + LBUF + { + txt = qtn_bctestlist_item_dg10; + }, + LBUF + { + txt = qtn_bctestlist_item_dg11; + }, + LBUF + { + txt = qtn_bctestlist_item_dg12; + }, + LBUF + { + txt = qtn_bctestlist_item_dg13; + }, + LBUF + { + txt = qtn_bctestlist_item_dg14; + }, + LBUF + { + txt = qtn_bctestlist_item_dg15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_double_large_graphic_for_withs +// Items array for ListBox( Double Large Graphic ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_double_large_graphic_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_dlg1; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg2; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg3; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg4; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg5; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg6; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg7; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg8; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg9; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg10; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg11; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg12; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg13; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg14; + }, + LBUF + { + txt = qtn_bctestlist_item_dlg15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_setting_for_withs +// Items array for ListBox( Setting ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_setting_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_st1; + }, + LBUF + { + txt = qtn_bctestlist_item_st2; + }, + LBUF + { + txt = qtn_bctestlist_item_st3; + }, + LBUF + { + txt = qtn_bctestlist_item_st4; + }, + LBUF + { + txt = qtn_bctestlist_item_st5; + }, + LBUF + { + txt = qtn_bctestlist_item_st6; + }, + LBUF + { + txt = qtn_bctestlist_item_st7; + }, + LBUF + { + txt = qtn_bctestlist_item_st8; + }, + LBUF + { + txt = qtn_bctestlist_item_st9; + }, + LBUF + { + txt = qtn_bctestlist_item_st10; + }, + LBUF + { + txt = qtn_bctestlist_item_st11; + }, + LBUF + { + txt = qtn_bctestlist_item_st12; + }, + LBUF + { + txt = qtn_bctestlist_item_st13; + }, + LBUF + { + txt = qtn_bctestlist_item_st14; + }, + LBUF + { + txt = qtn_bctestlist_item_st15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_setting_number_for_withs +// Items array for ListBox( Setting Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_setting_number_for_withs + { + items = + { + LBUF + { + txt = qtn_bctestlist_item_stn1; + }, + LBUF + { + txt = qtn_bctestlist_item_stn2; + }, + LBUF + { + txt = qtn_bctestlist_item_stn3; + }, + LBUF + { + txt = qtn_bctestlist_item_stn4; + }, + LBUF + { + txt = qtn_bctestlist_item_stn5; + }, + LBUF + { + txt = qtn_bctestlist_item_stn6; + }, + LBUF + { + txt = qtn_bctestlist_item_stn7; + }, + LBUF + { + txt = qtn_bctestlist_item_stn8; + }, + LBUF + { + txt = qtn_bctestlist_item_stn9; + }, + LBUF + { + txt = qtn_bctestlist_item_stn10; + }, + LBUF + { + txt = qtn_bctestlist_item_stn11; + }, + LBUF + { + txt = qtn_bctestlist_item_stn12; + }, + LBUF + { + txt = qtn_bctestlist_item_stn13; + }, + LBUF + { + txt = qtn_bctestlist_item_stn14; + }, + LBUF + { + txt = qtn_bctestlist_item_stn15; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_double2_item +// Items array for ListBox( Double2 Style ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_double2_item + { + items = + { + LBUF + { + txt = qtn_bctestlist_double2_1; + }, + LBUF + { + txt = qtn_bctestlist_double2_2; + }, + LBUF + { + txt = qtn_bctestlist_double2_3; + }, + LBUF + { + txt = qtn_bctestlist_double2_4; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_selection_grid +// Items array for ListBox( PinbGrid ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestlist_item_selection_grid + { + items = + { + LBUF { txt = qtn_bctestlist_grid_item_1; }, + LBUF { txt = qtn_bctestlist_grid_item_2; }, + LBUF { txt = qtn_bctestlist_grid_item_3; }, + LBUF { txt = qtn_bctestlist_grid_item_4; }, + LBUF { txt = qtn_bctestlist_grid_item_5; }, + LBUF { txt = qtn_bctestlist_grid_item_6; }, + LBUF { txt = qtn_bctestlist_grid_item_7; }, + LBUF { txt = qtn_bctestlist_grid_item_8; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_app_title +// Apprication title +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_app_title + { + buf = qtn_bctestlist_app_title; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_empty_label +// Empty list label +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_empty_label + { + buf = qtn_bctestlist_empty_label1; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_two_lines_empty_label +// Two lines empty list label +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_two_lines_empty_label + { + buf = qtn_bctestlist_empty_label2; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestlist_add_item_single +// Add list item +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_add_item_single + { + buf = qtn_bctestlist_add_item_s; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_add_item_double +// Add list item +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_add_item_double + { + buf = qtn_bctestlist_add_item_d; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_add_item_setting +// Add list item +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_add_item_setting + { + buf = qtn_bctestlist_add_item_st; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_message +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_msg + { + buf = qtn_bctestlist_msg; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_mark_info +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_mark_info + { + buf = qtn_bctestlist_mark_info; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_format +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_format + { + buf = qtn_bctestlist_format; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_no_mark +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_no_mark + { + buf = qtn_bctestlist_no_mark; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_resource_msg +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_resource_msg + { + buf = qtn_bctestlist_resource_msg; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_internal_msg +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_internal_msg + { + buf = qtn_bctestlist_internal_msg; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_user_defined_numbering_msg +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_user_defined_numbering_msg + { + buf = qtn_bctestlist_user_num_msg; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_auto_numbering_msg +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_auto_numbering_msg + { + buf = qtn_bctestlist_auto_num_msg; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_tab +// Tab. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_tab + { + buf = qtn_bctestlist_tab; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_count +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_item_count + { + buf = qtn_bctestlist_item_count; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_item_open +// Information message. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_item_open + { + buf = qtn_bctestlist_item_open; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_outline_title +// Outline title +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF64 r_bctestlist_outline_title + { + buf = qtn_bctestlist_outline_title; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_app_outline2 +// Outline number2 +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF64 r_bctestlist_outline_title_type + { + buf = qtn_bctestlist_outline_title_type; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_flagtest_dialog_label +// Label text of outline 100, 101, 103, 104. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_flagtest_dialog_label + { + buf = qtn_bctestlist_flagtest_dialog_label; + } + +// ================================ +// Following is for Outline 16. +// ================================ +//----------------------------------------------------------------------------- +// +// r_bctestlist_empty_item_list +// For outline 16. +// +//----------------------------------------------------------------------------- +// +/*RESOURCE AVKON_SETTING_ITEM_LIST r_bctestlist_empty_item_list + { + flags= EAknSettingItemNumberedStyle; + title = qtn_bctestlist_setpage_empty_title; + //initial_number = 1; + items = + { + AVKON_SETTING_ITEM + { + identifier = EBCTestListEmptyItem; + name = qtn_bctestlist_setpage_empty_item; + setting_page_resource = r_bctestlist_empty_setting_page; + associated_resource = r_bctestlist_empty_popup_setting_pages; + } + }; + } +*/ +//----------------------------------------------------------------------------- +// +// r_bctestlist_empty_setting_page +// For outline 16. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctestlist_empty_setting_page + { + label= qtn_bctestlist_setpage_empty_label; + type = EAknCtPopupSettingList; + editor_resource_id = r_bctestlist_empty_setting_list; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_empty_setting_list +// For outline 16. +// +//----------------------------------------------------------------------------- +// +RESOURCE POPUP_SETTING_LIST r_bctestlist_empty_setting_list + { + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_empty_popup_setting_pages +// For outline 16. +// +//----------------------------------------------------------------------------- +// +/*RESOURCE AVKON_POPUP_SETTING_TEXTS r_bctestlist_empty_popup_setting_pages + { + flags = 0; // Possible EINVERTORDER; + setting_texts_resource = r_bctestlist_empty_array; + popped_up_texts_resource = r_bctestlist_empty_array; + }//*/ + +//----------------------------------------------------------------------------- +// +// r_bctestlist_listdlg_cancelled +// Note prompt for outline 109. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_listdlg_cancelled + { + buf = qtn_bctestlist_listdlg_cancelled; + } + +//----------------------------------------------------------------------------- +// +// qtn_bctestlist_listdlg_rec_obsevent +// Note prompt for receiving observer event of list dialog. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestlist_listdlg_rec_obsevent + { + buf = qtn_bctestlist_listdlg_rec_obsevent; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_markable_dialog +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestlist_markable_dialog + { + flags = EAknDialogMarkableList; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtSingleListBox; + id = ESelectionListControl; + control = LISTBOX + { + flags = EAknListBoxMarkableList; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_single_selection_list_dialog +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestlist_single_selection_list_dialog + { + flags = EAknDialogSelectionList; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtSingleListBox; + id = EBCTestListDlgLbx; + control = LISTBOX + { + flags = EAknListBoxSelectionList; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_checkbox_setting_page +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctestlist_checkbox_setting_page + { + number = CHECKBOX_SETTING_PAGE_NUMBER; + label = qtn_aknatlist_multi_title; + type = EAknSetListBox; + editor_resource_id = r_bctestlist_single_3; + menubar = r_bctestlist_checkbox_menubar; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_checkbox_setting_page +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestlist_checkbox_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestlist_checkbox_menupane; + } + }; + } + +RESOURCE MENU_PANE r_bctestlist_checkbox_menupane + { + items = + { + MENU_ITEM + { + command = EProgSoftkeyNextOutline; + txt = qtn_bctestlist_softkey_next; + } + }; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bctestlist_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bctestlist_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004748 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestList"; + + localisable_resource_file = "\\resource\\apps\\BCTestList"; + localisable_resource_id = R_BCTESTLIST_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,26 @@ +/* +* 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 "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: Build information +* +*/ + + + + +PRJ_MMPFILES + +gnumakefile icons_List.mk +bctestList.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestListApp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestListApp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,55 @@ +/* +* 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 "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: Application +* +*/ + +#ifndef C_CBCTESTLISTAPP_H +#define C_CBCTESTLISTAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestList = { 0x20004748 }; // UID of the application + +// CLASS DECLARATION + +/** +* CBCTestListApp application class. +* Provides factory to create concrete document object. +*/ + +class CBCTestListApp : public CAknApplication + { + + private: // From CApaAppcication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestListDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID (KUidBCTestList). + * @return The value of KUidBCTestList. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESTLISTAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestListAppUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestListAppUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: AppUi +* +*/ + +#ifndef C_CBCTESTLISTAPPUI_H +#define C_CBCTESTLISTAPPUI_H + +#include + +class CBCTestUtil; + +/** +* Application UI class. +*/ +class CBCTestListAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * Default constructor. + */ + CBCTestListAppUi(); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + /** + * Destructor. + */ + virtual ~CBCTestListAppUi(); + + private: + /** + * From CEikAppUi, HandleCommandL. + * Handles the commands. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + private: // Data + TInt iCurrentOutline; + + // Container for screen capturing. + CBCTestUtil* iTestUtil; + + }; + +#endif // C_CBCTESTLISTAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestListDocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestListDocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Document +* +*/ + +#ifndef C_CBCTESTLISTDOCUMENT_H +#define C_CBCTESTLISTDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestListDocument application class. +*/ +class CBCTestListDocument : public CAknDocument + { + public: // Constructors and destructor + + /** + * Symbian two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestListDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestListDocument(); + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestListDocument( CEikApplication& aApp ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestListAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_CBCTESTLISTDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlist.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlist.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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 "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 declarations +* +*/ + + +#ifndef BCTestLIST_HRH +#define BCTestLIST_HRH + +enum TBCTestAppMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + + // Column list boxes + EBCTestCmdOutline01, + EBCTestCmdOutline02, + EBCTestCmdOutline03, + EBCTestCmdOutline04, + EBCTestCmdOutline05, + EBCTestCmdOutline06, + EBCTestCmdOutline07, + EBCTestCmdOutline08, + EBCTestCmdOutline09, + EBCTestCmdOutline10, + EBCTestCmdOutline11, + EBCTestCmdOutline12, + EBCTestCmdOutline13, + EBCTestCmdOutline14, + EBCTestCmdOutline15, + EBCTestCmdOutline16, + EBCTestCmdOutline17, + EBCTestCmdOutline18, + EBCTestCmdOutline19, + EBCTestCmdOutline20, + EBCTestCmdOutline21, + EBCTestCmdOutline22, + EBCTestCmdOutline23, + EBCTestCmdOutline24, + EBCTestCmdOutline25, + EBCTestCmdOutline26, + EBCTestCmdOutline27, + EBCTestCmdOutline28, + EBCTestCmdOutline29, + EBCTestCmdOutline30, + EBCTestCmdOutline31, + EBCTestCmdOutline32, + EBCTestCmdOutline33, + EBCTestCmdOutline34, + EBCTestCmdOutline35, + EBCTestCmdOutline36, + EBCTestCmdOutline37, + EBCTestCmdOutline38, + EBCTestCmdOutline39, + EBCTestCmdOutline40, + EBCTestCmdOutline41, + EBCTestCmdOutline42, + EBCTestCmdOutline43, + EBCTestCmdOutline44, + EBCTestCmdOutline45, + EBCTestCmdOutline46, + EBCTestCmdOutline47, + EBCTestCmdOutline48, + EBCTestCmdOutline49, + EBCTestCmdOutline50, + EBCTestCmdOutline51, + EBCTestCmdOutline52, + EBCTestCmdOutline53, + EBCTestCmdOutline54, + EBCTestCmdOutline55, + EBCTestCmdOutline56, + EBCTestCmdOutline57, + + EProgSoftkeyNextOutline, + + EProgCmdAutoTest + }; + +enum TBCTestListSetPageItemIndex + { + EBCTestListEmptyItem = 1 + }; + +enum TBCTestListSelListDlgMenuCmd + { + EBCTestListCmdListDlgNone = 0x7600, + EBCTestListCmdListDlgSelListProcCmd, + EBCTestListCmdListDlgMultiSelListProcCmd, + EBCTestListCmdListDlgMarkListProcCmd, + EBCTestListCmdListDlgSimKey, + EBCTestListCmdListDlgSimKeyNumber, + EBCTestListCmdListDlgSimKeyDelete, + EBCTestListCmdListDlgSimKeyLeftShift, + EBCTestListCmdListDlgSimKeyRightShift, + EBCTestListCmdListDlgSimKeyUp, + EBCTestListCmdListDlgSimKeyDown, + EBCTestListCmdListDlgMarkListInitMPane1, + EBCTestListCmdListDlgMarkListInitMPane2, + EBCTestListCmdListDlgMarkListInitMItem1, + EBCTestListCmdListDlgMarkListInitMItem2, + EBCTestListCmdListDlgMarkListUpdateAfterCmd, + EBCTestListCmdListDlgItemRemoval, + EBCTestListCmdListDlgObserverTest + }; + +enum TBCTestListDlgCtrl + { + EBCTestListDlgLbx = 1 + }; + +#endif //BCTestLIST_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlist.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlist.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,280 @@ +/* +* 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 "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: Common localization strings +* +*/ + +// Caption +#define qtn_apps_tals_list "BCTestLIST" +#define qtn_apps_tals_grid "BCTestLIST" + +// Menu title +#define qtn_bctestlist_menu_column "Column listbox" +#define qtn_bctestlist_menu_formatted "Formatted cell listbox" +#define qtn_bctestlist_menu_setting_list "Setting listbox" +#define qtn_bctestlist_menu_popup_list "Popup listbox" +#define qtn_bctestlist_menu_grid_list "Grid pane listbox" +#define qtn_bctestlist_menu_other "Other cases" +#define qtn_bctestlist_menu_columnbase "EikColumnListBox" +#define qtn_bctestlist_menu_formatbase "EikFormattedCellListBox" +#define qtn_bctestlist_menu_eiklist "Eikon List Box" +#define qtn_bctestlist_menu_selection "Selection lists" + +#define qtn_bctestlist_menu_flag_test "Listbox flags" +#define qtn_bctestlist_menu_dialog_flag "Dialog flags" +#define qtn_bctestlist_menu_dialog "List dialog" +#define qtn_bctestlist_menu_misc "Misc lists" +#define qtn_bctestlist_menu10 "Empty list" +#define qtn_bctestlist_menu11 "Softkey bindings" +#define qtn_bctestlist_menu12 "Add and remove" +#define qtn_bctestlist_menu13 "Event action" +#define qtn_bctestlist_menu14 "Event of markable" +#define qtn_bctestlist_menu15 "Setting list item" +#define qtn_bctestlist_menu16 "Flag test" + +#define qtn_bctestlist_menu17 "List Dialog" +#define qtn_bctestlist_menu18 "Mark List Dialog" +#define qtn_bctestlist_menu_selection_service "Selection service" +#define qtn_bctestlist_exit "Exit" +#define qtn_bctestlist_autotest "Autotest" + +#define qtn_bctestlist_mark_all "Mark all" +#define qtn_bctestlist_unmark_all "Unmark all" +#define qtn_bctestlist_show_marked "Show marked items" + +// Menu cascade +#define text_softkey_option "Options" +#define text_softkey_back "Back" +#define qtn_bctestlist_outline_title "Outline%d" +#define qtn_bctestlist_outline_title_type "Outline%d\nType %d" + +#define qtn_bctestlist_outline01 "OUTLINE01" +#define qtn_bctestlist_outline02 "OUTLINE02" +#define qtn_bctestlist_outline03 "OUTLINE03" +#define qtn_bctestlist_outline04 "OUTLINE04" +#define qtn_bctestlist_outline05 "OUTLINE05" +#define qtn_bctestlist_outline06 "OUTLINE06" +#define qtn_bctestlist_outline07 "OUTLINE07" +#define qtn_bctestlist_outline08 "OUTLINE08" +#define qtn_bctestlist_outline09 "OUTLINE09" +#define qtn_bctestlist_outline10 "OUTLINE10" +#define qtn_bctestlist_outline11 "OUTLINE11" +#define qtn_bctestlist_outline12 "OUTLINE12" +#define qtn_bctestlist_outline13 "OUTLINE13" +#define qtn_bctestlist_outline14 "OUTLINE14" +#define qtn_bctestlist_outline15 "OUTLINE15" +#define qtn_bctestlist_outline16 "OUTLINE16" +#define qtn_bctestlist_outline17 "OUTLINE17" +#define qtn_bctestlist_outline18 "OUTLINE18" +#define qtn_bctestlist_outline19 "OUTLINE19" +#define qtn_bctestlist_outline20 "OUTLINE20" +#define qtn_bctestlist_outline21 "OUTLINE21" +#define qtn_bctestlist_outline22 "OUTLINE22" +#define qtn_bctestlist_outline23 "OUTLINE23" +#define qtn_bctestlist_outline24 "OUTLINE24" +#define qtn_bctestlist_outline25 "OUTLINE25" +#define qtn_bctestlist_outline26 "OUTLINE26" +#define qtn_bctestlist_outline27 "OUTLINE27" +#define qtn_bctestlist_outline28 "OUTLINE28" +#define qtn_bctestlist_outline29 "OUTLINE29" +#define qtn_bctestlist_outline30 "OUTLINE30" +#define qtn_bctestlist_outline31 "OUTLINE31" +#define qtn_bctestlist_outline32 "OUTLINE32" +#define qtn_bctestlist_outline33 "OUTLINE33" +#define qtn_bctestlist_outline34 "OUTLINE34" +#define qtn_bctestlist_outline35 "OUTLINE35" +#define qtn_bctestlist_outline36 "OUTLINE36" +#define qtn_bctestlist_outline37 "OUTLINE37" +#define qtn_bctestlist_outline38 "OUTLINE38" +#define qtn_bctestlist_outline39 "OUTLINE39" +#define qtn_bctestlist_outline40 "OUTLINE40" +#define qtn_bctestlist_outline41 "OUTLINE41" +#define qtn_bctestlist_outline42 "OUTLINE42" +#define qtn_bctestlist_outline43 "OUTLINE43" +#define qtn_bctestlist_outline44 "OUTLINE44" +#define qtn_bctestlist_outline45 "OUTLINE45" +#define qtn_bctestlist_outline46 "OUTLINE46" +#define qtn_bctestlist_outline47 "OUTLINE47" +#define qtn_bctestlist_outline48 "OUTLINE48" +#define qtn_bctestlist_outline49 "OUTLINE49" +#define qtn_bctestlist_outline50 "OUTLINE50" +#define qtn_bctestlist_outline51 "OUTLINE51" +#define qtn_bctestlist_outline52 "OUTLINE52" +#define qtn_bctestlist_outline53 "OUTLINE53" +#define qtn_bctestlist_outline54 "OUTLINE54" +#define qtn_bctestlist_outline55 "OUTLINE55" +#define qtn_bctestlist_outline56 "OUTLINE56" +#define qtn_bctestlist_outline57 "OUTLINE57" +#define qtn_bctestlist_outline58 "OUTLINE58" +#define qtn_bctestlist_outline59 "OUTLINE59" +#define qtn_bctestlist_outline60 "OUTLINE60" + +// misc: +#define qtn_bctestlist_outline61 "OUTLINE61" +#define qtn_bctestlist_outline62 "OUTLINE62" +#define qtn_bctestlist_outline63 "OUTLINE63 - Java" +#define qtn_bctestlist_outline64 "OUTLINE64 - Multiselection" + +//shortcut +#define qtn_bctestlist_outline65 "OUTLINE65 - ShortCuts" +#define qtn_bctestlist_outline66 "OUTLINE66 - ShortCuts" + +// Application Title +#define qtn_bctestlist_app_title "ListBox Test\n Application" + +// Empty list label +#define qtn_bctestlist_empty_label1 "Empty list" +#define qtn_bctestlist_empty_label2 "Two lines\nEmpty list" + +// Tab +#define qtn_bctestlist_tab "\t" + +// resource text +#define qtn_aknatlist_multi_title "Multiselection" + +// Information message +#define qtn_bctestlist_msg "Can not add" +#define qtn_bctestlist_mark_info "Marked item(s): " +#define qtn_bctestlist_format "%d," +#define qtn_bctestlist_no_mark "none" +#define qtn_bctestlist_resource_msg "Made from resource, press 0" +#define qtn_bctestlist_internal_msg "Made from code" +#define qtn_bctestlist_user_num_msg \ + "User defined numbers, press 0 for automatic numbering" +#define qtn_bctestlist_auto_num_msg "Automatic numbering" +#define qtn_bctestlist_item_count "Number of items: " +#define qtn_bctestlist_item_open "Open" + +// sub item +#define qtn_bctestlist_item_open1 " \tOpen 1" +#define qtn_bctestlist_item_open2 " \tOpen 2" +#define qtn_bctestlist_item_sub1 " \tback" + +#define qtn_bctestlist_add_item_s " \tAdded item" +#define qtn_bctestlist_add_item_d " \tAdded\tITEM" +#define qtn_bctestlist_add_item_st " \tADDED ITEM\t0\toff" + +// ListBox type number +#define qtn_bctestlist_type_1 "Type 1" +#define qtn_bctestlist_type_2 "Type 2" +#define qtn_bctestlist_type_3 "Type 3" +#define qtn_bctestlist_type_4 "Type 4" +#define qtn_bctestlist_type_5 "Type 5" +#define qtn_bctestlist_type_6 "Type 6" +#define qtn_bctestlist_type_7 "Type 7" +#define qtn_bctestlist_type_8 "Type 8" +#define qtn_bctestlist_type_9 "Type 9" +#define qtn_bctestlist_type_10 "Type 10" +#define qtn_bctestlist_type_11 "Type 11" +#define qtn_bctestlist_type_12 "Type 12" +#define qtn_bctestlist_type_13 "Type 13" +#define qtn_bctestlist_type_14 "Type 14" +#define qtn_bctestlist_type_15 "Type 15" +#define qtn_bctestlist_type_16 "Type 16" + +// Double2SytleLstBox item +#define qtn_bctestlist_double2_1 "\tFirstLabel\t\t0" +#define qtn_bctestlist_double2_2 "\tSecondLabel\t\t0" +#define qtn_bctestlist_double2_3 "\tThirdLabel\t\t0" +#define qtn_bctestlist_double2_4 "\tthis text is way too long and it \ +will be clipped even in widest landscape imaginable.\t\t0" + +// Form double graphic list box item +#define qtn_bctestlist_formdoublegraphic_1 "1\tFirstLabel\tSecondLabel\t0" + +// Style of findbox +#define qtn_bctestlist_find_fixed "Fixed" +#define qtn_bctestlist_find_popup "Popup" + +#define qtn_bctestlist_setpage_empty_title "Empty" +#define qtn_bctestlist_setpage_empty_item "Empty" +#define qtn_bctestlist_setpage_empty_label "Empty" + +#define qtn_bctestlist_listdlg_itemselected "Item %d is selected." +#define qtn_bctestlist_listdlg_cancelled "Cancel is selected." + +// For observer test for list dialog +#define qtn_bctestlist_listdlg_rec_obsevent "Received observer event" + +// For List dialog menu +#define qtn_bctestlist_listdlg_sellist_proccmd_menu "Process command" +#define qtn_bctestlist_listdlg_multilist_proccmd_menu "MultiSel ProcCmd" +#define qtn_bctestlist_listdlg_marklist_proccmd_menu "Process command" +#define qtn_bctestlist_listdlg_sim_key_menu "Simulate KeyEvent" +#define qtn_bctestlist_listdlg_marklist_initmpane1_menu "Init menu pane-1" +#define qtn_bctestlist_listdlg_marklist_initmpane2_menu "Init menu pane-2" +#define qtn_bctestlist_listdlg_marklist_initmitem1_menu "Init menu item-1" +#define qtn_bctestlist_listdlg_marklist_initmitem2_menu "Init menu item-2" +#define qtn_bctestlist_listdlg_marklist_aftercmd_menu "Update after cmd" +#define qtn_bctestlist_listdlg_item_removal_menu "Item removal" +#define qtn_bctestlist_listdlg_item_obstext_menu "Observer test" + +#define qtn_bctestlist_listdlg_none_menu "None" + +#define qtn_bctestlist_listdlg_sim_key_num_menu "Number" +#define qtn_bctestlist_listdlg_sim_key_delete_menu "Delete" +#define qtn_bctestlist_listdlg_sim_key_lshift_menu "Left shift" +#define qtn_bctestlist_listdlg_sim_key_rshift_menu "Right shift" +#define qtn_bctestlist_listdlg_sim_key_up_menu "Up" +#define qtn_bctestlist_listdlg_sim_key_down_menu "Down" + +// For next softkey +#define qtn_bctestlist_softkey_next "Next" + +#define qtn_bctestlist_empty_label "Empty" + +#define qtn_bctestlist_flagtest_dialog_label "-Press left arrow key\n"\ + "show list of previous type\n\n-Press right arrow key\n"\ + "show list of next type" + +// grid text +#define qtn_bctestlist_grid_item_1 "0" +#define qtn_bctestlist_grid_item_2 "1\t1" +#define qtn_bctestlist_grid_item_3 "2\t2\t2" +#define qtn_bctestlist_grid_item_4 "3\t\t3" +#define qtn_bctestlist_grid_item_5 "0" +#define qtn_bctestlist_grid_item_6 "1\t1" +#define qtn_bctestlist_grid_item_7 "2\t2\t2" +#define qtn_bctestlist_grid_item_8 "3\t\t3" +#define qtn_bctestlist_empty_selection_grid "empty" + +//----------------------------------------------------------------------------- +// double2 large graphic large +// TODO: chinese & arabic localization +// +// test graphics positions +#define qtn_bctestlist_item_d2lgl1 "1\t4\tThe Quick\tBrown Fox\t2\t4" +// swap positions, test truncation +#define qtn_bctestlist_item_d2lgl2 "1\t4\tjumps over the lazy\tdog\t4\t2" +// test only 1 optional icon and truncation +#define qtn_bctestlist_item_d2lgl3 "1\t4\tThis is a multiselection\tlist\t2\t2" +// test only 1 optional icon in other position and truncation +#define qtn_bctestlist_item_d2lgl4 "1\t4\tThis is a multiselection\tlist\t4\t2" +// test truncation both lines +#define qtn_bctestlist_item_d2lgl5 "1\t4\tThis is (again) a long item\ +\tAnd has probably even longer counterpart\t4\t2" +// 2 otional icons, no truncation +#define qtn_bctestlist_item_d2lgl6 "1\t2\tEEEEEE\teeeeee\t4\t2" +// no optional icon,s no truncation +#define qtn_bctestlist_item_d2lgl7 "1\t4\tFFFFFF\tffffff" +// 1 optional icon, no truncation +#define qtn_bctestlist_item_d2lgl8 "1\t4\tGGGGGG\tgggggg\t4" +// 1 optional icon in second pos, no truncation +#define qtn_bctestlist_item_d2lgl9 "1\t4\tHHHHHH\thhhhhh\t\t4" +// long 1st line, no 2nd line - needs a space for 2nd tough... +#define qtn_bctestlist_item_d2lgl10 "1\t4\tLong line no 2nd line yeah\t \t" +// long 2nd line +#define qtn_bctestlist_item_d2lgl11 "1\t4\t\tlong line long line long line\t4" + +// End Of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlist_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlist_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,427 @@ +/* +* 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 "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: English / chinese localization strings +* +*/ + + +#include "bctestList.loc" +// LOCALISATION STRINGS + +// ListBox items + +//----------------------------------------------------------------------------- +// single item +#define qtn_bctestlist_item_s1 " \taaaaaa" +#define qtn_bctestlist_item_s2 " \tbbbbbb" +#define qtn_bctestlist_item_s3 " \tcccccc" +#define qtn_bctestlist_item_s4 " \tdddddd" +#define qtn_bctestlist_item_s5 " \teeeeee" +#define qtn_bctestlist_item_s6 " \tffffff" +#define qtn_bctestlist_item_s7 " \tgggggg" +#define qtn_bctestlist_item_s8 " \thhhhhh" +#define qtn_bctestlist_item_s9 " \tthis text is way too long and it \ +will be clipped even in widest landscape imaginable." +#define qtn_bctestlist_item_s10 " \taaaaaa\t1" +#define qtn_bctestlist_item_s11 " \tdddddd\t1\t2" +#define qtn_bctestlist_item_s12 " \tcccccc\t1" +#define qtn_bctestlist_item_s13 " \tiiiiii" +#define qtn_bctestlist_item_s14 " \tjjjjjj" +#define qtn_bctestlist_item_s15 " \tkkkkkk" +#define qtn_bctestlist_item_s16 " \tllllll" +#define qtn_bctestlist_item_s17 " \tmmmmmm" +#define qtn_bctestlist_item_s18 " \tnnnnnn" +#define qtn_bctestlist_item_s19 " \toooooo" + +#define qtn_bctestlist_item_this_is " \tThis is a" +#define qtn_bctestlist_item_markable_list " \tmarkable list" +#define qtn_bctestlist_item_multisel_list " \tmultiselection list" +#define qtn_bctestlist_item_press_0 " \tPress 0!" +#define qtn_bctestlist_item_popupfind " \tPopup findbox" + +#define qtn_bctestlist_item_s1_add " \tAdd Items" +#define qtn_bctestlist_item_s2_rm " \tRemove Items" + +#define qtn_bctestlist_item_sgh_mulsel_list "1\tThis\tis multiselection list\t1" + +//----------------------------------------------------------------------------- +// single item with number +#define qtn_bctestlist_item_sn1 "8\taaaaaa" +#define qtn_bctestlist_item_sn2 "7\tbbbbbb" +#define qtn_bctestlist_item_sn3 "6\tcccccc" +#define qtn_bctestlist_item_sn4 "5\tdddddd" +#define qtn_bctestlist_item_sn5 "4\teeeeee" +#define qtn_bctestlist_item_sn6 "3\tffffff" +#define qtn_bctestlist_item_sn7 "2\tgggggg" +#define qtn_bctestlist_item_sn8 "1\thhhhhh" +#define qtn_bctestlist_item_sn9 "0\tiiiiii" +#define qtn_bctestlist_item_sn10 "0\tjjjjjj" +#define qtn_bctestlist_item_sn11 "0\tkkkkkk" +#define qtn_bctestlist_item_sn12 "0\tllllll" +#define qtn_bctestlist_item_sn13 "0\tmmmmmm" +#define qtn_bctestlist_item_sn14 "0\tnnnnnn" +#define qtn_bctestlist_item_sn15 "0\toooooo" + + +//----------------------------------------------------------------------------- + +#define qtn_bctestlist_item_sni1 "17\t0%" +#define qtn_bctestlist_item_sni2 "16\t1-7%" +#define qtn_bctestlist_item_sni3 "15\t7-13%" +#define qtn_bctestlist_item_sni4 "14\t13-20%" +#define qtn_bctestlist_item_sni5 "13\t20-27%" +#define qtn_bctestlist_item_sni6 "12\t27-33%" +#define qtn_bctestlist_item_sni7 "11\t33-40%" +#define qtn_bctestlist_item_sni8 "9\t40-47%" +#define qtn_bctestlist_item_sni9 "10\t47-53%" +#define qtn_bctestlist_item_sni10 "8\t53-60%" +#define qtn_bctestlist_item_sni11 "6\t60-67%" +#define qtn_bctestlist_item_sni12 "5\t67-73%" +#define qtn_bctestlist_item_sni13 "4\t73-80%" +#define qtn_bctestlist_item_sni14 "7\t80-87%" +#define qtn_bctestlist_item_sni15 "3\t87-93%" +#define qtn_bctestlist_item_sni16 "2\t93-99%" +#define qtn_bctestlist_item_sni17 "1\t100%" + +//----------------------------------------------------------------------------- +// single item with heading +#define qtn_bctestlist_item_sh1 " Head1\taaaaaa" +#define qtn_bctestlist_item_sh2 " Head2\tbbbbbb" +#define qtn_bctestlist_item_sh3 " Head3\tcccccc" +#define qtn_bctestlist_item_sh4 " Head4\tdddddd" +#define qtn_bctestlist_item_sh5 " Head5\teeeeee" +#define qtn_bctestlist_item_sh6 " Head6\tffffff" +#define qtn_bctestlist_item_sh7 " Head7\tgggggg" +#define qtn_bctestlist_item_sh8 " Head8\thhhhhh" +#define qtn_bctestlist_item_sh9 " Head9\tiiiiii" +#define qtn_bctestlist_item_sh10 " Head10\tjjjjjj" +#define qtn_bctestlist_item_sh11 " Head11\tkkkkkk" +#define qtn_bctestlist_item_sh12 " Head12\tllllll" +#define qtn_bctestlist_item_sh13 " Head13\tmmmmmm" +#define qtn_bctestlist_item_sh14 " Head14\tnnnnnn" +#define qtn_bctestlist_item_sh15 " Head15\toooooo" + +//----------------------------------------------------------------------------- +// single item with graphic +#define qtn_bctestlist_item_sg1 "1\taaaaaa" +#define qtn_bctestlist_item_sg2 "1\tbbbbbb" +#define qtn_bctestlist_item_sg3 "1\tcccccc" +#define qtn_bctestlist_item_sg4 "1\tdddddd" +#define qtn_bctestlist_item_sg5 "1\teeeeee" +#define qtn_bctestlist_item_sg6 "1\tffffff" +#define qtn_bctestlist_item_sg7 "1\tgggggg" +#define qtn_bctestlist_item_sg8 "1\thhhhhh" +#define qtn_bctestlist_item_sg9 "1\tiiiiii" +#define qtn_bctestlist_item_sg10 "1\tjjjjjj" +#define qtn_bctestlist_item_sg11 "1\tkkkkkk" +#define qtn_bctestlist_item_sg12 "1\tllllll" +#define qtn_bctestlist_item_sg13 "1\tmmmmmm" +#define qtn_bctestlist_item_sg14 "1\tnnnnnn" +#define qtn_bctestlist_item_sg15 "1\toooooo" + +//----------------------------------------------------------------------------- +// single item with large graphic +#define qtn_bctestlist_item_slg1 "1\taaaaaa" +#define qtn_bctestlist_item_slg2 "1\tbbbbbb" +#define qtn_bctestlist_item_slg3 "1\tcccccc" +#define qtn_bctestlist_item_slg4 "1\tdddddd" +#define qtn_bctestlist_item_slg5 "1\teeeeee" +#define qtn_bctestlist_item_slg6 "1\tffffff" +#define qtn_bctestlist_item_slg7 "1\tgggggg" +#define qtn_bctestlist_item_slg8 "1\thhhhhh" +#define qtn_bctestlist_item_slg9 "1\tiiiiii" +#define qtn_bctestlist_item_slg10 "1\tjjjjjj" +#define qtn_bctestlist_item_slg11 "1\tkkkkkk" +#define qtn_bctestlist_item_slg12 "1\tllllll" +#define qtn_bctestlist_item_slg13 "1\tmmmmmm" +#define qtn_bctestlist_item_slg14 "1\tnnnnnn" +#define qtn_bctestlist_item_slg15 "1\toooooo" + +//----------------------------------------------------------------------------- +// single item with graphics and heading +#define qtn_bctestlist_item_sgh1 "1\tHead1\taaaaaa" +#define qtn_bctestlist_item_sgh2 "1\tHead2\tbbbbbb" +#define qtn_bctestlist_item_sgh3 "1\tHead3\tcccccc" +#define qtn_bctestlist_item_sgh4 "1\tHead4\tdddddd" +#define qtn_bctestlist_item_sgh5 "1\tHead5\teeeeee" +#define qtn_bctestlist_item_sgh6 "1\tHead6\tffffff" +#define qtn_bctestlist_item_sgh7 "1\tHead7\tgggggg" +#define qtn_bctestlist_item_sgh8 "1\tHead8\thhhhhh" +#define qtn_bctestlist_item_sgh9 "2\t B \t C D" +#define qtn_bctestlist_item_sgh10 "1\tHead8\taaaaaa\t1" +#define qtn_bctestlist_item_sgh11 "1\tHead11\tiiiiii" +#define qtn_bctestlist_item_sgh12 "1\tHead12\tjjjjjj" +#define qtn_bctestlist_item_sgh13 "1\tHead13\tkkkkkk" +#define qtn_bctestlist_item_sgh14 "1\tHead14\tllllll" +#define qtn_bctestlist_item_sgh15 "1\tHead15\tmmmmmm" +#define qtn_bctestlist_item_sgh16 "1\tHead16\tnnnnnn" +#define qtn_bctestlist_item_sgh17 "1\tHead17\toooooo" + +//----------------------------------------------------------------------------- +// single item with number and heading +#define qtn_bctestlist_item_snh1 "8\tHead1\taaaaaa" +#define qtn_bctestlist_item_snh2 "7\tHead2\tbbbbbb" +#define qtn_bctestlist_item_snh3 "6\tHead3\tcccccc" +#define qtn_bctestlist_item_snh4 "5\tHead4\tdddddd" +#define qtn_bctestlist_item_snh5 "4\tHead5\teeeeee" +#define qtn_bctestlist_item_snh6 "3\tHead6\tffffff" +#define qtn_bctestlist_item_snh7 "2\tHead7\tgggggg" +#define qtn_bctestlist_item_snh8 "1\tHead8\thhhhhh" +#define qtn_bctestlist_item_snh9 "0\tHead9\tiiiiii" +#define qtn_bctestlist_item_snh10 "0\tHead10\tjjjjjj" +#define qtn_bctestlist_item_snh11 "0\tHead11\tkkkkkk" +#define qtn_bctestlist_item_snh12 "0\tHead12\tllllll" +#define qtn_bctestlist_item_snh13 "0\tHead13\tmmmmmm" +#define qtn_bctestlist_item_snh14 "0\tHead14\tnnnnnn" +#define qtn_bctestlist_item_snh15 "0\tHead15\toooooo" + +//----------------------------------------------------------------------------- +// big single item +#define qtn_bctestlist_item_bs1 " \taaaaaa\t " +#define qtn_bctestlist_item_bs2 " \tbbbbbb\t " +#define qtn_bctestlist_item_bs3 " \tcccccc\t " +#define qtn_bctestlist_item_bs4 " \tThis is a very long item text which will be truncated always\t " +#define qtn_bctestlist_item_bs5 " \teeeeee\t " +#define qtn_bctestlist_item_bs6 " \tffffff\t " +#define qtn_bctestlist_item_bs7 " \tgggggg\t " +#define qtn_bctestlist_item_bs8 " \thhhhhh\t " +#define qtn_bctestlist_item_bs9 " \tiiiiii\t " +#define qtn_bctestlist_item_bs10 " \tjjjjjj\t " +#define qtn_bctestlist_item_bs11 " \tkkkkkk\t " +#define qtn_bctestlist_item_bs12 " \tllllll\t " +#define qtn_bctestlist_item_bs13 " \tmmmmmm\t " +#define qtn_bctestlist_item_bs14 " \tnnnnnn\t " +#define qtn_bctestlist_item_bs15 " \toooooo\t " + +//----------------------------------------------------------------------------- +// big single item with number +#define qtn_bctestlist_item_bsn1 "8\taaaaaa\t " +#define qtn_bctestlist_item_bsn2 "7\tbbbbbb\t " +#define qtn_bctestlist_item_bsn3 "6\tcccccc\t " +#define qtn_bctestlist_item_bsn4 "5\tThis is a very long item text which will be truncated always\t " +#define qtn_bctestlist_item_bsn5 "4\teeeeee\t " +#define qtn_bctestlist_item_bsn6 "3\tffffff\t " +#define qtn_bctestlist_item_bsn7 "2\tgggggg\t " +#define qtn_bctestlist_item_bsn8 "1\thhhhhh\t " +#define qtn_bctestlist_item_bsn9 "0\tiiiiii\t " +#define qtn_bctestlist_item_bsn10 "0\tjjjjjj\t " +#define qtn_bctestlist_item_bsn11 "0\tkkkkkk\t " +#define qtn_bctestlist_item_bsn12 "0\tllllll\t " +#define qtn_bctestlist_item_bsn13 "0\tmmmmmm\t " +#define qtn_bctestlist_item_bsn14 "0\tnnnnnn\t " +#define qtn_bctestlist_item_bsn15 "0\toooooo\t " + +//----------------------------------------------------------------------------- +// big single item with large graphic +#define qtn_bctestlist_item_bsg1 "1\taaaaaa\t " +#define qtn_bctestlist_item_bsg2 "1\tbbbbbb\t " +#define qtn_bctestlist_item_bsg3 "1\tcccccc\t " +#define qtn_bctestlist_item_bsg4 "1\tThis is a very long item text which will be truncated always\t " +#define qtn_bctestlist_item_bsg5 "1\teeeeee\t " +#define qtn_bctestlist_item_bsg6 "1\tffffff\t " +#define qtn_bctestlist_item_bsg7 "1\tgggggg\t " +#define qtn_bctestlist_item_bsg8 "1\thhhhhh\t " +#define qtn_bctestlist_item_bsg9 "1\tiiiiii\t " +#define qtn_bctestlist_item_bsg10 "1\tjjjjjj\t " +#define qtn_bctestlist_item_bsg11 "1\tkkkkkk\t " +#define qtn_bctestlist_item_bsg12 "1\tllllll\t " +#define qtn_bctestlist_item_bsg13 "1\tmmmmmm\t " +#define qtn_bctestlist_item_bsg14 "1\tnnnnnn\t " +#define qtn_bctestlist_item_bsg15 "1\toooooo\t " + +//----------------------------------------------------------------------------- + +// double item +#define qtn_bctestlist_item_d1 " \tAAAAAA\taaaaaa" +#define qtn_bctestlist_item_d2 " \tBBBBBB\tbbbbbb" +#define qtn_bctestlist_item_d3 " \tCCCCCC\tcccccc" +#define qtn_bctestlist_item_d4 " \tThis is a very long item text which will be truncated always\t\ + but this may be even longer item" +#define qtn_bctestlist_item_d5 " \tEEEEEE\teeeeee" +#define qtn_bctestlist_item_d6 " \tFFFFFF\tffffff" +#define qtn_bctestlist_item_d7 " \tGGGGGG\tgggggg" +#define qtn_bctestlist_item_d8 " \tHHHHHH\thhhhhh" +#define qtn_bctestlist_item_d9 " \tIIIIII\tiiiiii" +#define qtn_bctestlist_item_d10 " \tJJJJJJ\tjjjjjj" +#define qtn_bctestlist_item_d11 " \tKKKKKK\tkkkkkk" +#define qtn_bctestlist_item_d12 " \tLLLLLL\tllllll" +#define qtn_bctestlist_item_d13 " \tMMMMMM\tmmmmmm" +#define qtn_bctestlist_item_d14 " \tNNNNNN\tnnnnnn" +#define qtn_bctestlist_item_d15 " \tOOOOOO\toooooo" + +//----------------------------------------------------------------------------- +// double item with number +#define qtn_bctestlist_item_dn1 "8\tAAAAAA\taaaaaa" +#define qtn_bctestlist_item_dn2 "7\tBBBBBB\tbbbbbb" +#define qtn_bctestlist_item_dn3 "6\tCCCCCC\tcccccc" +#define qtn_bctestlist_item_dn4 "5\tThis is a very long item text which will be truncated always\t\ +this may be even longer item dddddd" +#define qtn_bctestlist_item_dn5 "4\tEEEEEE\teeeeee" +#define qtn_bctestlist_item_dn6 "3\tFFFFFF\tffffff" +#define qtn_bctestlist_item_dn7 "2\tGGGGGG\tgggggg" +#define qtn_bctestlist_item_dn8 "1\tHHHHHH\thhhhhh" +#define qtn_bctestlist_item_dn9 "0\tIIIIII\tiiiiii" +#define qtn_bctestlist_item_dn10 "0\tJJJJJJ\tjjjjjj" +#define qtn_bctestlist_item_dn11 "0\tKKKKKK\tkkkkkk" +#define qtn_bctestlist_item_dn12 "0\tLLLLLL\tllllll" +#define qtn_bctestlist_item_dn13 "0\tMMMMMM\tmmmmmm" +#define qtn_bctestlist_item_dn14 "0\tNNNNNN\tnnnnnn" +#define qtn_bctestlist_item_dn15 "0\tOOOOOO\toooooo" + +//----------------------------------------------------------------------------- +// double item with graphic +#define qtn_bctestlist_item_dg1 "1\tAAAAAA\taaaaaa" +#define qtn_bctestlist_item_dg2 "1\tBBBBBB\tbbbbbb" +#define qtn_bctestlist_item_dg3 "1\tCCCCCC\tcccccc" +#define qtn_bctestlist_item_dg4 "1\tThis is a very long item text which will be truncated always\t\ +this may be even longer item" +#define qtn_bctestlist_item_dg5 "1\tEEEEEE\teeeeee" +#define qtn_bctestlist_item_dg6 "1\tFFFFFF\tffffff" +#define qtn_bctestlist_item_dg7 "1\tGGGGGG\tgggggg" +#define qtn_bctestlist_item_dg8 "1\tHHHHHH\thhhhhh" +#define qtn_bctestlist_item_dg9 "1\tIIIIII\tiiiiii" +#define qtn_bctestlist_item_dg10 "1\tJJJJJJ\tjjjjjj" +#define qtn_bctestlist_item_dg11 "1\tKKKKKK\tkkkkkk" +#define qtn_bctestlist_item_dg12 "1\tLLLLLL\tllllll" +#define qtn_bctestlist_item_dg13 "1\tMMMMMM\tmmmmmm" +#define qtn_bctestlist_item_dg14 "1\tNNNNNN\tnnnnnn" +#define qtn_bctestlist_item_dg15 "1\tOOOOOO\toooooo" + +//----------------------------------------------------------------------------- +// double item with large graphic +#define qtn_bctestlist_item_dlg1 "1\tAAAAAA\taaaaaa" +#define qtn_bctestlist_item_dlg2 "1\tBBBBBB\tbbbbbb" +#define qtn_bctestlist_item_dlg3 "1\tCCCCCC\tcccccc" +#define qtn_bctestlist_item_dlg4 "1\tThis is (again) a long item\t\ +And has probably even longer counterpart" +#define qtn_bctestlist_item_dlg5 "1\tEEEEEE\teeeeee" +#define qtn_bctestlist_item_dlg6 "1\tFFFFFF\tffffff" +#define qtn_bctestlist_item_dlg7 "1\tGGGGGG\tgggggg" +#define qtn_bctestlist_item_dlg8 "1\tHHHHHH\thhhhhh" +#define qtn_bctestlist_item_dlg9 "1\tIIIIII\tiiiiii" +#define qtn_bctestlist_item_dlg10 "1\tJJJJJJ\tjjjjjj" +#define qtn_bctestlist_item_dlg11 "1\tKKKKKK\tkkkkkk" +#define qtn_bctestlist_item_dlg12 "1\tLLLLLL\tllllll" +#define qtn_bctestlist_item_dlg13 "1\tMMMMMM\tmmmmmm" +#define qtn_bctestlist_item_dlg14 "1\tNNNNNN\tnnnnnn" +#define qtn_bctestlist_item_dlg15 "1\tOOOOOO\toooooo" + +//----------------------------------------------------------------------------- +// double2 item with large graphic +#define qtn_bctestlist_item_dl2g1 "1\t1\tAAAAAA\taaaaaa" +#define qtn_bctestlist_item_dl2g2 "1\t1\tBBBBBB\tbbbbbb" +#define qtn_bctestlist_item_dl2g3 "1\t1\tCCCCCC\tcccccc" +#define qtn_bctestlist_item_dl2g4 "1\t1\tThis is (again) a long item\t\ +And has probably even longer counterpart" +#define qtn_bctestlist_item_dl2g5 "1\t1\tEEEEEE\teeeeee" +#define qtn_bctestlist_item_dl2g6 "1\t1\tFFFFFF\tffffff" +#define qtn_bctestlist_item_dl2g7 "1\t1\tGGGGGG\tgggggg" +#define qtn_bctestlist_item_dl2g8 "1\t1\tHHHHHH\thhhhhh" +#define qtn_bctestlist_item_dl2g9 "1\t1\tIIIIII\tiiiiii" +#define qtn_bctestlist_item_dl2g10 "1\t1\tJJJJJJ\tjjjjjj" +#define qtn_bctestlist_item_dl2g11 "1\t1\tKKKKKK\tkkkkkk" +#define qtn_bctestlist_item_dl2g12 "1\t1\tLLLLLL\tllllll" +#define qtn_bctestlist_item_dl2g13 "1\t1\tMMMMMM\tmmmmmm" +#define qtn_bctestlist_item_dl2g14 "1\t1\tNNNNNN\tnnnnnn" +#define qtn_bctestlist_item_dl2g15 "1\t1\tOOOOOO\toooooo" + +//----------------------------------------------------------------------------- +// double2 item with large +#define qtn_bctestlist_item_dl21 "1\tAAAAAA\taaaaaa\t1" +#define qtn_bctestlist_item_dl22 "1\tBBBBBB\tbbbbbb\t1" +#define qtn_bctestlist_item_dl23 "1\tCCCCCC\tcccccc\t1" +#define qtn_bctestlist_item_dl24 "1\tThis is (again) a long item\t\ +And has probably even longer counterpart\t1" +#define qtn_bctestlist_item_dl25 "1\tEEEEEE\teeeeee\t1" +#define qtn_bctestlist_item_dl26 "1\tFFFFFF\tffffff\t1" +#define qtn_bctestlist_item_dl27 "1\tGGGGGG\tgggggg\t1" +#define qtn_bctestlist_item_dl28 "1\tHHHHHH\thhhhhh\t1" +#define qtn_bctestlist_item_dl29 "1\tIIIIII\tiiiiii\t1" +#define qtn_bctestlist_item_dl210 "1\tJJJJJJ\tjjjjjj\t1" +#define qtn_bctestlist_item_dl211 "1\tKKKKKK\tkkkkkk\t1" +#define qtn_bctestlist_item_dl212 "1\tLLLLLL\tllllll\t1" +#define qtn_bctestlist_item_dl213 "1\tMMMMMM\tmmmmmm\t1" +#define qtn_bctestlist_item_dl214 "1\tNNNNNN\tnnnnnn\t1" +#define qtn_bctestlist_item_dl215 "1\tOOOOOO\toooooo\t1" + +//----------------------------------------------------------------------------- +// double item with time +#define qtn_bctestlist_item_dt1 "11:00\tam\tAAAAAA\taaaaaa" +#define qtn_bctestlist_item_dt2 "12:00\t \tBBBBBB\tbbbbbb" +#define qtn_bctestlist_item_dt3 " 1:00\tpm\tCCCCCC\tcccccc" +#define qtn_bctestlist_item_dt4 "14:00\t \tDDDDDD\tdddddd" +#define qtn_bctestlist_item_dt5 "15:00\t \tEEEEEE\teeeeee" +#define qtn_bctestlist_item_dt6 "16:00\t \tFFFFFF\tffffff" +#define qtn_bctestlist_item_dt7 "17:00\t \tGGGGGG\tgggggg" +#define qtn_bctestlist_item_dt8 "18:00\t \tIt is really getting late\t\ +And this line is so long" + +//----------------------------------------------------------------------------- +// setting item +/* +#define qtn_bctestlist_item_st1 " \tAAAAAA\t0\toff" +#define qtn_bctestlist_item_st2 " \tBBBBBB\t0\toff" +#define qtn_bctestlist_item_st3 " \tCCCCCC\t0\toff" +#define qtn_bctestlist_item_st4 " \tDDDDDD\t0\toff" +#define qtn_bctestlist_item_st5 " \tSetting item may also be long\t0\toff" +#define qtn_bctestlist_item_st6 " \tFFFFFF\t0\toff" +#define qtn_bctestlist_item_st7 " \tGGGGGG\t0\toff" +#define qtn_bctestlist_item_st8 " \tHHHHHH\t0\toff" +#define qtn_bctestlist_item_st9 " \tIIIIII\t0\toff" +#define qtn_bctestlist_item_st10 " \tJJJJJJ\t0\toff" +#define qtn_bctestlist_item_st11 " \tKKKKKK\t0\toff" +#define qtn_bctestlist_item_st12 " \tLLLLLL\t0\toff" +#define qtn_bctestlist_item_st13 " \tMMMMMM\t0\toff" +#define qtn_bctestlist_item_st14 " \tNNNNNN\t0\toff" +#define qtn_bctestlist_item_st15 " \tOOOOOO\t0\toff" +*/ + +#define qtn_bctestlist_item_st1 " \tAAAAAA\t0\toff" +#define qtn_bctestlist_item_st2 " \tBBBBBB\t0\toff" +#define qtn_bctestlist_item_st3 " \tCCCCCC\t\toff" +#define qtn_bctestlist_item_st4 " \tDDDDDD\t0\t" +#define qtn_bctestlist_item_st5 " \tSetting item may also be long\t0\toff" +#define qtn_bctestlist_item_st6 " \tFFFFFF\t\toff\t*" +#define qtn_bctestlist_item_st7 " \tGGGGGG\t\t\t\tgggg" +#define qtn_bctestlist_item_st8 " \tHHHHHH\t0\toff" +#define qtn_bctestlist_item_st9 " \tIIIIII\t0\toff" +#define qtn_bctestlist_item_st10 " \tJJJJJJ\t0\toff" +#define qtn_bctestlist_item_st11 " \tKKKKKK\t0\toff" +#define qtn_bctestlist_item_st12 " \tLLLLLL\t0\toff" +#define qtn_bctestlist_item_st13 " \tMMMMMM\t0\toff" +#define qtn_bctestlist_item_st14 " \tNNNNNN\t0\toff" +#define qtn_bctestlist_item_st15 " \tOOOOOO\t0\toff" + +#define qtn_bctestlist_item_st1_add " \tAdd items\t0\toff" +#define qtn_bctestlist_item_st2_rm " \tRemove items\t0\toff" + +//----------------------------------------------------------------------------- +// setting number item +#define qtn_bctestlist_item_stn1 "8\tAAAAAA\t0\toff" +#define qtn_bctestlist_item_stn2 "7\tBBBBBB\t0\toff" +#define qtn_bctestlist_item_stn3 "6\tCCCCCC\t0\toff" +#define qtn_bctestlist_item_stn4 "5\tNumbered setting items\t0\toff" +#define qtn_bctestlist_item_stn5 "4\tEEEEEE\t0\toff" +#define qtn_bctestlist_item_stn6 "3\tFFFFFF\t0\toff" +#define qtn_bctestlist_item_stn7 "2\tGGGGGG\t0\toff" +#define qtn_bctestlist_item_stn8 "1\tHHHHHH\t0\toff" +#define qtn_bctestlist_item_stn9 "0\tIIIIII\t0\toff" +#define qtn_bctestlist_item_stn10 "0\tJJJJJJ\t0\toff" +#define qtn_bctestlist_item_stn11 "0\tKKKKKK\t0\toff" +#define qtn_bctestlist_item_stn12 "0\tLLLLLL\t0\toff" +#define qtn_bctestlist_item_stn13 "0\tMMMMMM\t0\toff" +#define qtn_bctestlist_item_stn14 "0\tNNNNNN\t0\toff" +#define qtn_bctestlist_item_stn15 "0\tOOOOOO\t0\toff" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistbasecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistbasecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,139 @@ +/* +* 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 "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: base test case for various list classes +* +*/ + +#ifndef C_BCTESTLISTBASECASE_H +#define C_BCTESTLISTBASECASE_H + +#include "bctestcase.h" + +class CBCTestListContainer; +class CEikListBox; +class CEikTextListBox; +class CEikColumnListBox; +class CEikFormattedCellListBox; +class CTextListBoxModel; +class CEikonEnv; +class CGulIcon; + +const TInt KBCTestListInitListResourceId = 0; +const TInt KBCTestListInitEmptyResourceId = 0; +const TInt KBCTestListMessageInitId = 0; +const TInt KBCTestListAddInitCount = 0; +const TInt KBCTestListRemoveInitCount = 0; +const TInt KBCTestListGraphicGulIconIndex = 10; +const TInt KBCTestListDefaultFlag = 0; +_LIT(KAvkonMbmFileName, "\\resource\\apps\\avkon2.mbm"); +_LIT(KBCTestListMbmFileName, "\\resource\\apps\\bctestlist.mbm"); +//Define .mif file for .svg icons +_LIT(KBCTestListMifFileName, "\\resource\\apps\\bctestlist.mif"); + +/** +* list base case class +*/ +class CBCTestListBaseCase: public CBCTestCase + { +public: + +// constructor and destructor + + CBCTestListBaseCase( CBCTestListContainer* iContainer, + CEikonEnv* aEikEnv = NULL ); + + ~CBCTestListBaseCase(); + +// new functions + + /** + * Sets listbox from resource using ConstructFromResourceL() of + * CEikColumnListBox class. + * @param aListBox Pointer of listbox. + * @param aResourceId Resource ID of listbox. + */ + void SetListBoxFromResourceL( CEikColumnListBox* aListBox, + const TInt aResourceId ); + + /** + * Sets listbox from resource using ConstructFromResourceL() of + * CEikFormattedCellListBox class. + * @param aListBox Pointer of listbox. + * @param aResourceId Resource ID of listbox. + */ + void SetListBoxFromResourceL( CEikFormattedCellListBox* aListBox, + const TInt aResourceId ); + + /** + * Sets listbox from inner description using ConstructL() of + * CEikColumnListBox class. + * @param aListBox Pointer of listbox. + * @param aFlags Flags of listbox. + * @param textArray List items as CDesCArray. + */ + void SetListBoxFromInnerDescriptionL( + CEikColumnListBox* aListBox, + const TInt aFlags = KBCTestListDefaultFlag, + CDesCArray* textArray = NULL ); + + /** + * Sets listbox from inner description using ConstructL() of + * CEikFormattedCellListBox class. + * @param aListBox Pointer of listbox. + * @param aFlags Flags of listbox. + * @param textArray List items as CDesCArray. + */ + void SetListBoxFromInnerDescriptionL( + CEikFormattedCellListBox* aListBox, + const TInt aFlags = KBCTestListDefaultFlag, + CDesCArray* textArray = NULL ); + + /** + * Sets graphic icon using listbox as CEikColumnListBox. + * @param aListBox Pointer of listbox. + */ + void SetGraphicIconL( CEikColumnListBox* aListBox ); + + /** + * Sets graphic icon using listbox as CEikFormattedCellListBox. + * @param aListBox Pointer of listbox. + */ + void SetGraphicIconL( CEikFormattedCellListBox* aListBox ); + + /** + * Creates the icon and adds it to the array if it was successful + */ + void CreateIconAndAddToArrayL( CArrayPtr*& aIconsArray, + const TDesC& aIconFile, + TInt aBitmap, TInt aMask = -1); + +private: // New Function + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +protected: // data + + CBCTestListContainer* iContainer; // not own + + CEikonEnv* iEikEnv; // not own + + TInt iOutlineId; + + }; + +#endif // C_BCTESTLISTBASECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistcolumnbasecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistcolumnbasecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,179 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for grid pane list box classes +* +*/ + +#ifndef C_CBCTESTLISTCOLUMNBASECASE_H +#define C_CBCTESTLISTCOLUMNBASECASE_H + +#include + +#include "bctestlistbasecase.h" + +class CEikonEnv; +class CEikColumnListBox; +class CBCTestListContainer; +class CBCTestColumnListBoxData; + +/** + * Fake observer class for test + */ +class TBCTestListBoxAnimBgDrawer: public MColumnListBoxAnimBackgroundDrawer + { +public: + + TBool DrawHighlightAnimBackground( CFbsBitGc& aGc ) const; + + }; + +/** +* test case for various list classes +*/ +class CBCTestListColumnBaseCase: public CBCTestListBaseCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListColumnBaseCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListColumnBaseCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * prepare environment for test + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test CEikColumnListBox + */ + void TestColumnListL(); + + /** + * Test CColumnListBoxItemDrawer and CEikColumnListBoxEditor + */ + void TestColumnItemDrawerAndEditorL(); + + /** + * Test CColumnListBoxData + */ + void TestColumnListDataL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestListColumnBaseCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Own + */ + CEikColumnListBox* iListBox; + + TBCTestListBoxAnimBgDrawer iDrawer; + + /** + * Own + */ + CBCTestColumnListBoxData* iBCData; + + }; + +/** + * Class for testing protected API of CColumnListBoxData + */ +class CBCTestColumnListBoxData: public CColumnListBoxData + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestColumnListBoxData(); + + /** + * C++ default constructor + */ + ~CBCTestColumnListBoxData(); + +public: + +// new fuctions + + /** + * Test ConsturctLD + */ + void TestConstructLD( const TAknsItemID& aAnimationIID ); + + /** + * Test DrawText + */ + void TestDrawText( CWindowGc& aGc, const TRect& aTextRect, + const TDesC& aText, const TDesC& aClippedText, + const TInt aBaselineOffset, + const CGraphicsContext::TTextAlign aAlign, + const CFont& aFont, const TBool aHighlight, + const TBool aIsTextClipped ); + + }; + +/** + * Class for test protected API of CEikColumnListBoxEditor + */ +class CBCTestColumnListBoxEditor: public CEikColumnListBoxEditor + { + friend class CBCTestListColumnBaseCase; + +public: + + CBCTestColumnListBoxEditor( MListBoxModel* aModel ); + + }; + +#endif // C_CBCTESTLISTCOLUMNBASECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistcolumncase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistcolumncase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,111 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for column list classes +* +*/ + +#ifndef C_CBCTESTLISTCOLUMNCASE_H +#define C_CBCTESTLISTCOLUMNCASE_H + +#include "bctestlistbasecase.h" + +class CEikColumnListBox; +class CBCTestListContainer; + +/** +* test case for various list classes +*/ +class CBCTestListColumnCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListColumnCase* NewL( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListColumnCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Prepare necessary resource for test case + * @param aCmd, UI command + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used by test case + */ + void ReleaseCase(); + + /** + * test functions + */ + void TestColumnListL( TInt aCmd ); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListColumnCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + /** + * Own + */ + CEikColumnListBox* iListBox; + + }; + +#endif // C_CBCTESTLISTCOLUMNCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,76 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_CBCTESTLISTCONTAINER_H +#define C_CBCTESTLISTCONTAINER_H + +#include + +class CBCTestListBaseCase; + +/** +* container class +*/ +class CBCTestListContainer: public CCoeControl + { + friend class CBCTestListSettingCase; + friend class CBCTestListColumnBaseCase; + friend class CBCTestListFormatBaseCase; + friend class CBCTestListEiklistCase; + +public: // constructor and destructor + + CBCTestListContainer(); + + virtual ~CBCTestListContainer(); + + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and this container will own the + * component control. + */ + void SetControl( CCoeControl* aControl ); + + void ResetControl(); + +public: // from CCoeControl + + TInt CountComponentControls() const; + + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Responsible for delete this + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTLISTCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistdecoratorcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistdecoratorcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for aknlistboxlayoutdecorator +* +*/ + +#ifndef C_CBCTESTLISTDECORATORCASE_H +#define C_CBCTESTLISTDECORATORCASE_H + +#include "bctestlistbasecase.h" + +class CEikonEnv; +class CEikTextListBox; +class CBCTestListContainer; +class CColumnListBoxItemDrawer; + +/** +* test case for various list classes +*/ +class CBCTestListDecoratorCase: public CBCTestListBaseCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListDecoratorCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListDecoratorCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test functions + */ + void TestLayoutDecoratorL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestListDecoratorCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Own + */ + CEikTextListBox* iListBox; + + }; + +#endif // C_CBCTESTLISTDECORATORCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlisteiklistcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlisteiklistcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,235 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for list classes in eikstd +* +*/ + + +#ifndef C_BCTESTLISTEIKLISTCASE_H +#define C_BCTESTLISTEIKLISTCASE_H + +#include +#include +#include + +#include "bctestlistbasecase.h" + +class CEikonEnv; +class CBCTestListContainer; +class CBCTestListBoxData; +class CBCTestTextListItemDrawer; +class CBCTestTextListModel; +class CBCTestTextListBox; +class CBCTestTextSnakingListBox; + +/** +* test case for various list classes +*/ +class CBCTestListEiklistCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListEiklistCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListEiklistCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * prepare environment for test + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test functions + */ + void TestListBoxDataL(); + + void TestCEikListBoxEditorL(); + + void TestCTextListItemDrawerL(); + + void TestListBoxViewL(); + + void TestEikListBoxL(); + + void TestSnakingListBoxL(); + + void TestSnakingListBoxViewL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestListEiklistCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + CBCTestListBoxData* iData; // own + + TInt iCurrentCmd; + + CBCTestTextListItemDrawer* iTextDrawer; // own + + CBCTestTextListModel* iModel; // own + + CBCTestTextListBox* iListBox; // own + + CBCTestTextSnakingListBox* iSnakingList; // own + + }; + +/** + * Test class for protected API of CListBoxData + */ +class CBCTestListBoxData: public CListBoxData + { +public: + + TInt TestRegenerateFonts(); + void TestConstructFontL( const CFont* aBaseFont ); + void TestUpdateFontBoundValues( const CFont* aBaseFont ); + TBool TestCFontWithStyle(); + + }; + +/** + * Fake class of MListBoxEditorObserver + */ +class TBCTestListBoxEditorObserver: public MListBoxEditorObserver + { +public: + + TKeyResponse HandleListBoxEditorEventL( + MEikListBoxEditor* aListBoxEditor, const TKeyEvent& aKeyEvent); + + }; + +/** + * Test class for protected API of CEikListBoxTextEditor + */ +class CBCTestListBoxEditor: public CEikListBoxTextEditor + { +public: + + CBCTestListBoxEditor( MListBoxModel* aModel, CEikonEnv* aEikonEnv ); + + void TestWriteInternalStateL(); + +private: // data + + /** + * Not own. + */ + CEikonEnv* iEikEnv; + + }; + +/** + * Test class for protected API of CTextListItemDrawer + */ +class CBCTestTextListItemDrawer: public CTextListItemDrawer + { +public: + + CBCTestTextListItemDrawer( MTextListBoxModel* aTextListBoxModel, + const CFont* aFont ); + + /** + * Test DrawItemText and it will call DoDrawItemText, + * CListItemDrawer::DrawFrame and both two ResetGc(). + */ + void TestDrawItemText( CWindowGc& aGc ); + + }; + +/** + * Test class for protected API of CTextListBoxModel + */ +class CBCTestTextListModel: public CTextListBoxModel + { +public: + + /** + * Test ItemArrayOwnershipType + */ + TListBoxModelItemArrayOwnership TestItemArrayOwnershipType(); + + }; + +/** + * Test class for protected API of CEikTextListBox + */ +class CBCTestTextListBox: public CEikTextListBox + { + + friend class CBCTestListEiklistCase; + + }; + +/** + * Test class for protected API of CEikSnakingTextListBox + */ +class CBCTestTextSnakingListBox: public CEikSnakingTextListBox + { + + friend class CBCTestListEiklistCase; + + }; + +/** + * Fake list box observer + */ +class TBCTestListBoxObserver: public MEikListBoxObserver + { +public: + void HandleListBoxEventL(CEikListBox* aListBox, + TListBoxEvent aEventType); + }; + +#endif // C_BCTESTLISTEIKLISTCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistformatbasecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistformatbasecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,163 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for CFormattedCellListBox +* +*/ + +#ifndef C_BCTESTLISTFROMATBASECASE_H +#define C_BCTESTLISTFROMATBASECASE_H + +#include + +#include "bctestlistbasecase.h" + +class CEikonEnv; +class CEikFormattedCellListBox; +class CBCTestListContainer; + +/** + * Fake implementation of MListBoxAnimBackgroundDrawer + */ +class TBCTestListFormatAnimBgDrawer: public MListBoxAnimBackgroundDrawer + { +public: + TBool DrawHighlightAnimBackground( CFbsBitGc& aGc ) const; + + }; + +/** +* test case for various list classes +*/ +class CBCTestListFormatBaseCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListFormatBaseCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListFormatBaseCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + + /** + * From CBCTestListBaseCase + */ + void DrawCaseL( CWindowGc& aGc ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * prepare environment for test + */ + void PrepareCaseL(); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test CEikFormattedCellListBox + */ + void TestFormatListL(); + + /** + * Test CFormattedCellListBoxItemDrawer + */ + void TestFormatItemDrawerL(); + + /** + * Test CFormattedCellListBoxData + */ + void TestFormatListDataL(); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListFormatBaseCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + /** + * Own + */ + CEikFormattedCellListBox* iListBox; + + TBCTestListFormatAnimBgDrawer iDrawer; + + }; + +/** + * Subclass for testing protected API of CFormattedCellListBoxData + */ +class CBCTestListFormatData: public CFormattedCellListBoxData + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestListFormatData(); + + /** + * C++ default constructor + */ + ~CBCTestListFormatData(); + +public: // new fuctions + + void TestConstructLD( const TAknsItemID& aAnimationIID ); + + }; + +#endif // C_BCTESTLISTFROMATBASECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistformattedcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistformattedcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,112 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for formatted list box classes +* +*/ + +#ifndef C_CBCTESTLISTFORMATTEDCASE_H +#define C_CBCTESTLISTFORMATTEDCASE_H + +#include "bctestlistbasecase.h" + +class CEikFormattedCellListBox; +class CBCTestListContainer; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestListFormattedCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListFormattedCase* NewL( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListFormattedCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Prepare necessary resource for test case + * @param aCmd, UI command + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used by test case + */ + void ReleaseCase(); + + /** + * test functions + */ + void TestFormattedCellListL( TInt aCmd ); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListFormattedCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + /** + * Own + */ + CEikFormattedCellListBox* iListBox; + + }; + +#endif // C_CBCTESTLISTFORMATTEDCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistgridcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistgridcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,112 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for grid pane list box classes +* +*/ + +#ifndef C_CBCTESTLISTGRIDCASE_H +#define C_CBCTESTLISTGRIDCASE_H + +#include "bctestlistbasecase.h" + +class CEikonEnv; +class CAknGrid; +class CBCTestListContainer; + +/** +* test case for various list classes +*/ +class CBCTestListGridCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListGridCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListGridCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Prepare necessary resource for test case + * @param aCmd, UI command + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used by test case + */ + void ReleaseCase(); + + /** + * test functions + */ + void TestGridListL( TInt aCmd ); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListGridCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + /** + * Own + */ + CAknGrid* iListBox; + + }; + +#endif // C_CBCTESTLISTGRIDCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistpopupcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistpopupcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,162 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for popup list box classes +* +*/ + +#ifndef C_CBCTESTLISTPOPUPCASE_H +#define C_CBCTESTLISTPOPUPCASE_H + +#include "aknlists.h" + +#include "bctestlistbasecase.h" + +class CEikFormattedCellListBox; +class CBCTestListContainer; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestListPopupCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListPopupCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListPopupCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Prepare necessary resource for test case + * @param aCmd, UI command + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used by test case + */ + void ReleaseCase(); + + /** + * test functions + */ + void TestPopupListL( TInt aCmd ); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListPopupCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + /** + * Own + */ + CEikFormattedCellListBox* iListBox; + + }; + +/** +* test class, for call protected API +*/ +class CBCTestSinglePopupMenuStyleListBox: + public CAknSinglePopupMenuStyleListBox + { +public: + + void TestHandlePointerEventL( const TPointerEvent& aPointerEvent ); + + }; + +/** +* test class, for call protected API +*/ +class CBCTestSingleGraphicPopupMenuStyleListBox: + public CAknSingleGraphicPopupMenuStyleListBox + { +public: + + void TestHandlePointerEventL( const TPointerEvent& aPointerEvent ); + + }; + +/** +* test class, for call protected API +*/ +class CBCTestSingle2GraphicPopupMenuStyleListBox: + public CAknSingle2GraphicPopupMenuStyleListBox + { +public: + + void TestHandlePointerEventL( const TPointerEvent& aPointerEvent ); + + }; + +/** +* test class, for call protected API +*/ +class CBCTestDoubleGraphicPopupMenuStyleListBox: + public CAknDoubleGraphicPopupMenuStyleListBox + { +public: + + void TestHandlePointerEventL( const TPointerEvent& aPointerEvent ); + + }; + +#endif // C_CBCTESTLISTPOPUPCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistselectioncase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistselectioncase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,139 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for selection list dialog classes +* +*/ + +#ifndef C_BCTESTSELECTIONLISTCASE_H +#define C_BCTESTSELECTIONLISTCASE_H + +#include + +#include "bctestlistbasecase.h" + +class CEikonEnv; +class CEikTextListBox; +class CBCTestListContainer; +class CColumnListBoxItemDrawer; + +/** +* test case for various list classes +*/ +class CBCTestListSelectionCase: public CBCTestListBaseCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListSelectionCase* NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListSelectionCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * prepare environment for test + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test functions + */ + void TestMarkableListDialogL(); + + void TestSelectionListDialogL(); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListSelectionCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + + }; + +/** + * Test class for protected API of CAknMarkableListDialog + */ +class CBCMarkableListDialog: public CAknMarkableListDialog + { + friend class CBCTestListSelectionCase; + +public: + + static CBCMarkableListDialog* NewL( TInt &aValue, + CArrayFix *aSelectedItems, MDesCArray *aArray ); + + CBCMarkableListDialog( TInt &aValue, CArrayFix *aSelectedItems, + MDesCArray *aArray, TInt aMenuBarResourceId, + TInt aOkMenuBarResourceId, MEikCommandObserver *aObserver ); + + }; + +/** + * Test class for protected API of CAknSelectionListDialog + */ +class CBCSelectionListDialog: public CAknSelectionListDialog + { + friend class CBCTestListSelectionCase; + +public: + + static CBCSelectionListDialog* NewL( TInt &aValue, MDesCArray *aArray ); + + CBCSelectionListDialog( TInt &aValue, MDesCArray *aArray, + MEikCommandObserver *aObserver ); + + }; + +#endif // C_BCTESTSELECTIONLISTCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistsettingcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistsettingcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for setting list box classes +* +*/ + +#ifndef C_CBCTESTLISTSETTINGCASE_H +#define C_CBCTESTLISTSETTINGCASE_H + +#include + +#include "bctestlistbasecase.h" + +class CEikSettingsListBox; +class CBCTestListContainer; + +/** +* test case for various list classes +*/ +class CBCTestListSettingCase: public CBCTestListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListSettingCase* NewL( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListSettingCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Prepare necessary resource for test case + * @param aCmd, UI command + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used by test case + */ + void ReleaseCase(); + + /** + * test functions + */ + void TestSettingListL( TInt aCmd ); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestListSettingCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + CEikSettingsListBox* iListBox; // own + + }; + +/** + * class for testing protected API of CAknListSettingPage + */ +class CBCTestCheckSettingPage: public CAknCheckBoxSettingPage + { + friend class CBCTestListSettingCase; + +public: + + CBCTestCheckSettingPage(TInt aResourceID, + CSelectionItemList* aItemArray ); + + }; + +#endif // C_CBCTESTLISTSETTINGCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/inc/bctestlistview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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: view +* +*/ + +#ifndef C_CBCTESTLISTVIEW_H +#define C_CBCTESTLISTVIEW_H + +#include + +const TUid KBCTestListViewId = { 1 }; + +class CBCTestListContainer; +class CBCTestUtil; + +/** +* view class +*/ +class CBCTestListView: public CAknView + { +public: // constructor and destructor + + static CBCTestListView* NewL(); + + ~CBCTestListView(); + +public: // new functions + + CBCTestListContainer* Container(); + +public: // from CAknView + + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + void DoDeactivate(); + +private: // constructor + + CBCTestListView(); + + void ConstructL(); + +private: // data + + CBCTestListContainer* iContainer; // own + CBCTestUtil* iTestUtil; // own + + }; + +#endif // C_CBCTESTLISTVIEW_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/sis/bctestList.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/sis/bctestList.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,57 @@ +; +; 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: +; +; BCTestList-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestList"},(0x20004748),1,0,0,TYPE=SA + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101f7961), 0, 0, 0, {"Series60ProductID"} + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +; Target +"\epoc32\release\armv5\urel\bctestlist.exe"- +"!:\sys\bin\bctestlist.exe" + +"\epoc32\data\z\resource\apps\bctestList.RSC"- +"!:\resource\apps\bctestList.RSC" + +"\epoc32\data\z\resource\apps\bctestlist_aif.mbm"- +"!:\resource\apps\bctestlist_aif.mbm" + +"\epoc32\data\z\resource\apps\bctestlist.mbm"- +"!:\resource\apps\bctestlist.mbm" + +"\epoc32\data\z\resource\apps\bctestlist.mif"- +"!:\resource\apps\bctestlist.mif" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestlist_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestlist_reg.RSC" + +; bctestutil DLL must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestListApp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestListApp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Avkon list test application +* +*/ + + +// INCLUDE FILES +#include + +#include "BCTestListApp.h" +#include "BCTestListDocument.h" + + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestListApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestListApp::AppDllUid() const + { + return KUidBCTestList; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestListApp::CreateDocumentL() +// Creates CBCTestListDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestListApp::CreateDocumentL() + { + return CBCTestListDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// NewApplication() +// Constructs CBCTestListApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestListApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestListAppUi.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestListAppUi.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,82 @@ +/* +* 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 "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: Avkon list test application +* +*/ + + +#include + +#include + +#include "bctestlist.hrh" +#include "bctestlistAppUi.h" +#include "bctestlistview.h" + +// ================= MEMBER FUNCTIONS ========================================= +// +// ---------------------------------------------------------------------------- +// CBCTestListAppUi::CBCTestListAppUi() +// Default constructor. +// ---------------------------------------------------------------------------- +// +CBCTestListAppUi::CBCTestListAppUi() + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestListAppUi::ConstructL() +// Symbian 2nd phase constructor can leave. +// Creates view class object. +// ---------------------------------------------------------------------------- +void CBCTestListAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + CBCTestListView* view = CBCTestListView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestListAppUi::~CBCTestListAppUi() +// Destructor +// ---------------------------------------------------------------------------- +CBCTestListAppUi::~CBCTestListAppUi() + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestListAppUi::HandleCommandL( TInt ) +// Handles the commands. +// ---------------------------------------------------------------------------- +void CBCTestListAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + Exit(); + break; + + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestListDocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestListDocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,77 @@ +/* +* 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 "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: Avkon listbox test application +* +*/ + + +// INCLUDE FILES +#include "BCTestListDocument.h" +#include "BCTestListAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestListDocument* CBCTestListDocument::NewL( CEikApplication& ) +// Symbian two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestListDocument* CBCTestListDocument::NewL( CEikApplication& aApp ) + { + CBCTestListDocument* self = new( ELeave ) CBCTestListDocument( aApp ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestListDocument::~CBCTestListDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestListDocument::~CBCTestListDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestListDocument::CBCTestListDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestListDocument::CBCTestListDocument( CEikApplication& aApp ) + : CAknDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestListDocument::ConstructL() +// Symbian 2nd phase constructor. +// ---------------------------------------------------------------------------- +// +void CBCTestListDocument::ConstructL() + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestListDocument::CreateAppUiL() +// Constructs CBCTestListAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestListDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestListAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistbasecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistbasecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,241 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for various list classes +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include +#include +#include "bctestlistbasecase.h" +#include "bctestlistcontainer.h" + + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// C++ Default constructor. +// ---------------------------------------------------------------------------- +// +CBCTestListBaseCase::CBCTestListBaseCase( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv) + : iContainer( aContainer ), iEikEnv( aEikEnv ) + { + } + +// ---------------------------------------------------------------------------- +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestListBaseCase::~CBCTestListBaseCase() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::SetListBoxFromResourceL +// Sets listbox from resource using ConstructFromResourceL() of +// CEikColumnListBox class. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::SetListBoxFromResourceL( + CEikColumnListBox* aListBox, const TInt aResourceId ) + { + if ( aListBox && aResourceId ) + { + aListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, aResourceId ); + aListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + } + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::SetListBoxFromResourceL +// Sets listbox from resource using ConstructFromResourceL() of +// CEikFormattedCellListBox class. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::SetListBoxFromResourceL( + CEikFormattedCellListBox* aListBox, const TInt aResourceId ) + { + if ( aListBox && aResourceId ) + { + aListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, aResourceId ); + aListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + } + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::SetListBoxFromInnerDescriptionL +// Sets listbox from inner description using ConstructL() of CEikColumnListBox +// class. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::SetListBoxFromInnerDescriptionL( + CEikColumnListBox* aListBox, const TInt aFlags, CDesCArray* textArray ) + { + if ( aListBox ) + { + // Constructs listbox. + aListBox->ConstructL( iContainer, aFlags ); + + if ( textArray ) + { + // Sets list item from resource. + aListBox->Model()->SetItemTextArray( textArray ); + aListBox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + } + } + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::SetListBoxFromInnerDescriptionL +// Sets listbox from inner description using ConstructL() of +// CEikFormattedCellListBox class. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::SetListBoxFromInnerDescriptionL( + CEikFormattedCellListBox* aListBox, + const TInt aFlags, + CDesCArray* textArray ) + { + if ( aListBox ) + { + // Constructs listbox. + aListBox->ConstructL( iContainer, aFlags ); + + if ( textArray ) + { + // Sets list item from resource. + aListBox->Model()->SetItemTextArray( textArray ); + aListBox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + } + } + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::SetGraphicIconL( CEikColumnListBox* ) +// Sets graphic icon using listbox as CEikColumnListBox. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::SetGraphicIconL( CEikColumnListBox* aListBox ) + { + if ( aListBox ) + { + // Creates gul icon. + CArrayPtr* icons = new( ELeave ) CAknIconArray( + KBCTestListGraphicGulIconIndex ); + + CleanupStack::PushL( icons ); + + GraphicIconL( icons ); // Appends graphic data. + + // Sets graphics as ListBox icon. + aListBox->ItemDrawer()->ColumnData()->SetIconArray( icons ); + + CleanupStack::Pop(); + + } + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::SetGraphicIconL +// Sets graphic icon using listbox as CEikFormattedCellListBox. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::SetGraphicIconL( + CEikFormattedCellListBox* aListBox ) + { + if ( aListBox ) + { + // Creates gul icon. + CArrayPtr* icons = new( ELeave ) CAknIconArray( + KBCTestListGraphicGulIconIndex ); + + CleanupStack::PushL( icons ); + + GraphicIconL( icons ); // Appends graphic data. + + // Sets graphics as ListBox icon. + aListBox->ItemDrawer()->FormattedCellData()->SetIconArrayL( icons ); + + CleanupStack::Pop(); + } + } + + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::GraphicIconL +// Appends graphics data. +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon. + CreateIconAndAddToArrayL(aIcons, KBCTestListMbmFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask); + } + } + +// ---------------------------------------------------------------------------- +// CBCTestListBaseCase::CreateIconAndAddToArrayL +// Creates the icon and adds it to the array if it was successful +// ---------------------------------------------------------------------------- +// +void CBCTestListBaseCase::CreateIconAndAddToArrayL( + CArrayPtr*& aIconsArray, + const TDesC& aIconFile, + TInt aBitmap, TInt aMask/* = -1*/) + { + CGulIcon* icon = CGulIcon::NewLC(); + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + if (aMask >= 0) + { + AknIconUtils::CreateIconL( bitmap, mask, aIconFile, aBitmap, aMask); + } + else + { + bitmap = AknIconUtils::CreateIconL( aIconFile, aBitmap); + } + + if (bitmap) + { + icon->SetBitmap(bitmap); + if (mask) + icon->SetMask(mask); + aIconsArray->AppendL(icon); + CleanupStack::Pop(icon); + } + else + { + CleanupStack::PopAndDestroy(icon); + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistcolumnbasecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistcolumnbasecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,436 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for list view and item drawer classes +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestlistcolumnbasecase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include + +_LIT( KColumnBaseCreate, "Create CEikColumnListBox" ); + +_LIT( KColumnListTest1, "CEikColumnListBox::EditItemL" ); +_LIT( KColumnListTest2, "CEikColumnListBox::GetColorUseListL" ); +_LIT( KColumnListTest3, "CEikColumnListBox::HandleResourceChange" ); +_LIT( KColumnListTest4, "CEikColumnListBox::FocusChanged" ); +_LIT( KColumnListTest5, "CAknColumnListBox::MakeViewClassInstanceL" ); +_LIT( KColumnListTest6, "CEikColumnListBox::MakeViewClassInstanceL" ); + +_LIT( KColumnItemDrawerTest1, "CColumnListBoxItemDrawer::ClearAllPropertiesL" ); +_LIT( KColumnItemDrawerTest2, "CColumnListBoxItemDrawer::SetPropertiesL" ); +_LIT( KColumnItemDrawerTest3, "CColumnListBoxItemDrawer::ItemWidthInPixels" ); +_LIT( KColumnItemDrawerTest4, "CColumnListBoxItemDrawer::DrawItemMark" ); + +_LIT( KColumnEditorTest1, "CEikColumnListBoxEditor::ConstructL" ); +_LIT( KColumnEditorTest2, "CEikColumnListBoxEditor::ItemText" ); +_LIT( KColumnEditorTest3, "CEikColumnListBoxEditor::UpdateModelL" ); +_LIT( KColumnEditorTest4, "CEikColumnListBoxEditor::Column" ); +_LIT( KColumnEditorTest5, "CEikColumnListBoxEditor::HandlePointerEventL" ); + +_LIT( KColumnDataTest1, "CColumnListBoxData::SetSkinEnabledL" ); +_LIT( KColumnDataTest2, "CColumnListBoxData::SetSkinHighlightFrame" ); +_LIT( KColumnDataTest3, "CColumnListBoxData::EnableMarqueeL" ); +_LIT( KColumnDataTest4, "CColumnListBoxData::SetColumnHorizontalGapL" ); +_LIT( KColumnDataTest5, "CColumnListBoxData::SetColumnHorizontalGapL" ); +_LIT( KColumnDataTest6, "CColumnListBoxData::MakeColumnRect" ); +_LIT( KColumnDataTest7, "CColumnListBoxData::SetColumnFontForRowL" ); +_LIT( KColumnDataTest8, "CColumnListBoxData::SetMarqueeParams" ); +_LIT( KColumnDataTest9, "CColumnListBoxData::SetColumnUnderlined" ); +_LIT( KColumnDataTest10, "CColumnListBoxData::HighlightAnim" ); +_LIT( KColumnDataTest11, "CColumnListBoxData::SetHighlightAnimBackgroundDrawer" ); +_LIT( KColumnDataTest12, "CColumnListBoxData::AboutToDrawHighlightAnim" ); +_LIT( KColumnDataTest13, "CColumnListBoxData::ConstructLD" ); +_LIT( KColumnDataTest14, "CColumnListBoxData::DrawText" ); +_LIT( KColumnDataText, "Test text for DrawText" ); +_LIT( KClippedText, "Test text" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListColumnBaseCase* CBCTestListColumnBaseCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListColumnBaseCase* self = new( ELeave ) CBCTestListColumnBaseCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListColumnBaseCase::CBCTestListColumnBaseCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListColumnBaseCase::~CBCTestListColumnBaseCase() + { + delete iBCData; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::ConstructL() + { + BuildScriptL(); + + iBCData = new( ELeave ) CBCTestColumnListBoxData(); + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline47 - EBCTestCmdOutline45; i++ ) + { + AddTestL( LeftCBA, REP( Down, 6 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline45 || aCmd > EBCTestCmdOutline47 ) + { + return; + } + ReleaseCase(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline45: + TestColumnListL(); + break; + case EBCTestCmdOutline46: + TestColumnItemDrawerAndEditorL(); + break; + case EBCTestCmdOutline47: + TestColumnListDataL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::PrepareCaseL( TInt ) + { + iListBox = new( ELeave ) CAknSingleStyleListBox(); + AssertNotNullL( iListBox, KColumnBaseCreate ); + TInt resourceId = R_BCTESTLIST_SINGLE_1_ADD_RM; + SetListBoxFromResourceL( iListBox, resourceId ); + + iContainer->SetControl( iListBox ); + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::TestColumnListL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::TestColumnListL() + { + TInt maxLength = 3; + iListBox->EditItemL( 0, maxLength ); + iListBox->StopEditingL( 0 ); + AssertTrueL( ETrue, KColumnListTest1 ); + + TInt granularity = 4; + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( granularity ); + CleanupStack::PushL( colorUseList ); + iListBox->GetColorUseListL( *colorUseList ); + AssertTrueL( ( colorUseList->Count() > 0 ), KColumnListTest2 ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + iListBox->HandleResourceChange( KAknsMessageSkinChange ); + iListBox->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + AssertTrueL( ETrue, KColumnListTest3 ); + + iListBox->FocusChanged( EDrawNow ); + iListBox->FocusChanged( ENoDrawNow ); + AssertTrueL( ETrue, KColumnListTest4 ); + + CListBoxView* view = iListBox->MakeViewClassInstanceL(); + AssertNotNullL( view, KColumnListTest5 ); + delete view; + + CEikColumnListBox* columnList = new( ELeave ) CEikColumnListBox(); + CleanupStack::PushL( columnList ); + TInt resourceId = R_BCTESTLIST_SINGLE_1_ADD_RM; + SetListBoxFromResourceL( columnList, resourceId ); + view = columnList->MakeViewClassInstanceL(); + AssertNotNullL( view, KColumnListTest6 ); + delete view; + columnList->EditItemL( 0, 1 ); + columnList->StopEditingL( EFalse ); + CleanupStack::PopAndDestroy( columnList ); + + CEikColumnListBox* listBox = new( ELeave ) CEikColumnListBox(); + CleanupStack::PushL( listBox ); + listBox->ConstructL( iContainer ); + view = listBox->MakeViewClassInstanceL(); + delete view; + CleanupStack::PopAndDestroy( listBox ); + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::TestColumnItemDrawerAndEditorL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::TestColumnItemDrawerAndEditorL() + { + // for column item drawer + CColumnListBoxItemDrawer* itemDrawer = iListBox->ItemDrawer(); + + itemDrawer->ClearAllPropertiesL(); + AssertTrueL( ETrue, KColumnItemDrawerTest1 ); + + TListItemProperties itemProp; + itemProp.SetBold( ETrue ); + itemProp.SetItalics( ETrue ); + itemProp.SetUnderlined( ETrue ); + itemProp.SetDimmed( ETrue ); + itemProp.SetColor( KRgbGray ); + itemProp.SetSeparatorAfter( ETrue ); + itemDrawer->SetPropertiesL( 0, itemProp ); + AssertTrueL( ETrue, KColumnItemDrawerTest2 ); + + TInt width = itemDrawer->ItemWidthInPixels( 0 ); + AssertTrueL( ETrue, KColumnItemDrawerTest3 ); + + TPoint pt( 0, 0 ); + itemDrawer->DrawItemMark( ETrue, EFalse, pt ); + AssertTrueL( ETrue, KColumnItemDrawerTest4 ); + + // for column list editor + CBCTestColumnListBoxEditor* editor = new( ELeave ) + CBCTestColumnListBoxEditor( iListBox->Model() ); + CleanupStack::PushL( editor ); + + editor->ConstructL( 0 ); + AssertTrueL( ETrue, KColumnEditorTest1 ); + + TPtrC text = editor->ItemText(); + AssertTrueL( ETrue, KColumnEditorTest2 ); + + TBool update = editor->UpdateModelL(); + AssertTrueL( ETrue, KColumnEditorTest3 ); + + TInt column = editor->Column(); + AssertTrueL( ETrue, KColumnEditorTest4 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + editor->HandlePointerEventL( event ); + AssertTrueL( ETrue, KColumnEditorTest5 ); + + CleanupStack::PopAndDestroy( editor ); + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnBaseCase::TestColumnListDataL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnBaseCase::TestColumnListDataL() + { + CColumnListBoxData* data = iListBox->ItemDrawer()->ColumnData(); + data->SetSkinEnabledL( ETrue ); + AssertTrueL( ETrue, KColumnDataTest1 ); + + TAknsItemID id; + id.Set( KAknsIIDDefault ); + data->SetSkinHighlightFrame( &id, &id ); + AssertTrueL( ETrue, KColumnDataTest2 ); + + data->EnableMarqueeL( ETrue ); + AssertTrueL( ETrue, KColumnDataTest3 ); +#ifdef __S60_32__ + iListBox->SetCurrentItemIndex( 0 );//item 1 + + TUint32 tInt = data->CurrentItemTextWasClipped(); + _LIT( KColumnDataTest35, "Test CurrentItemTextWasClipped() at long item" ); + AssertTrueL( ETrue, KColumnDataTest35 ); + iListBox->SetCurrentItemIndex( 1 );//item 2 + tInt = data->CurrentItemTextWasClipped(); + _LIT( KColumnDataTest36, "Test CurrentItemTextWasClipped() at short item" ); + AssertTrueL( ETrue, KColumnDataTest36 ); + iListBox->DrawNow(); +#endif //__S60_32__ + TInt setGap = 5; + data->SetColumnHorizontalGapL( 0, setGap ); + AssertTrueL( ETrue, KColumnDataTest4 ); + + TInt gap = data->ColumnHorizontalGap( 0 ); + AssertIntL( setGap, gap, KColumnDataTest5 ); + + TRect rect = iContainer->Rect(); + rect.iBr.iX /= 2; + TBool setRect = data->MakeColumnRect( 0, rect ); + AssertTrueL( setRect, KColumnDataTest6 ); + + data->SetColumnFontForRowL( 0, 0, iEikEnv->NormalFont() ); + AssertTrueL( setRect, KColumnDataTest7 ); + + data->SetMarqueeParams( 1, 6, 1000000 ); + data->SetMarqueeParams( 2, 8, 1000000, 100000 ); + AssertTrueL( setRect, KColumnDataTest8 ); + + TBitFlags32 flags; + data->SetColumnUnderlined( flags ); + AssertTrueL( setRect, KColumnDataTest9 ); + + data->HighlightAnim(); + AssertTrueL( setRect, KColumnDataTest10 ); + + data->SetHighlightAnimBackgroundDrawer( &iDrawer ); + AssertTrueL( setRect, KColumnDataTest11 ); + + data->AboutToDrawHighlightAnim(); + AssertTrueL( setRect, KColumnDataTest12 ); + + iBCData->TestConstructLD( id ); + AssertTrueL( setRect, KColumnDataTest13 ); + + iContainer->ActivateGc(); + CWindowGc& gc = iContainer->SystemGc(); + gc.UseFont( iEikEnv->NormalFont() ); + + rect = iContainer->Rect(); + rect.iBr.iX = rect.iTl.iX + + iListBox->ItemDrawer()->ItemCellSize().iWidth; + rect.iBr.iY = rect.iTl.iY + + iListBox->ItemDrawer()->ItemCellSize().iHeight; + iBCData->SetControl( iListBox ); + iBCData->TestDrawText( gc, rect, KColumnDataText, KClippedText, + 0, CGraphicsContext::ELeft, *iEikEnv->NormalFont(), ETrue, EFalse ); + AssertTrueL( ETrue, KColumnDataTest14 ); + + iContainer->DeactivateGc(); + } + +// ======== MEMBER FUNCTIONS ======== +// CBCTestColumnListBoxData + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestColumnListBoxData::CBCTestColumnListBoxData() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestColumnListBoxData::~CBCTestColumnListBoxData() + { + } + +// --------------------------------------------------------------------------- +// CBCTestColumnListBoxData::ConstructLD +// --------------------------------------------------------------------------- +// +void CBCTestColumnListBoxData::TestConstructLD( + const TAknsItemID& aAnimationIID ) + { + CColumnListBoxData::ConstructLD( aAnimationIID ); + } + +// --------------------------------------------------------------------------- +// CBCTestColumnListBoxData::TestDrawText +// --------------------------------------------------------------------------- +// +void CBCTestColumnListBoxData::TestDrawText( + CWindowGc& aGc, const TRect& aTextRect, + const TDesC& aText, const TDesC& aClippedText, const TInt aBaselineOffset, + const CGraphicsContext::TTextAlign aAlign, const CFont& aFont, + const TBool aHighlight, const TBool aIsTextClipped ) + { + DrawText( aGc, aTextRect, aText, aClippedText, + aBaselineOffset, aAlign, aFont, aHighlight, aIsTextClipped ); + } + +// ======== MEMBER FUNCTIONS ======== +// TBCTestListBoxAnimBgDrawer + +// --------------------------------------------------------------------------- +// TBCTestListBoxAnimBgDrawer::DrawHighlightAnimBackground +// --------------------------------------------------------------------------- +// +TBool TBCTestListBoxAnimBgDrawer:: + DrawHighlightAnimBackground( CFbsBitGc& ) const + { + return ETrue; + } +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestListBoxAnimBgDrawer::DrawHighlightAnimBackground +// --------------------------------------------------------------------------- +// +CBCTestColumnListBoxEditor::CBCTestColumnListBoxEditor( + MListBoxModel* aModel ): CEikColumnListBoxEditor( aModel ) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistcolumncase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistcolumncase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,460 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for column list classes +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include "bctestlistcolumncase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KNewSingle, "Create CAknSingleStyleListBox" ); +_LIT( KNewSingleNumber, "Create CAknSingleNumberStyleListBox" ); +_LIT( KNewSingleHeading, "Create CAknSingleHeadingStyleListBox" ); +_LIT( KNewSingleGraphic, "Create CAknSingleGraphicStyleListBox" ); +_LIT( KNewSingleGraphicHeading, "Create CAknSingleGraphicHeadingStyleListBox" ); +_LIT( KNewSingleNumberHeading, "Create CAknSingleNumberHeadingStyleListBox" ); +_LIT( KNewSingleLarge, "Create CAknSingleLargeStyleListBox" ); +_LIT( KNewSingleNoRes, "Create CAknSingleStyleListBox without resource" ); + +_LIT( KSingleSizeChanged, "CAknSingleStyleListBox::SizeChanged" ); +_LIT( KSingleMinimumSize, "CAknSingleStyleListBox::MinimumSize" ); +_LIT( KSingleHandlePointer, "CAknSingleStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleNumberSizeChanged, "CAknSingleNumberStyleListBox::SizeChanged" ); +_LIT( KSingleNumberMinimumSize, "CAknSingleNumberStyleListBox::MinimumSize" ); +_LIT( KSingleNumberHandlePointer, "CAknSingleNumberStyleListBox::HandlePointerEventL" ); +_LIT( KListBoxUtilHandleItemRemoval, + "AknListBoxUtils::HandleItemRemovalAndPositionHighlightL" ); + +_LIT( KSingleHeadingSizeChanged, "CAknSingleHeadingStyleListBox::SizeChanged" ); +_LIT( KSingleHeadingMinimumSize, "CAknSingleHeadingStyleListBox::MinimumSize" ); +_LIT( KSingleHeadingHandlePointer, "CAknSingleHeadingStyleListBox::HandlePointerEventL" ); +_LIT( KSingleHeadingViewDrawEmpty, "CSingleHeadingStyleView::DrawEmptyList" ); + +_LIT( KSingleGraphicSizeChanged, "CAknSingleGraphicStyleListBox::SizeChanged" ); +_LIT( KSingleGraphicMinimumSize, "CAknSingleGraphicStyleListBox::MinimumSize" ); +_LIT( KSingleGraphicHandlePointer, "CAknSingleGraphicStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleGraphicHeadingSizeChanged, "CAknSingleGraphicHeadingStyleListBox::SizeChanged" ); +_LIT( KSingleGraphicHeadingMinimumSize, "CAknSingleGraphicHeadingStyleListBox::MinimumSize" ); +_LIT( KSingleGraphicHeadingHandlePointer, "CAknSingleGraphicHeadingStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleNumberHeadingSizeChanged, "CAknSingleNumberHeadingStyleListBox::SizeChanged" ); +_LIT( KSingleNumberHeadingMinimumSize, "CAknSingleNumberHeadingStyleListBox::MinimumSize" ); +_LIT( KSingleNumberHeadingHandlePointer, "CAknSingleNumberHeadingStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleLargeSizeChanged, "CAknSingleNumberHeadingStyleListBox::SizeChanged" ); +_LIT( KSingleLargeMinimumSize, "CAknSingleNumberHeadingStyleListBox::MinimumSize" ); +_LIT( KSingleLargeHandlePointer, "CAknSingleNumberHeadingStyleListBox::HandlePointerEventL" ); + +_LIT( KAknColumnViewTest1, "CAknColumnListBoxView::EnableFindEmptyList" ); +_LIT( KAknColumnViewTest2, "CAknColumnListBoxView::SetFindEmptyListState" ); +_LIT( KAknColumnViewTest3, "CAknColumnListBoxView::CalcBottomItemIndex" ); +_LIT( KAknColumnViewTest4, "CAknColumnListBoxView::DrawEmptyList" ); + +_LIT( KSingleHeadingViewTest1, "CSingleHeadingStyleView::Draw" ); +_LIT( KSingleHeadingViewTest2, "CSingleHeadingStyleView::DrawEmptyList" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListColumnCase* CBCTestListColumnCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListColumnCase* self = new( ELeave ) CBCTestListColumnCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListColumnCase::CBCTestListColumnCase( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListColumnCase::~CBCTestListColumnCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::BuildScriptL() + { + AddTestL( DELAY( 1 ), TEND ); + for ( TInt i=0; i <= EBCTestCmdOutline09 - EBCTestCmdOutline01; i++ ) + { + AddTestL( LeftCBA, KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline01 || + aCmd > EBCTestCmdOutline09 ) + { + return; + } + iOutlineId = aCmd; + ReleaseCase(); + PrepareCaseL( aCmd ); + TestColumnListL( aCmd ); + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::PrepareCaseL( TInt aCmd ) + { + TInt resourceId( KBCTestListInitListResourceId ); // For listbox. + TBool useGraphics( EFalse ); + + // Creates ListBox control object and sets resource ID. + switch ( aCmd ) + { + case EBCTestCmdOutline01: + resourceId = R_BCTESTLIST_SINGLE_1_ADD_RM; + iListBox = new( ELeave ) CAknSingleStyleListBox(); + AssertNotNullL( iListBox, KNewSingle ); + break; + + case EBCTestCmdOutline02: + resourceId = R_BCTESTLIST_SINGLE_NUMBER_INDICATOR; + iListBox = new( ELeave ) CAknSingleNumberStyleListBox(); + AssertNotNullL( iListBox, KNewSingleNumber ); + break; + + case EBCTestCmdOutline03: + resourceId = R_BCTESTLIST_SINGLE_HEADING; + iListBox = new( ELeave ) CAknSingleHeadingStyleListBox(); + AssertNotNullL( iListBox, KNewSingleHeading ); + break; + + case EBCTestCmdOutline04: + resourceId = R_BCTESTLIST_SINGLE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknSingleGraphicStyleListBox(); + AssertNotNullL( iListBox, KNewSingleGraphic ); + break; + + case EBCTestCmdOutline05: + resourceId = R_BCTESTLIST_SINGLE_GRAPHIC_HEADING; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknSingleGraphicHeadingStyleListBox(); + AssertNotNullL( iListBox, KNewSingleGraphicHeading ); + break; + + case EBCTestCmdOutline06: + resourceId = R_BCTESTLIST_SINGLE_NUMBER_HEADING; + iListBox = new( ELeave ) CAknSingleNumberHeadingStyleListBox(); + AssertNotNullL( iListBox, KNewSingleNumberHeading ); + break; + + case EBCTestCmdOutline07: + resourceId = R_BCTESTLIST_SINGLE_LARGE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknSingleLargeStyleListBox(); + AssertNotNullL( iListBox, KNewSingleLarge ); + break; + + case EBCTestCmdOutline08: + iListBox = new( ELeave ) CAknSingleStyleListBox(); + AssertNotNullL( iListBox, KNewSingleNoRes ); + break; + case EBCTestCmdOutline09: + resourceId = R_BCTESTLIST_SINGLE_1_ADD_RM; + iListBox = new( ELeave ) CAknSingleStyleListBox(); + break; + case EBCTestCmdOutline10: + resourceId = R_BCTESTLIST_SINGLE_HEADING; + iListBox = new( ELeave ) CAknSingleHeadingStyleListBox(); + break; + + default: + break; + } + + if ( iListBox ) + { + if ( resourceId ) + { + SetListBoxFromResourceL( iListBox, resourceId ); + } + else + { + SetListBoxFromInnerDescriptionL( iListBox ); + } + + if ( useGraphics ) + { + SetGraphicIconL( iListBox ); + } + + iContainer->SetControl( iListBox ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnCase::TestColumnListL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::TestColumnListL( TInt aCmd ) + { + if ( !iListBox ) + { + return; + } + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + TSize size; + switch( aCmd ) + { + case EBCTestCmdOutline01: + case EBCTestCmdOutline08: + { + CAknSingleStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleHandlePointer ); + } + break; + case EBCTestCmdOutline02: + { + CAknSingleNumberStyleListBox* listbox = + static_cast( iListBox ); + + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleNumberSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleNumberMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleNumberHandlePointer ); + + AknListBoxUtils::HandleItemRemovalAndPositionHighlightL( + listbox, 0, ETrue ); + CArrayFixFlat* indexArray = new( ELeave ) + CArrayFixFlat( 5 ); + CleanupStack::PushL( indexArray ); + indexArray->AppendL( 0 ); + indexArray->AppendL( 1 ); + AknListBoxUtils::HandleItemRemovalAndPositionHighlightL( + listbox, 0, *indexArray ); + CleanupStack::PopAndDestroy( indexArray ); + AssertTrueL( ETrue, KListBoxUtilHandleItemRemoval ); + listbox->ComponentControl( 0 ); + } + break; + case EBCTestCmdOutline03: + { + CAknSingleHeadingStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleHeadingSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleHeadingMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleHeadingHandlePointer ); + CSingleHeadingStyleView* singleView = + static_cast( listbox->View() ); + singleView->DrawEmptyList( iContainer->Rect() ); + AssertTrueL( ETrue, KSingleHeadingViewDrawEmpty ); + } + break; + case EBCTestCmdOutline04: + { + CAknSingleGraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleGraphicSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleGraphicMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleGraphicHandlePointer ); + } + break; + case EBCTestCmdOutline05: + { + CAknSingleGraphicHeadingStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleGraphicHeadingSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleGraphicHeadingMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleGraphicHeadingHandlePointer ); + } + break; + case EBCTestCmdOutline06: + { + CAknSingleNumberHeadingStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleNumberHeadingSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleNumberHeadingMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleNumberHeadingHandlePointer ); + } + break; + case EBCTestCmdOutline07: + { + CAknSingleLargeStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleLargeSizeChanged ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleLargeMinimumSize ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleLargeHandlePointer ); + } + case EBCTestCmdOutline09: + { + CAknSingleStyleListBox* listbox = + static_cast( iListBox ); + + // test CAknColumnListBoxView API + CAknColumnListBoxView* view = + static_cast( listbox->View() ); + CleanupStack::PushL( view ); + + view->EnableFindEmptyList(); + AssertTrueL( ETrue, KAknColumnViewTest1 ); + view->SetFindEmptyListState( ETrue ); + AssertTrueL( ETrue, KAknColumnViewTest2 ); + view->CalcBottomItemIndex(); + AssertTrueL( ETrue, KAknColumnViewTest3 ); + view->DrawEmptyList( iContainer->Rect() ); + AssertTrueL( ETrue, KAknColumnViewTest4 ); + + CleanupStack::Pop( view ); + } + break; + case EBCTestCmdOutline10: + { + CSingleHeadingStyleView* view = + static_cast( iListBox->View() ); + TRect rect = iContainer->Rect(); + view->Draw( &rect ); + AssertTrueL( ETrue, KSingleHeadingViewTest1 ); + view->DrawEmptyList( rect ); + AssertTrueL( ETrue, KSingleHeadingViewTest2 ); + } + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListColumnCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListColumnCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon according to iOutlineId. + switch ( iOutlineId ) + { + case EBCTestCmdOutline04: + case EBCTestCmdOutline05: + //Use .svg icons. + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask); + + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo3, + EMbmBctestlistGolgo3_mask); + break; + + case EBCTestCmdOutline07: + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo2, + EMbmBctestlistGolgo2_mask); + break; + + default: + break; + } + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestlistcontainer.h" +#include "bctestlistbasecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestListContainer::CBCTestListContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListContainer::~CBCTestListContainer() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestListContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestListContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestListContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestListContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestListContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestListContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestListContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestListContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistdecoratorcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistdecoratorcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,165 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for aknlistboxlayoutdecorator +* +*/ + + +#include +#include +#include + +#include "bctestlistdecoratorcase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include + +_LIT( KDecoratorTest1, "CAknListBoxLayoutDecorator::NewL()" ); +_LIT( KDecoratorTest2, "CAknListBoxLayoutDecorator::SetArray and Array" ); +_LIT( KDecoratorTest3, "CAknListBoxLayoutDecorator::SetLeadingDecorationTextL" ); +_LIT( KDecoratorTest4, "CAknListBoxLayoutDecorator::SetTrailingDecorationTextL" ); +_LIT( KDecoratorTest5, "CAknListBoxLayoutDecorator::SetActive" ); +_LIT( KDecoratorTest6, "CAknListBoxLayoutDecorator::MdcaCount" ); +_LIT( KDecoratorTest7, "CAknListBoxLayoutDecorator::MdcaPoint" ); +_LIT( KTextLeading, "Leading text" ); +_LIT( KTextTrailing, "Trailing text" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListDecoratorCase* CBCTestListDecoratorCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListDecoratorCase* self = new( ELeave ) CBCTestListDecoratorCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListDecoratorCase::CBCTestListDecoratorCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListDecoratorCase::~CBCTestListDecoratorCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListDecoratorCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListDecoratorCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListDecoratorCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline44 - EBCTestCmdOutline43; i++ ) + { + AddTestL( LeftCBA, REP( Down, 5 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListDecoratorCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListDecoratorCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline43 || aCmd > EBCTestCmdOutline44 ) + { + return; + } + ReleaseCase(); + switch ( aCmd ) + { + case EBCTestCmdOutline43: + TestLayoutDecoratorL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListDecoratorCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestListDecoratorCase::ReleaseCase() + { + iContainer->ResetControl(); + } + +// --------------------------------------------------------------------------- +// CBCTestListDecoratorCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestListDecoratorCase::TestLayoutDecoratorL() + { + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTLIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CAknListBoxLayoutDecorator* decorator = NULL; + decorator = CAknListBoxLayoutDecorator::NewL(); + CleanupStack::PushL( decorator ); + AssertNotNullL( decorator, KDecoratorTest1 ); + + decorator->SetArray( textArray ); + const MDesCArray* array = decorator->Array(); + AssertTrueL( ( array == textArray ), KDecoratorTest2 ); + + decorator->SetLeadingDecorationTextL( KTextLeading ); + AssertTrueL( ETrue, KDecoratorTest3 ); + + decorator->SetTrailingDecorationTextL( KTextTrailing ); + AssertTrueL( ETrue, KDecoratorTest4 ); + + decorator->SetActive( ETrue ); + decorator->SetActive( EFalse ); + AssertTrueL( ETrue, KDecoratorTest5 ); + + TInt mdcaCount = decorator->MdcaCount(); + AssertIntL( textArray->Count(), mdcaCount, KDecoratorTest6 ); + for ( TInt i=0; i< mdcaCount; i++ ) + { + TPtrC ptr = decorator->MdcaPoint( i ); + } + AssertTrueL( ETrue, KDecoratorTest7 ); + + CleanupStack::PopAndDestroy( decorator ); + CleanupStack::PopAndDestroy( textArray ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlisteiklistcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlisteiklistcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1033 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for list classes in eikstd +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestlisteiklistcase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include + +_LIT( KStreamName, "c:\\BCTestLog\\test.txt" ); +_LIT( KEikTestText, "Test text" ); + +_LIT( KListBoxDataCreate, "Create CListBoxData" ); +_LIT( KTextItemDrawerCreate, "Create CTextListItemDrawer" ); +_LIT( KTextListCreate, "Create CEikTextListBox" ); +_LIT( KSnakingListCreate, "Create CEikSnakingTextListBox" ); + +_LIT( KListDataTest1, "CListBoxData::SkinBackgroundControlContext" ); +_LIT( KListDataTest2, "CListBoxData::FontBoundValues" ); +_LIT( KListDataTest3, "CListBoxData::SetFontHeight" ); +_LIT( KListDataTest4, "CListBoxData::ConstructFontL" ); +_LIT( KListDataTest5, "CListBoxData::RegenerateFontsL" ); +_LIT( KListDataTest6, "CListBoxData::UpdateFontBoundValues" ); +_LIT( KListDataTest7, "CListBoxData::CFontsWithStyle::SetFontStyle" ); +_LIT( KListDataTest8, "CListBoxData::CFontsWithStyle::FontStyle" ); +_LIT( KListDataTest9, "CListBoxData::SetSearchStringL" ); +_LIT( KListDataTest10, "CListBoxData::IsSearchString" ); +_LIT( KListDataTest11, "CListBoxData::DrawItem" ); +_LIT( KEikSearchString, "abc" ); + +_LIT( KTestListModelTest1, "CTextListBoxModel::TestItemArrayOwnershipType" ); + +_LIT( KListBoxEditorTest1, "CEikListBoxEditor::SetFont" ); +_LIT( KListBoxEditorTest2, "CEikListBoxEditor::StartEditingL" ); +_LIT( KListBoxEditorTest3, "CEikListBoxEditor::SetListBoxEditorObserver" ); +_LIT( KListBoxEditorTest4, "CEikListBoxEditor::OfferKeyEventL" ); +_LIT( KListBoxEditorTest5, "CEikListBoxEditor::ItemText" ); +_LIT( KListBoxEditorTest6, "CEikListBoxEditor::WriteInternalStateL" ); +_LIT( KListBoxEditorTest7, "CEikListBoxEditor::UpdateModelL" ); + +_LIT( KListItemDrawerTest1, "CListItemDrawer::MatcherCursorRect" ); +_LIT( KListItemDrawerTest2, "CListItemDrawer::MatcherCursorAscent" ); +_LIT( KListItemDrawerTest3, "CListItemDrawer::SetSkinEnabledL" ); +_LIT( KListItemDrawerTest4, "CListItemDrawer::SkinBackgroundControlContext" ); +_LIT( KListItemDrawerTest5, "CListItemDrawer::SetSkinEnabledL" ); +_LIT( KListItemDrawerTest6, "CListItemDrawer::SetFont" ); +_LIT( KListItemDrawerTest7, "CListItemDrawer::Font" ); +_LIT( KListItemDrawerTest8, "CTextListItemDrawer::Font" ); +_LIT( KListItemDrawerTest9, "CListItemDrawer::SetMarkColumnWidth" ); +_LIT( KListItemDrawerTest10, "CListItemDrawer::SetMarkGutter" ); +_LIT( KListItemDrawerTest11, "CListItemDrawer::MarkGutter" ); +_LIT( KListItemDrawerTest12, "CListItemDrawer::MarkColumn" ); +_LIT( KListItemDrawerTest13, "CListItemDrawer::DrawItemMark" ); +_LIT( KListItemDrawerTest14, "CListItemDrawer::MinimumCellSize" ); +_LIT( KListItemDrawerTest15, "CListItemDrawer::ItemWidthInPixels" ); +_LIT( KListItemDrawerTest16, "CListItemDrawer::SetSymbolFont" ); +_LIT( KListItemDrawerTest17, "CTextListItemDrawer::MatcherCursorRect" ); +_LIT( KListItemDrawerTest18, "CTextListItemDrawer::MatcherCursorAscent" ); +_LIT( KListItemDrawerTest19, "CTextListItemDrawer::SetSearchStringL" ); +_LIT( KListItemDrawerTest20, "CTextListItemDrawer::DrawItemText" ); + +_LIT( KListViewTest1, "CListBoxView::ToggleItemL" ); +_LIT( KListViewTest2, "CListBoxView::SetAnchor" ); +_LIT( KListViewTest3, "CListBoxView::DeselectRangeL" ); +_LIT( KListViewTest4, "CListBoxView::ScrollToMakeItemVisible" ); +_LIT( KListViewTest5, "CListBoxView::SetPaintedSelection" ); +_LIT( KListViewTest6, "CListBoxView::SetTextColor" ); +_LIT( KListViewTest7, "CListBoxView::TextColor" ); +_LIT( KListViewTest8, "CListBoxView::DrawEmptyList" ); +_LIT( KListViewTest9, "CListBoxView::SetSelectionIndexesL" ); +_LIT( KListViewTest10, "CListBoxView::GetSelectionIndexesL" ); + +_LIT( KTextItemDrawerMatchText, "Add Items" ); + +_LIT( KTextListTest1, "CEikListBox::SetScrollBarFrame" ); +_LIT( KTextListTest2, "CEikListBox::ConstructL" ); +_LIT( KTextListTest3, "CEikListBox::Reset" ); +_LIT( KTextListTest4, "CEikListBox::CreateMatchBufferL" ); +_LIT( KTextListTest5, "CEikListBox::MatchBuffer" ); +_LIT( KTextListTest6, "CEikListBox::ClearMatchBuffer" ); +_LIT( KTextListTest7, "CEikListBox::CalcWidthBasedOnNumOfChars" ); +_LIT( KTextListTest8, "CEikListBox::CalcWidthBasedOnRequiredItemWidth" ); +_LIT( KTextListTest9, "CEikListBox::CalcHeightBasedOnNumOfItems" ); +_LIT( KTextListTest10, "CEikListBox::MinimumSize" ); +_LIT( KTextListTest11, "CEikListBox::CalcSizeInPixels" ); +_LIT( KTextListTest12, "CEikListBox::SetViewRectFromClientRect" ); +_LIT( KTextListTest13, "CEikListBox::CalculatePopoutRect" ); +_LIT( KTextListTest14, "CEikListBox::BottomItemIndex" ); +_LIT( KTextListTest15, "CEikListBox::SetTopItemIndex" ); +_LIT( KTextListTest16, "CEikListBox::AdjustTopItemIndex" ); +_LIT( KTextListTest17, "CEikListBox::SetCurrentItemIndexAndDraw" ); +_LIT( KTextListTest18, "CEikListBox::SetListBoxObserver" ); +_LIT( KTextListTest19, "CEikListBox::MakeViewClassInstanceL" ); +_LIT( KTextListTest20, "CEikListBox::DrawMatcherCursor" ); +_LIT( KTextListTest21, "CEikListBox::InterItemGap" ); +_LIT( KTextListTest22, "CEikListBox::CreateScrollBarFrameLayout" ); +_LIT( KTextListTest23, "CEikListBox::HorizScrollGranularityInPixels" ); +_LIT( KTextListTest24, "CEikListBox::SetViewRectHeightAdjustment" ); +_LIT( KTextListTest25, "CEikListBox::VerticalInterItemGap" ); +_LIT( KTextListTest26, "CEikListBox::SetSelectionIndexesL" ); +_LIT( KTextListTest27, "CEikListBox::SelectionIndexes" ); +_LIT( KTextListTest28, "CEikListBox::IsMultiselection" ); +_LIT( KTextListTest29, "CEikListBox::ClearSelection" ); +_LIT( KTextListTest30, "CEikListBox::HandleLeftArrowKeyL" ); +_LIT( KTextListTest31, "CEikListBox::HandleRightArrowKeyL" ); +_LIT( KTextListTest32, "CEikListBox::OfferKeyEventL" ); +_LIT( KTextListTest33, "CEikListBox::HorizontalNudgeValue" ); +_LIT( KTextListTest34, "CEikListBox::HandleScrollEventL" ); +_LIT( KTextListTest35, "CEikListBox::HandleDragEventL" ); +_LIT( KTextListTest36, "CEikListBox::SimulateArrowKeyEventL" ); +_LIT( KTextListTest37, "CEikListBox::SetDimmed" ); +_LIT( KTextListTest38, "CEikListBox::UndoLastChar" ); +_LIT( KTextListTest39, "CEikListBox::SetShortcutValueFromPrevList" ); +_LIT( KTextListTest40, "CEikListBox::ShortcutValueForNextList" ); +_LIT( KTextListTest41, "CEikListBox::HighlightRect" ); +_LIT( KTextListTest42, "CEikListBox::MatchTypedCharL" ); +_LIT( KTextListTest43, "CEikListBox::LastCharMatched" ); +_LIT( KTextListTest44, "CEikListBox::SetLaunchingButton" ); +_LIT( KTextListTest45, "CEikListBox::EventModifiers" ); +_LIT( KTextListTest46, "CEikListBox::ReasonForFocusLostL" ); +_LIT( KTextListTest47, "CEikListBox::EditItemL" ); +_LIT( KTextListTest48, "CEikListBox::StopEditingL" ); +_LIT( KTextListTest49, "CEikListBox::HandleItemAdditionL" ); +_LIT( KTextListTest50, "CEikListBox::HandleItemRemovalL" ); +_LIT( KTextListTest51, "CEikListBox::HandleItemRemovalL()" ); +_LIT( KTextListTest52, "CEikTextListBox::Model" ); +_LIT( KTextListTest53, "CEikTextListBox::WriteInternalStateL" ); +_LIT( KTextListTest54, "CEikTextListBox::ConstructFromResourceL" ); +_LIT( KEikAddItem, "One added text" ); + +_LIT( KSnakingViewTest1, "CSnakingListBoxView::VisibleWidth" ); +_LIT( KSnakingViewTest2, "CSnakingListBoxView::HScroll" ); +_LIT( KSnakingViewTest3, "CSnakingListBoxView::SetItemHeight" ); +_LIT( KSnakingViewTest4, "CSnakingListBoxView::CalculateHScrollOffsetSoItemIsVisible" ); + +_LIT( KSnakingTest1, "CEikSnakingListBox::MakeViewClassInstanceL" ); +_LIT( KSnakingTest2, "CEikSnakingListBox::SetColumnWidth" ); +_LIT( KSnakingTest3, "CEikSnakingListBox::ColumnWidth" ); +_LIT( KSnakingTest4, "CEikSnakingListBox::HandleLeftArrowKeyL" ); +_LIT( KSnakingTest5, "CEikSnakingListBox::HandleRightArrowKeyL" ); +_LIT( KSnakingTest6, "CEikSnakingListBox::HorizontalNudgeValue" ); +_LIT( KSnakingTest7, "CEikSnakingListBox::HorizScrollGranularityInPixels" ); +_LIT( KSnakingTest8, "CEikSnakingListBox::SetTopItemIndex" ); +_LIT( KSnakingTest9, "CEikSnakingListBox::AdjustTopItemIndex" ); +_LIT( KSnakingTest10, "CEikSnakingListBox::SizeChanged" ); +_LIT( KSnakingTest11, "CEikSnakingListBox::HandleDragEventL" ); +_LIT( KSnakingTest12, "CEikSnakingListBox::HandleViewRectSizeChangeL" ); +_LIT( KSnakingTest13, "CEikSnakingListBox::MoveToNextOrPreviousItemL" ); +_LIT( KSnakingTest14, "CEikSnakingListBox::RestoreClientRectFromViewRect" ); +_LIT( KSnakingTest15, "CEikSnakingListBox::AdjustRectHeightToWholeNumberOfItems" ); +_LIT( KSnakingTest16, "CEikSnakingListBox::GetColorUseListL" ); +_LIT( KSnakingTest17, "CEikSnakingTextListBox::GetColorUseListL" ); +_LIT( KSnakingTest18, "CEikSnakingListBox::HandlePointerEventL" ); +_LIT( KSnakingTest19, "CEikSnakingTextListBox::HandlePointerEventL" ); +_LIT( KSnakingTest20, "CEikSnakingListBox::HandleResourceChange" ); +_LIT( KSnakingTest21, "CEikSnakingTextListBox::HandleResourceChange" ); +_LIT( KSnakingTest22, "CEikSnakingTextListBox::Model" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListEiklistCase* CBCTestListEiklistCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListEiklistCase* self = new( ELeave ) CBCTestListEiklistCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListEiklistCase::CBCTestListEiklistCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListEiklistCase::~CBCTestListEiklistCase() + { + ReleaseCase(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListEiklistCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline55 - EBCTestCmdOutline51; i++ ) + { + AddTestL( LeftCBA, REP( Down, 8 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListEiklistCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline51 || aCmd > EBCTestCmdOutline55 ) + { + return; + } + iCurrentCmd = aCmd; + ReleaseCase(); + PrepareCaseL( aCmd ); + switch( aCmd ) + { + case EBCTestCmdOutline51: + TestListBoxDataL(); + break; + case EBCTestCmdOutline52: + TestCEikListBoxEditorL(); + break; + case EBCTestCmdOutline53: + TestCTextListItemDrawerL(); + break; + case EBCTestCmdOutline54: + TestEikListBoxL(); + TestListBoxViewL(); + break; + case EBCTestCmdOutline55: + TestSnakingListBoxL(); + TestSnakingListBoxViewL(); + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListEiklistCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::PrepareCaseL( TInt aCmd ) + { + TInt flags = CEikListBox::EIncrementalMatching | + EAknListBoxSelectionList | EAknListBoxViewerFlags; + CDesCArray* textArray = NULL; + + if ( aCmd != EBCTestCmdOutline51 ) + { + textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTLIST_ITEM_SINGLE1_ADD_RM ); + CleanupStack::PushL( textArray ); + } + + if ( aCmd == EBCTestCmdOutline52 || aCmd == EBCTestCmdOutline53 ) + { + iModel = new( ELeave ) CBCTestTextListModel(); + iModel->ConstructL( textArray ); + } + + switch ( aCmd ) + { + case EBCTestCmdOutline51: + iData = new( ELeave ) CBCTestListBoxData(); + AssertNotNullL( iData, KListBoxDataCreate ); + iData->ConstructL( iEikEnv->NormalFont() ); + break; + case EBCTestCmdOutline53: + iTextDrawer = new( ELeave ) CBCTestTextListItemDrawer( iModel, + iEikEnv->NormalFont() ); + AssertNotNullL( iTextDrawer, KTextItemDrawerCreate ); + break; + case EBCTestCmdOutline54: + { + iListBox = new( ELeave ) CBCTestTextListBox(); + AssertNotNullL( iListBox, KTextListCreate ); + iListBox->ConstructL( iContainer, flags ); + iListBox->Model()->SetItemTextArray( textArray ); + iListBox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + + CEikScrollBarFrame* scrollBarFrame = new( ELeave) CEikScrollBarFrame( + iContainer, iListBox, ETrue ); + CleanupStack::PushL( scrollBarFrame ); + iListBox->SetScrollBarFrame( scrollBarFrame, + CEikListBox::ENotOwnedExternally ); + AssertTrueL( ETrue, KTextListTest1 ); + CleanupStack::Pop( scrollBarFrame ); + + iContainer->SetControl( iListBox ); + } + break; + case EBCTestCmdOutline55: + iSnakingList = new( ELeave ) CBCTestTextSnakingListBox(); + AssertNotNullL( iSnakingList, KSnakingListCreate ); + flags |= CEikListBox::ELeftDownInViewRect; + iSnakingList->ConstructL( iContainer, flags ); + iSnakingList->Model()->SetItemTextArray( textArray ); + iSnakingList->Model()->SetOwnershipType( ELbmOwnsItemArray ); + + iContainer->SetControl( iSnakingList ); + default: + break; + } + + if ( aCmd != EBCTestCmdOutline51 ) + { + CleanupStack::Pop( textArray ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListEiklistCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + iSnakingList = NULL; + + delete iModel; + delete iData; + delete iTextDrawer; + + iModel = NULL; + iData = NULL; + iTextDrawer = NULL; + } + +// --------------------------------------------------------------------------- +// Test CListBoxData +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestListBoxDataL() + { + MAknsControlContext* controlCtx = iData->SkinBackgroundControlContext(); + AssertTrueL( ETrue, KListDataTest1 ); + + const TListFontBoundValues& boundValue = iData->FontBoundValues(); + AssertTrueL( ETrue, KListDataTest2 ); + + TInt fontHeightInTwips = 10; + TInt height = iData->SetFontHeight( fontHeightInTwips ); + AssertTrueL( ETrue, KListDataTest3 ); + + // Test protected API + iData->TestConstructFontL( iEikEnv->TitleFont() ); + AssertTrueL( ETrue, KListDataTest4 ); + TInt testRet = iData->TestRegenerateFonts(); + AssertTrueL( ETrue, KListDataTest5 ); + iData->TestUpdateFontBoundValues( iEikEnv->NormalFont() ); + AssertTrueL( ETrue, KListDataTest6 ); + TBool ret = iData->TestCFontWithStyle(); + AssertTrueL( ret, KListDataTest7 ); + AssertTrueL( ret, KListDataTest8 ); + + + TPtrC ptr( KEikSearchString ); + iData->SetSearchStringL( &ptr ); + AssertTrueL( ETrue, KListDataTest9 ); + TBool search = iData->IsSearchString(); + AssertTrueL( ETrue, KListDataTest10 ); + + iContainer->ActivateGc(); + CWindowGc& gc = iContainer->SystemGc(); + const TInt KRectHeight = 30; + TRect rect = iContainer->Rect(); + rect.iBr.iY = rect.iTl.iY + KRectHeight; + const CFont& font = *iEikEnv->NormalFont(); + gc.UseFont(&font); + iData->DrawItem( gc, rect, KEikTestText, font, 0 ); + AssertTrueL( ETrue, KListDataTest11 ); + iContainer->DeactivateGc(); + } + +// --------------------------------------------------------------------------- +// Test CEikListBoxEditor +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestCEikListBoxEditorL() + { + // test CTextListBoxModel + const MDesCArray* array = iModel->MatchableTextArray(); + TListBoxModelItemArrayOwnership type = + iModel->TestItemArrayOwnershipType(); + AssertIntL( ELbmOwnsItemArray, type, KTestListModelTest1 ); + + // test CBCTestListBoxEditor + CBCTestListBoxEditor* editor = new( ELeave ) CBCTestListBoxEditor( + iModel, iEikEnv ); + CleanupStack::PushL( editor ); + editor->SetFont( iEikEnv->NormalFont() ); + AssertTrueL( ETrue, KListBoxEditorTest1 ); + + TRect rect = iContainer->Rect(); + rect.iBr.iY = rect.iTl.iY + rect.Size().iHeight / 2; + editor->StartEditingL( *iContainer, rect, 0, 30 ); + AssertTrueL( ETrue, KListBoxEditorTest2 ); + + TBCTestListBoxEditorObserver observer; + editor->SetListBoxEditorObserver( &observer ); + AssertTrueL( ETrue, KListBoxEditorTest3 ); + + TKeyEvent eventEnter = { EKeyEnter, EKeyEnter, 0, 0 }; + TKeyEvent eventShift = { '1', '1', EModifierCtrl | EModifierShift, 0 }; + TKeyEvent eventT = { 'T', 'T', 0, 0 }; + TKeyEvent evente = { 'e', 'e', 0, 0 }; + TKeyEvent events = { 's', 's', 0, 0 }; + TKeyEvent eventt = { 't', 't', 0, 0 }; + + editor->OfferKeyEventL( eventEnter, EEventKey ); + editor->SetListBoxEditorObserver( NULL ); + + editor->OfferKeyEventL( eventT, EEventKey ); + editor->OfferKeyEventL( evente, EEventKey ); + editor->OfferKeyEventL( events, EEventKey ); + editor->OfferKeyEventL( eventt, EEventKey ); + editor->OfferKeyEventL( eventShift, EEventKey ); + AssertTrueL( ETrue, KListBoxEditorTest4 ); + + TPtrC text = editor->ItemText(); + AssertTrueL( ETrue, KListBoxEditorTest5 ); + + editor->TestWriteInternalStateL(); + AssertTrueL( ETrue, KListBoxEditorTest6 ); + + editor->OfferKeyEventL( eventEnter, EEventKey ); + AssertTrueL( ETrue, KListBoxEditorTest7 ); + + CleanupStack::PopAndDestroy( editor ); + } + +// --------------------------------------------------------------------------- +// Test CTextListItemDrawer +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestCTextListItemDrawerL() + { + CTextListItemDrawer* textDrawer = new( ELeave ) CTextListItemDrawer(); + CleanupStack::PushL( textDrawer ); + _LIT( KTestItemDrawer1, + "CTextListItemDrawer::CTextListItemDrawer without parameter" ); + AssertNotNullL( textDrawer, KTestItemDrawer1 ); + + textDrawer->ConstructL( iEikEnv->NormalFont() ); + _LIT( KTestItemDrawer2, "CTextListItemDrawer::ConstructL" ); + AssertNotNullL( textDrawer, KTestItemDrawer2 ); + CleanupStack::PopAndDestroy( textDrawer ); + + // test CListItemDrawer + TRect cursorRect = iTextDrawer->CListItemDrawer::MatcherCursorRect( + KTextItemDrawerMatchText, 0, 0, 0 ); + AssertTrueL( ETrue, KListItemDrawerTest1 ); + + TInt cursorAscent = iTextDrawer->CListItemDrawer:: + MatcherCursorAscent( 0 ); + AssertTrueL( ETrue, KListItemDrawerTest2 ); + + iTextDrawer->SetSkinEnabledL( ETrue ); + AssertTrueL( ETrue, KListItemDrawerTest3 ); + + MAknsControlContext* context = + iTextDrawer->SkinBackgroundControlContext(); + AssertTrueL( ETrue, KListItemDrawerTest4 ); + + iTextDrawer->SetSkinEnabledL( EFalse ); + AssertTrueL( ETrue, KListItemDrawerTest5 ); + + iTextDrawer->SetFont( iEikEnv->TitleFont() ); + AssertTrueL( ETrue, KListItemDrawerTest6 ); + + const CFont* font = iTextDrawer->CListItemDrawer::Font( 0 ); + AssertTrueL( ETrue, KListItemDrawerTest7 ); + + const CFont* textFont = iTextDrawer->Font( 0 ); + AssertTrueL( ETrue, KListItemDrawerTest8 ); + + iTextDrawer->SetMarkColumnWidth( 50 ); + AssertTrueL( ETrue, KListItemDrawerTest9 ); + + iTextDrawer->SetMarkGutter( 20 ); + AssertTrueL( ETrue, KListItemDrawerTest10 ); + + TInt markGutter = iTextDrawer->MarkGutter(); + AssertTrueL( ETrue, KListItemDrawerTest11 ); + + TInt markColumn = iTextDrawer->MarkColumn(); + AssertTrueL( ETrue, KListItemDrawerTest12 ); + + iTextDrawer->DrawItemMark( ETrue, EFalse, TPoint( 0, 0 ) ); + AssertTrueL( ETrue, KListItemDrawerTest13 ); + + TRect rect = iContainer->Rect(); + TSize size = iTextDrawer->CListItemDrawer::MinimumCellSize(); + AssertTrueL( ETrue, KListItemDrawerTest14 ); + + size = iTextDrawer->ItemCellSize(); + rect.iBr.iY = rect.iTl.iY + size.iHeight; + rect.iBr.iX = rect.iTl.iX + size.iWidth; + iTextDrawer->ClearRect( rect ); + TInt itemWidthInPixel = iTextDrawer->ItemWidthInPixels( 0 ); + AssertTrueL( ETrue, KListItemDrawerTest15 ); + + iTextDrawer->SetSymbolFont( iEikEnv->NormalFont() ); + AssertTrueL( ETrue, KListItemDrawerTest16 ); + + // test CTextListItemDrawer + cursorRect = iTextDrawer->MatcherCursorRect( KTextItemDrawerMatchText, 0, 0, 0 ); + AssertTrueL( ETrue, KListItemDrawerTest17 ); + + cursorAscent = iTextDrawer->MatcherCursorAscent( 0 ); + AssertTrueL( ETrue, KListItemDrawerTest18 ); + + TPtrC ptr( KTextItemDrawerMatchText ); + iTextDrawer->SetSearchStringL( &ptr ); + AssertTrueL( ETrue, KListItemDrawerTest19 ); + + iContainer->ActivateGc(); + CWindowGc& gc = iContainer->SystemGc(); + iTextDrawer->TestDrawItemText( gc ); + AssertTrueL( ETrue, KListItemDrawerTest20 ); + iContainer->DeactivateGc(); + } + +// --------------------------------------------------------------------------- +// Test CListBoxView +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestListBoxViewL() + { + CListBoxView* view = iListBox->View(); + view->ToggleItemL( 0 ); + AssertTrueL( ETrue, KListViewTest1 ); + + view->SetAnchor( 8 ); + AssertTrueL( ETrue, KListViewTest2 ); + + view->DeselectRangeL( 0, 4 ); + AssertTrueL( ETrue, KListViewTest3 ); + + TBool visible = view->ScrollToMakeItemVisible( 8 ); + AssertTrueL( ETrue, KListViewTest4 ); + + view->SetPaintedSelection( ETrue ); + AssertTrueL( ETrue, KListViewTest5 ); + + view->SetTextColor( KRgbBlack ); + AssertTrueL( ETrue, KListViewTest6 ); + + TRgb rgb = view->TextColor(); + AssertTrueL( rgb == KRgbBlack, KListViewTest7 ); + + view->DrawEmptyList( iContainer->Rect() ); + AssertTrueL( ETrue, KListViewTest8 ); + + TInt topIndex = view->CalcNewTopItemIndexSoItemIsVisible( 8 ); + _LIT( KListViewTest11, + "CListBoxView::CalcNewTopItemIndexSoItemIsVisible" ); + AssertTrueL( ETrue, KListViewTest11 ); + + CArrayFixFlat* selectionArray = new( ELeave ) + CArrayFixFlat( 5 ); + CleanupStack::PushL( selectionArray ); + selectionArray->AppendL( 0 ); + selectionArray->AppendL( 1 ); + selectionArray->AppendL( 2 ); + view->SetSelectionIndexesL( selectionArray ); + AssertTrueL( ETrue, KListViewTest9 ); + + selectionArray->Reset(); + view->GetSelectionIndexesL( selectionArray ); + AssertTrueL( ( selectionArray->Length() == 4 && + selectionArray->At(0) == 0), + KListViewTest10 ); + + CleanupStack::PopAndDestroy( selectionArray ); + } + +// --------------------------------------------------------------------------- +// Test CEikListBox +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestEikListBoxL() + { + // test constructL of CEikListBox + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTLIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer(); + CleanupStack::PushL( drawer ); + drawer->ConstructL( iEikEnv->NormalFont() ); + + CEikListBox* listBox = new( ELeave ) CEikListBox(); + CleanupStack::PushL( listBox ); + TGulBorder border( TGulBorder::ESingleGray ); + listBox->ConstructL( model, drawer, + iContainer, border, + EAknListBoxSelectionList | EAknListBoxViewerFlags ); + + CleanupStack::PopAndDestroy( listBox ); + CleanupStack::Pop( drawer ); + CleanupStack::Pop( model ); + CleanupStack::Pop( textArray ); + AssertTrueL( ETrue, KTextListTest2 ); + + // test CEikListBox + TRect rect = iContainer->Rect(); + iListBox->Reset(); + AssertTrueL( ETrue, KTextListTest3 ); + iListBox->CreateMatchBufferL(); + AssertTrueL( ETrue, KTextListTest4 ); + RIncrMatcherBase* baMatch = iListBox->MatchBuffer(); + AssertTrueL( ETrue, KTextListTest5 ); + iListBox->ClearMatchBuffer(); + AssertTrueL( ETrue, KTextListTest6 ); + iListBox->CalcWidthBasedOnNumOfChars( 5 ); + AssertTrueL( ETrue, KTextListTest7 ); + iListBox->CalcWidthBasedOnRequiredItemWidth( 30 ); + AssertTrueL( ETrue, KTextListTest8 ); + iListBox->CalcHeightBasedOnNumOfItems( 2 ); + AssertTrueL( ETrue, KTextListTest9 ); + TSize size = iListBox->MinimumSize(); + AssertTrueL( ETrue, KTextListTest10 ); + iListBox->CalcSizeInPixels( 5, 2 ); + AssertTrueL( ETrue, KTextListTest11 ); + iListBox->SetViewRectFromClientRect( rect ); + AssertTrueL( ETrue, KTextListTest12 ); + iListBox->CalculatePopoutRect( 0, 0, rect ); + AssertTrueL( ETrue, KTextListTest13 ); + TInt bottomIndex = iListBox->BottomItemIndex(); + AssertTrueL( ETrue, KTextListTest14 ); + iListBox->SetTopItemIndex( 1 ); + AssertTrueL( ETrue, KTextListTest15 ); + iListBox->AdjustTopItemIndex(); + AssertTrueL( ETrue, KTextListTest16 ); + iListBox->SetCurrentItemIndexAndDraw( 0 ); + AssertTrueL( ETrue, KTextListTest17 ); + TBCTestListBoxObserver observer; + iListBox->SetListBoxObserver( &observer ); + AssertTrueL( ETrue, KTextListTest18 ); + CListBoxView* view = iListBox->MakeViewClassInstanceL(); + delete view; + AssertTrueL( ETrue, KTextListTest19 ); + iListBox->DrawMatcherCursor(); + AssertTrueL( ETrue, KTextListTest20 ); + TInt interItemGap = iListBox->InterItemGap(); + AssertTrueL( ETrue, KTextListTest21 ); + TEikScrollBarFrameLayout frameLayout; + iListBox->CreateScrollBarFrameLayout( frameLayout ); + AssertTrueL( ETrue, KTextListTest22 ); + TInt scrollGraInPixels = iListBox->HorizScrollGranularityInPixels(); + AssertTrueL( ETrue, KTextListTest23 ); + iListBox->SetViewRectHeightAdjustment( 5 ); + AssertTrueL( ETrue, KTextListTest24 ); + TInt verticalInterItemGap = iListBox->VerticalInterItemGap(); + AssertTrueL( ETrue, KTextListTest25 ); + iListBox->ScrollToMakeItemVisible( 5 ); + + CArrayFixFlat* selectionArray = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( selectionArray ); + selectionArray->AppendL( 0 ); + selectionArray->AppendL( 1 ); + selectionArray->AppendL( 3 ); + iListBox->SetSelectionIndexesL( selectionArray ); + AssertTrueL( ETrue, KTextListTest26 ); + const CArrayFix* getSelectionArray = iListBox->SelectionIndexes(); + AssertTrueL( + ( selectionArray->Length() == getSelectionArray->Length() ) + && ( selectionArray->At( 0 ) == getSelectionArray->At( 0 ) ), + KTextListTest27 ); + TBool multiselection = iListBox->IsMultiselection(); + AssertTrueL( !multiselection, KTextListTest28 ); + CleanupStack::PopAndDestroy( selectionArray ); + iListBox->ClearSelection(); + AssertTrueL( ETrue, KTextListTest29 ); + iListBox->HandleLeftArrowKeyL( CListBoxView::ESingleSelection ); + AssertTrueL( ETrue, KTextListTest30 ); + iListBox->HandleRightArrowKeyL( CListBoxView::ENoSelection ); + AssertTrueL( ETrue, KTextListTest31 ); + TKeyEvent eventT = { 'T', 'T', 0, 0 }; + iListBox->OfferKeyEventL( eventT, EEventKey ); + AssertTrueL( ETrue, KTextListTest32 ); + TInt horizontalNudge = iListBox->HorizontalNudgeValue(); + AssertTrueL( ETrue, KTextListTest33 ); + CEikScrollBar* scrollBar = new( ELeave ) CEikScrollBar(); + CleanupStack::PushL( scrollBar ); + scrollBar->ConstructL( iListBox, iContainer, CEikScrollBar::EVertical, + iContainer->Rect().Size().iHeight ); + iListBox->HandleScrollEventL( scrollBar, EEikScrollDown ); + AssertTrueL( ETrue, KTextListTest34 ); + CleanupStack::PopAndDestroy( scrollBar ); + iListBox->HandleDragEventL( TPoint( 0, 0 ) ); + AssertTrueL( ETrue, KTextListTest35 ); + iListBox->SimulateArrowKeyEventL( EKeyDownArrow ); + AssertTrueL( ETrue, KTextListTest36 ); + iListBox->SetDimmed( ETrue ); + iListBox->SetDimmed( EFalse ); + AssertTrueL( ETrue, KTextListTest37 ); + iListBox->UndoLastChar(); + AssertTrueL( ETrue, KTextListTest38 ); + + iListBox->SetShortcutValueFromPrevList( 1 ); + AssertTrueL( ETrue, KTextListTest39 ); + TInt shortcutValue = iListBox->ShortcutValueForNextList(); + AssertTrueL( ETrue, KTextListTest40 ); + TRect hightlightRect = iListBox->HighlightRect(); + AssertTrueL( ETrue, KTextListTest41 ); + iListBox->MatchTypedCharL( 'm' ); + AssertTrueL( ETrue, KTextListTest42 ); + TBool lastCharMatched = iListBox->LastCharMatched(); + AssertTrueL( ETrue, KTextListTest43 ); + iListBox->SetLaunchingButton( NULL ); + AssertTrueL( ETrue, KTextListTest44 ); + + TInt eventModified = iListBox->EventModifiers(); + AssertTrueL( ETrue, KTextListTest45 ); + CEikListBox::TReasonForFocusLost reason = + iListBox->ReasonForFocusLostL(); + AssertTrueL( ETrue, KTextListTest46 ); + iListBox->EditItemL( 40 ); + AssertTrueL( ETrue, KTextListTest47 ); + iListBox->StopEditingL( EFalse ); + AssertTrueL( ETrue, KTextListTest48 ); + + CArrayFixFlat* indexArray = new( ELeave ) CArrayFixFlat( 4 ); + CleanupStack::PushL( indexArray ); + indexArray->AppendL( 9 ); + indexArray->AppendL( 10 ); + CDesCArray* array = static_cast( + iListBox->Model()->ItemTextArray() ); + array->AppendL( KEikAddItem ); + array->AppendL( KEikAddItem ); + iListBox->HandleItemAdditionL( *indexArray ); + AssertTrueL( ETrue, KTextListTest49 ); + iListBox->HandleItemRemovalL( *indexArray ); + AssertTrueL( ETrue, KTextListTest50 ); + iListBox->HandleItemRemovalL(); + AssertTrueL( ETrue, KTextListTest51 ); + CleanupStack::PopAndDestroy( indexArray ); + + // test CEikTextListBox + CTextListBoxModel* textModel = iListBox->Model(); + AssertTrueL( ETrue, KTextListTest52 ); + + RFs& tempServer = iEikEnv->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + iListBox->WriteInternalStateL( fWrite ); + AssertTrueL( ETrue, KTextListTest53 ); + CleanupStack::PopAndDestroy( &fWrite ); + + CEikTextListBox* textList = new( ELeave ) CEikTextListBox(); + CleanupStack::PushL( textList ); + textList->SetContainerWindowL( *iContainer ); + TResourceReader textReader; + iEikEnv->CreateResourceReaderLC( textReader, + R_BCTESTLIST_SINGLE_1_ADD_RM ); + textList->ConstructFromResourceL( textReader ); + CleanupStack::PopAndDestroy(); // textReader + CleanupStack::PopAndDestroy( textList ); + AssertTrueL( ETrue, KTextListTest54 ); + } + +// --------------------------------------------------------------------------- +// Test CSnakingListBoxView +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestSnakingListBoxViewL() + { + CSnakingListBoxView* view = + static_cast( iSnakingList->View() ); + TInt num = view->VisibleWidth( view->ViewRect() ); + AssertTrueL( ETrue, KSnakingViewTest1 ); + view->HScroll( num - 1 ); + AssertTrueL( ETrue, KSnakingViewTest2 ); + view->SetItemHeight( 30 ); + AssertTrueL( ETrue, KSnakingViewTest3 ); + TInt visible = view->CalculateHScrollOffsetSoItemIsVisible( 0 ); + AssertTrueL( ETrue, KSnakingViewTest4 ); + } + +// --------------------------------------------------------------------------- +// Test CEikSnakingListBox +// --------------------------------------------------------------------------- +// +void CBCTestListEiklistCase::TestSnakingListBoxL() + { + TRect rect = iContainer->Rect(); + CListBoxView* view = iSnakingList->MakeViewClassInstanceL(); + delete view; + AssertTrueL( ETrue, KSnakingTest1 ); + iSnakingList->SetColumnWidth( 100 ); + AssertTrueL( ETrue, KSnakingTest2 ); + TInt columnWidth = iSnakingList->ColumnWidth(); + AssertIntL( 100, columnWidth, KSnakingTest3 ); + iSnakingList->HandleLeftArrowKeyL( CListBoxView::ESingleSelection ); + AssertTrueL( ETrue, KSnakingTest4 ); + iSnakingList->HandleRightArrowKeyL( CListBoxView::EContiguousSelection ); + AssertTrueL( ETrue, KSnakingTest5 ); + TInt horizontalNudge = iSnakingList->HorizontalNudgeValue(); + AssertTrueL( ETrue, KSnakingTest6 ); + TInt horizGranuInPixel = iSnakingList->HorizScrollGranularityInPixels(); + AssertTrueL( ETrue, KSnakingTest7 ); + iSnakingList->SetTopItemIndex( 1 ); + AssertTrueL( ETrue, KSnakingTest8 ); + iSnakingList->AdjustTopItemIndex(); + AssertTrueL( ETrue, KSnakingTest9 ); + iSnakingList->SizeChanged(); + AssertTrueL( ETrue, KSnakingTest10 ); + iSnakingList->HandleDragEventL( TPoint( 0, 0 ) ); + AssertTrueL( ETrue, KSnakingTest11 ); + iSnakingList->HandleViewRectSizeChangeL(); + AssertTrueL( ETrue, KSnakingTest12 ); + iSnakingList->MoveToNextOrPreviousItemL( TPoint( 10, 50 ) ); + AssertTrueL( ETrue, KSnakingTest13 ); + iSnakingList->RestoreClientRectFromViewRect( rect ); + AssertTrueL( ETrue, KSnakingTest14 ); + TInt height = iSnakingList->AdjustRectHeightToWholeNumberOfItems( + rect ); + AssertTrueL( ETrue, KSnakingTest15 ); + + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( colorUseList ); + iSnakingList->CEikSnakingListBox::GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KSnakingTest16 ); + colorUseList->Reset(); + iSnakingList->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KSnakingTest17 ); + CleanupStack::PopAndDestroy( colorUseList ); + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iSnakingList->CEikSnakingListBox::HandlePointerEventL( event ); + AssertTrueL( ETrue, KSnakingTest18 ); + iSnakingList->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSnakingTest19 ); + iSnakingList->CEikSnakingListBox::HandleResourceChange( + KAknsMessageSkinChange ); + AssertTrueL( ETrue, KSnakingTest20 ); + iSnakingList->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue, KSnakingTest21 ); + CTextListBoxModel* model = iSnakingList->Model(); + AssertTrueL( ETrue, KSnakingTest22 ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestListBoxData::TestConstructFont +// --------------------------------------------------------------------------- +// +void CBCTestListBoxData::TestConstructFontL( const CFont* aBaseFont ) + { + TFontStyle style( EPostureItalic, EStrokeWeightBold, + EPrintPosSuperscript ); + ConstructFontL( aBaseFont, style, iItalicFont ); + } + +// --------------------------------------------------------------------------- +// CBCTestListBoxData::TestRegenerateFonts +// --------------------------------------------------------------------------- +// +TInt CBCTestListBoxData::TestRegenerateFonts() + { + TInt fontHeightInTwips = 20; + TInt ret = RegenerateFonts( iNormalFont, fontHeightInTwips ); + return ret; + } + +// --------------------------------------------------------------------------- +// CBCTestListBoxData::TestUpdateFontBoundValues +// --------------------------------------------------------------------------- +// +void CBCTestListBoxData::TestUpdateFontBoundValues( const CFont* aBaseFont ) + { + UpdateFontBoundValues( *aBaseFont ); + } + +// --------------------------------------------------------------------------- +// CBCTestListBoxData::TestCFontWithStyle +// --------------------------------------------------------------------------- +// +TBool CBCTestListBoxData::TestCFontWithStyle() + { + TFontStyle style( EPostureItalic, EStrokeWeightBold, + EPrintPosSuperscript ); + iNormalFont.SetFontStyle( style ); + TFontStyle fontStyle = iNormalFont.FontStyle(); + iNormalFont.ReleaseFonts(); + return ( fontStyle == style ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// TBCTestListBoxEditorObserver::HandleListBoxEditorEventL +// Empty functions for test CEikListBoxTextEditor +// --------------------------------------------------------------------------- +// +TKeyResponse TBCTestListBoxEditorObserver::HandleListBoxEditorEventL( + MEikListBoxEditor* , const TKeyEvent& ) + { + return EKeyWasConsumed; + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ constructor +// --------------------------------------------------------------------------- +// +CBCTestListBoxEditor::CBCTestListBoxEditor( MListBoxModel* aModel, + CEikonEnv* aEikEnv ): CEikListBoxTextEditor( aModel ), iEikEnv( aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Test protected API WriteInternalStateL +// --------------------------------------------------------------------------- +// +void CBCTestListBoxEditor::TestWriteInternalStateL() + { + RFs& tempServer = iEikEnv->FsSession(); + tempServer.Delete( KStreamName ); + + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + WriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy( &fWrite ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestTextListItemDrawer::CBCTestTextListItemDrawer( + MTextListBoxModel* aTextListBoxModel, const CFont* aFont ): + CTextListItemDrawer( aTextListBoxModel, aFont ) + { + } + +// --------------------------------------------------------------------------- +// Test protected API of CTextListItemDrawer and CListItemDrawer +// --------------------------------------------------------------------------- +// +void CBCTestTextListItemDrawer::TestDrawItemText( CWindowGc& aGc ) + { + CListItemDrawer::SetGc( &aGc ); + SetGc( &aGc ); + TSize size = ItemCellSize(); + TRect rect( TPoint( 0, 0 ), size ); + DrawItemText( 0, rect, ETrue, EFalse, EFalse ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Fake list box observer +// --------------------------------------------------------------------------- +// +void TBCTestListBoxObserver::HandleListBoxEventL( CEikListBox*, + TListBoxEvent ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Test protected API: ItemArrayOwnershipType +// --------------------------------------------------------------------------- +// +TListBoxModelItemArrayOwnership CBCTestTextListModel:: + TestItemArrayOwnershipType() + { + return ItemArrayOwnershipType(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistformatbasecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistformatbasecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,431 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for CEikFormattedCellListBox +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestlistcolumnbasecase.h" +#include "bctestlistformatbasecase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KFormatBaseCreate, "Create CEikFormattedCellListBox" ); + +_LIT( KFormatTest1, "CEikFormattedCellListBox::UseLogicalToVisualConversion" ); +_LIT( KFormatTest2, "CEikFormattedCellListBox::FocusChanged" ); +_LIT( KFormatTest3, "CEikFormattedCellListBox::GetColorUseListL" ); +_LIT( KFormatTest4, "CEikFormattedCellListBox::HandleResourceChange" ); + +_LIT( KFormatItemDrawerTest1, "CFormattedCellListBoxItemDrawer::ClearAllPropertiesL" ); +_LIT( KFormatItemDrawerTest2, "CFormattedCellListBoxItemDrawer::SetPropertiesL" ); +_LIT( KFormatItemDrawerTest3, "CFormattedCellListBoxItemDrawer::ItemWidthInPixels" ); +_LIT( KFormatItemDrawerTest4, "CFormattedCellListBoxItemDrawer::DrawItemMark" ); + +_LIT( KFormateDataTest1, "CFormattedCellListBoxData::SetSkinEnabledL" ); +_LIT( KFormateDataTest2, "CFormattedCellListBoxData::SetSkinHighlightFrame" ); +_LIT( KFormateDataTest3, "CFormattedCellListBoxData::SetSkinPopupFrame" ); +_LIT( KFormateDataTest4, "CFormattedCellListBoxData::SetSkinPopupFramePosition" ); +_LIT( KFormateDataTest5, "CFormattedCellListBoxData::UseLogicalToVisualConversion" ); +_LIT( KFormateDataTest6, "CFormattedCellListBoxData::SetRespectFocus" ); +_LIT( KFormateDataTest7, "CFormattedCellListBoxData::EnableMarqueeL" ); +_LIT( KFormateDataTest8, "CFormattedCellListBoxData::SetSubCellFontForRowL" ); +_LIT( KFormateDataTest9, "CFormattedCellListBoxData::SetDrawBackground" ); +_LIT( KFormateDataTest10, "CFormattedCellListBoxData::SetMarqueeParams" ); +_LIT( KFormateDataTest11, "CFormattedCellListBoxData::SetSubcellUnderlined" ); +_LIT( KFormateDataTest12, "CFormattedCellListBoxData::ConstructLD" ); +_LIT( KFormateDataTest13, "CFormattedCellListBoxData::HighlightAnim" ); +_LIT( KFormateDataTest14, "CFormattedCellListBoxData::SetHighlightAnimBackgroundDrawer" ); +_LIT( KFormateDataTest15, "CFormattedCellListBoxData::AboutToDrawHighlightAnim" ); +_LIT( KFormateDataTest16, "CFormGraphicListBoxData::NewL" ); +_LIT( KFormateDataTest17, "CFormGraphicListBoxData::Draw" ); +_LIT( KFormateDataTest18, "CPopupFormattedListBoxData::NewL" ); +_LIT( KFormateDataTest19, "CFormGraphicListBoxData::Draw" ); +_LIT( KFormatDataTestText, "Test text for draw" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListFormatBaseCase* CBCTestListFormatBaseCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListFormatBaseCase* self = new( ELeave ) CBCTestListFormatBaseCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListFormatBaseCase::CBCTestListFormatBaseCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListFormatBaseCase::~CBCTestListFormatBaseCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline50 - EBCTestCmdOutline48; i++ ) + { + AddTestL( LeftCBA, REP( Down, 7 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline48 || aCmd > EBCTestCmdOutline50 ) + { + return; + } + ReleaseCase(); + PrepareCaseL(); + switch ( aCmd ) + { + case EBCTestCmdOutline48: + TestFormatListL(); + break; + case EBCTestCmdOutline49: + TestFormatItemDrawerL(); + break; + case EBCTestCmdOutline50: + TestFormatListDataL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::PrepareCaseL() + { + iListBox = new( ELeave ) CAknDoubleStyle2ListBox(); + AssertNotNullL( iListBox, KFormatBaseCreate ); + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTLIST_DOUBLE2_ITEM ); + + if ( iListBox ) + { + if ( textArray ) + { + SetListBoxFromInnerDescriptionL( iListBox, + EAknListBoxSelectionList, textArray ); + } + SetGraphicIconL( iListBox ); + + iContainer->SetControl( iListBox ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::TestFormatListL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::TestFormatListL() + { + iListBox->UseLogicalToVisualConversion( ETrue ); + iListBox->UseLogicalToVisualConversion( EFalse ); + AssertTrueL( ETrue, KFormatTest1 ); + + iListBox->FocusChanged( EDrawNow ); + iListBox->FocusChanged( ENoDrawNow ); + AssertTrueL( ETrue, KFormatTest2 ); + + TInt granularity = 4; + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( granularity ); + CleanupStack::PushL( colorUseList ); + iListBox->GetColorUseListL( *colorUseList ); + AssertTrueL( ( colorUseList->Count() > 0 ), KFormatTest3 ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + iListBox->HandleResourceChange( KAknsMessageSkinChange ); + iListBox->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + AssertTrueL( ETrue, KFormatTest4 ); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::TestFormatItemDrawerL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::TestFormatItemDrawerL() + { + CFormattedCellListBoxItemDrawer* itemDrawer = iListBox->ItemDrawer(); + + itemDrawer->ClearAllPropertiesL(); + AssertTrueL( ETrue, KFormatItemDrawerTest1 ); + + TListItemProperties itemProp; + itemProp.SetBold( ETrue ); + itemProp.SetItalics( ETrue ); + itemProp.SetUnderlined( ETrue ); + itemProp.SetDimmed( ETrue ); + itemProp.SetColor( KRgbGray ); + itemProp.SetSeparatorAfter( ETrue ); + itemDrawer->SetPropertiesL( 0, itemProp ); + AssertTrueL( ETrue, KFormatItemDrawerTest2 ); + + TInt width = itemDrawer->ItemWidthInPixels( 0 ); + AssertTrueL( ETrue, KFormatItemDrawerTest3 ); + + TPoint pt( 0, 0 ); + itemDrawer->DrawItemMark( ETrue, EFalse, pt ); + AssertTrueL( ETrue, KFormatItemDrawerTest4 ); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::TestFormatListDataL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::TestFormatListDataL() + { + CFormattedCellListBoxData* data = + iListBox->ItemDrawer()->FormattedCellData(); + + data->SetSkinEnabledL( ETrue ); + TBool skin = data->SkinEnabled(); + AssertTrueL( skin, KFormateDataTest1 ); + + TAknsItemID id; + id.Set( KAknsIIDDefault ); + data->SetSkinHighlightFrame( &id, &id ); + AssertTrueL( ETrue, KFormateDataTest2 ); + + data->SetSkinPopupFrame( &id, &id ); + AssertTrueL( ETrue, KFormateDataTest3 ); + + TRect rect = iContainer->Rect(); + TRect innerRect( rect.iTl.iX + 2, rect.iTl.iY + 2, rect.iBr.iX - 2, + rect.iBr.iY - 2 ); + data->SetSkinPopupFramePosition( rect, innerRect ); + AssertTrueL( ETrue, KFormateDataTest4 ); + + data->UseLogicalToVisualConversion( ETrue ); + AssertTrueL( ETrue, KFormateDataTest5 ); + + data->SetRespectFocus( ETrue ); + AssertTrueL( ETrue, KFormateDataTest6 ); + + data->EnableMarqueeL( ETrue ); + AssertTrueL( ETrue, KFormateDataTest7 ); + + data->SetSubCellFontForRowL( 0, 0, iEikEnv->NormalFont() ); + AssertTrueL( ETrue, KFormateDataTest8 ); + + data->SetDrawBackground( ETrue ); + AssertTrueL( ETrue, KFormateDataTest9 ); + + data->SetMarqueeParams( 1, 6, 1000000, 100000 ); + AssertTrueL( ETrue, KFormateDataTest10 ); + + TBitFlags32 flags; + data->SetSubcellUnderlined( flags ); + AssertTrueL( ETrue, KFormateDataTest11 ); +#ifdef __S60_32__ + iListBox->SetCurrentItemIndex( 2 );//item 3; + + TUint32 tInt = data->CurrentItemTextWasClipped(); + _LIT( KColumnDataTest35, + "Test CurrentItemTextWasClipped() at short item." ); + AssertTrueL( ETrue, KColumnDataTest35 ); + iListBox->SetCurrentItemIndex( 3 );//item 4; + tInt = data->CurrentItemTextWasClipped(); + _LIT( KColumnDataTest36, + "Test CurrentItemTextWasClipped() at long item." ); + AssertTrueL( ETrue, KColumnDataTest36 ); + iListBox->DrawNow(); +#endif //__S60_32__ + CBCTestListFormatData* bcData = new( ELeave ) + CBCTestListFormatData(); + CleanupStack::PushL( bcData ); + bcData->TestConstructLD( id ); + AssertTrueL( ETrue, KFormateDataTest12 ); + + CleanupStack::PopAndDestroy( bcData ); + + iContainer->ActivateGc(); + CWindowGc& gc = iContainer->SystemGc(); + DrawCaseL( gc ); + iContainer->DeactivateGc(); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::DrawCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::DrawCaseL( CWindowGc& aGc ) + { + CFormattedCellListBoxData* data = + iListBox->ItemDrawer()->FormattedCellData(); + data->HighlightAnim(); + AssertTrueL( ETrue, KFormateDataTest13 ); + + data->SetHighlightAnimBackgroundDrawer( &iDrawer ); + AssertTrueL( ETrue, KFormateDataTest14 ); + + data->AboutToDrawHighlightAnim(); + AssertTrueL( ETrue, KFormateDataTest15 ); + + TListItemProperties itemProp; + itemProp.SetBold( ETrue ); + itemProp.SetItalics( ETrue ); + itemProp.SetUnderlined( ETrue ); + itemProp.SetDimmed( ETrue ); + itemProp.SetColor( KRgbGray ); + itemProp.SetSeparatorAfter( ETrue ); + TSize size = iListBox->ItemDrawer()->ItemCellSize(); + TRect rect( iContainer->Rect().iTl.iX, iContainer->Rect().iTl.iY, + iContainer->Rect().iTl.iX + size.iWidth, + iContainer->Rect().iTl.iY + size.iHeight ); + const CFormattedCellListBoxData::TColors& colors = + data->SubCellColors( 0 ); + TPtrC text( KFormatDataTestText ); + + CFormGraphicListBoxData* graphicData = + CFormGraphicListBoxData::NewL(); + CleanupStack::PushL( graphicData ); + AssertNotNullL( graphicData, KFormateDataTest16 ); + graphicData->SetControl( iListBox ); + graphicData->Draw( itemProp, aGc, &text, rect, ETrue, colors ); + AssertTrueL( ETrue, KFormateDataTest17 ); + CleanupStack::PopAndDestroy( graphicData ); + + CPopupFormattedListBoxData* popupData = + CPopupFormattedListBoxData::NewL(); + CleanupStack::PushL( popupData ); + AssertNotNullL( popupData, KFormateDataTest18 ); + popupData->SetControl( iListBox ); + popupData->Draw( itemProp, aGc, &text, rect, ETrue, colors ); + AssertTrueL( ETrue, KFormateDataTest19 ); + CleanupStack::PopAndDestroy( popupData ); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatBaseCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListFormatBaseCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo3, + EMbmBctestlistGolgo3_mask ); + } + } + +// ======== MEMBER FUNCTIONS ======== +// CBCTestListFormatData + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestListFormatData::CBCTestListFormatData() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListFormatData::~CBCTestListFormatData() + { + } + +// --------------------------------------------------------------------------- +// CBCTestListFormatData::ConstructLD +// --------------------------------------------------------------------------- +// +void CBCTestListFormatData::TestConstructLD( + const TAknsItemID& aAnimationIID ) + { + CFormattedCellListBoxData::ConstructLD( aAnimationIID ); + } + +// ======== MEMBER FUNCTIONS ======== +// TBCTestListFormatAnimBgDrawer + +// --------------------------------------------------------------------------- +// TBCTestListFormatAnimBgDrawer::DrawHighlightAnimBackground +// --------------------------------------------------------------------------- +// +TBool TBCTestListFormatAnimBgDrawer:: + DrawHighlightAnimBackground( CFbsBitGc& ) const + { + return ETrue; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistformattedcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistformattedcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,506 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for formatted list classes +* +*/ + + +#include + +#include "bctestlistformattedcase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KFormattedCreate1, "Create CAknDoubleStyleListBox" ); +_LIT( KFormattedCreate2, "Create CAknDoubleStyle2ListBox" ); +_LIT( KFormattedCreate3, "Create CAknDoubleNumberStyleListBox" ); +_LIT( KFormattedCreate4, "Create CAknDoubleTimeStyleListBox" ); +_LIT( KFormattedCreate5, "Create CAknDoubleLargeStyleListBox" ); +_LIT( KFormattedCreate6, "Create CAknDoubleGraphicStyleListBox" ); +_LIT( KFormattedCreate7, "Create CAknDouble2GraphicStyleListBox" ); +_LIT( KFormattedCreate8, "Create CAknDouble2LargeStyleListBox" ); +_LIT( KFormattedCreate9, "Create CAknDouble2GraphicLargeGraphicStyleListBox" ); +_LIT( KFormattedCreate10, "Create CAknFormDoubleGraphicStyleListBox" ); +_LIT( KFormattedCreate11, "Create CAknFormDoubleStyleListBox" ); + +_LIT( KDoubleStyleTest1, "CAknDoubleStyleListBox::SizeChanged" ); +_LIT( KDoubleStyleTest2, "CAknDoubleStyleListBox::MinimumSize" ); +_LIT( KDoubleStyleTest3, "CAknDoubleStyleListBox::HandlePointerEventL" ); +_LIT( KListBoxLayoutSetupFormTextCell, "AknListBoxLayouts::SetupFormTextCell" ); + +_LIT( KDoubleStyle2Test1, "CAknDoubleStyle2ListBox::SizeChanged" ); +_LIT( KDoubleStyle2Test2, "CAknDoubleStyle2ListBox::MinimumSize" ); +_LIT( KDoubleStyle2Test3, "CAknDoubleStyle2ListBox::HandlePointerEventL" ); + +_LIT( KDoubleNumberTest1, "CAknDoubleNumberStyleListBox::SizeChanged" ); +_LIT( KDoubleNumberTest2, "CAknDoubleNumberStyleListBox::MinimumSize" ); +_LIT( KDoubleNumberTest3, "CAknDoubleNumberStyleListBox::HandlePointerEventL" ); + +_LIT( KDoubleTimeTest1, "CAknDoubleTimeStyleListBox::SizeChanged" ); +_LIT( KDoubleTimeTest2, "CAknDoubleTimeStyleListBox::MinimumSize" ); +_LIT( KDoubleTimeTest3, "CAknDoubleTimeStyleListBox::HandlePointerEventL" ); + +_LIT( KDoubleLargeTest1, "CAknDoubleLargeStyleListBox::SizeChanged" ); +_LIT( KDoubleLargeTest2, "CAknDoubleLargeStyleListBox::MinimumSize" ); +_LIT( KDoubleLargeTest3, "CAknDoubleLargeStyleListBox::HandlePointerEventL" ); + +_LIT( KDoubleGraphicTest1, "CAknDoubleGraphicStyleListBox::SizeChanged" ); +_LIT( KDoubleGraphicTest2, "CAknDoubleGraphicStyleListBox::MinimumSize" ); +_LIT( KDoubleGraphicTest3, "CAknDoubleGraphicStyleListBox::HandlePointerEventL" ); + +_LIT( KDouble2GraphicTest1, "CAknDouble2GraphicStyleListBox::SizeChanged" ); +_LIT( KDouble2GraphicTest2, "CAknDouble2GraphicStyleListBox::MinimumSize" ); +_LIT( KDouble2GraphicTest3, "CAknDouble2GraphicStyleListBox::HandlePointerEventL" ); + +_LIT( KDouble2LargeTest1, "CAknDouble2LargeStyleListBox::SizeChanged" ); +_LIT( KDouble2LargeTest2, "CAknDouble2LargeStyleListBox::MinimumSize" ); +_LIT( KDouble2LargeTest3, "CAknDouble2LargeStyleListBox::HandlePointerEventL" ); + +_LIT( KDouble2GraphicLargeGraphicTest1, "CAknDouble2GraphicLargeGraphicStyleListBox::SizeChanged" ); +_LIT( KDouble2GraphicLargeGraphicTest2, "CAknDouble2GraphicLargeGraphicStyleListBox::MinimumSize" ); +_LIT( KDouble2GraphicLargeGraphicTest3, "CAknDouble2GraphicLargeGraphicStyleListBox::HandlePointerEventL" ); + +_LIT( KFormDoubleGraphicTest1, "CAknFormDoubleGraphicStyleListBox::SizeChanged" ); +_LIT( KFormDoubleGraphicTest2, "CAknFormDoubleGraphicStyleListBox::MinimumSize" ); +_LIT( KFormDoubleGraphicTest3, "CAknFormDoubleGraphicStyleListBox::HandlePointerEventL" ); + +_LIT( KFormDoubleTest1, "CAknFormDoubleStyleListBox::SizeChanged" ); +_LIT( KFormDoubleTest2, "CAknFormDoubleStyleListBox::MinimumSize" ); +_LIT( KFormDoubleTest3, "CAknFormDoubleStyleListBox::HandlePointerEventL" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListFormattedCase* CBCTestListFormattedCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListFormattedCase* self = new( ELeave ) CBCTestListFormattedCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListFormattedCase::CBCTestListFormattedCase( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListFormattedCase::~CBCTestListFormattedCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormattedCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline20 - EBCTestCmdOutline10; i++ ) + { + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListFormattedCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline10 || + aCmd > EBCTestCmdOutline20 ) + { + return; + } + iOutlineId = aCmd; + ReleaseCase(); + PrepareCaseL( aCmd ); + TestFormattedCellListL( aCmd ); + } + +// --------------------------------------------------------------------------- +// CBCTestListFormattedCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::PrepareCaseL( TInt aCmd ) + { + TInt resourceId( KBCTestListInitListResourceId ); + TBool useGraphics( EFalse ); + CDesCArray* textArray = NULL; + + switch ( aCmd ) + { + case EBCTestCmdOutline10: + iListBox = new( ELeave ) CAknDoubleStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate1 ); + break; + case EBCTestCmdOutline11: + iListBox = new( ELeave ) CAknDoubleStyle2ListBox(); + useGraphics = ETrue; + textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTLIST_DOUBLE2_ITEM ); + AssertNotNullL( iListBox, KFormattedCreate2 ); + break; + case EBCTestCmdOutline12: + resourceId = R_BCTESTLIST_LOOP_BIG_SINGLE_NUMBER; + iListBox = new( ELeave ) CAknDoubleNumberStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate3 ); + break; + case EBCTestCmdOutline13: + resourceId = R_BCTESTLIST_DOUBLE_TIME; + iListBox = new( ELeave ) CAknDoubleTimeStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate4 ); + break; + case EBCTestCmdOutline14: + resourceId = R_BCTESTLIST_DOUBLE_LARGE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknDoubleLargeStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate5 ); + break; + case EBCTestCmdOutline15: + resourceId = R_BCTESTLIST_DOUBLE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknDoubleGraphicStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate6 ); + break; + case EBCTestCmdOutline16: + resourceId = R_BCTESTLIST_DOUBLE2_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknDouble2GraphicStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate7 ); + break; + case EBCTestCmdOutline17: + resourceId = R_BCTESTLIST_DOUBLE_LARGE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknDouble2LargeStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate8 ); + break; + case EBCTestCmdOutline18: + resourceId = R_BCTESTLIST_DOUBLE2_GRAPHIC_LARGE_GRAPHIC; + useGraphics = ETrue; + iListBox = + new( ELeave ) CAknDouble2GraphicLargeGraphicStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate9 ); + break; + case EBCTestCmdOutline19: + resourceId = R_BCTESTLIST_DOUBLE_GRAPHIC; + iListBox = new( ELeave ) CAknFormDoubleGraphicStyleListBox(); + useGraphics = ETrue; + AssertNotNullL( iListBox, KFormattedCreate10 ); + break; + case EBCTestCmdOutline20: + resourceId = R_BCTESTLIST_DOUBLE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknFormDoubleStyleListBox(); + AssertNotNullL( iListBox, KFormattedCreate11 ); + break; + case EBCTestCmdOutline21: + resourceId = R_BCTESTLIST_DOUBLE_LARGE_GRAPHIC; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknDoubleLargeStyleListBox(); + break; + default: + break; + } + + if ( iListBox ) + { + if ( resourceId != 0 ) + { + SetListBoxFromResourceL( iListBox, resourceId ); + } + else + { + if ( textArray ) + { + SetListBoxFromInnerDescriptionL( iListBox, + EAknListBoxSelectionList, textArray ); + } + else + { + SetListBoxFromInnerDescriptionL( iListBox ); + } + } + + if ( useGraphics ) + { + SetGraphicIconL( iListBox ); + } + + iContainer->SetControl( iListBox ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListFormattedCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListFormattedCase::TestFormattedCellListL +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::TestFormattedCellListL( TInt aCmd ) + { + if ( !iListBox ) + { + return; + } + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + TSize size; + switch ( aCmd ) + { + case EBCTestCmdOutline10: + { + CAknDoubleStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleStyleTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleStyleTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleStyleTest3 ); + + TRect rect = iContainer->Rect(); + TSize size = listbox->ItemDrawer()->MinimumCellSize(); + TPoint pt1( rect.iTl ); + TPoint pt2( rect.iTl.iX + size.iWidth, + rect.iTl.iY + size.iHeight ); + AknListBoxLayouts::SetupFormTextCell( + *listbox, listbox->ItemDrawer(), 0, iEikEnv->NormalFont(), + 0, rect.iTl.iX, rect.iTl.iY, rect.iBr.iY, size.iWidth, + CGraphicsContext::ELeft, pt1, pt2 + ); + AssertTrueL( ETrue, KListBoxLayoutSetupFormTextCell ); + } + break; + case EBCTestCmdOutline11: + { + CAknDoubleStyle2ListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleStyle2Test1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleStyle2Test2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleStyle2Test3 ); + } + break; + case EBCTestCmdOutline12: + { + CAknDoubleNumberStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleNumberTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleNumberTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleNumberTest3 ); + } + break; + case EBCTestCmdOutline13: + { + CAknDoubleTimeStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleTimeTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleTimeTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleTimeTest3 ); + } + break; + case EBCTestCmdOutline14: + { + CAknDoubleLargeStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleLargeTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleLargeTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleLargeTest3 ); + } + break; + case EBCTestCmdOutline15: + { + CAknDoubleGraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleGraphicTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleGraphicTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleGraphicTest3 ); + } + break; + case EBCTestCmdOutline16: + { + CAknDouble2GraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDouble2GraphicTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDouble2GraphicTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDouble2GraphicTest3 ); + } + break; + case EBCTestCmdOutline17: + { + CAknDouble2LargeStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDouble2LargeTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDouble2LargeTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDouble2LargeTest3 ); + } + break; + case EBCTestCmdOutline18: + { + CAknDouble2GraphicLargeGraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDouble2GraphicLargeGraphicTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDouble2GraphicLargeGraphicTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDouble2GraphicLargeGraphicTest3 ); + } + break; + case EBCTestCmdOutline19: + { + CAknFormDoubleGraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KFormDoubleGraphicTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KFormDoubleGraphicTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KFormDoubleGraphicTest3 ); + } + break; + case EBCTestCmdOutline20: + { + CAknFormDoubleStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KFormDoubleTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KFormDoubleTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KFormDoubleTest3 ); + } + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListFormattedCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListFormattedCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon according to iOutlineId. + switch ( iOutlineId ) + { + case EBCTestCmdOutline14: + case EBCTestCmdOutline17: + case EBCTestCmdOutline18: + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo2, + EMbmBctestlistGolgo2_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo3, + EMbmBctestlistGolgo3_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo4, + EMbmBctestlistGolgo4_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo5, + EMbmBctestlistGolgo5_mask ); + break; + case EBCTestCmdOutline11: + case EBCTestCmdOutline15: + case EBCTestCmdOutline16: + case EBCTestCmdOutline19: + case EBCTestCmdOutline20: + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo3, + EMbmBctestlistGolgo3_mask ); + break; + + default: + break; + } + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistgridcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistgridcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,291 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for grid pane list box classes +* +*/ + + +#include +#include +#include +#include + +#include "bctestlistgridcase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KGridCreate1, "Create CAknPinbStyleGrid" ); +_LIT( KGridCreate2, "Create CAknQdialStyleGrid" ); +_LIT( KGridCreate3, "Create CAknCaleMonthStyleGrid" ); + +_LIT( KPinbTest1, "CAknPinbStyleGrid::SizeChanged" ); +_LIT( KPinbTest2, "CAknPinbStyleGrid::MinimumSize" ); +_LIT( KPinbTest3, "CAknPinbStyleGrid::HandlePointerEventL" ); +_LIT( KLayoutSetupGridFormGfxCell, "AknListBoxLayouts::SetupGridFormGfxCell" ); + +_LIT( KQdialTest1, "CAknQdialStyleGrid::SizeChanged" ); +_LIT( KQdialTest2, "CAknQdialStyleGrid::MinimumSize" ); +_LIT( KQdialTest3, "CAknQdialStyleGrid::HandlePointerEventL" ); + +_LIT( KCaleMonthTest1, "CAknCaleMonthStyleGrid::SizeChanged" ); +_LIT( KCaleMonthTest2, "CAknCaleMonthStyleGrid::MinimumSize" ); +_LIT( KCaleMonthTest3, "CAknCaleMonthStyleGrid::HandlePointerEventL" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListGridCase* CBCTestListGridCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListGridCase* self = new( ELeave ) CBCTestListGridCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListGridCase::CBCTestListGridCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListGridCase::~CBCTestListGridCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListGridCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline42 - EBCTestCmdOutline40; i++ ) + { + AddTestL( LeftCBA, REP( Down, 4 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListGridCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline40 || + aCmd > EBCTestCmdOutline42 ) + { + return; + } + iOutlineId = aCmd; + ReleaseCase(); + PrepareCaseL( aCmd ); + TestGridListL( aCmd ); + } + +// --------------------------------------------------------------------------- +// CBCTestListGridCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::PrepareCaseL( TInt aCmd ) + { + TInt resourceId( R_BCTESTLIST_SELECTION_GRID ); + + switch ( aCmd ) + { + case EBCTestCmdOutline40: + iListBox = new( ELeave ) CAknPinbStyleGrid(); + AssertNotNullL( iListBox, KGridCreate1 ); + break; + case EBCTestCmdOutline41: + iListBox = new( ELeave ) CAknQdialStyleGrid(); + AssertNotNullL( iListBox, KGridCreate2 ); + break; + case EBCTestCmdOutline42: + iListBox = new( ELeave ) CAknCaleMonthStyleGrid(); + AssertNotNullL( iListBox, KGridCreate3 ); + break; + + default: + break; + } + + if ( iListBox ) + { + // construct from resource + iListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, resourceId ); + iListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + + // create icon array + CArrayPtr* icons = new( ELeave ) CAknIconArray( + KBCTestListGraphicGulIconIndex ); + CleanupStack::PushL( icons ); + GraphicIconL( icons ); // Appends graphic data. + // Sets graphics as ListBox icon. + iListBox->ItemDrawer()->ColumnData()->SetIconArray( icons ); + CleanupStack::Pop(); + + iContainer->SetControl( iListBox ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListGridCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListGridCase::TestGridListL +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::TestGridListL( TInt aCmd ) + { + if ( !iListBox ) + { + return; + } + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + TSize size; + switch ( aCmd ) + { + case EBCTestCmdOutline40: + { + CAknPinbStyleGrid* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KPinbTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KPinbTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KPinbTest3 ); + + TRect rect = iContainer->Rect(); + TSize size = listbox->ItemDrawer()->MinimumCellSize(); + TPoint pt1( rect.iTl ); + TPoint pt2( rect.iTl.iX + size.iWidth, + rect.iTl.iY + size.iHeight ); + AknListBoxLayouts::SetupGridFormGfxCell( + *listbox, listbox->ItemDrawer(), + 0, rect.iTl.iX, rect.iTl.iY, rect.iBr.iX, rect.iBr.iY, + size.iWidth, size.iHeight, pt1, pt2 ); + AssertTrueL( ETrue, KLayoutSetupGridFormGfxCell ); + } + break; + case EBCTestCmdOutline41: + { + CAknQdialStyleGrid* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KQdialTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KQdialTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KQdialTest3 ); + } + break; + case EBCTestCmdOutline42: + { + CAknCaleMonthStyleGrid* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KCaleMonthTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KCaleMonthTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KCaleMonthTest3 ); + } + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListGridCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListGridCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon according to iOutlineId. + switch ( iOutlineId ) + { + case EBCTestCmdOutline40: + case EBCTestCmdOutline41: + case EBCTestCmdOutline42: + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo2, + EMbmBctestlistGolgo2_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo3, + EMbmBctestlistGolgo3_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo4, + EMbmBctestlistGolgo4_mask ); + + break; + + default: + break; + } + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistpopupcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistpopupcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,608 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for popup list box classes +* +*/ + + +#include +#include + +#include "bctestlistpopupcase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KPopupCreate1, "Create CAknSinglePopupMenuStyleListBox" ); +_LIT( KPopupCreate2, "Create CAknSingleGraphicPopupMenuStyleListBox" ); +_LIT( KPopupCreate3, "Create CAknSingleGraphicBtPopupMenuStyleListBox" ); +_LIT( KPopupCreate4, "Create CAknSingleHeadingPopupMenuStyleListBox" ); +_LIT( KPopupCreate5, "Create CAknSingleGraphicHeadingPopupMenuStyleListBox" ); +_LIT( KPopupCreate6, "Create CAknDoublePopupMenuStyleListBox" ); +_LIT( KPopupCreate7, "Create CAknSinglePopupSubmenuStyleListBox" ); +_LIT( KPopupCreate8, "Create CAknDoubleLargeGraphicPopupMenuStyleListBox" ); +_LIT( KPopupCreate9, "Create CAknDouble2PopupMenuStyleListBox" ); +_LIT( KPopupCreate10, "Create CAknSingle2GraphicPopupMenuStyleListBox" ); +_LIT( KPopupCreate11, "Create CAknDoubleGraphicPopupMenuStyleListBox" ); +_LIT( KPopupCreate12, "Create CAknSetStyleListBox" ); +_LIT( KSetConstructWithWindow, "CAknSetStyleListBox::ConstructWithWindowL" ); +_LIT( KPopupCreate13, "Create CAknFormGraphicStyleListBox" ); +_LIT( KFormGraphicConstructWithWindow, "CAknFormGraphicStyleListBox::ConstructWithWindowL" ); +_LIT( KPopupCreate14, "Create CAknFormGraphicWideStyleListBox" ); + +_LIT( KSinglePopupMenuTest1, "CAknSinglePopupMenuStyleListBox::SizeChanged" ); +_LIT( KSinglePopupMenuTest2, "CAknSinglePopupMenuStyleListBox::MinimumSize" ); +_LIT( KSinglePopupMenuTest3, "CAknSinglePopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleGraphicPopupMenuTest1, "CAknSingleGraphicPopupMenuStyleListBox::SizeChanged" ); +_LIT( KSingleGraphicPopupMenuTest2, "CAknSingleGraphicPopupMenuStyleListBox::MinimumSize" ); +_LIT( KSingleGraphicPopupMenuTest3, "CAknSingleGraphicPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleGraphicBtPopupMenuTest1, "CAknSingleGraphicBtPopupMenuStyleListBox::SizeChanged" ); +_LIT( KSingleGraphicBtPopupMenuTest2, "CAknSingleGraphicBtPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleHeadingPopupMenuTest1, "CAknSingleHeadingPopupMenuStyleListBox::SizeChanged" ); +_LIT( KSingleHeadingPopupMenuTest2, "CAknSingleHeadingPopupMenuStyleListBox::MinimumSize" ); +_LIT( KSingleHeadingPopupMenuTest3, "CAknSingleHeadingPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSingleGraphicHeadingPopupMenuTest1, "CAknSingleGraphicHeadingPopupMenuStyleListBox::SizeChanged" ); +_LIT( KSingleGraphicHeadingPopupMenuTest2, "CAknSingleGraphicHeadingPopupMenuStyleListBox::MinimumSize" ); +_LIT( KSingleGraphicHeadingPopupMenuTest3, "CAknSingleGraphicHeadingPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KDoublePopupMenuTest1, "CAknDoublePopupMenuStyleListBox::SizeChanged" ); +_LIT( KDoublePopupMenuTest2, "CAknDoublePopupMenuStyleListBox::MinimumSize" ); +_LIT( KDoublePopupMenuTest3, "CAknDoublePopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSinglePopupSubMenuTest1, "CAknSinglePopupSubmenuStyleListBox::SizeChanged" ); +_LIT( KSinglePopupSubMenuTest2, "CAknSinglePopupSubmenuStyleListBox::MinimumSize" ); +_LIT( KSinglePopupSubMenuTest3, "CAknSinglePopupSubmenuStyleListBox::HandlePointerEventL" ); + +_LIT( KDoubleLargeGraphicPopupMenuTest1, "CAknDoubleLargeGraphicPopupMenuStyleListBox::SizeChanged" ); +_LIT( KDoubleLargeGraphicPopupMenuTest2, "CAknDoubleLargeGraphicPopupMenuStyleListBox::MinimumSize" ); +_LIT( KDoubleLargeGraphicPopupMenuTest3, "CAknDoubleLargeGraphicPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KDouble2PopupMenuTest1, "CAknDouble2PopupMenuStyleListBox::SizeChanged" ); +_LIT( KDouble2PopupMenuTest2, "CAknDouble2PopupMenuStyleListBox::MinimumSize" ); +_LIT( KDouble2PopupMenuTest3, "CAknDouble2PopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSingle2GraphicPopupMenuTest1, "CAknSingle2GraphicPopupMenuStyleListBox::SizeChanged" ); +_LIT( KSingle2GraphicPopupMenuTest2, "CAknSingle2GraphicPopupMenuStyleListBox::MinimumSize" ); +_LIT( KSingle2GraphicPopupMenuTest3, "CAknSingle2GraphicPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KDoubleGraphicPopupMenuTest1, "CAknDoubleGraphicPopupMenuStyleListBox::SizeChanged" ); +_LIT( KDoubleGraphicPopupMenuTest2, "CAknDoubleGraphicPopupMenuStyleListBox::MinimumSize" ); +_LIT( KDoubleGraphicPopupMenuTest3, "CAknDoubleGraphicPopupMenuStyleListBox::HandlePointerEventL" ); + +_LIT( KSetTest1, "CAknSetStyleListBox::SizeChanged" ); +_LIT( KSetTest2, "CAknSetStyleListBox::MinimumSize" ); +_LIT( KSetTest3, "CAknSetStyleListBox::HandlePointerEventL" ); +_LIT( KSetTest4, "CAknSetStyleListBox::MopSupplyObject" ); +_LIT( KSetTest5, "CAknSetStyleListBox::Draw with empty list" ); +_LIT( KSetTest6, "CAknSetStyleListBox::Draw with item" ); + +_LIT( KFormGraphicTest1, "CAknFormGraphicStyleListBox::SizeChanged" ); +_LIT( KFormGraphicTest2, "CAknFormGraphicStyleListBox::MinimumSize" ); +_LIT( KFormGraphicTest3, "CAknFormGraphicStyleListBox::AdjustRectHeightToWholeNumberOfItems" ); +_LIT( KFormGraphicTest4, "CAknFormGraphicStyleListBox::HandlePointerEventL" ); + +_LIT( KFormGraphicWideTest1, "CAknFormGraphicWideStyleListBox::SizeChanged" ); +_LIT( KFormGraphicWideTest2, "CAknFormGraphicWideStyleListBox::MinimumSize" ); +_LIT( KFormGraphicWideTest3, "CAknFormGraphicWideStyleListBox::HandlePointerEventL" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListPopupCase* CBCTestListPopupCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListPopupCase* self = new( ELeave ) CBCTestListPopupCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListPopupCase::CBCTestListPopupCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListPopupCase::~CBCTestListPopupCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListPopupCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline39 - EBCTestCmdOutline26; i++ ) + { + AddTestL( LeftCBA, REP( Down, 3 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListPopupCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline26 || + aCmd > EBCTestCmdOutline39 ) + { + return; + } + iOutlineId = aCmd; + ReleaseCase(); + PrepareCaseL( aCmd ); + TestPopupListL( aCmd ); + } + +// --------------------------------------------------------------------------- +// CBCTestListPopupCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::PrepareCaseL( TInt aCmd ) + { + TInt flags = EAknListBoxSelectionList | EAknListBoxViewerFlags; + TBool useGraphics( EFalse ); + + switch ( aCmd ) + { + case EBCTestCmdOutline26: + { + iListBox = new( ELeave ) CBCTestSinglePopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate1 ); + } + break; + case EBCTestCmdOutline27: + { + iListBox = new( ELeave ) CBCTestSingleGraphicPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate2 ); + } + break; + case EBCTestCmdOutline28: + { + iListBox = new( ELeave ) CAknSingleGraphicBtPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate3 ); + } + break; + case EBCTestCmdOutline29: + { + iListBox = new( ELeave ) CAknSingleHeadingPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate4 ); + } + break; + case EBCTestCmdOutline30: + { + iListBox = new( ELeave ) CAknSingleGraphicHeadingPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate5 ); + } + break; + case EBCTestCmdOutline31: + { + iListBox = new( ELeave ) CAknDoublePopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate6 ); + } + break; + case EBCTestCmdOutline32: + { + iListBox = new( ELeave ) CAknSinglePopupSubmenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate7 ); + } + break; + case EBCTestCmdOutline33: + { + iListBox = new( ELeave ) CAknDoubleLargeGraphicPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate8 ); + } + break; + case EBCTestCmdOutline34: + { + iListBox = new( ELeave ) CAknDouble2PopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate9 ); + } + break; + case EBCTestCmdOutline35: + { + iListBox = new( ELeave ) CBCTestSingle2GraphicPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate10 ); + } + break; + case EBCTestCmdOutline36: + { + iListBox = new( ELeave ) CBCTestDoubleGraphicPopupMenuStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate11 ); + } + break; + case EBCTestCmdOutline37: + { + useGraphics = ETrue; + iListBox = new( ELeave ) CAknSetStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate12 ); + CAknSetStyleListBox* listbox = + static_cast( iListBox ); + listbox->ConstructWithWindowL( iContainer, flags ); + AssertTrueL( ETrue, KSetConstructWithWindow ); + } + break; + case EBCTestCmdOutline38: + { + useGraphics = ETrue; + iListBox = new( ELeave ) CAknFormGraphicStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate13 ); + CAknFormGraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->ConstructWithWindowL( iContainer, flags ); + AssertTrueL( ETrue, KFormGraphicConstructWithWindow ); + } + break; + case EBCTestCmdOutline39: + { + useGraphics = ETrue; + iListBox = new( ELeave ) CAknFormGraphicWideStyleListBox(); + AssertNotNullL( iListBox, KPopupCreate14 ); + CAknFormGraphicWideStyleListBox* listbox = + static_cast( iListBox ); + listbox->ConstructWithWindowL( iContainer, flags ); + } + break; + + default: + break; + } + + if ( iListBox ) + { + + if ( aCmd < EBCTestCmdOutline37 ) + { + SetListBoxFromInnerDescriptionL( iListBox ); + } + + if ( useGraphics ) + { + SetGraphicIconL( iListBox ); + } + + iContainer->SetControl( iListBox ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListPopupCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListPopupCase::TestPopupListL +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::TestPopupListL( TInt aCmd ) + { + if ( !iListBox ) + { + return; + } + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + TSize size; + switch ( aCmd ) + { + case EBCTestCmdOutline26: + { + CBCTestSinglePopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSinglePopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSinglePopupMenuTest2 ); + listbox->TestHandlePointerEventL( event ); + AssertTrueL( ETrue, KSinglePopupMenuTest3 ); + } + break; + case EBCTestCmdOutline27: + { + CBCTestSingleGraphicPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleGraphicPopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleGraphicPopupMenuTest2 ); + listbox->TestHandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleGraphicPopupMenuTest3 ); + } + break; + case EBCTestCmdOutline28: + { + CAknSingleGraphicBtPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleGraphicBtPopupMenuTest1 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleGraphicBtPopupMenuTest2 ); + } + break; + case EBCTestCmdOutline29: + { + CAknSingleHeadingPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleHeadingPopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleHeadingPopupMenuTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleHeadingPopupMenuTest3 ); + } + break; + case EBCTestCmdOutline30: + { + CAknSingleGraphicHeadingPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingleGraphicHeadingPopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingleGraphicHeadingPopupMenuTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSingleGraphicHeadingPopupMenuTest3 ); + } + break; + case EBCTestCmdOutline31: + { + CAknDoublePopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoublePopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoublePopupMenuTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoublePopupMenuTest3 ); + } + break; + case EBCTestCmdOutline32: + { + CAknSinglePopupSubmenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSinglePopupSubMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSinglePopupSubMenuTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSinglePopupSubMenuTest3 ); + } + break; + case EBCTestCmdOutline33: + { + CAknDoubleLargeGraphicPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDoubleLargeGraphicPopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleLargeGraphicPopupMenuTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleLargeGraphicPopupMenuTest3 ); + } + break; + case EBCTestCmdOutline34: + { + CAknDouble2PopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KDouble2PopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDouble2PopupMenuTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDouble2PopupMenuTest3 ); + } + break; + case EBCTestCmdOutline35: + { + CBCTestSingle2GraphicPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSingle2GraphicPopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSingle2GraphicPopupMenuTest2 ); + listbox->TestHandlePointerEventL( event ); + AssertTrueL( ETrue, KSingle2GraphicPopupMenuTest3 ); + } + break; + case EBCTestCmdOutline36: + { + CBCTestDoubleGraphicPopupMenuStyleListBox* listbox = + static_cast( iListBox ); + AssertTrueL( ETrue, KDoubleGraphicPopupMenuTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KDoubleGraphicPopupMenuTest2 ); + listbox->TestHandlePointerEventL( event ); + AssertTrueL( ETrue, KDoubleGraphicPopupMenuTest3 ); + } + break; + case EBCTestCmdOutline37: + { + CAknSetStyleListBox* listbox = + static_cast( iListBox ); + listbox->EnableExtendedDrawingL(); + listbox->SetRect( iContainer->Rect() ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSetTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSetTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSetTest3 ); + + TTypeUid typeId( iEikEnv->EikAppUi()->Application()->AppDllUid().iUid ); + TTypeUid::Ptr uidPtr = listbox->MopSupplyObject( typeId ); + AssertTrueL( ETrue, KSetTest4 ); + listbox->EnableExtendedDrawingL(); + listbox->Draw( iContainer->Rect() ); + AssertTrueL( ETrue, KSetTest5 ); + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTLIST_ITEM_SINGLE_NUMBER ); + if ( textArray ) + { + listbox->Model()->SetItemTextArray( textArray ); + listbox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + } + listbox->Draw( iContainer->Rect() ); + AssertTrueL( ETrue, KSetTest6 ); + } + break; + case EBCTestCmdOutline38: + { + CAknFormGraphicStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KFormGraphicTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KFormGraphicTest2 ); + TRect rect = iContainer->Rect(); + TInt height = listbox->AdjustRectHeightToWholeNumberOfItems( rect ); + AssertTrueL( ETrue, KFormGraphicTest3 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KFormGraphicTest4 ); + } + break; + case EBCTestCmdOutline39: + { + CAknFormGraphicWideStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KFormGraphicWideTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KFormGraphicWideTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KFormGraphicWideTest3 ); + } + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListPopupCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListPopupCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon according to iOutlineId. + switch ( iOutlineId ) + { + case EBCTestCmdOutline37: + case EBCTestCmdOutline38: + case EBCTestCmdOutline39: + for ( TInt i = 0; i< 10; i++ ) + { + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo2, + EMbmBctestlistGolgo2_mask ); + } + + break; + + default: + break; + } + } + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestSinglePopupMenuStyleListBox::TestCreateItemDrawerL +// --------------------------------------------------------------------------- +// +void CBCTestSinglePopupMenuStyleListBox:: + TestHandlePointerEventL(const TPointerEvent& aPointerEvent) + { + HandlePointerEventL( aPointerEvent ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestSingleGraphicPopupMenuStyleListBox::TestCreateItemDrawerL +// --------------------------------------------------------------------------- +// +void CBCTestSingleGraphicPopupMenuStyleListBox:: + TestHandlePointerEventL(const TPointerEvent& aPointerEvent) + { + HandlePointerEventL( aPointerEvent ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestSingle2GraphicPopupMenuStyleListBox::TestHandlePointerEventL +// --------------------------------------------------------------------------- +// +void CBCTestSingle2GraphicPopupMenuStyleListBox:: + TestHandlePointerEventL( const TPointerEvent& aPointerEvent ) + { + HandlePointerEventL( aPointerEvent ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestDoubleGraphicPopupMenuStyleListBox::TestHandlePointerEventL +// --------------------------------------------------------------------------- +// +void CBCTestDoubleGraphicPopupMenuStyleListBox:: + TestHandlePointerEventL( const TPointerEvent& aPointerEvent ) + { + HandlePointerEventL( aPointerEvent ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistselectioncase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistselectioncase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,357 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for selection list dialog classes +* +*/ + + +#include +#include + +#include "bctestlistselectioncase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KSelectNewL, "CAknSelectionListDialog::NewL" ); +_LIT( KSelSetFind, "CAknMarkableListDialog::SetupFind" ); +_LIT( KSelSetIconArray, "CAknSelectionListDialog::SetIconArrayL" ); +_LIT( KSelHandleListEvent, "CAknSelectionListDialog::HandleListBoxEventL" ); +_LIT( KSelSelListProcCmd, "CAknSelectionListDialog::SelectionListProcessCommandL" ); +_LIT( KSelProcCmd, "CAknSelectionListDialog::ProcessCommandL" ); +_LIT( KSelCustomCtrl, "CAknSelectionListDialog::CreateCustomControlL" ); +_LIT( KSelDraw, "CAknSelectionListDialog::Draw" ); + +_LIT( KMarkedNewL, "CAknMarkableListDialog::NewL" ); +_LIT( KSelHandlePointer, "CAknMarkableListDialog::HandlePointerEventL" ); +_LIT( KSelPreLayout, "CAknMarkableListDialog::PreLayoutDynInitL" ); +_LIT( KMarSelListProcCmd, "CAknMarkableListDialog::SelectionListProcessCommandL" ); +_LIT( KMarPreProcCmd, "CAknMarkableListDialog::ProcessCommandL" ); +_LIT( KSelDynMenPane, "CAknMarkableListDialog::DynInitMenuPaneL" ); +_LIT( KMarHandleListEvent, "CAknMarkableListDialog::HandleListBoxEventL" ); +_LIT( KMarOfferKey, "CAknMarkableListDialog::OfferKeyEventL" ); +_LIT( KMarPostLayout, "CAknMarkableListDialog::PostLayoutDynInitL" ); +_LIT( KMarOK, "CAknMarkableListDialog::OkToExitL" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListSelectionCase* CBCTestListSelectionCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListSelectionCase* self = new( ELeave ) CBCTestListSelectionCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListSelectionCase::CBCTestListSelectionCase( CBCTestListContainer* aContainer, + CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListSelectionCase::~CBCTestListSelectionCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListSelectionCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListSelectionCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListSelectionCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline57 - EBCTestCmdOutline56; i++ ) + { + AddTestL( LeftCBA, REP( Down, 9 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListSelectionCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListSelectionCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline56 || aCmd > EBCTestCmdOutline57 ) + { + return; + } + ReleaseCase(); + switch ( aCmd ) + { + case EBCTestCmdOutline56: + TestMarkableListDialogL(); + break; + case EBCTestCmdOutline57: + TestSelectionListDialogL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListSelectionCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListSelectionCase::ReleaseCase() + { + iContainer->ResetControl(); + } + +// --------------------------------------------------------------------------- +// Test CAknSelectionListDialog +// --------------------------------------------------------------------------- +// + +void CBCTestListSelectionCase::TestSelectionListDialogL() + { + TInt value( -1 ); + CArrayFix* markedItems = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( markedItems ); + CDesCArray* textArray = NULL; + textArray = iEikEnv->ReadDesCArrayResourceL( R_BCTESTLIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + // test CAknSelectionListDialog::NewL + CAknSelectionListDialog* selDlg = CAknSelectionListDialog::NewL( + value, textArray, R_AVKON_DIALOG_EMPTY_MENUBAR, NULL ); + CleanupStack::PushL( selDlg ); + AssertNotNullL( selDlg, KSelectNewL ); + CleanupStack::PopAndDestroy( selDlg ); + + // test API of CAknSelectionListDialog + CBCSelectionListDialog* dlg = CBCSelectionListDialog::NewL( value, + textArray ); + dlg->PrepareLC( R_BCTESTLIST_SINGLE_SELECTION_LIST_DIALOG ); + + dlg->SetupFind( CAknSelectionListDialog::EFixedFind ); + AssertTrueL( ETrue, KSelSetFind ); + + CArrayPtr* icons = new( ELeave ) CArrayPtrFlat( + KBCTestListGraphicGulIconIndex ); + CleanupStack::PushL( icons ); + GraphicIconL( icons ); + dlg->SetIconArrayL( icons ); + CArrayPtr* getIcons = dlg->IconArray(); + AssertTrueL( ( getIcons == icons ), KSelSetIconArray ); + CleanupStack::Pop( icons ); + + dlg->SetSizeAndPosition( iContainer->Rect().Size() ); + + dlg->HandleListBoxEventL( + dlg->ListBox(), + MEikListBoxObserver::EEventEnterKeyPressed ); + AssertTrueL( ETrue, KSelHandleListEvent ); + + dlg->SelectionListProcessCommandL( EAknMarkAll ); + AssertTrueL( ETrue, KSelSelListProcCmd ); + + dlg->ProcessCommandL( EAknUnmarkAll ); + AssertTrueL( ETrue, KSelProcCmd ); + + SEikControlInfo info = dlg->CreateCustomControlL( + EAknCtSingleNumberListBox ); + AssertTrueL( ETrue, KSelCustomCtrl ); + delete info.iControl; + + TRect rect = iContainer->Rect(); + dlg->Draw( rect ); + AssertTrueL( ETrue, KSelDraw ); + + CleanupStack::PopAndDestroy(); // for PrepareLC + CleanupStack::PopAndDestroy( textArray ); + CleanupStack::PopAndDestroy( markedItems ); + } + +// --------------------------------------------------------------------------- +// Test CAknMarkableListDialog +// --------------------------------------------------------------------------- +// +void CBCTestListSelectionCase::TestMarkableListDialogL() + { + TInt value( -1 ); + CArrayFix* markedItems = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( markedItems ); + CDesCArray* textArray = NULL; + + textArray = iEikEnv->ReadDesCArrayResourceL( R_BCTESTLIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + // test CAknMarkableListDialog::NewL + CAknMarkableListDialog* markedDlg = CAknMarkableListDialog::NewL( + value, markedItems, textArray, + R_AVKON_DIALOG_EMPTY_MENUBAR, R_AVKON_DIALOG_EMPTY_MENUBAR, NULL ); + CleanupStack::PushL( markedDlg ); + AssertNotNullL( markedDlg, KMarkedNewL ); + CleanupStack::PopAndDestroy( markedDlg ); + + // test API of CAknMarkableListDialog + CBCMarkableListDialog* dlg = CBCMarkableListDialog::NewL( + value, markedItems, textArray ); + CleanupStack::PushL( dlg ); + dlg->PrepareLC( R_BCTESTLIST_MARKABLE_DIALOG ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KSelPreLayout ); + + dlg->PostLayoutDynInitL(); + AssertTrueL( ETrue, KMarPostLayout ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSelHandlePointer ); + + dlg->SelectionListProcessCommandL( EAknMarkAll ); + AssertTrueL( ETrue, KMarSelListProcCmd ); + + dlg->ProcessCommandL( EAknUnmarkAll ); + AssertTrueL( ETrue, KMarPreProcCmd ); + + CEikMenuPane* menuPane = new( ELeave ) CEikMenuPane( dlg ); + CleanupStack::PushL( menuPane ); + dlg->DynInitMenuPaneL( R_BCTESTLIST_COLUMN_MENU, menuPane ); + AssertTrueL( ETrue, KSelDynMenPane ); + CleanupStack::PopAndDestroy( menuPane ); + + dlg->HandleListBoxEventL( dlg->ListBox(), + MEikListBoxObserver::EEventItemClicked ); + AssertTrueL( ETrue, KMarHandleListEvent ); + + TKeyEvent keyEvent; + keyEvent.iCode = EKeyLeftArrow; + dlg->OfferKeyEventL( keyEvent, EEventKey ); + keyEvent.iCode = 'M'; + dlg->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KMarOfferKey ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KMarOK ); + + CleanupStack::PopAndDestroy(); //prepareLC + CleanupStack::Pop( dlg ); + CleanupStack::PopAndDestroy( textArray ); + CleanupStack::PopAndDestroy( markedItems ); + } + +// --------------------------------------------------------------------------- +// GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListSelectionCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo2, + EMbmBctestlistGolgo2_mask ); + } + } + +// ======== MEMBER FUNCTIONS ======== +// CBCMarkableListDialog + +// --------------------------------------------------------------------------- +// Symbian 2nd constructor +// --------------------------------------------------------------------------- +// +CBCMarkableListDialog* CBCMarkableListDialog::NewL( TInt &aValue, + CArrayFix *aSelectedItems, MDesCArray *aArray ) + { + CBCMarkableListDialog* self = new( ELeave ) CBCMarkableListDialog( + aValue, aSelectedItems, aArray, + R_AVKON_DIALOG_EMPTY_MENUBAR, R_AVKON_DIALOG_EMPTY_MENUBAR, NULL ); + CleanupStack::PushL( self ); + self->ConstructL( R_AVKON_DIALOG_EMPTY_MENUBAR ); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ constructor +// --------------------------------------------------------------------------- +// +CBCMarkableListDialog::CBCMarkableListDialog( + TInt &aValue, CArrayFix *aSelectedItems, + MDesCArray *aArray, TInt aMenuBarResourceId, + TInt aOkMenuBarResourceId, MEikCommandObserver *aObserver ): + CAknMarkableListDialog( aValue, aSelectedItems, aArray, aMenuBarResourceId, + aOkMenuBarResourceId, aObserver ) + { + } + +// ======== MEMBER FUNCTIONS ======== +// CBCSelectionListDialog + +// --------------------------------------------------------------------------- +// Symbian 2nd constructor +// --------------------------------------------------------------------------- +// +CBCSelectionListDialog* CBCSelectionListDialog::NewL( TInt &aValue, + MDesCArray *aArray ) + { + CBCSelectionListDialog* self = new( ELeave ) CBCSelectionListDialog( + aValue, aArray, NULL ); + CleanupStack::PushL( self ); + self->ConstructL( R_AVKON_DIALOG_EMPTY_MENUBAR ); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ constructor +// --------------------------------------------------------------------------- +// +CBCSelectionListDialog::CBCSelectionListDialog( + TInt &aValue, MDesCArray *aArray, + MEikCommandObserver *aObserver ): + CAknSelectionListDialog( aValue, aArray, aObserver ) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistsettingcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistsettingcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,315 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for setting list box classes +* +*/ + + +#include + +#include "bctestlistsettingcase.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include +#include + +_LIT( KSettingCreate1, "Create CAknSettingStyleListBox" ); +_LIT( KSettingCreate2, "Create CAknSettingNumberStyleListBox" ); + +_LIT( KSettingTest1, "CAknSettingStyleListBox::SizeChanged" ); +_LIT( KSettingTest2, "CAknSettingStyleListBox::MinimumSize" ); +_LIT( KSettingTest3, "CAknSettingStyleListBox::HandlePointerEventL" ); +_LIT( KSettingItemDrawer, "CSettingsListBoxItemDrawer::DrawText" ); + +_LIT( KSettingNumberTest1, "CAknSettingNumberStyleListBox::SizeChanged" ); +_LIT( KSettingNumberTest2, "CAknSettingNumberStyleListBox::MinimumSize" ); +_LIT( KSettingNumberTest3, "CAknSettingNumberStyleListBox::HandlePointerEventL" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListSettingCase* CBCTestListSettingCase::NewL( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestListSettingCase* self = new( ELeave ) CBCTestListSettingCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListSettingCase::CBCTestListSettingCase( + CBCTestListContainer* aContainer, CEikonEnv* aEikEnv ) + : CBCTestListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListSettingCase::~CBCTestListSettingCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListSettingCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::BuildScriptL() + { + for ( TInt i=0; i <= EBCTestCmdOutline25 - EBCTestCmdOutline23; i++ ) + { + AddTestL( LeftCBA, REP( Down, 2 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListSettingCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline23 || + aCmd > EBCTestCmdOutline25 ) + { + return; + } + iOutlineId = aCmd; + ReleaseCase(); + PrepareCaseL( aCmd ); + TestSettingListL( aCmd ); + } + +// --------------------------------------------------------------------------- +// CBCTestListSettingCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::PrepareCaseL( TInt aCmd ) + { + TInt resourceId( KBCTestListInitListResourceId ); + TBool useGraphics( EFalse ); + + switch ( aCmd ) + { + case EBCTestCmdOutline23: + resourceId = R_BCTESTLIST_SETTING_ADD_RM; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknSettingStyleListBox(); + AssertNotNullL( iListBox, KSettingCreate1 ); + break; + case EBCTestCmdOutline24: + resourceId = R_BCTESTLIST_SETTING_NUMBER; + useGraphics = ETrue; + iListBox = new( ELeave ) CAknSettingNumberStyleListBox(); + AssertNotNullL( iListBox, KSettingCreate2 ); + break; + + default: + break; + } + + if ( iListBox ) + { + if ( resourceId != 0 ) + { + SetListBoxFromResourceL( iListBox, resourceId ); + } + else + { + SetListBoxFromInnerDescriptionL( iListBox ); + } + + if ( useGraphics ) + { + SetGraphicIconL( iListBox ); + } + + iContainer->SetControl( iListBox ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListSettingCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListSettingCase::TestSettingListL +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::TestSettingListL( TInt aCmd ) + { + if ( !iListBox && aCmd != EBCTestCmdOutline25 ) + { + return; + } + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + TSize size; + switch ( aCmd ) + { + case EBCTestCmdOutline23: + { + CAknSettingStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSettingTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSettingTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSettingTest3 ); + + CSettingsListBoxItemDrawer* itemDrawer = listbox->ItemDrawer(); + TRect rect( TPoint( 0, 0 ), TSize( 50, 30 ) ); + itemDrawer->CSettingsListBoxItemDrawer::DrawItemText( + 0, rect, ETrue, EFalse, EFalse ); + AssertTrueL( ETrue, KSettingItemDrawer ); + } + break; + case EBCTestCmdOutline24: + { + CAknSettingNumberStyleListBox* listbox = + static_cast( iListBox ); + listbox->SizeChanged(); + AssertTrueL( ETrue, KSettingNumberTest1 ); + size = listbox->MinimumSize(); + AssertTrueL( ETrue, KSettingNumberTest2 ); + listbox->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSettingNumberTest3 ); + } + break; + case EBCTestCmdOutline25: + { + _LIT( KItemText, "Item1" ); + TBuf<20> temp( KItemText ); + + CSelectableItem* item = new( ELeave ) CSelectableItem( temp, EFalse ); + CleanupStack::PushL( item ); + item->ConstructL(); + + CSelectionItemList* itemList = new( ELeave ) CSelectionItemList( 1 ); + CleanupStack::PushL( itemList ); + itemList->AppendL( item ); + + CBCTestCheckSettingPage* settingPage = new( ELeave ) + CBCTestCheckSettingPage( R_BCTESTLIST_CHECKBOX_SETTING_PAGE, + itemList ); + CleanupStack::PushL( settingPage ); + + settingPage->ConstructL(); + + settingPage->CAknListBoxSettingPage::CheckAndSetDataValidity(); + _LIT( KSettingPage1, "CAknListBoxSettingPage::CheckAndSetDataValidity" ); + AssertTrueL( ETrue, KSettingPage1 ); + + settingPage->CAknListBoxSettingPage::SizeChanged(); + _LIT( KSettingPage2, "CAknListBoxSettingPage::SizeChanged" ); + AssertTrueL( ETrue, KSettingPage2 ); + + settingPage->CAknListBoxSettingPage::UpdateCbaL(); + _LIT( KSettingPage3, "CAknListBoxSettingPage::UpdateCbaL" ); + AssertTrueL( ETrue, KSettingPage3 ); + + settingPage->CAknListBoxSettingPage::HandleListBoxEventL( + settingPage->ListBoxControl(), + MEikListBoxObserver::EEventItemClicked ); + _LIT( KSettingPage4, "CAknListBoxSettingPage::HandleListBoxEventL" ); + AssertTrueL( ETrue, KSettingPage4 ); + + iContainer->ActivateGc(); + settingPage->CAknListBoxSettingPage::Draw( iContainer->Rect() ); + _LIT( KSettingPage5, "CAknListBoxSettingPage::Draw" ); + AssertTrueL( ETrue, KSettingPage5 ); + iContainer->DeactivateGc(); + + CleanupStack::PopAndDestroy( settingPage ); + CleanupStack::PopAndDestroy( itemList ); + CleanupStack::PopAndDestroy( item ); + } + break; + default: + break; + } + + } + +// --------------------------------------------------------------------------- +// CBCTestListSettingCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestListSettingCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon according to iOutlineId. + switch ( iOutlineId ) + { + case EBCTestCmdOutline23: + case EBCTestCmdOutline24: + CreateIconAndAddToArrayL( + aIcons, KBCTestListMifFileName, + EMbmBctestlistQgn_indi_marked_add, + EMbmBctestlistQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( + aIcons, KBCTestListMbmFileName, + EMbmBctestlistGolgo2, + EMbmBctestlistGolgo2_mask ); + break; + + default: + break; + } + } + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ constructor +// --------------------------------------------------------------------------- +// +CBCTestCheckSettingPage::CBCTestCheckSettingPage( TInt aResourceId, + CSelectionItemList* aItemArray ) : + CAknCheckBoxSettingPage( aResourceId, aItemArray ) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestlist/src/bctestlistview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,181 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include +#include "bctestlistview.h" +#include "bctestlistcontainer.h" +#include "bctestlist.hrh" +#include "bctestutil.h" +#include "bctestlistcolumncase.h" +#include "bctestlistformattedcase.h" +#include "bctestlistsettingcase.h" +#include "bctestlistpopupcase.h" +#include "bctestlistgridcase.h" +#include "bctestlistdecoratorcase.h" +#include "bctestlistcolumnbasecase.h" +#include "bctestlistformatbasecase.h" +#include "bctestlisteiklistcase.h" +#include "bctestlistselectioncase.h" + +_LIT( KColumnListCase, "Column Lists" ); +_LIT( KFormattedCase, "Formatted Lists" ); +_LIT( KSettingListCase, "Settings Lists" ); +_LIT( KPopupCase, "Popup Lists" ); +_LIT( KGridCase, "Grid pane Lists" ); +_LIT( KDecoratorCase, "Decorator test case" ); +_LIT( KColumnBaseCase, "Eikon column list" ); +_LIT( KFormattedBaseCase, "Eikon formatted cell list" ); +_LIT( KEikListCase, "Eikon list box" ); +_LIT( KSelectionListCase, "Selection list" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListView* CBCTestListView::NewL() + { + CBCTestListView* self = new( ELeave ) CBCTestListView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestListView::CBCTestListView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListView::ConstructL() + { + BaseConstructL( R_BCTESTLIST_VIEW ); + + iContainer = new( ELeave ) CBCTestListContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + iContainer->MakeVisible( ETrue ); + + CEikonEnv* eikEnv = CEikonEnv::Static(); + iTestUtil = CBCTestUtil::NewL(); + iTestUtil->AddTestCaseL( + CBCTestListColumnCase::NewL( iContainer, eikEnv ), + KColumnListCase ); + iTestUtil->AddTestCaseL( + CBCTestListFormattedCase::NewL( iContainer, eikEnv ), + KFormattedCase ); + iTestUtil->AddTestCaseL( + CBCTestListSettingCase::NewL( iContainer, eikEnv ), + KSettingListCase ); + iTestUtil->AddTestCaseL( + CBCTestListPopupCase::NewL( iContainer, eikEnv ), + KPopupCase ); + iTestUtil->AddTestCaseL( + CBCTestListGridCase::NewL( iContainer, eikEnv ), + KGridCase ); + iTestUtil->AddTestCaseL( + CBCTestListDecoratorCase::NewL( iContainer, eikEnv ), + KDecoratorCase ); + iTestUtil->AddTestCaseL( + CBCTestListColumnBaseCase::NewL( iContainer, eikEnv ), + KColumnBaseCase ); + iTestUtil->AddTestCaseL( + CBCTestListFormatBaseCase::NewL( iContainer, eikEnv ), + KFormattedBaseCase ); + iTestUtil->AddTestCaseL( + CBCTestListEiklistCase::NewL( iContainer, eikEnv ), + KEikListCase ); + iTestUtil->AddTestCaseL( + CBCTestListSelectionCase::NewL( iContainer, eikEnv ), + KSelectionListCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListView::~CBCTestListView() + { + delete iTestUtil; + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestListView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestListView::Id() const + { + return KBCTestListViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestListView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestListView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestListView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestListView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestListView::Container +// --------------------------------------------------------------------------- +// +CBCTestListContainer* CBCTestListView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestListView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestListView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EProgSoftkeyNextOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bctestmenu.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bctestmenu.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: project specification file for the BCTestMenu. +* +*/ + + +TARGET BCTestMenu.exe +TARGETTYPE exe +UID 0x0 0x20004760 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestMenu.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestmenuapp.cpp +SOURCE bctestmenudocument.cpp +SOURCE bctestmenuappui.cpp +SOURCE bctestmenuview.cpp +SOURCE bctestmenucontainer.cpp +SOURCE bctestmenucase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY bafl.lib +LIBRARY fbscli.lib +LIBRARY egul.lib +LIBRARY aknicon.lib + +START RESOURCE ../group/bctestmenu_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bctestmenu.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bctestmenu.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,233 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME MENU + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestmenu.hrh" +#include "bctestmenu.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTMEMU_BMP_FNAME APP_BITMAP_DIR"\\BCTestMenu.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctest_menu_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestmenu_menubar_main; + cba = r_bctestmenu_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestmenu_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestMenu_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestMenu_view +// AVKON_VIEW for CBCTestMenuView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmenu_view + { + menubar = r_bctestmenu_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestMenu_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmenu_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmenu_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestmenu_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestMenu_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmenu_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestmenu_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestmenu_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestmenu_outline3; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestmenu_outline4; + }, + MENU_ITEM + { + command = EBCTestCmdOutline5; + txt = qtn_bctestmenu_outline5; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestMenu_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmenu_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestmenu_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestmenu_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestMenu_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestmenu_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestMenuCbaCmdNext; + txt = qtn_bctestmenu_cba_next; + } + }; + } + +RESOURCE TBUF40 r_bctestmenu_new_item + { + buf = qtn_bctestmenu_menu_sub_new; + } + +RESOURCE TBUF40 r_bctestmenu_item + { + buf = qtn_bctestmenu_menu_item; + } +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bctestmenu_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bctestmenu_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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: +* +*/ +#include +#include + +#include "bctestmenu.loc" +UID2 KUidAppRegistrationResourceFile +UID3 0x20004760 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_bctest_menu_buf; + localisable_resource_file = qtn_bctest_menu_file; + localisable_resource_id = R_BCTESTMENU_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_bctest_menu_name; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestMenu.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenu.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenu.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +/* +* 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 "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: BCTestMenu resource header file +* +*/ + + +#ifndef BCTESTMENU_HRH +#define BCTESTMENU_HRH + +enum TBCTestMenuMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdOutline5, + EBCTestCmdOutline6, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestMenuCba + { + EBCTestMenuCbaCmdNext = 0x6300 + }; + +#endif // BCTESTMenu_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenu.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenu.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +/* +* 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 "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: BCTestMenu localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTMenu" +#define qtn_apps_tavl_grid "BCTESTMenu" + +// MenuBar +#define qtn_bctestmenu_menubar "Option" +#define qtn_bctestmenu_cba_next "Next" +#define qtn_bctestmenu_autotest "Autotest" +#define qtn_bctestmenu_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestmenu_outline1 "TestMenuBar" +#define qtn_bctestmenu_outline2 "TestMenuBarTitle" +#define qtn_bctestmenu_outline3 "TestMenuPane" +#define qtn_bctestmenu_outline4 "TestMenuPaneTitle" +#define qtn_bctestmenu_outline5 "TestMenuPaneItem" + + +#define qtn_bctest_menu_buf "BCTestMenu" +#define qtn_bctest_menu_file "\\resource\\apps\\BCTestMenu" +#define qtn_bctest_menu_name "BCTest" + +#define qtn_bctestmenu_menu_sub_new "New Item %d" +#define qtn_bctestmenu_menu_item "Item" + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenuapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenuapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTMENUAPP_H +#define BCTESTMENUAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestMenu = { 0x20004760 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestMenuApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestMenuApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestMenuDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestMenu ). + * @return The value of KUidBCTestMenu. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenuappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenuappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Menu control API. +* +*/ + + +#ifndef C_BCTESTMENUAPPUI_H +#define C_BCTESTMENUAPPUI_H + +#include + +class CBCTestMenuView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestMenuAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestMenuAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestMenuAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestMenuView* iView; + }; + +#endif // C_BCTESTMenuAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenucase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenucase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,121 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_MENUCASE_H +#define BCTEST_MENUCASE_H + +#include +#include +#include + +#include "bctestcase.h" + +class CBCTestMenuContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestMenuCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMenuCase* NewL( CBCTestMenuContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestMenuCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestEikMenuBarL(); + void TestEikMenuPaneL(); + void TestEikMenuBarTitleL(); + void TestEikMenuPaneTitleL(); + void TestEikMenuPaneItemL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMenuCase( CBCTestMenuContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void DestroyMenuPaneL(); + void CreateMenuPaneL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + CEikMenuBar* iEikMenuBar; + CEikMenuPane* iEikMenuPane; + CEikMenuBarTitle* iEikMenuBarTitle; + CEikMenuPaneTitle* iEikMenuPaneTitle; + CEikMenuPaneItem* iEikMenuPaneItem; + /** + * Pointer to container. + * not own + */ + CBCTestMenuContainer* iContainer; + + CEikonEnv* iEikEnv; + + }; + +#endif // BCTEST_MenuCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenucontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenucontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_MENUCONTAINER_H +#define BCTEST_MENUCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestMenuContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestMenuContainer(); + + /** + * Destructor + */ + virtual ~CBCTestMenuContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + void DeactivateGc(); + void ActivateGc(); + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_MenuCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenudocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenudocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTMENUDOCUMENT_H +#define C_BCTESTMENUDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestMenuDocument application class. +*/ +class CBCTestMenuDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestMenuDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestMenuDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestMenuDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestMenuAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTMenuDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenuview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/inc/bctestmenuview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Menu control API. +* +*/ + + +#ifndef BCTEST_MENU_VIEW_H +#define BCTEST_MENU_VIEW_H + +#include + +const TUid KBCTestMenuViewId = { 1 }; + +class CBCTestMenuContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestMenuView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestMenuView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestMenuView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMenuView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestMenuContainer* iContainer; + + }; + +#endif // BCTEST_Menu_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/sis/bctestmenu.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/sis/bctestmenu.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesttempalte.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestMenu"},(0x20004760),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestMenu.exe"- +"!:\sys\bin\bctestMenu.exe" + +"\epoc32\data\z\resource\apps\bctestMenu.RSC"- +"!:\resource\apps\bctestMenu.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestMenu_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestMenu_reg.RSC" + +; bctestutil must be installed +(0x101F84E1), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenuapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenuapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Menu test app +* +*/ + + +// INCLUDE FILES +#include "BCTestmenuApp.h" +#include "BCTestmenuDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestMenuApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestMenuApp::AppDllUid() const + { + return KUidBCTestMenu; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestMenuApp::CreateDocumentL() +// Creates CBCTestMenuDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestMenuApp::CreateDocumentL() + { + return CBCTestMenuDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestMenuApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestMenuApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenuappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenuappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for Menu control api(s) +* +*/ + +#include +#include + +#include "bctestmenuAppUi.h" +#include "bctestmenu.hrh" +#include "bctestmenuview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestMenuAppUi::CBCTestMenuAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestMenuAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestMenuView* view = CBCTestMenuView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestMenuAppUi::~CBCTestMenuAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestMenuAppUi::~CBCTestMenuAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestMenuAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenucase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenucase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,780 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestmenucase.h" +#include "bctestmenucontainer.h" +#include "bctestmenu.hrh" +#include "avkon.mbg" + +// ========= LOCAL FUNCTIONS ======= + +static void CreateBitmapsL(CFbsBitmap** aBitmap, CFbsBitmap** aMask) + { + *aBitmap = AknIconUtils::CreateIconL( + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_graf_tab_21 ); + *aMask = AknIconUtils::CreateIconL( + AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_graf_tab_21_mask ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMenuCase* CBCTestMenuCase::NewL( + CBCTestMenuContainer* aContainer ) + { + CBCTestMenuCase* self = new( ELeave ) CBCTestMenuCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMenuCase::CBCTestMenuCase( + CBCTestMenuContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMenuCase::~CBCTestMenuCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::ConstructL() + { + BuildScriptL(); + iEikEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestMenuCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 1 ),TEND ); + for( int i = 0; i <= 4; i++) + { + AddTestL( LeftCBA,TEND ); + AddTestL( REP( Down, i), KeyOK, TEND ); + } + + } + +// --------------------------------------------------------------------------- +// CBCTestMenuCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline6 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestEikMenuBarL(); + break; + case EBCTestCmdOutline2: + TestEikMenuBarTitleL(); + break; + case EBCTestCmdOutline3: + TestEikMenuPaneL(); + break; + case EBCTestCmdOutline4: + TestEikMenuPaneTitleL(); + break; + case EBCTestCmdOutline5: + TestEikMenuPaneItemL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestMenuCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControlL( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestMenuCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + + +// --------------------------------------------------------------------------- +// Test Class CEikMenuBar +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::TestEikMenuBarL() + { + iEikMenuBar = new ( ELeave )CEikMenuBar(); + _LIT( KCEikMenuBar, + "Class CEikMenuBar Function CEikMenuBar tested" ); + AssertTrueL( ETrue, KCEikMenuBar ); + + MEikMenuObserver* fepMenuObserver = CAknEnv::Static()->FepMenuObserver(); + + iEikMenuBar->ConstructL( fepMenuObserver, 0, 1 ); + _LIT( KConstructL, + "Class CEikMenuBar Function ConstructL tested" ); + AssertTrueL( ETrue, KConstructL ); + + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTMENU_MENUBAR_MAIN ); + iEikMenuBar->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "Class CEikMenuBar Function ConstructFromResourceL tested" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + CleanupStack::PopAndDestroy();//resourceReader + + iEikMenuBar->SetMenuTitleArray( iEikMenuBar->TitleArray() ); + _LIT( KSetMenuTitleArray, + "Class CEikMenuBar Function SetMenuTitleArray tested" ); + AssertTrueL( ETrue, KSetMenuTitleArray ); + + iEikMenuBar->SetEditMenuObserver( fepMenuObserver ); + _LIT( KSetEditMenuObserver, + "Class CEikMenuBar Function SetEditMenuObserver tested" ); + AssertTrueL( ETrue, KSetEditMenuObserver ); + + CEikHotKeyTable* hotKeyTable = new ( ELeave )CEikHotKeyTable(); + CleanupStack::PushL( hotKeyTable ); + iEikMenuBar->SetHotKeyTable( hotKeyTable ); + _LIT( KSetHotKeyTable, + "Class CEikMenuBar Function SetHotKeyTable tested" ); + AssertTrueL( ETrue, KSetHotKeyTable ); + CleanupStack::PopAndDestroy( hotKeyTable ); + + CEikMenuBar::SCursor cursor; + cursor.iMenuItemIndex = 1; + cursor.iMenuPaneIndex = 1; + iEikMenuBar->SetMenuCursor( cursor ); + _LIT( KSetMenuCursor, + "Class CEikMenuBar Function SetMenuCursor tested" ); + AssertTrueL( ETrue, KSetMenuCursor ); + + iEikMenuBar->HandleResourceChange( 1 ); + _LIT( KHandleResourceChange, + "Class CEikMenuBar Function HandleResourceChange tested" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + iEikMenuBar->SetMenuTitleResourceId( R_BCTESTMENU_MENUBAR_MAIN ); + _LIT( KSetMenuTitleResourceId, + "Class CEikMenuBar Function SetMenuTitleResourceId tested" ); + AssertTrueL( ETrue, KSetMenuTitleResourceId ); + + iEikMenuBar->ChangeMenuBarL( 0, 1, ETrue ); + _LIT( KChangeMenuBarL, + "Class CEikMenuBar Function ChangeMenuBarL tested" ); + AssertTrueL( ETrue, KChangeMenuBarL ); + + iEikMenuBar->SetTitleArrayOwnedExternally( ETrue ); + _LIT( KSetTitleArrayOwnedExternally, + "Class CEikMenuBar Function SetTitleArrayOwnedExternally tested" ); + AssertTrueL( ETrue, KSetTitleArrayOwnedExternally ); + + iEikMenuBar->TitleArray(); + _LIT( KTitleArray, + "Class CEikMenuBar Function TitleArray tested" ); + AssertTrueL( ETrue, KTitleArray ); + + iEikMenuBar->MenuPane(); + _LIT( KMenuPane, + "Class CEikMenuBar Function MenuPane tested" ); + AssertTrueL( ETrue, KMenuPane ); + + iEikMenuBar->IsDisplayed(); + _LIT( KIsDisplayed, + "Class CEikMenuBar Function IsDisplayed tested" ); + AssertTrueL( ETrue, KIsDisplayed ); + + iEikMenuBar->SelectedTitle(); + _LIT( KSelectedTitle, + "Class CEikMenuBar Function SelectedTitle tested" ); + AssertTrueL( ETrue, KSelectedTitle ); + + iEikMenuBar->SelectedItem(); + _LIT( KSelectedItem, + "Class CEikMenuBar Function SelectedItem tested" ); + AssertTrueL( ETrue, KSelectedItem ); + + iEikMenuBar->DrawItem( 1 ); + _LIT( KDrawItem, + "Class CEikMenuBar Function DrawItem tested" ); + AssertTrueL( ETrue, KDrawItem ); + + iEikMenuBar->TryDisplayMenuBarWithoutFepMenusL(); + _LIT( KTryDisplayMenuBarWithoutFepMenusL, + "Class CEikMenuBar Function TryDisplayMenuBarWithoutFepMenusL tested" ); + AssertTrueL( ETrue, KTryDisplayMenuBarWithoutFepMenusL ); + + iEikMenuBar->MoveHighlightToL( 1, 0 ); + _LIT( KMoveHighlightToL, + "Class CEikMenuBar Function MoveHighlightToL tested" ); + AssertTrueL( ETrue, KMoveHighlightToL ); + + iEikMenuBar->StopDisplayingMenuBar(); + _LIT( KStopDisplayingMenuBar, + "Class CEikMenuBar Function StopDisplayingMenuBar tested" ); + AssertTrueL( ETrue, KStopDisplayingMenuBar ); + + TInt paneindex; + TInt itemindex; + iEikMenuBar->FindCommandIdInResourceL( 1, paneindex, itemindex ); + _LIT( KFindCommandIdInResourceL, + "Class CEikMenuBar Function FindCommandIdInResourceL tested" ); + AssertTrueL( ETrue, KFindCommandIdInResourceL ); + + TRect rect( 1, 1, 5, 5 ); + iEikMenuBar->ReduceRect( rect ); + _LIT( KReduceRect, + "Class CEikMenuBar Function ReduceRect tested" ); + AssertTrueL( ETrue, KReduceRect ); + + iEikMenuBar->Draw( rect ); + _LIT( KDraw, + "Class CEikMenuBar Function Draw tested" ); + AssertTrueL( ETrue, KDraw ); + + iEikMenuBar->RemoveEditMenuObserver( fepMenuObserver ); + _LIT( KRemoveEditMenuObserver, + "Class CEikMenuBar Function RemoveEditMenuObserver tested" ); + AssertTrueL( ETrue, KRemoveEditMenuObserver ); + + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + iEikMenuBar->GetColorUseListL( *indexArray ) ; + _LIT( KGetColorUseListL, + "Class CEikMenuBar Function GetColorUseListL tested" ); + AssertTrueL( ETrue, KGetColorUseListL ); + + CleanupStack::PopAndDestroy( indexArray ); + + TKeyEvent keyEvent; + TPointerEvent pointerEvent; + iEikMenuBar->OfferKeyEventL( keyEvent, EEventKey); + _LIT( KOfferKeyEventL, + "Class CEikMenuBar Function OfferKeyEventL tested" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + iEikMenuBar->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikMenuBar Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + delete iEikMenuBar; + iEikMenuBar = NULL; + } + +// --------------------------------------------------------------------------- +// Test Class CEikMenuBarTitle +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::TestEikMenuBarTitleL() + { + iEikMenuBarTitle = new ( ELeave )CEikMenuBarTitle(); + _LIT( KCEikMenuBarTitle, + "Class CEikMenuBarTitle Function CEikMenuBarTitle tested" ); + AssertTrueL( ETrue, KCEikMenuBarTitle ); + + CFbsBitmap *fbsBitmap( 0 ), *fbsMask( 0 ); + CreateBitmapsL( &fbsBitmap, &fbsMask ); + iEikMenuBarTitle->CreateIconL( fbsBitmap, fbsMask ); //take the owner ship of args + _LIT( KCreateIconL, + "Class CEikMenuBarTitle Function CreateIconL tested" ); + AssertTrueL( ETrue, KCreateIconL ); + + CreateBitmapsL( &fbsBitmap, &fbsMask ); + CleanupStack::PushL( fbsBitmap ); + CleanupStack::PushL( fbsMask ); + + CGulIcon* gulIcon = CGulIcon::NewL( fbsBitmap, fbsMask ); + CleanupStack::PushL( gulIcon ); + iEikMenuBarTitle->SetIcon( gulIcon ); + _LIT( KSetIcon, + "Class CEikMenuBarTitle Function SetIcon tested" ); + AssertTrueL( ETrue, KSetIcon ); + + iEikMenuBarTitle->SetBitmapsOwnedExternally( ETrue ); + _LIT( KSetBitmapsOwnedExternally, + "Class CEikMenuBarTitle Function SetBitmapsOwnedExternally tested" ); + AssertTrueL( ETrue, KSetBitmapsOwnedExternally ); + + iEikMenuBarTitle->SetIconBitmapL( fbsBitmap ); + _LIT( KSetIconBitmapL, + "Class CEikMenuBarTitle Function SetIconBitmapL tested" ); + AssertTrueL( ETrue, KSetIconBitmapL ); + + iEikMenuBarTitle->SetIconMaskL( fbsMask ); + _LIT( KSetIconMaskL, + "Class CEikMenuBarTitle Function SetIconMaskL tested" ); + AssertTrueL( ETrue, KSetIconMaskL ); + + iEikMenuBarTitle->IconMask(); + _LIT( KIconMask, + "Class CEikMenuBarTitle Function IconMask tested" ); + AssertTrueL( ETrue, KIconMask ); + + iEikMenuBarTitle->IconBitmap(); + _LIT( KIconBitmap, + "Class CEikMenuBarTitle Function IconBitmap tested" ); + AssertTrueL( ETrue, KIconBitmap ); + + + CWindowGc& gc = iContainer->SystemGc(); + TSize tmpsize( 10,10 ); + TRect tmprect( 0, 0, 10, 10 ); + iContainer->ActivateGc(); + iEikMenuBarTitle->DrawIcon( gc, tmprect, 10 ); + iContainer->DeactivateGc(); + _LIT( KDrawIcon, + "Class CEikMenuBarTitle Function DrawIcon tested" ); + AssertTrueL( ETrue, KDrawIcon ); + + CleanupStack::Pop( gulIcon ); + CleanupStack::PopAndDestroy( fbsMask ); + CleanupStack::PopAndDestroy( fbsBitmap ); + + delete iEikMenuBarTitle; + iEikMenuBarTitle = NULL; + } + +void CBCTestMenuCase::CreateMenuPaneL() + { + MEikMenuObserver* fepMenuObserver = CAknEnv::Static()->FepMenuObserver(); + iEikMenuPane = new( ELeave )CEikMenuPane( fepMenuObserver ); + _LIT( KCEikMenuPane, + "Class CEikMenuPane Function CEikMenuPane tested" ); + AssertTrueL( ETrue, KCEikMenuPane ); + + iEikMenuPane->ConstructL( iEikMenuPane, fepMenuObserver ); + _LIT( KConstructL, + "Class CEikMenuPane Function ConstructL tested" ); + AssertTrueL( ETrue, KConstructL ); + } + +void CBCTestMenuCase::DestroyMenuPaneL() + { + iEikMenuPane->Reset(); + _LIT( KReset, "Class CEikMenuPane Function Reset tested" ); + AssertTrueL( ETrue, KReset ); + + delete iEikMenuPane; + iEikMenuPane=NULL; + } + +// --------------------------------------------------------------------------- +// Test Class CEikMenuPane +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::TestEikMenuPaneL() + { + CEikMenuPaneItem::SData item; + + _LIT( Kformat,"New Item" ); + item.iCommandId = EProgCmdAutoTest; + item.iFlags = 0; + item.iCascadeId = 0; + item.iText = Kformat; + + //[Section 1] + //--------------------------------------------------------- + CreateMenuPaneL(); + + iEikMenuPane->SetItemArrayOwnedExternally( EFalse ); + + CEikMenuPane::CItemArray* itemArray = new ( ELeave )CEikMenuPane::CItemArray(); + CleanupStack::PushL( itemArray ); + + // add stuffs. + CEikMenuPaneItem* pItem = new (ELeave) CEikMenuPaneItem(); + pItem->iData = item; + itemArray->AddItemL(pItem); + CleanupStack::Pop(); //itemArray + iEikMenuPane->SetItemArray( itemArray ); //transfer ownership of aItemArray + _LIT( KSetItemArray, + "Class CEikMenuPane Function SetItemArray tested" ); + AssertTrueL( ETrue, KSetItemArray ); + + DestroyMenuPaneL(); + + //[Section 2] + //----------------------------------------------------- + CreateMenuPaneL(); + // 1st ver. + iEikMenuPane->AddMenuItemL( item ); + _LIT( KAddMenuItemL, + "Class CEikMenuPane Function AddMenuItemL tested" ); + AssertTrueL( ETrue, KAddMenuItemL ); + + // 2nd ver. + _LIT( KItemText, "New Item 2" ); + item.iText = KItemText; + iEikMenuPane->AddMenuItemL( item, EProgCmdAutoTest ); + AssertTrueL( ETrue, KAddMenuItemL ); + + iEikMenuPane->InsertMenuItemL( item, 1 ); + _LIT( KInsertMenuItemL, + "Class CEikMenuPane Function InsertMenuItemL tested" ); + AssertTrueL( ETrue, KInsertMenuItemL ); + + iEikMenuPane->SetArrowHeadScrollBar( ETrue ); + _LIT( KSetArrowHeadScrollBar, + "Class CEikMenuPane Function SetArrowHeadScrollBar tested" ); + AssertTrueL( ETrue, KSetArrowHeadScrollBar ); + + iEikMenuPane->SetItemArrayOwnedExternally( ETrue ); + _LIT( KSetItemArrayOwnedExternally, + "Class CEikMenuPane Function SetItemArrayOwnedExternally tested" ); + AssertTrueL( ETrue, KSetItemArrayOwnedExternally ); + + iEikMenuPane->SetItemButtonState( EProgCmdAutoTest, 1 ); + _LIT( KSetItemButtonState, + "Class CEikMenuPane Function SetItemButtonState tested" ); + AssertTrueL( ETrue, KSetItemButtonState ); + + iEikMenuPane->SetItemDimmed( EProgCmdAutoTest, ETrue ); + _LIT( KSetItemDimmed, + "Class CEikMenuPane Function SetItemDimmed tested" ); + AssertTrueL( ETrue, KSetItemDimmed ); + + iEikMenuPane->SetItemTextL( EProgCmdAutoTest, R_BCTESTMENU_ITEM ); + _LIT( KSetItemTextL, + "Class CEikMenuPane Function SetItemTextL tested" ); + AssertTrueL( ETrue, KSetItemTextL ); + + iEikMenuPane->ItemDataByIndexL( 0 ); + _LIT( KItemDataByIndexL, + "Class CEikMenuPane Function ItemDataByIndexL tested" ); + AssertTrueL( ETrue, KItemDataByIndexL ); + + _LIT( str, " "); + TDesC16 tmp = str; + iEikMenuPane->SetItemTextL( EProgCmdAutoTest, tmp ); + AssertTrueL( ETrue, KSetItemTextL ); + + CEikButtonBase* eikButtonBase = new ( ELeave )CEikButtonBase(); + CleanupStack::PushL( eikButtonBase ); + iEikMenuPane->SetLaunchingButton( eikButtonBase ); + _LIT( KSetLaunchingButton, + "Class CEikMenuPane Function SetLaunchingButton tested" ); + AssertTrueL( ETrue, KSetLaunchingButton ); + + iEikMenuPane->MoveHighlightTo( 0 ); + _LIT( KMoveHighlightTo, + "Class CEikMenuPane Function MoveHighlightTo tested" ); + AssertTrueL( ETrue, KMoveHighlightTo ); + + iEikMenuPane->SetScrollBarOnLeft( ETrue ); + _LIT( KSetScrollBarOnLeft, + "Class CEikMenuPane Function SetScrollBarOnLeft tested" ); + AssertTrueL( ETrue, KSetScrollBarOnLeft ); + + TInt tmpInt; + iEikMenuPane->MenuItemExists( EProgCmdAutoTest, tmpInt ); + _LIT( KMenuItemExists, + "Class CEikMenuPane Function MenuItemExists tested" ); + AssertTrueL( ETrue, KMenuItemExists ); + + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + iEikMenuPane->GetColorUseListL( *indexArray ) ; + _LIT( KGetColorUseListL, + "Class CEikMenuPane Function GetColorUseListL tested" ); + AssertTrueL( ETrue, KGetColorUseListL ); + + CleanupStack::PopAndDestroy( indexArray ); + + iEikMenuPane->SetSelectedItem( 0 ); + _LIT( KSetSelectedItem, + "Class CEikMenuPane Function SetSelectedItem tested" ); + AssertTrueL( ETrue, KSetSelectedItem ); + + iEikMenuPane->NavigateToNextItem(); + _LIT( KNavigateToNextItem, + "Class CEikMenuPane Function NavigateToNextItem tested" ); + AssertTrueL( ETrue, KNavigateToNextItem ); + + iEikMenuPane->EnableMarqueeL( ETrue ); + _LIT( KEnableMarqueeL, + "Class CEikMenuPane Function EnableMarqueeL tested" ); + AssertTrueL( ETrue, KEnableMarqueeL ); + + iEikMenuPane->InputCapabilities(); + _LIT( KInputCapabilities, + "Class CEikMenuPane Function InputCapabilities tested" ); + AssertTrueL( ETrue, KInputCapabilities ); + + TPointerEvent pointerEvent; + iEikMenuPane->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikMenuPane Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iEikMenuPane->HandleResourceChange( 0 ); + _LIT( KHandleResourceChange, + "Class CEikMenuPane Function HandleResourceChange tested" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + TFileName specialChars; + iEikMenuPane->ConstructMenuSctRowL( specialChars ); + _LIT( KConstructMenuSctRowL, + "Class CEikMenuPane Function ConstructMenuSctRowL tested" ); + AssertTrueL( ETrue, KConstructMenuSctRowL ); + + iEikMenuPane->DeleteBetweenMenuItems( 0, 1 ); + _LIT( KDeleteBetweenMenuItems, + "Class CEikMenuPane Function DeleteBetweenMenuItems tested" ); + AssertTrueL( ETrue, KDeleteBetweenMenuItems ); + + DestroyMenuPaneL(); + CleanupStack::PopAndDestroy( eikButtonBase ); + } + +// --------------------------------------------------------------------------- +// Test Class CEikMenuPaneTitle +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::TestEikMenuPaneTitleL() + { + iEikMenuBar = new ( ELeave )CEikMenuBar(); + + MEikMenuObserver* fepMenuObserver = + CAknEnv::Static()->FepMenuObserver(); + + iEikMenuBar->ConstructL( fepMenuObserver, 0, 1 ); + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTMENU_MENUBAR_MAIN ); + iEikMenuBar->ConstructFromResourceL( resourceReader ); + CleanupStack::PopAndDestroy();//resourceReader + + iEikMenuPaneTitle = new ( ELeave )CEikMenuPaneTitle( iEikMenuBar ); + _LIT( KCEikMenuPaneTitle, + "Class CEikMenuPaneTitle Function CEikMenuPaneTitle tested" ); + AssertTrueL( ETrue, KCEikMenuPaneTitle ); + + iEikMenuPaneTitle->ConstructL(); + _LIT( KConstructL, + "Class CEikMenuPaneTitle Function ConstructL tested" ); + AssertTrueL( ETrue, KConstructL ); + + iEikMenuPaneTitle->SetSelectedTitle( 1 ); + _LIT( KSetSelectedTitle, + "Class CEikMenuPaneTitle Function SetSelectedTitle tested" ); + AssertTrueL( ETrue, KSetSelectedTitle ); + + iEikMenuPaneTitle->Margins(); + _LIT( KMargins, + "Class CEikMenuPaneTitle Function Margins tested" ); + AssertTrueL( ETrue, KMargins ); + + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + iEikMenuPaneTitle->GetColorUseListL( *indexArray ); + _LIT( KGetColorUseListL, + "Class CEikMenuPaneTitle Function GetColorUseListL tested" ); + AssertTrueL( ETrue, KGetColorUseListL ); + CleanupStack::PopAndDestroy( indexArray ); + + TPointerEvent pointerEvent; + iEikMenuPaneTitle->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, + "Class CEikMenuPaneTitle Function HandlePointerEventL tested" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + iEikMenuPaneTitle->HandleResourceChange( 0 ); + _LIT( KHandleResourceChange, + "Class CEikMenuPaneTitle Function HandleResourceChange tested" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + TRect tmprect( 1, 1, 5, 5 ); + iEikMenuPaneTitle->Draw( tmprect ); + _LIT( KDraw, + "Class CEikMenuPaneTitle Function Draw tested" ); + AssertTrueL( ETrue, KDraw ); + + iEikMenuPaneTitle->Close(); + _LIT( KClose, + "Class CEikMenuPaneTitle Function Close tested" ); + AssertTrueL( ETrue, KClose ); + + delete iEikMenuBar; + iEikMenuBar = NULL; + delete iEikMenuPaneTitle; + iEikMenuPaneTitle = NULL; + } + +// --------------------------------------------------------------------------- +// Test Class CEikMenuPaneItem +// --------------------------------------------------------------------------- +// +void CBCTestMenuCase::TestEikMenuPaneItemL() + { + iEikMenuPaneItem = new ( ELeave )CEikMenuPaneItem(); + _LIT( KCEikMenuPaneItem, + "Class CEikMenuPaneItem Function CEikMenuPaneItem tested" ); + AssertTrueL( ETrue, KCEikMenuPaneItem ); + + CFbsBitmap *fbsBitmap( 0 ), *fbsMask( 0 ); + CreateBitmapsL( &fbsBitmap, &fbsMask ); + + iEikMenuPaneItem->CreateIconL( fbsBitmap, fbsMask ); //take the ownership of bitmap and mask + + _LIT( KCreateIconL, + "Class CEikMenuPaneItem Function CreateIconL tested" ); + AssertTrueL( ETrue, KCreateIconL ); + + CreateBitmapsL( &fbsBitmap, &fbsMask ); + CleanupStack::PushL( fbsBitmap ); + CleanupStack::PushL( fbsMask ); + + CGulIcon* gulIcon = CGulIcon::NewL( fbsBitmap, fbsMask ); + CleanupStack::PushL( gulIcon ); + iEikMenuPaneItem->SetIcon( gulIcon ); + _LIT( KSetIcon, + "Class CEikMenuPaneItem Function SetIcon tested" ); + AssertTrueL( ETrue, KSetIcon ); + + _LIT( str, " "); + TDesC16 tmp = str; + iEikMenuPaneItem->SetScaleableTextL( tmp ); + _LIT( KSetScaleableTextL, + "Class CEikMenuPaneItem Function SetScaleableTextL tested" ); + AssertTrueL( ETrue, KSetScaleableTextL ); + + iEikMenuPaneItem->ScaleableText(); + _LIT( KScaleableTextL, + "Class CEikMenuPaneItem Function ScaleableText tested" ); + AssertTrueL( ETrue, KScaleableTextL ); + + iEikMenuPaneItem->SetBitmapsOwnedExternally( ETrue ); + _LIT( KSetBitmapsOwnedExternally, + "Class CEikMenuPaneItem Function SetBitmapsOwnedExternally tested" ); + AssertTrueL( ETrue, KSetBitmapsOwnedExternally ); + + iEikMenuPaneItem->SetIconBitmapL( fbsBitmap ); + _LIT( KSetIconBitmapL, + "Class CEikMenuPaneItem Function SetIconBitmapL tested" ); + AssertTrueL( ETrue, KSetIconBitmapL ); + + iEikMenuPaneItem->SetIconMaskL( fbsMask ); + _LIT( KSetIconMaskL, + "Class CEikMenuPaneItem Function SetIconMaskL tested" ); + AssertTrueL( ETrue, KSetIconMaskL ); + + iEikMenuPaneItem->IconMask(); + _LIT( KIconMask, + "Class CEikMenuPaneItem Function IconMask tested" ); + AssertTrueL( ETrue, KIconMask ); + + iEikMenuPaneItem->IconBitmap(); + _LIT( KIconBitmap, + "Class CEikMenuPaneItem Function IconBitmap tested" ); + AssertTrueL( ETrue, KIconBitmap ); + + //drawing + CWindowGc& gc = iContainer->SystemGc(); + TSize tmpsize( 10, 10 ); + TRect tmprect( 0, 0, 100, 100 ); + iContainer->ActivateGc(); + iEikMenuPaneItem->DrawItemIcon( gc, tmprect, ETrue, 100 ); + iContainer->DeactivateGc(); + _LIT( KDrawItemIcon, + "Class CEikMenuPaneItem Function DrawItemIcon tested" ); + AssertTrueL( ETrue, KDrawItemIcon ); + + CleanupStack::Pop( gulIcon ); + CleanupStack::PopAndDestroy( fbsMask ); + CleanupStack::PopAndDestroy( fbsBitmap ); + + delete iEikMenuPaneItem; + iEikMenuPaneItem = NULL; + } + +//end of file + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenucontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenucontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,128 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestmenucontainer.h" + +#define KBCTestListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMenuContainer::CBCTestMenuContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMenuContainer::~CBCTestMenuContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMenuContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestMenuContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestMenuContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KBCTestListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestMenuContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestMenuContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestMenuContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestMenuContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestMenuContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestMenuContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestMenuContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestMenuContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +void CBCTestMenuContainer::ActivateGc() + { + CCoeControl::ActivateGc(); + } + +void CBCTestMenuContainer::DeactivateGc() + { + CCoeControl::DeactivateGc(); + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenudocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenudocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Menu test application +* +*/ + + +// INCLUDE FILES +#include "BCTestmenuDocument.h" +#include "BCTestmenuAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestMenuDocument* CBCTestMenuDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestMenuDocument* CBCTestMenuDocument::NewL( CEikApplication& aApp ) + { + CBCTestMenuDocument* self = new( ELeave ) CBCTestMenuDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestMenuDocument::~CBCTestMenuDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestMenuDocument::~CBCTestMenuDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestMenuDocument::CBCTestMenuDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestMenuDocument::CBCTestMenuDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestMenuDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestMenuDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestMenuAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenuview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmenu/src/bctestmenuview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestmenu.hrh" +#include +#include "bctestmenuview.h" +#include "bctestmenucontainer.h" +#include "bctestutil.h" +#include "bctestmenucase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMenuView* CBCTestMenuView::NewL() + { + CBCTestMenuView* self = new( ELeave ) CBCTestMenuView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMenuView::CBCTestMenuView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMenuView::ConstructL() + { + BaseConstructL( R_BCTESTMENU_VIEW ); + + iContainer = new( ELeave ) CBCTestMenuContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + _LIT( KMenuTestCase, "Menu test case"); + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestMenuCase::NewL( iContainer ), + KMenuTestCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMenuView::~CBCTestMenuView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestMenuView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestMenuView::Id() const + { + return KBCTestMenuViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestMenuView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestMenuView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestMenuView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestMenuView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestMenuView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestMenuView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/30x40.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/30x40.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/30x40M.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/30x40M.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/indicato.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/indicato.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/indicatom.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/datasrc/indicatom.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bctestmisccontrol.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bctestmisccontrol.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "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: project specification file for the bctestmisccontrol +* +*/ + + +TARGET bctestmisccontrol.exe +TARGETTYPE exe +UID 0x0 0x20004759 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestmisccontrol.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG sc + +SOURCEPATH ../src +SOURCE bctestmisccontrolapp.cpp +SOURCE bctestmisccontroldocument.cpp +SOURCE bctestmisccontrolappui.cpp +SOURCE bctestmisccontrolview.cpp +SOURCE bctestmisccontrolcontainer.cpp +SOURCE bctesteikcaptionedcontrolcase.cpp +SOURCE bctestsubeikcaptionedcontrol.cpp +SOURCE bctesteikconsolecontrolcase.cpp +SOURCE bctestsubeikconsolecontrol.cpp +SOURCE bctesteikcontrolgroupcase.cpp +SOURCE bctestsubeikcontrolgroup.cpp +SOURCE bctestsubeikmover.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY AknIcon.lib +LIBRARY AknSkins.lib +LIBRARY avkon.lib +LIBRARY apparc.lib +LIBRARY aknnotify.lib +LIBRARY apgrfx.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY cone.lib +LIBRARY egul.lib +LIBRARY euser.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY eikctl.lib +LIBRARY eikdlg.lib +LIBRARY eikcdlg.lib +LIBRARY estor.lib +LIBRARY fbscli.lib +LIBRARY gdi.lib + +// Creates Mbm file. +START BITMAP bctestmisccontrol.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../DataSrc +SOURCE C8 30x40.bmp +SOURCE C8 30x40M.bmp +SOURCE C8 indicato.bmp +SOURCE C8 indicatom.bmp +END + +START RESOURCE ../group/bctestmisccontrol_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bctestmisccontrol.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bctestmisccontrol.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,437 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME MISC + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestmisccontrol.hrh" +#include "bctestmisccontrol.loc" + +// CONSTANTS +#define BCTESTMISCCONTROL_EDWIN_WIDTH 1 +#define BCTESTMISCCONTROL_EDWIN_LINES 2 +#define BCTESTMISCCONTROL_SLIDER_MIN_VALUE 0 +#define BCTESTMISCCONTROL_SLIDER_MAX_VALUE 20 +#define BCTESTMISCCONTROL_SLIDER_STEP 2 + +// RESOURCE DEFINITIONS +//---------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//---------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//---------------------------------------------------------------------------- +// +// TBUF32 +// +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF32 + { + buf = qtn_bctestmisccontrol_buf; + } + +//---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestmisccontrol_menubar; + cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; + } + +// --------------------------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestmisccontrol_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_view +// +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmisccontrol_view + { + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menubar +// MenuBar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmisccontrol_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmisccontrol_menu; + txt = qtn_bctestmisccontrol_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu +// Menu pane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCaptionControl; + cascade = r_bctestmisccontrol_menu_caption_control_cascade; + txt = qtn_bctestmisccontrol_menu_caption_control; + }, + MENU_ITEM + { + command = EBCTestMiscControlConsoleControl; + cascade = r_bctestmisccontrol_menu_console_control_cascade; + txt = qtn_bctestmisccontrol_menu_console_control; + }, + MENU_ITEM + { + command = EBCTestMiscControlControlGroup; + cascade = r_bctestmisccontrol_menu_control_group_cascade; + txt = qtn_bctestmisccontrol_menu_control_group; + }, + MENU_ITEM + { + command = EBCTestMiscControlKeyWindow; + cascade = r_bctestmisccontrol_menu_key_window_cascade; + txt = qtn_bctestmisccontrol_menu_key_window; + }, + MENU_ITEM + { + command = EBCTestMiscControlEikMover; + cascade = r_bctestmisccontrol_menu_eik_mover_cascade; + txt = qtn_bctestmisccontrol_menu_eik_mover; + }, + MENU_ITEM + { + command = EBCTestMiscControlEikToolBar; + cascade = r_bctestmisccontrol_menu_eik_tool_bar_cascade; + txt = qtn_bctestmisccontrol_menu_eik_tool_bar; + }, + MENU_ITEM + { + command = EBCTestMiscControlCmdAutotest; + txt = qtn_bctestmisccontrol_menu_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestmisccontrol_menu_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu_caption_control_cascade +// Sub menu-pane of "Eik captioned control" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu_caption_control_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline01; + txt = qtn_bctestmisccontrol_menu_out01; + }, + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline02; + txt = qtn_bctestmisccontrol_menu_out02; + }, + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline03; + txt = qtn_bctestmisccontrol_menu_out03; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu_console_control_cascade +// Sub menu-pane of "Eik console control" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu_console_control_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline04; + txt = qtn_bctestmisccontrol_menu_out04; + }, + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline05; + txt = qtn_bctestmisccontrol_menu_out05; + }, + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline06; + txt = qtn_bctestmisccontrol_menu_out06; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu_control_group_cascade +// Sub menu-pane of "Eik control group" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu_control_group_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline07; + txt = qtn_bctestmisccontrol_menu_out07; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu_key_window_cascade +// Sub menu-pane of "Eik key window" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu_key_window_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline08; + txt = qtn_bctestmisccontrol_menu_out08; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu_eik_mover_cascade +// Sub menu-pane of "Eik mover" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu_eik_mover_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline09; + txt = qtn_bctestmisccontrol_menu_out09; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_menu_eik_tool_bar_cascade +// Sub menu-pane of "Eik tool bar" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisccontrol_menu_eik_tool_bar_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestMiscControlCmdOutline10; + txt = qtn_bctestmisccontrol_menu_out10; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_eikline +// eik captioned control dialog line +// +//---------------------------------------------------------------------------- +// +RESOURCE DLG_LINE r_bctestmisccontrol_eikline + { + type = EEikCtEdwin; + prompt = qtn_bctestmisccontrol_prompt; + id = 32777; + control = EDWIN + { + width = 10; + maxlength = 8; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_text_slider_field_dialog +// For eik captioned control dialog +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestmisccontrol_text_slider_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagButtonsRight | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestmisccontrol_text_slider_field_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_text_slider_field_form +// For eik captioned control form +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestmisccontrol_text_slider_field_form + { + items = + { + DLG_LINE + { + type = EEikCtEdwin; + prompt = qtn_bctestmisccontrol_form_label_edwin; + id = EBCTestMiscControlDlgCtrlIdEdwin01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; + width = BCTESTMISCCONTROL_EDWIN_WIDTH; + lines = BCTESTMISCCONTROL_EDWIN_LINES; + maxlength = EBCTestMiscControlFormEdwinMaxLength; + // added to limit expanding in forms. + // If you want full screen use 5 here + max_view_height_in_lines = 5; + // if you have the line above, you must have this. + // It's calculable from LAF + base_line_delta = 21; + }; + tooltip = qtn_bctestmisccontrol_hint_text_edwin; + }, + DLG_LINE + { + type = EAknCtSlider; + prompt = qtn_bctestmisccontrol_form_label_slider; + id = EBCTestMiscControlDlgCtrlIdSlider01; + control = SLIDER + { + layout = EAknFormSliderLayout1; + minvalue = BCTESTMISCCONTROL_SLIDER_MIN_VALUE; + maxvalue = BCTESTMISCCONTROL_SLIDER_MAX_VALUE; + step = BCTESTMISCCONTROL_SLIDER_STEP; + minlabel = qtn_bctestmisccontrol_form_label_sdmin; + maxlabel = qtn_bctestmisccontrol_form_label_sdmin; + valuetype = EAknSliderValuePercentage; + }; + tooltip = qtn_aknatform_hint_text_slider; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_eik_mover_dialog +// Eik mover dialog +// +// ---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestmisccontrol_eik_mover_dialog + { + title = qtn_bctestmisccontrol_Title; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestmisccontrol_eik_tool_bar +// Eik tool bar +// +// ---------------------------------------------------------------------------- +// +RESOURCE TOOLBAR r_bctestmisccontrol_eik_tool_bar + { + breadth = KEikStdToolBarWidth; + lines = 1; + } + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bctestmisccontrol_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bctestmisccontrol_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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 bctestmisccontrol +* +*/ + + +#include +#include + +#include "bctestmisccontrol.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004759 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_apps_name; + localisable_resource_file = qtn_localization_filename; + localisable_resource_id = R_BCTESTMISCCONTROL_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestmisccontrol.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctesteikcaptionedcontrolcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctesteikcaptionedcontrolcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,119 @@ +/* +* 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 "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: Declares test bc for eik captioned control testcase. +* +*/ + + +#ifndef C_CBCTESTEIKCAPTIONEDCONTROLCASE_H +#define C_CBCTESTEIKCAPTIONEDCONTROLCASE_H + +#include "bctestcase.h" + +class CBCTestMiscControlContainer; +class CCoeControl; +class CBCTestSubEikCaptionedControl; +class CBCTestSubAknForm; +class CEikCaptionedControl; + +/** + * test case for various misc control classes + */ +class CBCTestEikCaptionedControlCase: public CBCTestCase + { + +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikCaptionedControlCase* + NewL( CBCTestMiscControlContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEikCaptionedControlCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestPublicFunctionsL function + */ + void TestPublicFunctionsL(); + + /** + * TestProtectedFunctionsL function + */ + void TestProtectedFunctionsL(); + + /** + * TestFunctionsOfEikCapCArrayL function + */ + void TestFunctionsOfEikCapCArrayL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikCaptionedControlCase( CBCTestMiscControlContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestMiscControlContainer* iContainer; + + /** + * Pointer to form. + * own + */ + CBCTestSubAknForm* iForm; + + /** + * Pointer to EikCaptionedControl. + * not own + */ + CEikCaptionedControl* iCapControl; + + /** + * Pointer to SubEikCaptionedControl. + * not own + */ + CBCTestSubEikCaptionedControl* iSubCapControl; + + }; + +#endif // C_CBCTESTEIKCAPTIONEDCONTROLCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctesteikconsolecontrolcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctesteikconsolecontrolcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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: Declares test bc for eik console control testcase. +* +*/ + + +#ifndef C_CBCTESTEIKCONSOLECONTROLCASE_H +#define C_CBCTESTEIKCONSOLECONTROLCASE_H + +#include "bctestcase.h" + +class CBCTestMiscControlContainer; +class CCoeControl; + +/** + * test case for various misc control classes + */ +class CBCTestEikConsoleControlCase: public CBCTestCase + { + +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikConsoleControlCase* + NewL( CBCTestMiscControlContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEikConsoleControlCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestFunctionsForEikConsoleControlL function + */ + void TestFunctionsForEikConsoleControlL(); + + /** + * TestProtectedFunctionsForEikConsoleControlL function + */ + void TestProtectedFunctionsForEikConsoleControlL(); + + /** + * TestFunctionsForEikConsoleScreenL function + */ + void TestFunctionsForEikConsoleScreenL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikConsoleControlCase( CBCTestMiscControlContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestMiscControlContainer* iContainer; + + }; + +#endif // C_CBCTESTEIKCONSOLECONTROLCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctesteikcontrolgroupcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctesteikcontrolgroupcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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: Declares test bc for eik control group testcase. +* +*/ + + +#ifndef C_CBCTESTEIKCONTROLGROUPCASE_H +#define C_CBCTESTEIKCONTROLGROUPCASE_H + +#include "bctestcase.h" + +class CBCTestMiscControlContainer; +class CCoeControl; + +/** + * test case for various misc control classes + */ +class CBCTestEikControlGroupCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikControlGroupCase* + NewL( CBCTestMiscControlContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEikControlGroupCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestFunctionsForEikControlGroupL function + */ + void TestFunctionsForEikControlGroupL(); + + /** + * TestFunctionsForEikKeyWindowL function + */ + void TestFunctionsForEikKeyWindowL(); + + /** + * TestFunctionsForEikMoverL function + */ + void TestFunctionsForEikMoverL(); + + /** + * TestFunctionsForEikToolBarL function + */ + void TestFunctionsForEikToolBarL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikControlGroupCase( CBCTestMiscControlContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestMiscControlContainer* iContainer; + + }; + +#endif // C_CBCTESTEIKCONTROLGROUPCASE_H + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrol.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrol.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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: bctestmisccontrol resource header file +* +*/ + + +#ifndef BCTESTMISCCONTROL_HRH +#define BCTESTMISCCONTROL_HRH + +enum TBCTestMiscControlMenuGroupCommands + { + EBCTestMiscControlCaptionControl = 0x6000, + EBCTestMiscControlConsoleControl, + EBCTestMiscControlControlGroup, + EBCTestMiscControlKeyWindow, + EBCTestMiscControlEikMover, + EBCTestMiscControlEikToolBar, + EBCTestMiscControlCmdAutotest + }; + +enum TBCTestPopupsMenuCommands + { + EBCTestMiscControlCmdEmptyOutline = 0x6020, + EBCTestMiscControlCmdOutline01, + EBCTestMiscControlCmdOutline02, + EBCTestMiscControlCmdOutline03, + EBCTestMiscControlCmdOutline04, + EBCTestMiscControlCmdOutline05, + EBCTestMiscControlCmdOutline06, + EBCTestMiscControlCmdOutline07, + EBCTestMiscControlCmdOutline08, + EBCTestMiscControlCmdOutline09, + EBCTestMiscControlCmdOutline10, + EBCTestMiscControlCmdOutline11, + EBCTestMiscControlCmdOutline12, + EBCTestMiscControlCmdOutline13, + EBCTestMiscControlCmdOutline14, + EBCTestMiscControlCmdOutline15, + EBCTestMiscControlCmdOutline16, + EBCTestMiscControlCmdOutline17, + EBCTestMiscControlCmdOutline18, + EBCTestMiscControlCmdOutline19, + EBCTestMiscControlCmdOutline20, + EBCTestMiscControlCmdMaxOutline + }; + +enum TBCTestMiscControlFormFieldInfo + { + EBCTestMiscControlFormEdwinMaxLength = 64 + }; + +enum TBCTestMiscControlDlgCtrlId + { + EBCTestMiscControlDlgCtrlIdEdwin01 = 100, + EBCTestMiscControlDlgCtrlIdSlider01 + }; + +enum TBCTestMiscControlCba + { + EBCTestMiscControlCbaCmdExit = 0x6300 + }; + +#endif // BCTESTMISCCONTROL_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrol.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrol.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 "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: bctestmisccontrol localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTMISCCONTROL" +#define qtn_apps_tavl_grid "BCTESTMISCCONTROL" + +// MenuBar +#define qtn_bctestmisccontrol_menubar "Options" +#define qtn_bctestmisccontrol_menu_caption_control "Eik captioned control" +#define qtn_bctestmisccontrol_menu_console_control "Eik console control" +#define qtn_bctestmisccontrol_menu_control_group "Eik control group" +#define qtn_bctestmisccontrol_menu_key_window "Eik key window" +#define qtn_bctestmisccontrol_menu_eik_mover "Eik mover" +#define qtn_bctestmisccontrol_menu_eik_tool_bar "Eik tool bar" +#define qtn_bctestmisccontrol_menu_autotest "Autotest" +#define qtn_bctestmisccontrol_menu_exit "Exit" + +// Sub menubar of "Eik captioned control" menu +#define qtn_bctestmisccontrol_menu_out01 "OUTLINE01" +#define qtn_bctestmisccontrol_menu_out02 "OUTLINE02" +#define qtn_bctestmisccontrol_menu_out03 "OUTLINE03" + +// Sub menubar of "Eik console control" menu +#define qtn_bctestmisccontrol_menu_out04 "OUTLINE04" +#define qtn_bctestmisccontrol_menu_out05 "OUTLINE05" +#define qtn_bctestmisccontrol_menu_out06 "OUTLINE06" + +// Sub menubar of "Eik control group" menu +#define qtn_bctestmisccontrol_menu_out07 "OUTLINE07" + +// Sub menubar of "Eik key window" menu +#define qtn_bctestmisccontrol_menu_out08 "OUTLINE08" + +// Sub menubar of "Eik mover" menu +#define qtn_bctestmisccontrol_menu_out09 "OUTLINE09" + +// Sub menubar of "Eik tool bar" menu +#define qtn_bctestmisccontrol_menu_out10 "OUTLINE10" + +#define qtn_bctestmisccontrol_menu_out11 "OUTLINE11" +#define qtn_bctestmisccontrol_menu_out12 "OUTLINE12" +#define qtn_bctestmisccontrol_menu_out13 "OUTLINE13" +#define qtn_bctestmisccontrol_menu_out14 "OUTLINE14" +#define qtn_bctestmisccontrol_menu_out15 "OUTLINE15" +#define qtn_bctestmisccontrol_menu_out16 "OUTLINE16" +#define qtn_bctestmisccontrol_menu_out17 "OUTLINE17" +#define qtn_bctestmisccontrol_menu_out18 "OUTLINE18" +#define qtn_bctestmisccontrol_menu_out19 "OUTLINE19" +#define qtn_bctestmisccontrol_menu_out20 "OUTLINE20" + +#define qtn_bctestmisccontrol_form_label_edwin "edwin" + +// Hint text +#define qtn_bctestmisccontrol_hint_text_edwin "Text Editor" + +// Slider label text +#define qtn_bctestmisccontrol_form_label_sdmin "min" +#define qtn_bctestmisccontrol_form_label_sdmax "max" +#define qtn_bctestmisccontrol_form_label_slider "slider" + +// registraton string +#define qtn_apps_name "bctestmisccontrol" +#define qtn_localization_filename "\\resource\\apps\\bctestmisccontrol" +#define qtn_group_name "BCTest" + +#define qtn_bctestmisccontrol_buf "BCTestMiscControl" +#define qtn_bctestmisccontrol_prompt "New Line" +#define qtn_bctestmisccontrol_Title "Eik mover" + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTMISCCONTROLAPP_H +#define C_CBCTESTMISCCONTROLAPP_H + +#include + +const TUid KUidBCTestMiscControl = { 0x20004759 }; // UID of the application. + +/** + * CBCTestMiscControlApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestMiscControlApp : public CAknApplication + { + +private: + +// From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestMisccontrolDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestMisccontrol ). + * @return The value of KUidBCTestMisccontrol. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESTMISCCONTROLAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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: Declares test bc for misc control appui. +* +*/ + + +#ifndef C_CBCTESTMISCCONTROLAPPUI_H +#define C_CBCTESTMISCCONTROLAPPUI_H + +#include + +class CBCTestMiscControlView; + +/** + * Application UI class + */ +class CBCTestMiscControlAppUi : public CAknViewAppUi + { + +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestMiscControlAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestMiscControlAppUi(); + +private: + +// From CEikAppUi + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointer to the view. + * own + */ + CBCTestMiscControlView* iView; + + }; + +#endif // C_CBCTESTMISCCONTROLAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,99 @@ +/* +* 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 "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: Declares test bc for misc control container. +* +*/ + + +#ifndef C_CBCTESTMISCCONTROLCONTAINER_H +#define C_CBCTESTMISCCONTROLCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestMiscControlContainer: public CCoeControl + { + +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestMiscControlContainer(); + + /** + * Destructor + */ + virtual ~CBCTestMiscControlContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * get iCoeEnv + */ + CCoeEnv* GetCoeEnv(); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: + +// from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTMISCCONTROLCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontroldocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontroldocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Declares test bc for misc control document. +* +*/ + + +#ifndef C_CBCTESTMISCCONTROLDOCUMENT_H +#define C_CBCTESTMISCCONTROLDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestMiscControlDocument application class. +*/ +class CBCTestMiscControlDocument : public CEikDocument + { + +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestMiscControlDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestMiscControlDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestMiscControlDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestMiscControlAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + +}; + +#endif // C_CBCTESTMISCCONTROLDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestmisccontrolview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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: Declares test bc for misc control view. +* +*/ + + +#ifndef C_CBCTESTMISCCONTROLVIEW_H +#define C_CBCTESTMISCCONTROLVIEW_H + +#include + +class CBCTestMiscControlContainer; +class CBCTestUtil; + +const TUid KBCTestMiscControlViewId = { 1 }; + +/** + * Application View class + */ +class CBCTestMiscControlView : public CAknView + { + +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestMiscControlView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestMiscControlView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: + +// from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMiscControlView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestMiscControlContainer* iContainer; + + }; + +#endif // C_CBCTESTMISCCONTROLVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubaknform.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubaknform.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: Invoke CAknForm's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBAKNFORM_H +#define C_CBCTESTSUBAKNFORM_H + +#include + +/** + * Invoke CAknForm's protected APIs + */ +class CBCTestSubAknForm: public CAknForm + { + + friend class CBCTestEikCaptionedControlCase; + + }; + +#endif // C_CBCTESTSUBAKNFORM_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubcommandobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubcommandobserver.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,40 @@ +/* +* 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 "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: MEikCommandObserver's sub class. +* +*/ + + +#ifndef T_TBCTESTSUBCOMMANDOBSERVER_H +#define T_TBCTESTSUBCOMMANDOBSERVER_H + +#include + +/** + * MEikCommandObserver's sub class + */ +class TBCTestSubCommandObserver: public MEikCommandObserver + { + +// from MEikCommandObserver + + /** + * ProcessCommandL function + * @param aCommandId ID of the command to respond to. + */ + void ProcessCommandL( TInt /*aCommandId*/ ){} + + }; + +#endif // T_TBCTESTSUBCOMMANDOBSERVER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikcaptionedcontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikcaptionedcontrol.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: Invoke eik captioned control's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKCAPTIONEDCONTROL_H +#define C_CBCTESTSUBEIKCAPTIONEDCONTROL_H + +#include + +/** + * Invoke eik captioned control's protected APIs + */ +class CBCTestSubEikCaptionedControl: public CEikCaptionedControl + { + + friend class CBCTestEikCaptionedControlCase; + +public: // constructor and destructor + + /** + * Destructor + */ + virtual ~CBCTestSubEikCaptionedControl(); + + /** + * C++ default constructor + */ + CBCTestSubEikCaptionedControl(); + + }; + +#endif // C_CBCTESTSUBEIKCAPTIONEDCONTROL_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikconsolecontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikconsolecontrol.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: Invoke eik console control's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKCONSOLECONTROL_H +#define C_CBCTESTSUBEIKCONSOLECONTROL_H + +#include + +/** + * Invoke eik captioned control's protected APIs + */ +class CBCTestSubEikConsoleControl: public CEikConsoleControl + { + + friend class CBCTestEikConsoleControlCase; + +public: // constructor and destructor + + /** + * Destructor + */ + virtual ~CBCTestSubEikConsoleControl(); + + /** + * C++ default constructor + */ + CBCTestSubEikConsoleControl(); + + }; + +#endif // C_CBCTESTSUBEIKCONSOLECONTROL_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikcontrolgroup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikcontrolgroup.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: Invoke eik control group's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKCONTROLGROUP_H +#define C_CBCTESTSUBEIKCONTROLGROUP_H + +#include + +/** + * Invoke eik control group's protected APIs + */ +class CBCTestSubEikControlGroup: public CEikControlGroup + { + + friend class CBCTestEikControlGroupCase; + +public: // constructor and destructor + + /** + * Destructor + */ + virtual ~CBCTestSubEikControlGroup(); + + /** + * C++ default constructor + */ + CBCTestSubEikControlGroup(); + + }; + +#endif // C_CBCTESTSUBEIKCONTROLGROUP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikmover.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeikmover.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: Invoke eik mover's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKMOVER_H +#define C_CBCTESTSUBEIKMOVER_H + +#include + +/** + * Invoke eik mover's protected APIs + */ +class CBCTestSubEikMover: public CEikMover + { + + friend class CBCTestEikControlGroupCase; + +public: // constructor and destructor + + /** + * Destructor + */ + virtual ~CBCTestSubEikMover(); + + /** + * C++ default constructor + */ + CBCTestSubEikMover(); + + }; + +#endif // C_CBCTESTSUBEIKMOVER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeiktoolbar.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/inc/bctestsubeiktoolbar.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: Invoke eik toolbar's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKTOOLBAR_H +#define C_CBCTESTSUBEIKTOOLBAR_H + +#include + +/** + * Invoke eik toolbar's protected APIs + */ +class CBCTestSubEikToolBar: public CEikToolBar + { + + friend class CBCTestEikControlGroupCase; + + }; + +#endif // C_CBCTESTSUBEIKTOOLBAR_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/sis/bctestmisccontrol.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/sis/bctestmisccontrol.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +; +; 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 "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: Package file for project bctestmisccontrol +; + +; Languages +&EN + +; Header +#{"UIFW_bctestmisccontrol"},(0x20004759),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestmisccontrol.exe"- +"!:\sys\bin\bctestmisccontrol.exe" + +"\epoc32\data\z\resource\apps\bctestmisccontrol.rsc"- +"!:\resource\apps\bctestmisccontrol.rsc" + +"\epoc32\data\z\resource\apps\bctestmisccontrol.mbm"- +"!:\resource\apps\bctestmisccontrol.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestmisccontrol_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestmisccontrol_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctesteikcaptionedcontrolcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctesteikcaptionedcontrolcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,464 @@ +/* +* 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 "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: Implements test bc for eik captioned control. +* +*/ + + +#include +#include +#include +#include +#include // MAknsControlContext +#include // TResourceReader +#include // RBufWriteStream +#include // CEikCaptionedControl +#include // CEikCapCArray +#include // CFbsBitmap +#include // AknIconUtils +#include // KEikDynamicLayoutVariantSwitch + +#include "bctesteikcaptionedcontrolcase.h" +#include "bctestsubeikcaptionedcontrol.h" +#include "bctestsubaknform.h" +#include "bctestmisccontrolcontainer.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +//Constant for CEikCaptionedControl +_LIT( KForm, "Form created" ); +_LIT( KRCapControl, "Eik captioned control created" ); +_LIT( KSetDimmed, "Invoke CEikCaptionedControl's SetDimmed()" ); +_LIT( KSetDividerAfter, + "Invoke CEikCaptionedControl's SetDividerAfter()" ); +_LIT( KSetLatent, "Invoke CEikCaptionedControl's SetLatent()" ); +_LIT( KSetDrawNoWhiteBackground, + "Invoke CEikCaptionedControl's SetDrawNoWhiteBackground()" ); +_LIT( KSetOfferHotKeys, + "Invoke CEikCaptionedControl's SetOfferHotKeys()" ); +_LIT( KSetLatentGroupLineFollows, + "Invoke CEikCaptionedControl's SetLatentGroupLineFollows()" ); +_LIT( KSetSpaceSharingFlags, + "Invoke CEikCaptionedControl's SetSpaceSharingFlags()" ); +_LIT( KSetTakesEnterKey, + "Invoke CEikCaptionedControl's SetTakesEnterKey()" ); +_LIT( KSetUsesEars, + "Invoke CEikCaptionedControl's SetUsesEars()" ); +_LIT( KOfferKeyEventL, + "Invoke CEikCaptionedControl's OfferKeyEventL()" ); +_LIT( KOfferHotKeys, + "Invoke CEikCaptionedControl's OfferHotKeys()" ); +_LIT( KHandlePointerEventL, + "Invoke CEikCaptionedControl's HandlePointerEventL()" ); +_LIT( KCheckDimmedDisplayState, + "Invoke CEikCaptionedControl's CheckDimmedDisplayState()" ); +_LIT( KDividerAfter, + "Invoke CEikCaptionedControl's DividerAfter()" ); +_LIT( KSetIconL, "Invoke CEikCaptionedControl's SetIconL()" ); +_LIT( KHandleControlEventL, + "Invoke CEikCaptionedControl's HandleControlEventL()" ); +_LIT( KSetBitmapFromFileL, + "Invoke CEikCaptionedControl's SetBitmapFromFileL()" ); +_LIT( KGetColorUseListL, + "Invoke CEikCaptionedControl's GetColorUseListL()" ); +_LIT( KWriteInternalStateL, + "Invoke CEikCaptionedControl's WriteInternalStateL()" ); +_LIT( KDraw, "Invoke CEikCaptionedControl's Draw()" ); +_LIT( KGetFullCaptionText, + "Invoke CEikCaptionedControl's GetFullCaptionText()" ); +_LIT( KHandleResourceChange, + "Invoke CEikCaptionedControl's HandleResourceChange()" ); +_LIT( KInputCapabilities, + "Invoke CEikCaptionedControl's InputCapabilities()" ); +_LIT( KIsLatent, "Invoke CEikCaptionedControl's IsLatent()" ); +_LIT( KLatentGroupLineFollows, + "Invoke CEikCaptionedControl's LatentGroupLineFollows()" ); +_LIT( KMinimumSize, + "Invoke CEikCaptionedControl's MinimumSize()" ); +_LIT( KSetCurrent, + "Invoke CEikCaptionedControl's SetCurrent()" ); +_LIT( KSetExtraAscent, + "Invoke CEikCaptionedControl's SetExtraAscent()" ); +_LIT( KTakesEnterKey, + "Invoke CEikCaptionedControl's TakesEnterKey()" ); +_LIT( KToolTipText, + "Invoke CEikCaptionedControl's ToolTipText()" ); + +//Constant for CEikCapCArray +_LIT( KCEikCapCArray, "Create CEikCapCArray object" ); +_LIT( KSetRect, "Invoke CEikCapCArray's SetRect()" ); +_LIT( KAdjustAllIds, "Invoke CEikCapCArray's AdjustAllIds()" ); +_LIT( KFindLineIndex, "Invoke CEikCapCArray's FindLineIndex()" ); + +//MBMFileName constant +_LIT( KMBMFileName, "\\resource\\apps\\bctestmisccontrol.mbm" ); + +const TInt KGranularity = 4; +const TInt KZero = 0; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KFour = 4; +const TInt KTwoHundred = 200; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikCaptionedControlCase* CBCTestEikCaptionedControlCase::NewL( + CBCTestMiscControlContainer* aContainer ) + { + CBCTestEikCaptionedControlCase* self = + new( ELeave ) CBCTestEikCaptionedControlCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikCaptionedControlCase::CBCTestEikCaptionedControlCase( + CBCTestMiscControlContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikCaptionedControlCase::~CBCTestEikCaptionedControlCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikCaptionedControlCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikCaptionedControlCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikCaptionedControlCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline1 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + KeyOK, + KeyOK, + + //outline2 + LeftCBA, + KeyOK, + Down, + KeyOK, + + //outline3 + LeftCBA, + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikCaptionedControlCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikCaptionedControlCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestMiscControlCmdOutline01 ) + || ( aCmd > EBCTestMiscControlCmdOutline03 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestMiscControlCmdOutline01: + TestPublicFunctionsL(); + break; + case EBCTestMiscControlCmdOutline02: + TestProtectedFunctionsL(); + break; + case EBCTestMiscControlCmdOutline03: + TestFunctionsOfEikCapCArrayL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikCaptionedControlCase::TestPublicFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestEikCaptionedControlCase::TestPublicFunctionsL() + { + // Construct CBCTestSubAknForm + iForm = new( ELeave ) CBCTestSubAknForm(); + AssertNotNullL( iForm, KForm ); + iForm->PrepareLC( R_BCTESTMISCCONTROL_TEXT_SLIDER_FIELD_DIALOG ); + CleanupStack::Pop(); + + // Construct CEikCaptionedControl + iCapControl = iForm->GetFirstLineOnFirstPageOrNull(); + AssertNotNullL( iCapControl, KRCapControl ); + + // Invoke CEikCaptionedControl's CEikCaptionedControl() + iCapControl->SetDimmed( EFalse ); + AssertTrueL( ETrue, KSetDimmed ); + + // Invoke CEikCaptionedControl's SetDividerAfter() + iCapControl->SetDividerAfter( ETrue ); + iCapControl->SetDividerAfter( EFalse ); + AssertTrueL( ETrue, KSetDividerAfter ); + + // Invoke CEikCaptionedControl's SetLatent() + iCapControl->SetLatent( EFalse ); + iCapControl->SetLatent( ETrue ); + AssertTrueL( ETrue, KSetLatent ); + + // Invoke CEikCaptionedControl's SetDrawNoWhiteBackground() + iCapControl->SetDrawNoWhiteBackground( EFalse ); + iCapControl->SetDrawNoWhiteBackground( ETrue ); + AssertTrueL( ETrue, KSetDrawNoWhiteBackground ); + + // Invoke CEikCaptionedControl's SetOfferHotKeys() + iCapControl->SetOfferHotKeys( ETrue ); + iCapControl->SetOfferHotKeys( EFalse ); + AssertTrueL( ETrue, KSetOfferHotKeys ); + + // Invoke CEikCaptionedControl's SetLatentGroupLineFollows() + iCapControl->SetLatentGroupLineFollows( ETrue ); + iCapControl->SetLatentGroupLineFollows( EFalse ); + AssertTrueL( ETrue, KSetLatentGroupLineFollows ); + + // Invoke CEikCaptionedControl's SetSpaceSharingFlags() + iCapControl->SetSpaceSharingFlags( + CEikCaptionedControl::EIfTooSmallCtlGetsWidthFirst ); + AssertTrueL( ETrue, KSetSpaceSharingFlags ); + + // Invoke CEikCaptionedControl's SetTakesEnterKey() + iCapControl->SetTakesEnterKey( ETrue ); + iCapControl->SetTakesEnterKey( EFalse ); + AssertTrueL( ETrue, KSetTakesEnterKey ); + + // Invoke CEikCaptionedControl's SetUsesEars() + iCapControl->SetUsesEars(); + AssertTrueL( ETrue, KSetUsesEars ); + + // Invoke CEikCaptionedControl's OfferKeyEventL() + TKeyEvent keyEvent; + keyEvent.iCode = EKeyCBA1; + iCapControl->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + // Invoke CEikCaptionedControl's OfferHotKeys() + iCapControl->OfferHotKeys(); + AssertTrueL( ETrue, KOfferHotKeys ); + + // Invoke CEikCaptionedControl's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + iCapControl->HandlePointerEventL( pointEvent ); + pointEvent.iType = TPointerEvent::EButton1Up; + iCapControl->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + // Invoke CEikCaptionedControl's CheckDimmedDisplayState() + iCapControl->CheckDimmedDisplayState(); + AssertTrueL( ETrue, KCheckDimmedDisplayState ); + + // Invoke CEikCaptionedControl's DividerAfter() + iCapControl->DividerAfter(); + AssertTrueL( ETrue, KDividerAfter ); + + // Invoke CEikCaptionedControl's SetBitmapFromFileL() + iCapControl->SetBitmapFromFileL( KMBMFileName, + EMbmBctestmisccontrol30x40, EMbmBctestmisccontrol30x40m ); + AssertTrueL( ETrue, KSetBitmapFromFileL ); + + // Invoke CEikCaptionedControl's SetIconL() + CFbsBitmap* bitmap = AknIconUtils::CreateIconL( + KMBMFileName, EMbmBctestmisccontrol30x40 ); //not own + CleanupStack::PushL( bitmap ); + CFbsBitmap* bitmapMask = AknIconUtils::CreateIconL( + KMBMFileName, EMbmBctestmisccontrol30x40m ); //not own + CleanupStack::PushL( bitmapMask ); + iCapControl->SetIconL( bitmap, bitmapMask ); + AssertTrueL( ETrue, KSetIconL ); + CleanupStack::Pop( bitmapMask ); + CleanupStack::Pop( bitmap ); + + // Invoke CEikCaptionedControl's HandleControlEventL() + iCapControl->HandleControlEventL( iForm, + MCoeControlObserver::EEventRequestExit ); + AssertTrueL( ETrue, KHandleControlEventL ); + + // Invoke CEikCaptionedControl's GetColorUseListL() + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KGranularity ); + CleanupStack::PushL( colorUseList ); + iCapControl->GetColorUseListL( *colorUseList ); + AssertTrueL( ( colorUseList->Count() > KZero ), KGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + // Invoke CEikCaptionedControl's GetFullCaptionText() + iCapControl->GetFullCaptionText(); + AssertTrueL( ETrue, KGetFullCaptionText ); + + // Invoke CEikCaptionedControl's HandleResourceChange() + iCapControl->HandleResourceChange( KAknsMessageSkinChange ); + iCapControl->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + AssertTrueL( ETrue, KHandleResourceChange ); + + // Invoke CEikCaptionedControl's InputCapabilities() + iCapControl->InputCapabilities(); + AssertTrueL( ETrue, KInputCapabilities ); + + // Invoke CEikCaptionedControl's IsLatent() + iCapControl->IsLatent(); + AssertTrueL( ETrue, KIsLatent ); + + // Invoke CEikCaptionedControl's LatentGroupLineFollows() + iCapControl->LatentGroupLineFollows(); + AssertTrueL( ETrue, KLatentGroupLineFollows ); + + // Invoke CEikCaptionedControl's MinimumSize() + iCapControl->MinimumSize(); + AssertTrueL( ETrue, KMinimumSize ); + + // Invoke CEikCaptionedControl's SetCurrent() + iCapControl->SetCurrent( ETrue ); + iCapControl->SetCurrent( EFalse ); + AssertTrueL( ETrue, KSetCurrent ); + + // Invoke CEikCaptionedControl's SetExtraAscent() + iCapControl->SetExtraAscent(); + AssertTrueL( ETrue, KSetExtraAscent ); + + // Invoke CEikCaptionedControl's TakesEnterKey() + iCapControl->TakesEnterKey(); + AssertTrueL( ETrue, KTakesEnterKey ); + + // Invoke CEikCaptionedControl's ToolTipText() + iCapControl->ToolTipText(); + AssertTrueL( ETrue, KToolTipText ); + + delete iForm; + iForm = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEikCaptionedControlCase::TestProtectedFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestEikCaptionedControlCase::TestProtectedFunctionsL() + { + // Construct CBCTestSubAknForm + iForm = new( ELeave ) CBCTestSubAknForm(); + iForm->PrepareLC( R_BCTESTMISCCONTROL_TEXT_SLIDER_FIELD_DIALOG ); + CleanupStack::Pop(); + + // Construct CSubEikCaptionedControl + iSubCapControl = static_cast + ( iForm->GetFirstLineOnFirstPageOrNull() ); + + // Invoke CEikCaptionedControl's MopSupplyObject() + TTypeUid typeId( MAknsControlContext::ETypeId ); + iSubCapControl->MopSupplyObject( typeId ); + _LIT( KMopSupplyObject, + "Invoke CEikCaptionedControl's MopSupplyObject()" ); + AssertTrueL( ETrue, KMopSupplyObject ); + + iSubCapControl->DrawNow(); + AssertTrueL( ETrue, KDraw ); + + // Invoke CEikCaptionedControl's WriteInternalStateL() + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + RBufWriteStream stream; + stream.Open( *buf ); + iSubCapControl->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KWriteInternalStateL ); + stream.Close(); + delete buf; + + delete iForm; + iForm = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestEikCaptionedControlCase::TestFunctionsOfEikCapCArrayL +// --------------------------------------------------------------------------- +// +void CBCTestEikCaptionedControlCase::TestFunctionsOfEikCapCArrayL() + { + CEikCapCArray* eikCapCArray = new( ELeave ) CEikCapCArray( KGranularity ); + CleanupStack::PushL( eikCapCArray ); + AssertNotNullL( eikCapCArray, KCEikCapCArray ); + + // Invoke CEikCapCArray's SetRect() + TRect rect; + eikCapCArray->SetRect( rect ); + AssertTrueL( ETrue, KSetRect ); + + // Invoke CEikCapCArray's AdjustAllIds() + eikCapCArray->AdjustAllIds( KFour ); + AssertTrueL( ETrue, KAdjustAllIds ); + + // Invoke CEikCapCArray's MinimumSize() + eikCapCArray->MinimumSize(); + _LIT( KECCMinimumSize, + "Invoke CEikCapCArray's MinimumSize()" ); + AssertTrueL( ETrue, KECCMinimumSize ); + + // Invoke CEikCapCArray's ResetMinimumSizes() + eikCapCArray->ResetMinimumSizes(); + _LIT( KECCResetMinimumSizes, + "Invoke CEikCapCArray's ResetMinimumSizes()" ); + AssertTrueL( ETrue, KECCResetMinimumSizes ); + + // Invoke CEikCapCArray's FindLineIndex() + CCoeControl* coeControl = new( ELeave ) CCoeControl(); + CleanupStack::PushL( coeControl ); + eikCapCArray->FindLineIndex( coeControl ); + AssertTrueL( ETrue, KFindLineIndex ); + CleanupStack::PopAndDestroy( coeControl ); + + CleanupStack::PopAndDestroy( eikCapCArray ); + + } + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctesteikconsolecontrolcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctesteikconsolecontrolcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,663 @@ +/* +* 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 "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: Implements test bc for eik console control. +* +*/ + + +#include +#include +#include +#include +#include // CEikConsoleControl +#include // RBufWriteStream +#include // TFontSpec + +#include "bctesteikconsolecontrolcase.h" +#include "bctestsubeikconsolecontrol.h" +#include "bctestmisccontrolcontainer.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +//Constant for CEikConsoleControl +_LIT( KECCEikConsoleControl, "Eik console control created" ); +_LIT( KECCConstructL, "Invoke CEikConsoleControl's ConstructL()" ); +_LIT( KECCSetFontL, "Invoke CEikConsoleControl's SetFontL()" ); +_LIT( KECCConstructLOver, "Invoke CEikConsoleControl's ConstructL() again" ); +_LIT( KECCSetRedrawer, "Invoke CEikConsoleControl's SetRedrawer()" ); +_LIT( KECCVisibleSize, "Invoke CEikConsoleControl's VisibleSize()" ); +_LIT( KECCSetCursorHeight, "Invoke CEikConsoleControl's SetCursorHeight()" ); +_LIT( KECCDrawCursor, "Invoke CEikConsoleControl's DrawCursor()" ); +_LIT( KECCHideCursor, "Invoke CEikConsoleControl's HideCursor()" ); +_LIT( KString, "This is eik console control" ); +_LIT( KECCDrawChars, "Invoke CEikConsoleControl's DrawChars()" ); +_LIT( KECCClearChars, "Invoke CEikConsoleControl's ClearChars()" ); +_LIT( KECCInvertChars, "Invoke CEikConsoleControl's InvertChars()" ); +_LIT( KECCScrollChars, "Invoke CEikConsoleControl's ScrollChars()" ); +_LIT( KECCSetScrollBarVisibilityL, + "Invoke CEikConsoleControl's SetScrollBarVisibilityL()" ); +_LIT( KECCUpdateScrollbarsL, + "Invoke CEikConsoleControl's UpdateScrollbarsL()" ); +_LIT( KECCHandleScrollEventL, + "Invoke CEikConsoleControl's HandleScrollEventL()" ); +_LIT( KECCGetColorUseListL, + "Invoke CEikConsoleControl's GetColorUseListL()" ); +_LIT( KECCHandleResourceChange, + "Invoke CEikConsoleControl's HandleResourceChange()" ); +_LIT( KECCHandlePointerEventL, + "Invoke CEikConsoleControl's HandlePointerEventL()" ); +_LIT( KECCSizeChanged, "Invoke CEikConsoleControl's SizeChanged()" ); +_LIT( KECCFocusChanged, "Invoke CEikConsoleControl's FocusChanged()" ); +_LIT( KECCCountComponentControls, + "Invoke CEikConsoleControl's CountComponentControls()" ); +_LIT( KECCComponentControl, + "Invoke CEikConsoleControl's ComponentControl()" ); +_LIT( KECCWriteInternalStateL, + "Invoke CEikConsoleControl's WriteInternalStateL()" ); +_LIT( KECCDraw, "Invoke CEikConsoleControl's Draw()" ); + +// Constant for CEikConsoleControl +_LIT( KECSEikConsoleScreen, "Create EikConsoleScreen" ); +_LIT( KECSTitle, "Console Screen" ); +_LIT( KECSConstructL, "Invoke CEikConsoleScreen's ConstructL()" ); +_LIT( KECSConstructLOver, + "Invoke CEikConsoleScreen's ConstructL() again" ); +_LIT( KECSConstructLOverLoad, + "Invoke CEikConsoleScreen's ConstructL() last time" ); +_LIT( KECSCreate, "Invoke CEikConsoleScreen's Create()" ); +_LIT( KECSRead, "Invoke CEikConsoleScreen's Read()" ); +_LIT( KECSReadCancel, "Invoke CEikConsoleScreen's ReadCancel()" ); +_LIT( KECSKeyCode, "Invoke CEikConsoleScreen's KeyCode()" ); +_LIT( KECSKeyModifiers, "Invoke CEikConsoleScreen's KeyModifiers()" ); +_LIT( KECSSetTitle, "Invoke CEikConsoleScreen's SetTitle()" ); +_LIT( KECSScreenSize, "Invoke CEikConsoleScreen's ScreenSize()" ); +_LIT( KECSFlushChars, "Invoke CEikConsoleScreen's FlushChars()" ); +_LIT( KECSCursorPos, "Invoke CEikConsoleScreen's CursorPos()" ); +_LIT( KECSSetCursorPosAbs, + "Invoke CEikConsoleScreen's SetCursorPosAbs()" ); +_LIT( KECSSetCursorPosRel, + "Invoke CEikConsoleScreen's SetCursorPosRel()" ); +_LIT( KECSSetCursorHeight, + "Invoke CEikConsoleScreen's SetCursorHeight()" ); +_LIT( KWriteBuf, "This is Eik Console Screen" ); +_LIT( KECSWrite, "Invoke CEikConsoleScreen's Write()" ); +_LIT( KECSClearScreen, "Invoke CEikConsoleScreen's ClearScreen()" ); +_LIT( KECSClearToEndOfLine, + "Invoke CEikConsoleScreen's ClearToEndOfLine()" ); +_LIT( KECSClearChars, "Invoke CEikConsoleScreen's ClearChars()" ); +_LIT( KECSDrawCursorInSight, + "Invoke CEikConsoleScreen's DrawCursorInSight()" ); +_LIT( KECSDrawInSight, "Invoke CEikConsoleScreen's DrawInSight()" ); +_LIT( KECSDrawCursor, "Invoke CEikConsoleScreen's DrawCursor()" ); +_LIT( KECSHideCursor, "Invoke CEikConsoleScreen's HideCursor()" ); +_LIT( KECSUp, "Invoke CEikConsoleScreen's Up()" ); +_LIT( KECSDown, "Invoke CEikConsoleScreen's Down()" ); +_LIT( KECSLeft, "Invoke CEikConsoleScreen's Left()" ); +_LIT( KECSRight, "Invoke CEikConsoleScreen's Right()" ); +_LIT( KECSCr, "Invoke CEikConsoleScreen's Cr()" ); +_LIT( KECSLf, "Invoke CEikConsoleScreen's Lf()" ); +_LIT( KECSScrollChars, "Invoke CEikConsoleScreen's ScrollChars()" ); +_LIT( KECSRedraw, "Invoke CEikConsoleScreen's Redraw()" ); +_LIT( KECSMoveTopLeft, "Invoke CEikConsoleScreen's MoveTopLeft()" ); +_LIT( KECSSetHistorySizeL, + "Invoke CEikConsoleScreen's SetHistorySizeL()" ); +_LIT( KECSSetAtt, "Invoke CEikConsoleScreen's SetAtt()" ); +_LIT( KECSSetAttOverLoad, "Invoke CEikConsoleScreen's SetAtt() again" ); +_LIT( KECSFont, "Invoke CEikConsoleScreen's Font()" ); +_LIT( KECSSetFontL, "Invoke CEikConsoleScreen's SetFontL()" ); +_LIT( KECSSelection, "Invoke CEikConsoleScreen's Selection()" ); +_LIT( KECSSetSelection, "Invoke CEikConsoleScreen's SetSelection()" ); +_LIT( KECSSelectCursor, "Invoke CEikConsoleScreen's SelectCursor()" ); +_LIT( KECSRetrieveL, "Invoke CEikConsoleScreen's RetrieveL()" ); +_LIT( KECSSetPureCRLF, "Invoke CEikConsoleScreen's SetPureCRLF()" ); +_LIT( KECSSetAllPrintable, + "Invoke CEikConsoleScreen's SetAllPrintable()" ); +_LIT( KECSSetScrollLock, "Invoke CEikConsoleScreen's SetScrollLock()" ); +_LIT( KECSSetKeepCursorInSight, + "Invoke CEikConsoleScreen's SetKeepCursorInSight()" ); +_LIT( KECSSetScrollBarVisibilityL, + "Invoke CEikConsoleScreen's SetScrollBarVisibilityL()" ); +_LIT( KECSUpdateScrollBars, + "Invoke CEikConsoleScreen's UpdateScrollBars()" ); + +const TInt KZero = 0; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KFour = 4; +const TInt KTen = 10; +const TInt KFifteen = 15; +const TInt KTwenty = 20; +const TInt KThirty = 30; +const TInt KFourty = 40; +const TInt KFifty = 50; +const TInt KOneHundred = 100; +const TInt KOneHundredAndFifty = 150; +const TInt KTwoHundred = 200; +const TUint KPercentage = 1; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikConsoleControlCase* CBCTestEikConsoleControlCase::NewL( + CBCTestMiscControlContainer* aContainer ) + { + CBCTestEikConsoleControlCase* self = + new( ELeave ) CBCTestEikConsoleControlCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikConsoleControlCase::CBCTestEikConsoleControlCase( + CBCTestMiscControlContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikConsoleControlCase::~CBCTestEikConsoleControlCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikConsoleControlCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikConsoleControlCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikConsoleControlCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline4 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + Down, + KeyOK, + KeyOK, + + //outline5 + LeftCBA, + Down, + KeyOK, + Down, + KeyOK, + + //outline6 + LeftCBA, + Down, + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikConsoleControlCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikConsoleControlCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestMiscControlCmdOutline04 ) + || ( aCmd > EBCTestMiscControlCmdOutline06 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestMiscControlCmdOutline04: + TestFunctionsForEikConsoleControlL(); + break; + case EBCTestMiscControlCmdOutline05: + TestProtectedFunctionsForEikConsoleControlL(); + break; + case EBCTestMiscControlCmdOutline06: + TestFunctionsForEikConsoleScreenL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikConsoleControlCase::TestFunctionsForEikConsoleControlL +// --------------------------------------------------------------------------- +// +void CBCTestEikConsoleControlCase::TestFunctionsForEikConsoleControlL() + { + //Invoke CEikConsoleControl's CEikConsoleControl(); + CEikConsoleControl* eikConsoleControl = + new( ELeave ) CEikConsoleControl(); + CleanupStack::PushL( eikConsoleControl ); + AssertNotNullL( eikConsoleControl, KECCEikConsoleControl ); + + //Invoke CEikConsoleControl's ConstructL(); + eikConsoleControl->ConstructL( CEikConsoleScreen::EUseBackedUpWindow ); + AssertTrueL( ETrue, KECCConstructL ); + + //Invoke CEikConsoleControl's SetFontL(); + TFontSpec* fontSpec = new( ELeave ) TFontSpec(); + CleanupStack::PushL( fontSpec ); + CFbsFont* editorFont = iContainer->GetCoeEnv()->CreateScreenFontL( + *fontSpec ); + CleanupStack::PushL( editorFont ); + eikConsoleControl->SetFontL( *fontSpec, editorFont ); + AssertTrueL( ETrue, KECCSetFontL ); + iContainer->GetCoeEnv()->ReleaseScreenFont( editorFont ); + CleanupStack::Pop( editorFont ); + CleanupStack::PopAndDestroy( fontSpec ); + + CleanupStack::PopAndDestroy( eikConsoleControl ); + eikConsoleControl = NULL; + + //Invoke CEikConsoleControl's ConstructL(); + eikConsoleControl = new( ELeave ) CEikConsoleControl(); + CleanupStack::PushL( eikConsoleControl ); + TPoint point( KZero, KZero ); + TSize ss( KTwenty, KTwenty ); + eikConsoleControl->ConstructL( point, ss, + CEikConsoleScreen::EUseBackedUpWindow, EEikConsWinInPixels ); + AssertTrueL( ETrue, KECCConstructLOver ); + + //Invoke CEikConsoleScreen's CEikConsoleScreen(); + CEikConsoleScreen* eikConsoleScreen = new( ELeave ) CEikConsoleScreen(); + CleanupStack::PushL( eikConsoleScreen ); + + //Invoke CEikConsoleControl's HandleScrollEventL(); + CEikScrollBar* eikScrollBar = new( ELeave ) CEikScrollBar(); + CleanupStack::PushL( eikScrollBar ); + eikScrollBar->ConstructL( eikConsoleControl, iContainer, + CEikScrollBar::EVertical, KOneHundred ); + //TInt newThumbPos = aScrollBar->ThumbPosition(); + //TInt pageSize = aScrollBar->Model()->iThumbSpan; + //eikConsoleControl->HandleScrollEventL( eikScrollBar, EEikScrollPageLeft ); + AssertTrueL( ETrue, KECCHandleScrollEventL ); + CleanupStack::PopAndDestroy( eikScrollBar ); + + //Invoke CEikConsoleControl's SetRedrawer(); + eikConsoleControl->SetRedrawer( eikConsoleScreen ); + AssertTrueL( ETrue, KECCSetRedrawer ); + + //Invoke CEikConsoleControl's VisibleSize(); + eikConsoleControl->VisibleSize(); + AssertTrueL( ETrue, KECCVisibleSize ); + + //Invoke CEikConsoleControl's SetCursorHeight(); + eikConsoleControl->SetCursorHeight( KPercentage ); + AssertTrueL( ETrue, KECCSetCursorHeight ); + + //Invoke CCoeControl's SetFocus(); + eikConsoleControl->SetFocus( ETrue ); + + //Invoke CEikConsoleControl's DrawCursor(); + TPoint cursor( KTen, KTen ); + eikConsoleControl->DrawCursor( cursor ); + AssertTrueL( ETrue, KECCDrawCursor ); + + //Invoke CEikConsoleControl's HideCursor(); + eikConsoleControl->HideCursor(); + AssertTrueL( ETrue, KECCHideCursor ); + + //Invoke CEikConsoleControl's DrawChars(); + TPoint drawCharPoint( KTen, KTen ); + eikConsoleControl->DrawChars( KString, drawCharPoint, KFour ); + AssertTrueL( ETrue, KECCDrawChars ); + + //Invoke CEikConsoleControl's ClearChars(); + TRect rect( KTen, KTen, KOneHundredAndFifty, KThirty ); + eikConsoleControl->ClearChars( rect, KFour ); + AssertTrueL( ETrue, KECCClearChars ); + + //Invoke CEikConsoleControl's InvertChars(); + eikConsoleControl->InvertChars( rect ); + AssertTrueL( ETrue, KECCInvertChars ); + + //Invoke CEikConsoleControl's ScrollChars(); + TPoint vPoint( KOneHundredAndFifty, KTen ); + eikConsoleControl->ScrollChars( rect, vPoint ); + AssertTrueL( ETrue, KECCScrollChars ); + + //Invoke CEikConsoleControl's SetScrollBarVisibilityL(); + eikConsoleControl->SetScrollBarVisibilityL( CEikScrollBarFrame::EAuto, + CEikScrollBarFrame::EAuto ); + AssertTrueL( ETrue, KECCSetScrollBarVisibilityL ); + + //Invoke CEikConsoleControl's UpdateScrollbarsL(); + TSize dataSize( KThirty, KTen ); + TSize visibleSize( KFourty, KFourty ); + TPoint pt( KTen, KTen ); + eikConsoleControl->UpdateScrollbarsL( dataSize, visibleSize, pt ); + AssertTrueL( ETrue, KECCUpdateScrollbarsL ); + + //Invoke CEikConsoleControl's GetColorUseListL(); + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KFour ); + CleanupStack::PushL( colorUseList ); + eikConsoleControl->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KECCGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + //Invoke CEikConsoleControl's HandleResourceChange(); + eikConsoleControl->HandleResourceChange( KZero ); + AssertTrueL( ETrue, KECCHandleResourceChange ); + + //Invoke CEikConsoleControl's HandlePointerEventL(); + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + eikConsoleControl->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KECCHandlePointerEventL ); + + CleanupStack::PopAndDestroy( eikConsoleScreen ); + CleanupStack::PopAndDestroy( eikConsoleControl ); + + } + +// --------------------------------------------------------------------------- +// CBCTestEikConsoleControlCase::TestProtectedFunctionsForEikConsoleControlL +// --------------------------------------------------------------------------- +// +void CBCTestEikConsoleControlCase + ::TestProtectedFunctionsForEikConsoleControlL() + { + CBCTestSubEikConsoleControl* subConsoleControl = + new( ELeave ) CBCTestSubEikConsoleControl(); + CleanupStack::PushL( subConsoleControl ); + subConsoleControl->ConstructL( CEikConsoleScreen::EUseBackedUpWindow ); + AssertTrueL( ETrue, KECCConstructL ); + + //Invoke CEikConsoleControl's SizeChanged(); + subConsoleControl->SizeChanged(); + AssertTrueL( ETrue, KECCSizeChanged ); + + //Invoke CEikConsoleControl's FocusChanged(); + subConsoleControl->FocusChanged( ENoDrawNow ); + AssertTrueL( ETrue, KECCFocusChanged ); + + //Invoke CEikConsoleControl's CountComponentControls(); + TInt cCount; + cCount = subConsoleControl->CountComponentControls(); + AssertTrueL( ETrue, KECCCountComponentControls ); + + //Invoke CEikConsoleControl's ComponentControl(); + subConsoleControl->ComponentControl( cCount - KOne ); + AssertTrueL( ETrue, KECCComponentControl ); + + //Invoke CEikConsoleControl's Draw(); + subConsoleControl->Draw( iContainer->Rect() ); + AssertTrueL( ETrue, KECCDraw ); + + //Invoke CEikConsoleControl's WriteInternalStateL(); + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + subConsoleControl->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KECCWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + CleanupStack::PopAndDestroy( subConsoleControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikConsoleControlCase::TestFunctionsForEikConsoleScreenL +// --------------------------------------------------------------------------- +// +void CBCTestEikConsoleControlCase::TestFunctionsForEikConsoleScreenL() + { + CEikConsoleScreen* consoleScreen = new( ELeave ) CEikConsoleScreen(); + CleanupStack::PushL( consoleScreen ); + AssertNotNullL( consoleScreen, KECSEikConsoleScreen ); + + //Invoke CEikConsoleScreen's ConstructL(); + TPoint ltPoint( KZero, KZero ); + TSize csSize( KOneHundred, KOneHundred ); + consoleScreen->ConstructL( KECSTitle, ltPoint, csSize, + CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSConstructL ); + + CleanupStack::PopAndDestroy( consoleScreen ); + consoleScreen = NULL; + + consoleScreen = new( ELeave ) CEikConsoleScreen(); + CleanupStack::PushL( consoleScreen ); + //Invoke CEikConsoleScreen's ConstructL() again; + consoleScreen->ConstructL( KECSTitle, csSize, + CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSConstructLOver ); + CleanupStack::PopAndDestroy( consoleScreen ); + consoleScreen = NULL; + + consoleScreen = new( ELeave ) CEikConsoleScreen(); + CleanupStack::PushL( consoleScreen ); + //Invoke CEikConsoleScreen's ConstructL() last time; + consoleScreen->ConstructL( KECSTitle, + CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSConstructLOverLoad ); + + //Invoke CEikConsoleScreen's ConstructL(); + consoleScreen->Create( KECSTitle, csSize ); + AssertTrueL( ETrue, KECSCreate ); + + //Invoke CEikConsoleScreen's Read(); + TRequestStatus status; + consoleScreen->Read( status ); + AssertTrueL( ETrue, KECSRead ); + + //Invoke CEikConsoleScreen's ReadCancel(); + consoleScreen->ReadCancel(); + AssertTrueL( ETrue, KECSReadCancel ); + + //Invoke CEikConsoleScreen's KeyCode(); + consoleScreen->KeyCode(); + AssertTrueL( ETrue, KECSKeyCode ); + + //Invoke CEikConsoleScreen's KeyModifiers(); + consoleScreen->KeyModifiers(); + AssertTrueL( ETrue, KECSKeyModifiers ); + + //Invoke CEikConsoleScreen's SetTitle(); + consoleScreen->SetTitle( KECSTitle ); + AssertTrueL( ETrue, KECSSetTitle ); + + //Invoke CEikConsoleScreen's ScreenSize(); + consoleScreen->ScreenSize(); + AssertTrueL( ETrue, KECSScreenSize ); + + //Invoke CEikConsoleScreen's FlushChars(); + consoleScreen->FlushChars(); + AssertTrueL( ETrue, KECSFlushChars ); + + //Invoke CEikConsoleScreen's CursorPos(); + TPoint cursorPos; + cursorPos = consoleScreen->CursorPos(); + AssertTrueL( ETrue, KECSCursorPos ); + + //Invoke CEikConsoleScreen's SetCursorPosAbs(); + consoleScreen->SetCursorPosAbs( cursorPos ); + AssertTrueL( ETrue, KECSSetCursorPosAbs ); + + //Invoke CEikConsoleScreen's SetCursorPosRel(); + consoleScreen->SetCursorPosRel( cursorPos ); + AssertTrueL( ETrue, KECSSetCursorPosRel ); + + //Invoke CEikConsoleScreen's SetCursorHeight(); + consoleScreen->SetCursorHeight( KOne ); + AssertTrueL( ETrue, KECSSetCursorHeight ); + + //Invoke CEikConsoleScreen's Write(); + consoleScreen->Write( KWriteBuf ); + AssertTrueL( ETrue, KECSWrite ); + + //Invoke CEikConsoleScreen's ClearScreen(); + consoleScreen->ClearScreen(); + AssertTrueL( ETrue, KECSClearScreen ); + + //Invoke CEikConsoleScreen's ClearToEndOfLine(); + consoleScreen->ClearToEndOfLine(); + AssertTrueL( ETrue, KECSClearToEndOfLine ); + + //Invoke CEikConsoleScreen's ClearChars(); + TRect rect( KTen, KTen, KOneHundredAndFifty, KThirty ); + consoleScreen->ClearChars( rect, KFour ); + AssertTrueL( ETrue, KECSClearChars ); + + //Invoke CEikConsoleScreen's DrawCursorInSight(); + consoleScreen->DrawCursorInSight(); + AssertTrueL( ETrue, KECSDrawCursorInSight ); + + //Invoke CEikConsoleScreen's DrawInSight(); + TPoint pInSight( KTwenty, KTwenty ); + consoleScreen->DrawInSight( pInSight ); + AssertTrueL( ETrue, KECSDrawInSight ); + + //Invoke CEikConsoleScreen's DrawCursor(); + consoleScreen->DrawCursor(); + AssertTrueL( ETrue, KECSDrawCursor ); + + //Invoke CEikConsoleScreen's HideCursor(); + consoleScreen->HideCursor(); + AssertTrueL( ETrue, KECSHideCursor ); + + //Invoke CEikConsoleScreen's Up(); + consoleScreen->Up(); + AssertTrueL( ETrue, KECSUp ); + + //Invoke CEikConsoleScreen's Down(); + consoleScreen->Down(); + AssertTrueL( ETrue, KECSDown ); + + //Invoke CEikConsoleScreen's Left(); + consoleScreen->Left(); + AssertTrueL( ETrue, KECSLeft ); + + //Invoke CEikConsoleScreen's Right(); + consoleScreen->Right(); + AssertTrueL( ETrue, KECSRight ); + + //Invoke CEikConsoleScreen's Cr(); + consoleScreen->Cr(); + AssertTrueL( ETrue, KECSCr ); + + //Invoke CEikConsoleScreen's Lf(); + consoleScreen->Lf(); + AssertTrueL( ETrue, KECSLf ); + + //Invoke CEikConsoleScreen's ScrollChars(); + TPoint vPoint( KOneHundredAndFifty, KTen ); + consoleScreen->ScrollChars( rect, vPoint ); // rect define before + AssertTrueL( ETrue, KECSScrollChars ); + + //Invoke CEikConsoleScreen's Redraw(); + consoleScreen->Redraw( rect ); // rect define before + AssertTrueL( ETrue, KECSRedraw ); + + //Invoke CEikConsoleScreen's MoveTopLeft(); + consoleScreen->MoveTopLeft( ltPoint ); // ltPoint define before + AssertTrueL( ETrue, KECSMoveTopLeft ); + + //Invoke CEikConsoleScreen's SetHistorySizeL(); + consoleScreen->SetHistorySizeL( KFifty, KFifty ); + AssertTrueL( ETrue, KECSSetHistorySizeL ); + + //Invoke CEikConsoleScreen's SetAtt(); + consoleScreen->SetAtt( KFour ); + AssertTrueL( ETrue, KECSSetAtt ); + + //Invoke CEikConsoleScreen's SetAtt(); + consoleScreen->SetAtt( KTen, KFifteen ); + AssertTrueL( ETrue, KECSSetAttOverLoad ); + + //Invoke CEikConsoleScreen's Font(); + TFontSpec fontSpec = consoleScreen->Font(); + AssertTrueL( ETrue, KECSFont ); + + //Invoke CEikConsoleScreen's SetFontL(); + consoleScreen->SetFontL( fontSpec ); + AssertTrueL( ETrue, KECSSetFontL ); + + //Invoke CEikConsoleScreen's Selection(); + TRect rectSelection = consoleScreen->Selection(); + AssertTrueL( ETrue, KECSSelection ); + + //Invoke CEikConsoleScreen's SetSelection(); + consoleScreen->SetSelection( rectSelection ); + AssertTrueL( ETrue, KECSSetSelection ); + + //Invoke CEikConsoleScreen's SelectCursor(); + consoleScreen->SelectCursor(); + AssertTrueL( ETrue, KECSSelectCursor ); + + //Invoke CEikConsoleScreen's RetrieveL(); + HBufC* selection = consoleScreen->RetrieveL( rectSelection ); + AssertTrueL( ETrue, KECSRetrieveL ); + delete selection; + + //Invoke CEikConsoleScreen's SetPureCRLF(); + consoleScreen->SetPureCRLF( CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSSetPureCRLF ); + + //Invoke CEikConsoleScreen's SetAllPrintable(); + consoleScreen->SetAllPrintable( CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSSetAllPrintable ); + + //Invoke CEikConsoleScreen's SetScrollLock(); + consoleScreen->SetScrollLock( CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSSetScrollLock ); + + //Invoke CEikConsoleScreen's SetKeepCursorInSight(); + consoleScreen->SetKeepCursorInSight( + CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KECSSetKeepCursorInSight ); + + //Invoke CEikConsoleScreen's SetScrollBarVisibilityL(); + consoleScreen->SetScrollBarVisibilityL( + CEikScrollBarFrame::EAuto, CEikScrollBarFrame::EAuto ); + AssertTrueL( ETrue, KECSSetScrollBarVisibilityL ); + + //Invoke CEikConsoleScreen's UpdateScrollBars(); + consoleScreen->UpdateScrollBars(); + AssertTrueL( ETrue, KECSUpdateScrollBars ); + + CleanupStack::PopAndDestroy( consoleScreen ); + } + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctesteikcontrolgroupcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctesteikcontrolgroupcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,595 @@ +/* +* 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 "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: Implements test bc for eik control group. +* +*/ + + +#include +#include +#include +#include +#include +#include // CEikControlGroup +#include // CEikCba +#include // RBufWriteStream +#include // CEikKeyWindow +#include // CEikMover +#include // TResourceRead +#include // CEikToolBar +#include // TEikButtonCoordinator + +#include "bctesteikcontrolgroupcase.h" +#include "bctestsubeikcontrolgroup.h" +#include "bctestsubeikmover.h" +#include "bctestsubeiktoolbar.h" +#include "bctestsubcommandobserver.h" +#include "bctestmisccontrolcontainer.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +//Constant for CEikControlGroup +_LIT( KECGEikControlGroup, "Eik control group created" ); +_LIT( KECGConstructL, "Invoke CEikControlGroup's ConstructL()" ); +_LIT( KECGAddControlL, "Invoke CEikControlGroup's AddControlL()" ); +_LIT( KECGIndexById, "Invoke CEikControlGroup's IndexById()" ); +_LIT( KECGControl, "Invoke CEikControlGroup's Control()" ); +_LIT( KECGInsertControlL, "Invoke CEikControlGroup's InsertControlL()" ); +_LIT( KECGControlArray, "Invoke CEikControlGroup's ControlArray()" ); +_LIT( KECGControlId, "Invoke CEikControlGroup's ControlId()" ); +_LIT( KECGControlById, "Invoke CEikControlGroup's ControlById()" ); +_LIT( KECGSetControlSpacing, + "Invoke CEikControlGroup's SetControlSpacing()" ); +_LIT( KECGControlSpacing, "Invoke CEikControlGroup's ControlSpacing()" ); +_LIT( KECGGetColorUseListL, + "Invoke CEikControlGroup's GetColorUseListL()" ); +_LIT( KECGHandlePointerEventL, + "Invoke CEikControlGroup's HandlePointerEventL()" ); +_LIT( KECGLayoutControls, + "Invoke CEikControlGroup's LayoutControls()" ); +_LIT( KECGSetBreadthInPixels, + "Invoke CEikControlGroup's SetBreadthInPixels()" ); +_LIT( KECGSetControlLayout, + "Invoke CEikControlGroup's SetControlLayout()" ); +_LIT( KECGSetControlsAllSameSize, + "Invoke CEikControlGroup's SetControlsAllSameSize()" ); +_LIT( KECGDeleteControl, "Invoke CEikControlGroup's DeleteControl()" ); +_LIT( KECGReset, "Invoke CEikControlGroup's Reset()" ); +_LIT( KECGWriteInternalStateL, + "Invoke CEikControlGroup's WriteInternalStateL()" ); + +//Constant for CEikKeyWindow +_LIT( KEKWEikKeyWindow, "Eik key window created" ); +_LIT( KEKWConstructL, "Invoke CEikKeyWindow's ConstructL()" ); +_LIT( KEKWHandlePointerEventL, + "Invoke CEikKeyWindow's HandlePointerEventL()" ); + +//Constant for CEikMover +_LIT( KEMEikMover, "Eik mover created" ); +_LIT( KEMConstructFromResourceL, + "Invoke CEikMover's ConstructFromResourceL" ); +_LIT( KEMText, "Eik Mover Text" ); +_LIT( KEMSetText, "Invoke CEikMover's SetText" ); +_LIT( KEMOtherText, "Other Eik Mover Text" ); +_LIT( KEMSetTextL, "Invoke CEikMover's SetTextL" ); +_LIT( KEMActive, "Invoke CEikMover's Active" ); +_LIT( KEMSetActive, "Invoke CEikMover's SetActive" ); +_LIT( KEMMinimumSize, "Invoke CEikMover's MinimumSize" ); +_LIT( KEMGetColorUseListL, "Invoke CEikMover's GetColorUseListL()" ); +_LIT( KEMHandlePointerEventL, "Invoke CEikMover's HandlePointerEventL()" ); +_LIT( KEMSetTitleLeftMargin, "Invoke CEikMover's SetTitleLeftMargin()" ); +_LIT( KEMSetFont, "Invoke CEikMover's SetFont()" ); +_LIT( KEMWriteInternalStateL, "Invoke CEikMover's WriteInternalStateL()" ); + +//Constant for CEikToolBar +_LIT( KETBEikToolBar, "Eik tool bar created" ); +_LIT( KETBConstructFromResourceL, + "Invoke CEikToolBar's ConstructFromResourceL()" ); +_LIT( KETBAddControlL, "Invoke CEikToolBar's AddControlL()" ); +_LIT( KETBAddControlLOver, "Invoke CEikToolBar's AddControlL() again" ); +_LIT( KETBDelayActivation, "Invoke CEikToolBar's DelayActivation()" ); +_LIT( KETBSetDimmed, "Invoke CEikToolBar's SetDimmed()" ); +_LIT( KETBSetBoundingRect, "Invoke CEikToolBar's SetBoundingRect()" ); +_LIT( KETBReduceRect, "Invoke CEikToolBar's ReduceRect()" ); +_LIT( KETBGetColorUseListL, "Invoke CEikToolBar's GetColorUseListL()" ); +_LIT( KETBHandlePointerEventL, "Invoke CEikToolBar's HandlePointerEventL()" ); +_LIT( KETBHandleResourceChange, + "Invoke CEikToolBar's HandleResourceChange()" ); +_LIT( KETBCoordinateButtons, + "Invoke CEikToolBar's CoordinateButtons()" ); +_LIT( KETBConstructL, "Invoke CEikToolBar's ConstructL()" ); +_LIT( KETBSetCommandObserver, + "Invoke CEikToolBar's SetCommandObserver()" ); +_LIT( KETBSetButtonStateOn, + "Invoke CEikToolBar's SetButtonStateOn()" ); +_LIT( KETBWriteInternalStateL, "Invoke CEikToolBar's WriteInternalStateL()" ); + +const TInt KZero = 0; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KThree = 3; +const TInt KFour = 4; +const TInt KFive = 5; +const TInt KTen = 10; +const TInt KTwenty = 20; +const TInt KTwentyFive = 25; +const TInt KFifty = 50; +const TInt KTwoHundred = 200; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikControlGroupCase* CBCTestEikControlGroupCase::NewL( + CBCTestMiscControlContainer* aContainer ) + { + CBCTestEikControlGroupCase* self = + new( ELeave ) CBCTestEikControlGroupCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikControlGroupCase::CBCTestEikControlGroupCase( + CBCTestMiscControlContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikControlGroupCase::~CBCTestEikControlGroupCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikControlGroupCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline7 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KTwo ), + KeyOK, + KeyOK, + + //outline8 + LeftCBA, + REP( Down, KThree ), + KeyOK, + KeyOK, + + //outline9 + LeftCBA, + REP( Down, KFour ), + KeyOK, + KeyOK, + + //outline10 + LeftCBA, + REP( Down, KFive ), + KeyOK, + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikControlGroupCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestMiscControlCmdOutline07 ) + || ( aCmd > EBCTestMiscControlCmdOutline10 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestMiscControlCmdOutline07: + TestFunctionsForEikControlGroupL(); + break; + case EBCTestMiscControlCmdOutline08: + TestFunctionsForEikKeyWindowL(); + break; + case EBCTestMiscControlCmdOutline09: + TestFunctionsForEikMoverL(); + break; + case EBCTestMiscControlCmdOutline10: + TestFunctionsForEikToolBarL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikControlGroupCase::TestFunctionsForEikControlGroupL +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::TestFunctionsForEikControlGroupL() + { + // Invoke CEikControlGroup's CEikControlGroup() + CEikControlGroup* controlGroup = new( ELeave ) CEikControlGroup(); + CleanupStack::PushL( controlGroup ); + AssertNotNullL( controlGroup, KECGEikControlGroup ); + + // Invoke CEikControlGroup's ConstructL() + controlGroup->ConstructL( CEikControlGroup::EFromTopLeft, + CEikControlGroup::ELayHorizontally ); + AssertTrueL( ETrue,KECGConstructL ); + + // Invoke CEikControlGroup's AddControlL() + CCoeControl* coeControl = new( ELeave ) CCoeControl(); + CleanupStack::PushL( coeControl ); + controlGroup->AddControlL( coeControl, KOne ); + CleanupStack::Pop( coeControl ); + AssertTrueL( ETrue, KECGAddControlL ); + + // Invoke CEikControlGroup's IndexById() + TInt index = controlGroup->IndexById( KOne ); + AssertIntL( KZero, index, KECGIndexById ); + + // Invoke CEikControlGroup's Control() + controlGroup->Control( index ); + AssertTrueL( ETrue, KECGControl ); + + // Invoke CEikControlGroup's InsertControlL() + CCoeControl* inserterControl = new( ELeave ) CCoeControl(); + TEikGroupControl ctrl; + ctrl.iControl = inserterControl; + ctrl.iId = KTwo; + controlGroup->InsertControlL( ctrl, KOne ); + AssertTrueL( ETrue, KECGInsertControlL ); + + // Invoke CEikControlGroup's ControlArray() + controlGroup->ControlArray(); + AssertTrueL( ETrue, KECGControlArray ); + + // Invoke CEikControlGroup's ControlId() + controlGroup->ControlId( inserterControl ); + AssertTrueL( ETrue, KECGControlId ); + + // Invoke CEikControlGroup's ControlById() + controlGroup->ControlById( KOne ); + AssertTrueL( ETrue, KECGControlById ); + + + // Invoke CEikControlGroup's SetControlSpacing() + controlGroup->SetControlSpacing( KThree, KThree ); + AssertTrueL( ETrue, KECGSetControlSpacing ); + + // Invoke CEikControlGroup's ControlSpacing() + TInt vSpacing; + TInt hSpacing; + controlGroup->ControlSpacing( vSpacing, hSpacing ); + AssertTrueL( ETrue, KECGControlSpacing ); + + // Invoke CEikControlGroup's GetColorUseListL() + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KFour ); + CleanupStack::PushL( colorUseList ); + controlGroup->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KECGGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + // Invoke CEikControlGroup's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + controlGroup->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KECGHandlePointerEventL ); + + // Invoke CEikControlGroup's LayoutControls() + controlGroup->LayoutControls(); + AssertTrueL( ETrue, KECGLayoutControls ); + + // Invoke CEikControlGroup's SetBreadthInPixels() + controlGroup->SetBreadthInPixels( KTwo ); + AssertTrueL( ETrue, KECGSetBreadthInPixels ); + + // Invoke CEikControlGroup's SetControlLayout() + controlGroup->SetControlLayout( CEikControlGroup::EFromTopLeft, + CEikControlGroup::ELayHorizontally ); + AssertTrueL( ETrue, KECGSetControlLayout ); + + // Invoke CEikControlGroup's SetControlsAllSameSize() + controlGroup->SetControlsAllSameSize(); + AssertTrueL( ETrue, KECGSetControlsAllSameSize ); + + // Invoke CEikControlGroup's DeleteControl() + controlGroup->DeleteControl( KZero, KOne ); + AssertTrueL( ETrue, KECGDeleteControl ); + + // Invoke CEikControlGroup's Reset() + controlGroup->Reset(); + AssertTrueL( ETrue, KECGReset ); + + CBCTestSubEikControlGroup* subEikControlGroup = + static_cast ( controlGroup ); + + //Invoke CEikControlGroup's WriteInternalStateL(); + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + subEikControlGroup->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KECGWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + CleanupStack::PopAndDestroy( controlGroup ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikControlGroupCase::TestFunctionsForEikKeyWindowL +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::TestFunctionsForEikKeyWindowL() + { + CEikKeyWindow* eikKeyWindow = new( ELeave ) CEikKeyWindow(); + CleanupStack::PushL( eikKeyWindow ); + AssertNotNullL( eikKeyWindow, KEKWEikKeyWindow ); + + // Invoke CEikKeyWindow's ConstructL() + TPoint point( KTen, KTen ); + TSize ss( KFifty, KFifty ); + eikKeyWindow->ConstructL( point, ss, KFive, KTen, KThree, KThree, + CEikKeyWindow::EHorizontal ); + AssertTrueL( ETrue, KEKWConstructL ); + + // Invoke CEikKeyWindow's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + eikKeyWindow->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KEKWHandlePointerEventL ); + + CleanupStack::PopAndDestroy ( eikKeyWindow ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikControlGroupCase::TestFunctionsForEikMoverL +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::TestFunctionsForEikMoverL() + { + // Invoke CEikMover's CEikMover() + CEikMover* eikMover = new( ELeave ) CEikMover(); + CleanupStack::PushL( eikMover ); + AssertNotNullL( eikMover, KEMEikMover ); + + // Invoke CEikMover's ConstructFromResourceL() + TResourceReader reader; + iContainer->GetCoeEnv()->CreateResourceReaderLC( + reader, R_BCTESTMISCCONTROL_EIK_MOVER_DIALOG ); + eikMover->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KEMConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + // Invoke CEikMover's SetText() + TBufC statckbuf( KEMText ); + HBufC* heapBuf = statckbuf.AllocL(); + eikMover->SetText( heapBuf ); + AssertTrueL( ETrue, KEMSetText ); + + // Invoke CEikMover's SetTextL() + TBufC bufC( KEMOtherText ); + eikMover->SetTextL( bufC ); + AssertTrueL( ETrue, KEMSetTextL ); + + // Invoke CEikMover's Active() + TBool flag = eikMover->Active(); + AssertTrueL( ETrue, KEMActive ); + + // Invoke CEikMover's SetActive() + eikMover->SetActive( EFalse ); + eikMover->SetActive( ETrue ); + AssertTrueL( ETrue, KEMSetActive ); + + // Invoke CEikMover's MinimumSize() + eikMover->MinimumSize(); + AssertTrueL( ETrue, KEMMinimumSize ); + + // Invoke CEikMover's GetColorUseListL() + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KFour ); + CleanupStack::PushL( colorUseList ); + eikMover->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KEMGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + // Invoke CEikMover's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + eikMover->HandlePointerEventL( pointEvent ); + pointEvent.iType = TPointerEvent::EButton1Up; + eikMover->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KEMHandlePointerEventL ); + + // Invoke CEikMover's SetTitleLeftMargin() + eikMover->SetTitleLeftMargin( KFive ); + AssertTrueL( ETrue, KEMSetTitleLeftMargin ); + + // Invoke CEikMover's SetFont() + CEikonEnv* eikEnv = static_cast ( iContainer->GetCoeEnv() ); + CleanupStack::PushL( eikEnv ); + const CFont* ff = eikEnv->TitleFont(); + eikMover->SetFont( ff ); + AssertTrueL( ETrue, KEMSetFont ); + CleanupStack::Pop( eikEnv ); + + CBCTestSubEikMover* subEikMover = + static_cast ( eikMover ); + + //Invoke CEikMover's WriteInternalStateL(); + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + subEikMover->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KEMWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + CleanupStack::PopAndDestroy( eikMover ); + + } + +// --------------------------------------------------------------------------- +// CBCTestEikControlGroupCase::TestFunctionsForEikToolBarL +// --------------------------------------------------------------------------- +// +void CBCTestEikControlGroupCase::TestFunctionsForEikToolBarL() + { + CEikToolBar* toolBar = new( ELeave ) CEikToolBar(); + CleanupStack::PushL( toolBar ); + AssertNotNullL( toolBar, KETBEikToolBar ); + + TResourceReader reader; + iContainer->GetCoeEnv()->CreateResourceReaderLC( + reader, R_BCTESTMISCCONTROL_EIK_TOOL_BAR ); + toolBar->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KETBConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + // Invoke CEikToolBar's AddControlL() + CCoeControl* coeControl = new( ELeave ) CCoeControl(); + CleanupStack::PushL( coeControl ); + toolBar->AddControlL( coeControl, KOne ); + CleanupStack::Pop( coeControl ); + AssertTrueL( ETrue, KETBAddControlL ); + + // Invoke CEikToolBar's AddControlL() + CEikButtonBase* buttonBase = new( ELeave ) CEikButtonBase(); + TEikGroupControl ctrl; + ctrl.iControl = buttonBase; + ctrl.iId = KTwo; + toolBar->AddControlL( ctrl ); + AssertTrueL( ETrue, KETBAddControlLOver ); + + // Invoke CEikToolBar's SetButtonStateOn() + toolBar->SetButtonStateOn( KTwo, EFalse ); + toolBar->SetButtonStateOn( KTwo, ETrue ); + AssertTrueL( ETrue, KETBSetButtonStateOn ); + + // Invoke CEikToolBar's DelayActivation() + toolBar->DelayActivation(); + AssertTrueL( ETrue, KETBDelayActivation ); + + // Invoke CEikToolBar's SetDimmed() + toolBar->SetDimmed( ETrue ); + AssertTrueL( ETrue, KETBSetDimmed ); + + // Invoke CEikToolBar's SetBoundingRect() + TRect rect( KFive, KFive, KFifty, KFifty ); + toolBar->SetBoundingRect( rect ); + AssertTrueL( ETrue, KETBSetBoundingRect ); + + // Invoke CEikToolBar's ReduceRect() + toolBar->ReduceRect( rect ); + AssertTrueL( ETrue, KETBReduceRect ); + + // Invoke CEikToolBar's GetColorUseListL() + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( KFour ); + CleanupStack::PushL( colorUseList ); + toolBar->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KETBGetColorUseListL ); + colorUseList->Reset(); + CleanupStack::PopAndDestroy( colorUseList ); + + // Invoke CEikToolBar's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + toolBar->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KETBHandlePointerEventL ); + + // Invoke CEikToolBar's HandleResourceChange() + toolBar->HandleResourceChange( KZero ); + AssertTrueL( ETrue, KETBHandleResourceChange ); + + // Invoke CEikToolBar's CoordinateButtons() + TEikButtonCoordinator* ebc = new( ELeave ) TEikButtonCoordinator; + CleanupStack::PushL( ebc ); + toolBar->CoordinateButtons( KOne, KZero, ebc ); + AssertTrueL( ETrue, KETBCoordinateButtons ); + CleanupStack::PopAndDestroy( ebc ); + + CleanupStack::PopAndDestroy( toolBar ); + toolBar = NULL; + + toolBar = new( ELeave ) CEikToolBar(); + CleanupStack::PushL( toolBar ); + + // Invoke CEikToolBar's ConstructL() + TBCTestSubCommandObserver* obs = new( ELeave ) TBCTestSubCommandObserver; + CleanupStack::PushL( obs ); + toolBar->ConstructL( obs, R_BCTESTMISCCONTROL_EIK_TOOL_BAR, rect ); + AssertTrueL( ETrue, KETBConstructL ); + + // Invoke CEikToolBar's SetCommandObserver() + toolBar->SetCommandObserver( obs ); + AssertTrueL( ETrue, KETBSetCommandObserver ); + + CBCTestSubEikToolBar* subEikToolBar = + static_cast ( toolBar ); + + //Invoke CEikToolBar's WriteInternalStateL(); + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + subEikToolBar->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KETBWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + CleanupStack::PopAndDestroy( obs ); + CleanupStack::PopAndDestroy( toolBar ); + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,62 @@ +/* +* 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 "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: Implements main application class. +* +*/ + + +// INCLUDE FILES +#include "bctestmisccontrolapp.h" +#include "bctestmisccontroldocument.h" +#include + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestMiscControlApp::AppDllUid() +// Returns application UID. +// --------------------------------------------------------------------------- +// +TUid CBCTestMiscControlApp::AppDllUid() const + { + return KUidBCTestMiscControl; + } + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestMiscControlApp::CreateDocumentL() +// Creates CBCTestMiscControlDocument object. +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestMiscControlApp::CreateDocumentL() + { + return CBCTestMiscControlDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestMiscControlApp. +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestMiscControlApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication( NewApplication ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 "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: Implements test bc for misc control appui. +* +*/ + +#include +#include + +#include "bctestmisccontrolappui.h" +#include "bctestmisccontrol.hrh" +#include "bctestmisccontrolview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestMiscControlAppUi::CBCTestMiscControlAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestMiscControlView* view = CBCTestMiscControlView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestMiscControlAppUi::~CBCTestMiscControlAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestMiscControlAppUi::~CBCTestMiscControlAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestMiscControlAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EEikCmdExit: + case EAknSoftkeyExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,123 @@ +/* +* 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 "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: Implements test bc for misc control container. +* +*/ + + +#include "bctestmisccontrolcontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscControlContainer::CBCTestMiscControlContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMiscControlContainer::~CBCTestMiscControlContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestMiscControlContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestMiscControlContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestMiscControlContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestMiscControlContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlContainer::GetCoeEnv +// --------------------------------------------------------------------------- +// +CCoeEnv* CBCTestMiscControlContainer::GetCoeEnv() + { + return iCoeEnv; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontroldocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontroldocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Implements test bc for misc control document. +* +*/ + + +// INCLUDE FILES +#include "bctestmisccontroldocument.h" +#include "bctestmisccontrolappUi.h" + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CBCTestMiscControlDocument* CBCTestMiscControlDocument +// ::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestMiscControlDocument* CBCTestMiscControlDocument + ::NewL( CEikApplication& aApp ) + { + CBCTestMiscControlDocument* self = + new( ELeave ) CBCTestMiscControlDocument( aApp ); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlDocument::~CBCTestMiscControlDocument() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestMiscControlDocument::~CBCTestMiscControlDocument() + { + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlDocument::CBCTestMiscControlDocument( CEikApplication& ) +// Overload constructor. +// --------------------------------------------------------------------------- +// +CBCTestMiscControlDocument::CBCTestMiscControlDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// --------------------------------------------------------------------------- +// CEikAppUi* CBCTestMiscControlDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestMiscControlDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestMiscControlAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestmisccontrolview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,147 @@ +/* +* 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 "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: Implements test bc for misc control view. +* +*/ + + +#include +#include + +#include "bctestmisccontrol.hrh" +#include "bctestmisccontrolview.h" +#include "bctestmisccontrolcontainer.h" +#include "bctestutil.h" +#include "bctesteikcaptionedcontrolcase.h" +#include "bctesteikconsolecontrolcase.h" +#include "bctesteikcontrolgroupcase.h" + +//Constant +_LIT( KEikCaptionedControlCaseComment, "Eik captioned control case" ); +_LIT( KEikConsoleControlCaseComment, "Eik console control case" ); +_LIT( KEikControlGroupCaseComment, "Eik control group case" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscControlView* CBCTestMiscControlView::NewL() + { + CBCTestMiscControlView* self = new ( ELeave ) CBCTestMiscControlView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscControlView::CBCTestMiscControlView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlView::ConstructL() + { + BaseConstructL( R_BCTESTMISCCONTROL_VIEW ); + + iContainer = new( ELeave ) CBCTestMiscControlContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( + CBCTestEikCaptionedControlCase::NewL( iContainer ), + KEikCaptionedControlCaseComment ); + + iTestUtil->AddTestCaseL( + CBCTestEikConsoleControlCase::NewL( iContainer ), + KEikConsoleControlCaseComment ); + + iTestUtil->AddTestCaseL( + CBCTestEikControlGroupCase::NewL( iContainer ), + KEikControlGroupCaseComment ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMiscControlView::~CBCTestMiscControlView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestMiscControlView::Id() const + { + return KBCTestMiscControlViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestMiscControlView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestMiscControlView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EBCTestMiscControlCmdAutotest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestMiscControlCmdEmptyOutline && + aCommand < EBCTestMiscControlCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikcaptionedcontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikcaptionedcontrol.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: Invoke eik captioned control's protected APIs. +* +*/ + + +#include "bctestsubeikcaptionedcontrol.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikCaptionedControl::CBCTestSubEikCaptionedControl() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikCaptionedControl::~CBCTestSubEikCaptionedControl() + { + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikconsolecontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikconsolecontrol.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: Invoke eik console control's protected APIs. +* +*/ + + +#include "bctestsubeikconsolecontrol.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikConsoleControl::CBCTestSubEikConsoleControl() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikConsoleControl::~CBCTestSubEikConsoleControl() + { + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikcontrolgroup.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikcontrolgroup.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: Invoke eik control group's protected APIs. +* +*/ + + +#include "bctestsubeikcontrolgroup.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikControlGroup::CBCTestSubEikControlGroup() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikControlGroup::~CBCTestSubEikControlGroup() + { + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikmover.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestmisccontrol/src/bctestsubeikmover.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: Invoke eik mover's protected APIs. +* +*/ + + +#include "bctestsubeikmover.h" +#include "bctestmisccontrol.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikMover::CBCTestSubEikMover() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikMover::~CBCTestSubEikMover() + { + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/30x40.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/30x40.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/30x40m.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/30x40m.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/Testimage1.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/Testimage1.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/Testimage1Mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/Testimage1Mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteconfirmationicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteconfirmationicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteconfirmationiconm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteconfirmationiconm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteerroricon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteerroricon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteerroriconm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteerroriconm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteinformationicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteinformationicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteinformationiconm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteinformationiconm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotepermanenticon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotepermanenticon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotepermanenticonm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotepermanenticonm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteprogressicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteprogressicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteprogressiconm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnoteprogressiconm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewaiticon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewaiticon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewaiticonm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewaiticonm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewarningicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewarningicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewarningiconm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/bctestnotewarningiconm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/indicato.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/indicato.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/indicatom.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/indicatom.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/lshellicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/lshellicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/lshelliconm.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/lshelliconm.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/photo.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/photo.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/photom.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/photom.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/qgn_indi_attach_audio.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/qgn_indi_attach_audio.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/qgn_indi_attach_audio_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/datasrc/qgn_indi_attach_audio_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bctestnote.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bctestnote.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,120 @@ +/* +* 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 "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: project specification file for the bctestnote +* +*/ + + +TARGET bctestnote.exe +TARGETTYPE exe +UID 0x0 0x20004749 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestnote.rss + +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG sc + +SOURCEPATH ../src +SOURCE bctestnoteapp.cpp +SOURCE bctestnotedocument.cpp +SOURCE bctestnoteappui.cpp +SOURCE bctestnoteview.cpp +SOURCE bctestnotecontainer.cpp +SOURCE bctestnotewrappercase.cpp +SOURCE bctestwaitdialogcase.cpp +SOURCE bctestsubstaticnote.cpp +SOURCE bcteststaticnotecase.cpp +SOURCE bctesteikinfodialogcase.cpp +SOURCE bctestsubeikprogressinfo.cpp +SOURCE bctesteikprogressinfocase.cpp +SOURCE bctestsubwaitnotewrapper.cpp +SOURCE bctestwaitnotewrappercase.cpp +SOURCE bctestsubnotedialog.cpp +SOURCE bctestnotedialogcase.cpp +SOURCE bctestnotecontrolcase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY AknIcon.lib +LIBRARY AknSkins.lib +LIBRARY avkon.lib +LIBRARY apparc.lib +LIBRARY aknnotify.lib +LIBRARY apgrfx.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY cone.lib +LIBRARY egul.lib +LIBRARY euser.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY eikctl.lib +LIBRARY eikdlg.lib +LIBRARY eikcdlg.lib +LIBRARY estor.lib + +// Creates Mbm file. +START BITMAP bctestnote.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../datasrc +SOURCE c12 bctestnoteerroricon.bmp +SOURCE c12 bctestnoteerroriconm.bmp +SOURCE c12 bctestnotewarningicon.bmp +SOURCE c12 bctestnotewarningiconm.bmp +SOURCE c12 bctestnoteinformationicon.bmp +SOURCE c12 bctestnoteinformationiconm.bmp +SOURCE c12 bctestnoteconfirmationicon.bmp +SOURCE c12 bctestnoteconfirmationiconm.bmp +SOURCE c12 bctestnotewaiticon.bmp +SOURCE c12 bctestnotewaiticonm.bmp +SOURCE c12 bctestnotepermanenticon.bmp +SOURCE c12 bctestnotepermanenticonm.bmp +SOURCE c12 bctestnoteprogressicon.bmp +SOURCE c12 bctestnoteprogressiconm.bmp +source c8 indicato.bmp +source c8 indicatom.bmp +source c8 testimage1.bmp +source c8 testimage1mask.bmp +source c8 qgn_indi_attach_audio.bmp +source c8 qgn_indi_attach_audio_mask.bmp +source c8 lshellicon.bmp +source c8 lshelliconm.bmp +source c8 photo.bmp +source c8 photom.bmp +source c8 30x40.bmp +source c8 30x40m.bmp +END + +START RESOURCE ../group/bctestnote_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bctestnote.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bctestnote.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1506 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME NOTE + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestnote.hrh" +#include "bctestnote.loc" + +// CONSTANTS +#define BCTESTNOTE_IMAGE_MASK 0xffff + +#define BCTESTNOTE_BMPFILE_NAME "\\resource\\apps\\bctestnote.mbm" + +//---------------------------------------------------------------------------- +// +// RESOURCE DEFINITIONS +// +//---------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//---------------------------------------------------------------------------- +// +// TBUF16 +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctestnote_buf; + } + +//---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +//---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + status_pane = R_AVKON_STATUS_PANE_LAYOUT_USUAL; + menubar = r_bctestnote_menubar; + cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; + } + +//---------------------------------------------------------------------------- +// +// Provide Caption and Icon Info for Scalable UI +// +//---------------------------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestnote_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_view +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestnote_view + { + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menubar +// MenuBar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestnote_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestnote_menu; + txt = qtn_bctestnote_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_view_menu +// Menu pane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdNoteWrapper; + cascade = r_bctestnote_menu_from_notewrapper_cascade; + txt = qtn_bctestnote_menu_notewrappers; + }, + MENU_ITEM + { + command = EBCTestNoteCmdWaitDialog; + cascade = r_bctestnote_menu_from_waitdialog_cascade; + txt = qtn_bctestnote_menu_waitdialog; + }, + MENU_ITEM + { + command = EBCTestNoteCmdStaticNote; + cascade = r_bctestnote_menu_from_staticnote_cascade; + txt = qtn_bctestnote_menu_staticnote; + }, + MENU_ITEM + { + command = EBCTestNoteCmdEikInfoDialog; + cascade = r_bctestnote_menu_from_eikinfodialog_cascade; + txt = qtn_bctestnote_menu_eikinfodialog; + }, + MENU_ITEM + { + command = EBCTestNoteCmdEikProgessInfo; + cascade = r_bctestnote_menu_from_eikprogressinfo_cascade; + txt = qtn_bctestnote_menu_eikprogressinfo; + }, + MENU_ITEM + { + command = EBCTestNoteCmdWaitNoteWrapper; + cascade = r_bctestnote_menu_from_waitnotewrapper_cascade; + txt = qtn_bctestnote_menu_waitnotewrapper; + }, + MENU_ITEM + { + command = EBCTestNoteCmdNoteDialog; + cascade = r_bctestnote_menu_from_notedialog_cascade; + txt = qtn_bctestnote_menu_notedialog; + }, + MENU_ITEM + { + command = EBCTestNoteCmdNoteControl; + cascade = r_bctestnote_menu_from_notecontrol_cascade; + txt = qtn_bctestnote_menu_notecontrol; + }, + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestnote_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestnote_menu_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_notewrapper_cascade +// Sub mune-pane of "Note wrapper" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_notewrapper_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline01; + txt = qtn_bctestnote_menu_outline(01); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline02; + txt = qtn_bctestnote_menu_outline(02); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline03; + txt = qtn_bctestnote_menu_outline(03); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline04; + txt = qtn_bctestnote_menu_outline(04); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline05; + txt = qtn_bctestnote_menu_outline(05); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline06; + txt = qtn_bctestnote_menu_outline(06); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_waitdialog_cascade +// Sub menu-pane of "Wait dialog" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_waitdialog_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline07; + txt = qtn_bctestnote_menu_outline(07); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline08; + txt = qtn_bctestnote_menu_outline(08); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline09; + txt = qtn_bctestnote_menu_outline(09); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_staticnote_cascade +// Sub menu-pane of "Static note" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_staticnote_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline10; + txt = qtn_bctestnote_menu_outline(10); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline11; + txt = qtn_bctestnote_menu_outline(11); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_eikinfodialog_cascade +// Sub menu-pane of "Eik info dialog" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_eikinfodialog_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline12; + txt = qtn_bctestnote_menu_outline(12); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_eikprogressinfo_cascade +// Sub menu-pane "Eik progress info" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_eikprogressinfo_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline13; + txt = qtn_bctestnote_menu_outline(13); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline14; + txt = qtn_bctestnote_menu_outline(14); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_waitnotewrapper_cascade +// Sub menu-pane of "Waitnotewrapper" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_waitnotewrapper_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline15; + txt = qtn_bctestnote_menu_outline(15); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline16; + txt = qtn_bctestnote_menu_outline(16); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_notedialog_cascade +// Sub menu-pane of "Notedialog" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_notedialog_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline17; + txt = qtn_bctestnote_menu_outline(17); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline18; + txt = qtn_bctestnote_menu_outline(18); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline19; + txt = qtn_bctestnote_menu_outline(19); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_menu_from_notecontrol_cascade +// Sub menu-pane of "Notecontrol" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnote_menu_from_notecontrol_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestNoteCmdOutline20; + txt = qtn_bctestnote_menu_outline(20); + }, + MENU_ITEM + { + command = EBCTestNoteCmdOutline21; + txt = qtn_bctestnote_menu_outline(21); + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_text_label_title +// Text which is used by label +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_text_label_title + { + buf = qtn_bctestnote_label_title; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_text_label_operation +// Text which is used by label +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_text_label_operation + { + buf = qtn_bctestnote_label_operation; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_text_status_pane_title?? +// Text which is used on status pane +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_text_status_pane_title_number + { + buf = qtn_bctestnote_menu_outline_number; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_global_??_note_text +// Text which is used on global note. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_global_general_note_text + { + buf = qtn_bctestnote_global_gen_text; + } + +RESOURCE TBUF256 r_bctestnote_global_warning_note_text + { + buf = qtn_bctestnote_global_war_text; + } + +RESOURCE TBUF256 r_bctestnote_global_confirmation_note_text + { + buf = qtn_bctestnote_global_con_text; + } + +RESOURCE TBUF256 r_bctestnote_global_error_note_text + { + buf = qtn_bctestnote_global_err_text; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_priority_global_error/warning_text +// Text which is used on global note for priority. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_priority_global_error_text + { + buf = qtn_bctestnote_prty_gbl_err_text; + } + +RESOURCE TBUF256 r_bctestnote_priority_global_warning_text + { + buf = qtn_bctestnote_prty_gbl_war_text; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_other_application_name +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_other_application_name + { + buf = qtn_bctestnote_other_app_name; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_perm_note_label +// Label of permanent note. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_perm_note_label + { + buf = qtn_bctestnote_perm_label; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_error_note +// For error note. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_error_note + { + flags = EAknErrorNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdErrorNote; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_error_singular; + plural_label = qtn_bctestnote_error_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnoteerroricon; + imagemask = EMbmBctestnoteBctestnoteerroriconm; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_warning_note +// For warning note. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_warning_note + { + flags = EAknWarningNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdWarningNote; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_warning_singular; + plural_label = qtn_bctestnote_warning_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnotewarningicon; + imagemask = EMbmBctestnoteBctestnotewarningicon; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_information_note +// For information note. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_information_note + { + flags = EAknInformationNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdInformationNote; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_inf_singular; + plural_label = qtn_bctestnote_inf_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnoteinformationicon; + imagemask = EMbmBctestnoteBctestnoteinformationiconm; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_confirmation_note +// For confirmation note. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_confirmation_note + { + flags = EAknConfirmationNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdConfirmationNote; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_cnf_singular; + plural_label = qtn_bctestnote_cnf_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnoteconfirmationicon; + imagemask = EMbmBctestnoteBctestnoteconfirmationiconm; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_progress_note +// For progress note. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_progress_note + { + flags = EAknProgressNoteFlags; + buttons = r_bctestnote_softkeys_ok_cancel; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdProgressNote; + control = AVKON_NOTE + { + layout = EProgressLayout; + singular_label = qtn_bctestnote_progress_singular; + plural_label = qtn_bctestnote_progress_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnoteprogressicon; + imagemask = EMbmBctestnoteBctestnoteprogressiconm; + }; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestnote_dynamic_text +// For Dynamic text. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_dynamic_text + { + flags = EAknDialogGenericNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdDynamicText; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_dym_text_singular; + plural_label = qtn_bctestnote_dym_text_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnoteinformationicon; + imagemask = EMbmBctestnoteBctestnoteinformationiconm; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_no_icon +// No graphic icon. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_no_icon + { + flags = EAknDialogGenericNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdNoImageNote; + control = AVKON_NOTE + { + layout = ENoteWithImageLayout; + singular_label = qtn_bctestnote_cnf_singular; + plural_label = qtn_bctestnote_cnf_plural; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_image_note +// For note with image. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_image_note + { + flags = EAknDialogGenericNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdImageNote; + control = AVKON_NOTE + { + layout = ENoteWithImageLayout; + singular_label = qtn_bctestnote_image_singular; + plural_label = qtn_bctestnote_image_plural; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnotePhoto; + imagemask = EMbmBctestnotePhotom; + iconfile = BCTESTNOTE_BMPFILE_NAME; + iconid = EMbmBctestnoteIndicato; //EMbmAvkonIndicato; + iconmask = EMbmBctestnoteIndicatom; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_wait_note_wrapper +// Wait note wrapper. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_wait_note_wrapper + { + flags = EAknWaitNoteFlags; + buttons = R_AVKON_SOFTKEYS_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdWaitNote; + control= AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_bctestnote_wait_prompt; + imagefile = AVKON_BITMAP_FILE; + imageid = EMbmAvkonQgn_note_voice; + imagemask = EMbmAvkonQgn_note_voice_mask; + animation = R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_wait_note_softkey_cancel +// Wait note with softkey Cancel. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_wait_note_softkey_cancel + { + flags = EAknWaitNoteFlags; + buttons = R_AVKON_SOFTKEYS_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdWaitNote; + control= AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_bctestnote_wait_prompt; + imagefile = AVKON_BITMAP_FILE; + imageid = EMbmAvkonQgn_note_voice; + imagemask = EMbmAvkonQgn_note_voice_mask; + animation = R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_wait_note_softkey_ok_back +// Wait note with softkey Ok_Back. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_wait_note_softkey_ok_back + { + flags = EAknWaitNoteFlags; + buttons = R_AVKON_SOFTKEYS_OK_BACK; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdWaitNote; + control= AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_bctestnote_wait_prompt; + imagefile = AVKON_BITMAP_FILE; + imageid = EMbmAvkonQgn_note_voice; + imagemask = EMbmAvkonQgn_note_voice_mask; + animation = R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestnote_wait_note_softkey_empty +// Wait note with softkey empty. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_wait_note_softkey_empty + { + flags = EAknWaitNoteFlags; + buttons = R_AVKON_SOFTKEYS_EMPTY; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdWaitNote; + control= AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_bctestnote_wait_prompt; + imagefile = AVKON_BITMAP_FILE; + imageid = EMbmAvkonQgn_note_sml; + imagemask = EMbmAvkonQgn_note_sml_mask; + animation = R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_priority_local_error_note +// Error local note for priority test. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_priority_local_error_note + { + flags = EAknErrorNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdPriorityLocalError; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_prty_loc_err_text; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnoteerroricon; + imagemask = EMbmBctestnoteBctestnoteerroriconm; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_priority_local_warning_note +// Warning local note for priority test. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_priority_local_warning_note + { + flags = EAknWarningNoteFlags; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdPriorityLocalWarning; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = qtn_bctestnote_prty_loc_war_text; + imagefile = BCTESTNOTE_BMPFILE_NAME; + imageid = EMbmBctestnoteBctestnotewarningicon; + imagemask = EMbmBctestnoteBctestnotewarningiconm; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_tone_list_item +// For tone list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestnote_wait_note_for_aknwaitdialog + { + flags = EAknWaitNoteFlags; + buttons = R_AVKON_SOFTKEYS_CANCEL; + items= + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteCtrlIdWaitNote; + control= AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_bctestnote_text_for_aknwaitdialog; + imagefile = AVKON_BITMAP_FILE; + imageid = EMbmAvkonQgn_note_voice; + imagemask = EMbmAvkonQgn_note_voice_mask; + animation =R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctest_for_progressinfo +// For progressinfo. +// +//---------------------------------------------------------------------------- +// +RESOURCE PROGRESSINFO r_bctest_for_progressinfo + { + text_type = 0; + splits_in_block = 0; + finalval = 200; + width = 120; + height = 10; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_tone_list_item +// For tone list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_tone_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_error_tone; + }, + LBUF + { + txt = qtn_bctestnote_warning_tone; + }, + LBUF + { + txt = qtn_bctestnote_confirmation_tone; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_general_list_item +// For general list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_general_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_error_note; + }, + LBUF + { + txt = qtn_bctestnote_warning_note; + }, + LBUF + { + txt = qtn_bctestnote_information_note; + }, + LBUF + { + txt = qtn_bctestnote_confirmation_note; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_animation_list_item +// For animation list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_animation_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_wait_note; + }, + LBUF + { + txt = qtn_bctestnote_progress_note; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_twolabel_list_item +// For twolabel list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_twolabels_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_singular_label; + }, + LBUF + { + txt = qtn_bctestnote_plural_label; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_global_note_list_item +// For global note list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_global_note_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_global_general; + }, + LBUF + { + txt = qtn_bctestnote_global_warning; + }, + LBUF + { + txt = qtn_bctestnote_global_confirmat; + }, + LBUF + { + txt = qtn_bctestnote_global_error; + }, + LBUF + { + txt = qtn_bctestnote_global_charging; + }, + LBUF + { + txt = qtn_bctestnote_global_not_charg; + }, + LBUF + { + txt = qtn_bctestnote_global_btry_full; + }, + LBUF + { + txt = qtn_bctestnote_global_btry_low; + }, + LBUF + { + txt = qtn_bctestnote_global_recha_btry; + }, + LBUF + { + txt = qtn_bctestnote_global_progress; + } + }; + } + + + +//---------------------------------------------------------------------------- +// +// r_bctestnote_priority_note_list_item +// For priority of note list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_priority_note_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_local_local; + }, + LBUF + { + txt = qtn_bctestnote_global_global; + }, + LBUF + { + txt = qtn_bctestnote_local_global; + }, + LBUF + { + txt = qtn_bctestnote_global_local; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestnote_wait_note_list_item +// For priority of note list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_wait_note_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_fast; + }, + LBUF + { + txt = qtn_bctestnote_medium; + }, + LBUF + { + txt = qtn_bctestnote_slow; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_progress_note_list_item +// For priority of note list item. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_progress_note_list_item + { + items = + { + LBUF + { + txt = qtn_bctestnote_progress_increase_1; + }, + LBUF + { + txt = qtn_bctestnote_progress_increase_2; + }, + LBUF + { + txt = qtn_bctestnote_progress_set_1; + }, + LBUF + { + txt = qtn_bctestnote_progress_set_2; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_softkeys_cancel +// For Softkey of wait note. +// +//---------------------------------------------------------------------------- +// +RESOURCE CBA r_bctestnote_softkeys_ok_cancel + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeySelect; + txt = qtn_bctestnote_softkey_ok; + }, + CBA_BUTTON + { + id = EAknSoftkeyCancel; + txt = qtn_bctestnote_softkey_cancel; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_confirmationnote_text +// For Note Wrappers confirmation note. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_confirmationnote_text + { + buf = qtn_bctestnote_confirmationnote_text; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_waringnote_text +// For Note Wrappers waring query. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_warningnote_text + { + buf = qtn_bctestnote_warningnote_text; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_errornote_text +// For Note Wrappers error query. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_errornote_text + { + buf = qtn_bctestnote_errornote_text; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_informationnote_text +// For Note Wrappers information query. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestnote_informationnote_text + { + buf = qtn_bctestnote_informationnote_text; + } + +RESOURCE TBUF256 r_bctestnote_setpriority_label + { + buf = qtn_bctestnote_setpriority_label; + } + +RESOURCE TBUF256 r_bctestnote_setsoftkey_label + { + buf = qtn_bctestnote_setsoftkey_label; + } + +RESOURCE TBUF256 r_bctestnote_setgraphic_label + { + buf = qtn_bctestnote_setgraphic_label; + } + +RESOURCE TBUF256 r_bctestnote_setanimation_label + { + buf = qtn_bctestnote_setanimation_label; + } + +RESOURCE TBUF256 r_bctestnote_progresssetcurrentlabell_label + { + buf = qtn_bctestnote_progresssetcurrentlabell_label; + } + +RESOURCE TBUF256 r_bctestnote_cancelnotel_text + { + buf = qtn_bctestnote_cancelnotel_text; + } + +RESOURCE TBUF256 r_bctestnote_text_current_label + { + buf = qtn_bctestnote_text_current_label; + } + +RESOURCE TBUF256 r_bctestnote_text_current_label_deffrent + { + buf = qtn_bctestnote_text_current_label_deffrent; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalinformationnote_text + { + buf = qtn_bctestnote_shownotel_globalinformationnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalwarningnote_text + { + buf = qtn_bctestnote_shownotel_globalwarningnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalconfirmationnote_text + { + buf = qtn_bctestnote_shownotel_globalconfirmationnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalerrornote_text + { + buf = qtn_bctestnote_shownotel_globalerrornote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalchargingnote_text + { + buf = qtn_bctestnote_shownotel_globalchargingnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalwaitnote_text + { + buf = qtn_bctestnote_shownotel_globalwaitnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalpermanentnote_text + { + buf = qtn_bctestnote_shownotel_globalpermanentnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalnotchargingnote_text + { + buf = qtn_bctestnote_shownotel_globalnotchargingnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalbatteryfullnote_text + { + buf = qtn_bctestnote_shownotel_globalbatteryfullnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalbatterylownote_text + { + buf = qtn_bctestnote_shownotel_globalbatterylownote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalrechargebatterynote_text + { + buf = qtn_bctestnote_shownotel_globalrechargebatterynote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_globalswitchingoffnote_text + { + buf = qtn_bctestnote_shownotel_globalswitchingoffnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_cancelglobalnote_text + { + buf = qtn_bctestnote_shownotel_cancelglobalnote_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_empty_text + { + buf = qtn_bctestnote_shownotel_empty_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_5line_text + { + buf = qtn_bctestnote_shownotel_5line_text; + } + +RESOURCE TBUF256 r_bctestnote_shownotel_5line_over_text + { + buf = qtn_bctestnote_shownotel_5line_over_text; + } + +RESOURCE TBUF256 r_bctestnote_text_current_empty_label + { + buf = qtn_bctestnote_text_current_empty_label; + } + +RESOURCE TBUF256 r_bctestnote_text_current_5line_label + { + buf = qtn_bctestnote_text_current_5line_label; + } + +RESOURCE TBUF256 r_bctestnote_text_current_5line_over_label + { + buf = qtn_bctestnote_text_current_5line_over_label; + } + +RESOURCE TBUF256 r_bctestnote_text_gw_empty_softkeys + { + buf = qtn_bctestnote_text_gw_empty_softkeys; + } + +RESOURCE AKN_NOTE_WRAPPER r_bctestnote_wrapper + { + resId = r_bctestnote_information_note; + timeout = 1500000; //see aknnotedialog.h CAknNoteDialog::ELongTimeout + tone = 1; + text = qtn_bctestnote_notewrapper; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_bitmap_animation +// Bitmap Animation +// +//---------------------------------------------------------------------------- +// +RESOURCE BMPANIM_DATA r_bctestnote_bitmap_animation + { + identifier = 0; + frameinterval = 1; + playmode = 0; + flash = 0; + bmpfile = "\\resource\\apps\\bctestnote.mbm"; + frames = 0; + backgroundframe = 0; + } + +//---------------------------------------------------- +// +// r_aknatnotif_text_notification +// Dialog definition for Soft notifications (Static text) +// +//---------------------------------------------------- +// +RESOURCE DIALOG r_bctest_static_text_note + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar + | EEikDialogFlagCbaButtons | EEikDialogFlagWait ; + buttons = R_AVKON_SOFTKEYS_READ_EXIT; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestNoteTextNotification; + control = AVKON_NOTE + { + layout = ETextualNotificationLayout; + singular_label = "singular label"; + plural_label = "plural label"; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestnote_animation_array +// Animation Array +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestnote_animation_array + { + items = + { + BMPANIM_FRAME + { + bmpid = EMbmBctestnote30x40; + maskid = EMbmBctestnote30x40m; + }, + BMPANIM_FRAME + { + bmpid = EMbmBctestnotePhoto; + maskid = EMbmBctestnotePhotom; + } + }; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bctestnote_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bctestnote_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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 bctestbctestnote +* +*/ + + +#include +#include + +#include "bctestnote.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004749 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_apps_name; + localisable_resource_file = qtn_localization_filename; + localisable_resource_id = R_BCTESTNOTE_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestnote.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctesteikinfodialogcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctesteikinfodialogcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "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: Declares test bc for eik info dialog testcase. +* +*/ + + +#ifndef C_CBCTESTEIKINFODIALOGCASE_H +#define C_CBCTESTEIKINFODIALOGCASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; + +/** + * test case for various note classes + */ +class CBCTestEikInfoDialogCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikInfoDialogCase* NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEikInfoDialogCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestEikInfoDialogL function + */ + void TestEikInfoDialogL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikInfoDialogCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + }; + +#endif // C_CBCTESTEIKINFODIALOGCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctesteikprogressinfocase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctesteikprogressinfocase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,99 @@ +/* +* 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 "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: Declares test bc for eik progress info testcase. +* +*/ + + +#ifndef C_CBCTESTEIKPROGRESSINFOCASE_H +#define C_CBCTESTEIKPROGRESSINFOCASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; +class CEikProgressInfo; + +/** + * test case for various note classes + */ +class CBCTestEikProgressInfoCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEikProgressInfoCase* NewL( + CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEikProgressInfoCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestPublicFunctionsL function + */ + void TestPublicFunctionsL(); + + /** + * TestProtectedFunctionsL function + */ + void TestProtectedFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEikProgressInfoCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to eikprogressinfo. + * own + */ + CEikProgressInfo* iEikProgressInfo; + + }; + +#endif // C_CBCTESTEIKPROGRESSINFOCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnote.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnote.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,183 @@ +/* +* 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 "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: bctestnote resource header file +* +*/ + + +#ifndef BCTESTNOTE_HRH +#define BCTESTNOTE_HRH + +enum TBCTestNoteMenuGroupCommands + { + EBCTestNoteCmdNoteWrapper = 0x6000, + EBCTestNoteCmdWaitDialog, + EBCTestNoteCmdStaticNote, + EBCTestNoteCmdEikInfoDialog, + EBCTestNoteCmdEikProgessInfo, + EBCTestNoteCmdWaitNoteWrapper, + EBCTestNoteCmdNoteDialog, + EBCTestNoteCmdNoteControl, + EProgCmdAutoTest + }; + +#define OUTLINE(x) EBCTestNoteCmdOutline##x + +#define OUTLINES(x) \ + OUTLINE(x)##0, OUTLINE(x)##1, OUTLINE(x)##2, OUTLINE(x)##3, \ + OUTLINE(x)##4, OUTLINE(x)##5, OUTLINE(x)##6, OUTLINE(x)##7, \ + OUTLINE(x)##8, OUTLINE(x)##9 + +enum TBCTestNoteMenuCommands + { + EBCTestNoteCmdEmptyOutline = 0x6020, + + OUTLINE(01), OUTLINE(02), OUTLINE(03), OUTLINE(04), OUTLINE(05), + OUTLINE(06), OUTLINE(07), OUTLINE(08), OUTLINE(09), OUTLINE(10), + OUTLINE(11), OUTLINE(12), OUTLINE(13), OUTLINE(14), OUTLINE(15), + OUTLINE(16), OUTLINE(17), OUTLINE(18), OUTLINE(19), OUTLINE(20), + OUTLINE(21), OUTLINE(22), OUTLINE(23), OUTLINE(24), OUTLINE(25), + OUTLINE(26), OUTLINE(27), OUTLINE(28), OUTLINE(29), OUTLINE(30), + OUTLINE(31), OUTLINE(32), OUTLINE(33), OUTLINE(34), OUTLINE(35), + OUTLINE(36), OUTLINE(37), OUTLINE(38), OUTLINE(39), OUTLINE(40), + OUTLINE(41), OUTLINE(42), OUTLINE(43), OUTLINE(44), OUTLINE(45), + OUTLINE(46), OUTLINE(47), OUTLINE(48), OUTLINE(49), OUTLINE(50), + OUTLINE(51), OUTLINE(52), OUTLINE(53), OUTLINE(54), OUTLINE(55), + OUTLINE(56), OUTLINE(57), OUTLINE(58), OUTLINE(59), OUTLINE(60), + OUTLINE(61), OUTLINE(62), OUTLINE(63), OUTLINE(64), OUTLINE(65), + OUTLINE(66), OUTLINE(67), OUTLINE(68), OUTLINE(69), OUTLINE(70), + OUTLINE(71), OUTLINE(72), OUTLINE(73), OUTLINE(74), OUTLINE(75), + OUTLINE(76), OUTLINE(77), OUTLINE(78), OUTLINE(79), OUTLINE(80), + OUTLINE(81), OUTLINE(82), OUTLINE(83), OUTLINE(84), OUTLINE(85), + OUTLINE(86), OUTLINE(87), OUTLINE(88), OUTLINE(89), OUTLINE(90), + OUTLINE(91), OUTLINE(92), OUTLINE(93), OUTLINE(94), OUTLINE(95), + OUTLINE(96), OUTLINE(97), OUTLINE(98), OUTLINE(99), OUTLINE(100), + OUTLINE(101), OUTLINE(102), OUTLINE(103), OUTLINE(104), OUTLINE(105), + OUTLINE(106), OUTLINE(107), OUTLINE(108), OUTLINE(109), OUTLINE(110), + OUTLINE(111), OUTLINE(112), OUTLINE(113), OUTLINE(114), OUTLINE(115), + OUTLINE(116), OUTLINE(117), OUTLINE(118), OUTLINE(119), OUTLINE(120), + OUTLINE(121), OUTLINE(122), OUTLINE(123), OUTLINE(124), OUTLINE(125), + OUTLINE(126), OUTLINE(127), OUTLINE(128), OUTLINE(129), OUTLINE(130), + OUTLINE(131), OUTLINE(132), OUTLINE(133), OUTLINE(134), OUTLINE(135), + OUTLINE(136), OUTLINE(137), OUTLINE(138), OUTLINE(139), OUTLINE(140), + OUTLINE(141), OUTLINE(142), OUTLINE(143), OUTLINE(144), OUTLINE(145), + OUTLINE(146), OUTLINE(147), OUTLINE(148), OUTLINE(149), OUTLINE(150), + OUTLINE(151), OUTLINE(152), OUTLINE(153), OUTLINE(154), OUTLINE(155), + OUTLINE(156), OUTLINE(157), OUTLINE(158), OUTLINE(159) + }; + +#define MAX_OUTLINE 159 + +enum TBCTestNoteNoteControlIds + { + EBCTestNoteCtrlIdErrorNote = 0x100, + EBCTestNoteCtrlIdWarningNote, + EBCTestNoteCtrlIdInformationNote, + EBCTestNoteCtrlIdConfirmationNote, + EBCTestNoteCtrlIdProgressNote, + EBCTestNoteCtrlIdWaitNote, + EBCTestNoteCtrlIdPermanentNote, + EBCTestNoteCtrlIdDynamicText, + EBCTestNoteCtrlIdNoImageNote, + EBCTestNoteCtrlIdImageNote, + EBCTestNoteCtrlIdLayoutCase1, + EBCTestNoteCtrlIdLayoutCase2, + EBCTestNoteCtrlIdLayoutCase3, + EBCTestNoteCtrlIdPriorityLocalError, + EBCTestNoteCtrlIdPriorityLocalWarning + }; + +enum TBCTestNoteToneListBoxCommands + { + EBCTestNoteListBoxCmdErrorTone, + EBCTestNoteListBoxCmdWarningTone, + EBCTestNoteListBoxCmdConfirmationTone + }; + +enum TBCTestNoteGeneralListBoxCommands + { + EBCTestNoteListBoxCmdErrorNote, + EBCTestNoteListBoxCmdWarningNote, + EBCTestNoteListBoxCmdInformationNote, + EBCTestNoteListBoxCmdConfirmationNote + }; + +enum TBCTestNoteAnimationListBoxCommands + { + EBCTestNoteListBoxCmdWaitNote, + EBCTestNoteListBoxCmdProgressNote + }; + +enum TBCTestNoteOwnLayoutListBoxCommands + { + EBCTestNoteListBoxCmdOwnLayoutCase1, + EBCTestNoteListBoxCmdOwnLayoutCase2, + EBCTestNoteListBoxCmdOwnLayoutCase3 + }; + +enum TBCTestNoteTwoLabelsListBoxCommands + { + EBCTestNoteListBoxCmdSingularLabel, + EBCTestNoteListBoxCmdPluralLabel + }; + +enum TBCTestNoteGlobalNoteListBoxCommands + { + EBCTestNoteListBoxCmdGlobalGeneralNote, + EBCTestNoteListBoxCmdGlobalWarningNote, + EBCTestNoteListBoxCmdGlobalConfirmationNote, + EBCTestNoteListBoxCmdGlobalErrorNote, + EBCTestNoteListBoxCmdGlobalChargingNote, + EBCTestNoteListBoxCmdGlobalNotChargingNote, + EBCTestNoteListBoxCmdGlobalBatteryFullNote, + EBCTestNoteListBoxCmdGlobalBatteryLowNote, + EBCTestNoteListBoxCmdGlobalRechargeBatteryNote, + EBCTestNoteListBoxCmdGlobalProgressNote + }; + +enum TBCTestNotePriorityNoteListBoxCommands + { + EBCTestNoteListBoxCmdPriorityLocalLocal, + EBCTestNoteListBoxCmdPriorityGlobalGlobal, + EBCTestNoteListBoxCmdPriorityLocalGlobal, + EBCTestNoteListBoxCmdPriorityGlobalLocal + }; + +enum TBCTestNoteWaitNoteListBoxCommands + { + EBCTestNoteListBoxCmdWaitFast, + EBCTestNoteListBoxCmdWaitMedium, + EBCTestNoteListBoxCmdWaitSlow + }; + +enum TBCTestNoteProgressNoteListBoxCommands + { + EBCTestNoteListBoxCmdIncrease1, + EBCTestNoteListBoxCmdIncrease2, + EBCTestNoteListBoxCmdSet1, + EBCTestNoteListBoxCmdSet2 + }; + +enum TBCTestNoteCba + { + EBCTestNoteCbaCmdNext = 0x6300 + }; + +// Dialog element ID +enum TBCTestNoteDialogID + { + EBCTestNoteTextNotification = 0x800 + }; + +#endif // BCTESTNOTE_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnote.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnote.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,238 @@ +/* +* 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 "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: bctestnote localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTNOTE" +#define qtn_apps_tavl_grid "BCTESTNOTE" + +#define qtn_bctestnote_buf "BCTestNote" +#define qtn_bctestnote_notewrapper "Akn Note Wrapper Test" + +// registration string +#define qtn_apps_name "bctestnote" +#define qtn_localization_filename "\\resource\\apps\\bctestnote" +#define qtn_group_name "BCTest" + +// MenuBar +#define qtn_bctestnote_menubar "Option" +#define qtn_bctestnote_menu_notewrappers "Note wrappers" +#define qtn_bctestnote_menu_waitdialog "Wait dialog" +#define qtn_bctestnote_menu_staticnote "Static note" +#define qtn_bctestnote_menu_eikinfodialog "Eik info dialog" +#define qtn_bctestnote_menu_eikprogressinfo "Eik progress info" +#define qtn_bctestnote_menu_waitnotewrapper "Wait note wrapper" +#define qtn_bctestnote_menu_notedialog "Note dialog" +#define qtn_bctestnote_menu_notecontrol "Note control" +#define qtn_bctestnote_autotest "Autotest" +#define qtn_bctestnote_menu_exit "Exit" + +#define qtn_bctestnote_menu_outline_number "OUTLINE%d" +#define qtn_bctestnote_menu_outline(x) "OUTLINE"#x + +// Softkey text +#define qtn_bctestnote_softkey_empty "" +#define qtn_bctestnote_softkey_ok "Ok" +#define qtn_bctestnote_softkey_cancel "Cancel" + +// Application name +#define qtn_bctestnote_other_app_name "bctestSoftkey" + +// wrapper note text +#define qtn_bctestnote_confirmationnote_text "Confirmation Note" +#define qtn_bctestnote_warningnote_text "Warning Note" +#define qtn_bctestnote_errornote_text "Error Note" +#define qtn_bctestnote_informationnote_text "Information Note" + +#define qtn_bctestnote_setpriority_label "SetPriority" +#define qtn_bctestnote_setsoftkey_label "SetSoftKey" +#define qtn_bctestnote_setgraphic_label "SetGraphic" +#define qtn_bctestnote_setanimation_label "SetAnimation" + +#define qtn_bctestnote_progresssetcurrentlabell_label \ + "Loading \nPlease wait..." + +#define qtn_bctestnote_cancelnotel_text "CancelNoteL" +#define qtn_bctestnote_text_current_label "Current Label" + +#define qtn_bctestnote_shownotel_globalinformationnote_text \ + "ShowNoteL\nEAknGlobalInformationNote" +#define qtn_bctestnote_shownotel_globalwarningnote_text \ + "ShowNoteL\nEAknGlobalWarningNote" +#define qtn_bctestnote_shownotel_globalconfirmationnote_text \ + "ShowNoteL\nEAknGlobalConfirmationNote" +#define qtn_bctestnote_shownotel_globalerrornote_text \ + "ShowNoteL\nEAknGlobalErrorNote" +#define qtn_bctestnote_shownotel_globalchargingnote_text \ + "ShowNoteL\nEAknGlobalChargingNote" +#define qtn_bctestnote_shownotel_globalwaitnote_text \ + "ShowNoteL\nEAknGlobalWaitNote" +#define qtn_bctestnote_shownotel_globalpermanentnote_text \ + "ShowNoteL\nEAknGlobalPermanentNote" +#define qtn_bctestnote_shownotel_globalnotchargingnote_text \ + "ShowNoteL\nEAknGlobalNotChargingNote" +#define qtn_bctestnote_shownotel_globalbatteryfullnote_text \ + "ShowNoteL\nEAknGlobalBatteryFullNote" +#define qtn_bctestnote_shownotel_globalbatterylownote_text \ + "ShowNoteL\nEAknGlobalBatteryLowNote" +#define qtn_bctestnote_shownotel_globalrechargebatterynote_text \ + "ShowNoteL\nEAknGlobalRechargeBatteryNote" +#define qtn_bctestnote_shownotel_globalswitchingoffnote_text \ + "ShowNoteL\nEAknGlobalSwitchingOffNote" +#define qtn_bctestnote_shownotel_cancelglobalnote_text \ + "ShowNoteL\nEAknCancelGlobalNote" +#define qtn_bctestnote_shownotel_empty_text "" + +#define qtn_bctestnote_text_current_empty_label "" + +#define qtn_bctestnote_text_for_aknwaitdialog "Test for CAknWaitDialog" +#define qtn_bctestnote_text_gw_empty_softkeys \ + "GlobalWaitNote - empty softkeys" + +#define qtn_bctestnote_cba_next "Next" + +#define text_softkey_option "Options" + +// Messages +#define qtn_bctestnote_label_title "BCTestNotes\nSample Application" +#define qtn_bctestnote_label_operation \ + "Press right softkey to\ndisplay next outline" + +// Error Note Lavel +#define qtn_bctestnote_error_singular "Too long !" +#define qtn_bctestnote_error_plural "Not found !" + +// Warning Note Lavel +#define qtn_bctestnote_warning_singular "Battery low !" +#define qtn_bctestnote_warning_plural "Memory low !" + +// Information Note Lavel +#define qtn_bctestnote_inf_singular "Received\nmessage !" +#define qtn_bctestnote_inf_plural "Received\nsome messages !" + +// Confirmation Note Lavel +#define qtn_bctestnote_cnf_singular "Done !" +#define qtn_bctestnote_cnf_plural "Success !" + +// Progress Note Label +#define qtn_bctestnote_progress_singular "Loading\nPlease wait..." +#define qtn_bctestnote_progress_plural "Loading\nPlease wait..." + +// Permanent Note Label +#define qtn_bctestnote_perm_label "Discharging\nbattery !" + +// Dynamic Text Label +#define qtn_bctestnote_dym_text_singular "Received\n%d message !" +#define qtn_bctestnote_dym_text_plural "Received\n%d messages !" + +// Image Note Label +#define qtn_bctestnote_image_singular "Received\nmessages !\n1234567890" +#define qtn_bctestnote_image_plural "Sent\nmessages !\n1234567890" + +// Own Layout Note Label +#define qtn_bctestnote_layout_singular \ + "Number\ntoo long!\nPlease input again" +#define qtn_bctestnote_layout_plural \ + "Number\ntoo long!\nPlease input again" + +// Wait Note Label +#define qtn_bctestnote_wait_singular \ + "As you may already\nnotice, this note truly\nRULEZ!!" +#define qtn_bctestnote_wait_plural \ + "All the y %d notes\nrulez!!\nYuyu!" +#define qtn_bctestnote_wait_prompt "Connecting, please wait." + +// Global note text +#define qtn_bctestnote_global_gen_text "General note" +#define qtn_bctestnote_global_war_text "Warning note" +#define qtn_bctestnote_global_con_text "Confirmation\nnote" +#define qtn_bctestnote_global_err_text "Error note" + +// Note label for priority test +#define qtn_bctestnote_prty_loc_err_text "Local\nerror note" +#define qtn_bctestnote_prty_loc_war_text "Local\nwarning note" +#define qtn_bctestnote_prty_gbl_err_text "Global\nerror note" +#define qtn_bctestnote_prty_gbl_war_text "Global\nwarning note" + +// Tone list item label +#define qtn_bctestnote_error_tone "Error tone" +#define qtn_bctestnote_warning_tone "Warning tone" +#define qtn_bctestnote_confirmation_tone "Confirmation tone" + +// General list item label +#define qtn_bctestnote_error_note "Error note" +#define qtn_bctestnote_warning_note "Warning note" +#define qtn_bctestnote_information_note "Information note" +#define qtn_bctestnote_confirmation_note "Confirmation note" + +// Animation list item label +#define qtn_bctestnote_wait_note "Wait note" +#define qtn_bctestnote_progress_note "Progress note" + +// OwnLayout list item label +#define qtn_bctestnote_ownlayout_case1 "Case1" +#define qtn_bctestnote_ownlayout_case2 "Case2" +#define qtn_bctestnote_ownlayout_case3 "Case3" + +// TwoLabel list item label +#define qtn_bctestnote_singular_label "Singular label" +#define qtn_bctestnote_plural_label "Plural label" + +// Global note list item label +#define qtn_bctestnote_global_general "General note" +#define qtn_bctestnote_global_warning "Warning note" +#define qtn_bctestnote_global_confirmat "Confirmation note" +#define qtn_bctestnote_global_error "Error note" +#define qtn_bctestnote_global_charging "Charging note" +#define qtn_bctestnote_global_not_charg "Not charging note" +#define qtn_bctestnote_global_btry_full "Battery full note" +#define qtn_bctestnote_global_btry_low "Battery low note" +#define qtn_bctestnote_global_recha_btry "Recharging note" +#define qtn_bctestnote_global_progress "Global progress note" + +// Priority note list item label +#define qtn_bctestnote_local_local "Local -> Local" +#define qtn_bctestnote_global_global "Global -> Global" +#define qtn_bctestnote_local_global "Local -> Global" +#define qtn_bctestnote_global_local "Global -> Local" + +#define qtn_bctestnote_fast "fast" +#define qtn_bctestnote_medium "medium" +#define qtn_bctestnote_slow "slow" + +#define qtn_bctestnote_progress_increase_1 "increase-200-1" +#define qtn_bctestnote_progress_increase_2 "increase-500-6" +#define qtn_bctestnote_progress_set_1 "set-200-2" +#define qtn_bctestnote_progress_set_2 "set-900-13" +#define qtn_bctestnote_shownotel_5line_text \ + "0123456789012345678901234567890123456789012345678901234567890" +#define qtn_bctestnote_shownotel_5line_over_text \ + "012345678901234567890123456789012345678901234567890123456789012345678901\ + 234567890" +#define qtn_bctestnote_text_current_5line_label \ + "0123456789012345678901234567890123456789012345678901234567890" +#define qtn_bctestnote_text_current_5line_over_label \ + "012345678901234567890123456789012345678901234567890123456789012345678901\ + 234567890" +#define qtn_bctestnote_text_current_label_deffrent \ + "012345678901234567890123456789012345678901234567890123456789012345678901\ + 234567890" + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnoteapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnoteapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,52 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTNOTEAPP_H +#define C_CBCTESTNOTEAPP_H + +#include + +const TUid KUidBCTestNote = { 0x20004749 }; // UID of the application. + +/** + * CBCTestNoteApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestNoteApp : public CAknApplication + { +private: + +// From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestNoteDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestNote ). + * @return The value of KUidBCTestNote. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESTNOTEAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnoteappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnoteappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Declares test bc for note control appui. +* +*/ + + +#ifndef C_CBCTESTNOTEAPPUI_H +#define C_CBCTESTNOTEAPPUI_H + +#include + +class CBCTestNoteView; + +/** + * Application UI class + */ +class CBCTestNoteAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestNoteAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestNoteAppUi(); + +private: + +// From CEikAppUi + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointer to the view. + * own + */ + CBCTestNoteView* iView; + + }; + +#endif // C_CBCTESTNOTEAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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: Declares test bc for note control container. +* +*/ + + +#ifndef C_CBCTESTNOTECONTAINER_H +#define C_CBCTESTNOTECONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestNoteContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestNoteContainer(); + + /** + * Destructor + */ + virtual ~CBCTestNoteContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * get iCoeEnv + */ + CCoeEnv* GetCoeEnv(); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: + +// from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTNOTECONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotecontrolcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotecontrolcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "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: Declares test bc for note control testcase. +* +*/ + + +#ifndef C_CBCTESTNOTECONTROLCASE_H +#define C_CBCTESTNOTECONTROLCASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; +class CAknNoteControl; + +/** + * test case for various note classes + */ +class CBCTestNoteControlCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestNoteControlCase* NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestNoteControlCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestNoteControlL function + */ + void TestNoteControlL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestNoteControlCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to notecontrol. + * own + */ + CAknNoteControl* iNoteControl; + + }; + +#endif // C_CBCTESTNOTECONTROLCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotedialogcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotedialogcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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: Declares test bc for note dialog testcase. +* +*/ + + +#ifndef C_CBCTESTNOTEDIALOGCASE_H +#define C_CBCTESTNOTEDIALOGCASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; +class CAknNoteDialog; + +/** + * test case for various note classes + */ +class CBCTestNoteDialogCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestNoteDialogCase* NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestNoteDialogCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestSetFunctionsL function + */ + void TestSetFunctionsL(); + + /** + * TestOtherPublicFunctionsL function + */ + void TestOtherPublicFunctionsL(); + + /** + * TestProtectedFunctionsL function + */ + void TestProtectedFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestNoteDialogCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to notedialog. + * own + */ + CAknNoteDialog* iNoteDialog; + + }; + +#endif // C_CBCTESTNOTEDIALOGCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Declares test bc for note control document. +* +*/ + + +#ifndef C_CBCTESTNOTEDOCUMENT_H +#define C_CBCTESTNOTEDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestNoteDocument application class. +*/ +class CBCTestNoteDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestNoteDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestNoteDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestNoteDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestNoteAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + +}; + +#endif // C_CBCTESTNOTEDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnoteview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnoteview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,102 @@ +/* +* 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 "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: Declares test bc for note control view. +* +*/ + + +#ifndef C_CBCTESTNOTEVIEW_H +#define C_CBCTESTNOTEVIEW_H + +#include + +class CBCTestNoteContainer; +class CBCTestUtil; + +const TUid KBCTestNoteViewId = { 1 }; + +/** + * Application View class + */ +class CBCTestNoteView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestNoteView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestNoteView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: + +// from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestNoteView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestNoteContainer* iContainer; + + }; + +#endif // C_CBCTESTNOTEVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotewrappercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestnotewrappercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,158 @@ +/* +* 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 "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: Declares test bc for note wrapper testcase. +* +*/ + + +#ifndef C_CBCTESTNOTEWRAPPERCASE_H +#define C_CBCTESTNOTEWRAPPERCASE_H + +#include "bctestcase.h" +#include + +class CBCTestNoteContainer; +class CCoeControl; +class CAknWarningNote; +class CAknErrorNote; +class CAknInformationNote; +class CAknConfirmationNote; +class CAknNoteWrapper; + +/** + * test case for various note classes + */ +class CBCTestNoteWrapperCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestNoteWrapperCase* NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestNoteWrapperCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestWarningNote function + */ + void TestWarningNoteL(); + + /** + * TestErrorNoteL function + */ + void TestErrorNoteL(); + + /** + * TestInformationNoteL function + */ + void TestInformationNoteL(); + + /** + * TestConfirmationNoteL function + */ + void TestConfirmationNoteL(); + + /** + * TestNoteWrapperL function + */ + void TestNoteWrapperL(); + + /** + * TestNoteWrapperOverLoadL function + */ + void TestNoteWrapperOverLoadL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestNoteWrapperCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to warningnote. + * own + */ + CAknWarningNote* iWarningNote; + + /** + * Pointer to errornote. + * own + */ + CAknErrorNote* iErrorNote; + + /** + * Pointer to informationnote. + * own + */ + CAknInformationNote* iInforNote; + + /** + * Pointer to confirmationnote. + * own + */ + CAknConfirmationNote* iConfirmNote; + + /** + * Pointer to notewrapper. + * own + */ + CAknNoteWrapper* iNoteWrapper; + + }; + +class COwnAknNoteWrapper : public CAknNoteWrapper + { +public: + + void ReadAndPrepareLC(TInt aResId); + + COwnAknNoteWrapper(); + ~COwnAknNoteWrapper(); + }; + + +#endif // C_CBCTESTNOTEWRAPPERCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bcteststaticnotecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bcteststaticnotecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,105 @@ +/* +* 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 "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: Declares test bc for static note testcase. +* +*/ + + +#ifndef C_CBCTESTSTATICNOTECASE_H +#define C_CBCTESTSTATICNOTECASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; +class CEikDialog; +class CAknStaticNoteDialog; + +/** + * test case for various note classes + */ +class CBCTestStaticNoteCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestStaticNoteCase* NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestStaticNoteCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestStaticNoteL function + */ + void TestStaticNoteL(); + + /** + * TestProtectedFunctionsL function + */ + void TestProtectedFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestStaticNoteCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to eikdialog. + * own + */ + CEikDialog* iEikDialog; + + /** + * Pointer to staticnote. + * own + */ + CAknStaticNoteDialog* iStaticNote; + + }; + +#endif // C_CBCTESTSTATICNOTECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubeikprogressinfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubeikprogressinfo.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +/* +* 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 "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: Invoke eik progress info's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBEIKPROGRESSINFO_H +#define C_CBCTESTSUBEIKPROGRESSINFO_H + +#include + +#include "bctesteikprogressinfocase.h" + +/** + * Invoke staticnote's protected APIs + */ +class CBCTestSubEikProgressInfo: public CEikProgressInfo + { +public: // constructor and destructor + + friend class CBCTestEikProgressInfoCase; + + /** + * Symbian 2nd static constructor + */ + static CBCTestSubEikProgressInfo* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestSubEikProgressInfo(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSubEikProgressInfo(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + }; + +#endif // C_CBCTESTSUBEIKPROGRESSINFO_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubnotedialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubnotedialog.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +/* +* 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 "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: Invoke note dialog's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBNOTEDIALOG_H +#define C_CBCTESTSUBNOTEDIALOG_H + +#include + +#include "bctestnotedialogcase.h" + +/** + * Invoke notedialog's protected APIs + */ +class CBCTestSubNoteDialog: public CAknNoteDialog + { +public: // constructor and destructor + + friend class CBCTestNoteDialogCase; + + /** + * Symbian 2nd static constructor + */ + static CBCTestSubNoteDialog* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestSubNoteDialog (); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSubNoteDialog(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + }; + +#endif // C_CBCTESTSUBNOTEDIALOG_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubstaticnote.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubstaticnote.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +/* +* 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 "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: Invoke static note's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBSTATICNOTE_H +#define C_CBCTESTSUBSTATICNOTE_H + +#include + +#include "bcteststaticnotecase.h" + +/** + * Invoke staticnote's protected APIs + */ +class CBCTestSubStaticNote: public CAknStaticNoteDialog + { +public: // constructor and destructor + + friend class CBCTestStaticNoteCase; + + /** + * Symbian 2nd static constructor + */ + static CBCTestSubStaticNote* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestSubStaticNote (); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSubStaticNote(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + }; + +#endif // C_CBCTESTSUBSTATICNOTE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubwaitnotewrapper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestsubwaitnotewrapper.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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: Implement MAknProgressDialogCallBack +* +*/ + + +#ifndef C_CBCTESTSUBWAITNOTEWRAPPER_H +#define C_CBCTESTSUBWAITNOTEWRAPPER_H + +#include + +/** + * Invoke waitnotewrapper's protected APIs + */ +class CBCTestSubWaitNoteWrapper: public CBase, public MAknBackgroundProcess + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestSubWaitNoteWrapper* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestSubWaitNoteWrapper (); + +//From MProgressDialogCallBack + + /** + * Completes one cycle of the process. + */ + virtual void StepL(); + + /** + * Return true when the process is done. + */ + virtual TBool IsProcessDone() const; + + /** + * Callback when the process is finished. + */ + virtual void ProcessFinished(); + + /** + * Callback when the dialog is dismissed + */ + virtual void DialogDismissedL( TInt aButtonId ); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSubWaitNoteWrapper(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + TInt iCounter; + }; + +#endif // C_CBCTESTSUBWAITNOTEWRAPPER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestwaitdialogcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestwaitdialogcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,110 @@ +/* +* 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 "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: Declares test bc for wait dialog testcase. +* +*/ + + +#ifndef C_CBCTESTWAITDIALOGCASE_H +#define C_CBCTESTWAITDIALOGCASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; +class CEikDialog; +class CEikProgressInfo; + +/** + * test case for various note classes + */ +class CBCTestWaitDialogCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestWaitDialogCase* NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestWaitDialogCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestWaitDialogL function + */ + void TestWaitDialogL(); + + /** + * TestProgressDialogL function + */ + void TestProgressDialogL(); + + /** + * TestProgressOtherFunctionsL function + */ + void TestProgressOtherFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestWaitDialogCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to eikdialog. + * own + */ + CEikDialog* iEikDialog; + + /** + * Pointer to eikprogressinfo. + * own + */ + CEikProgressInfo* iEikProgressInfo; + + }; + +#endif // C_CBCTESTWAITDIALOGCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestwaitnotewrappercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/inc/bctestwaitnotewrappercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "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: Declares test bc for wait note wrapper testcase. +* +*/ + + +#ifndef C_CBCTESTWAITNOTEWRAPPERCASE_H +#define C_CBCTESTWAITNOTEWRAPPERCASE_H + +#include "bctestcase.h" + +class CBCTestNoteContainer; +class CCoeControl; +class CAknWaitNoteWrapper; +class CBCTestSubWaitNoteWrapper; + +/** + * test case for various note classes + */ +class CBCTestWaitNoteWrapperCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestWaitNoteWrapperCase* + NewL( CBCTestNoteContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestWaitNoteWrapperCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestWaitNoteWrapperL function + */ + void TestWaitNoteWrapperL(); + + /** + * TestOtherFunctionsL function + */ + void TestOtherFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestWaitNoteWrapperCase( CBCTestNoteContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestNoteContainer* iContainer; + + /** + * Pointer to waitnotewrapper. + * own + */ + CAknWaitNoteWrapper* iWaitNoteWrapper; + + /** + * Pointer to subwaitnotewrapper. + * own + */ + CBCTestSubWaitNoteWrapper* iSubWaitNoteWrapper; + + }; + +#endif // C_CBCTESTWAITNOTEWRAPPERCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/sis/bctestnote.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/sis/bctestnote.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +; +; 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 "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: Package file for project bctestnote +; + +; Languages +&EN + +; Header +#{"UIFW_bctestnote"},(0x20004749),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestnote.exe"- +"!:\sys\bin\bctestnote.exe" + +"\epoc32\data\z\resource\apps\bctestnote.rsc"- +"!:\resource\apps\bctestnote.rsc" + +"\epoc32\data\z\resource\apps\bctestnote.mbm"- +"!:\resource\apps\bctestnote.mbm" + +"\epoc32\data\z\private\10003a3f\apps\bctestnote_reg.rsc"- +"!:\private\10003a3f\import\apps\bctestnote_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctesteikinfodialogcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctesteikinfodialogcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,144 @@ +/* +* 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 "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: Implements test bc for eik info dialog testcase. +* +*/ + + +#include +#include +#include +#include + +#include "bctesteikinfodialogcase.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KOne = 1; +const TInt KThree = 3; + +_LIT( KTitle, "EIK INFO DIALOG" ); +_LIT( KMsg, "This is eik info dialog!" ); +_LIT( KEikInfoDialogCreateComment, "Eikinfodialog created" ); +_LIT( KHandlePointerEventLComment, + "Eik info's HandlePointerEventL() invoked" ); +_LIT( KRunDlgLDComment, "Eik info's RunDlgLD() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikInfoDialogCase* CBCTestEikInfoDialogCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestEikInfoDialogCase* self = new( ELeave ) CBCTestEikInfoDialogCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikInfoDialogCase::CBCTestEikInfoDialogCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikInfoDialogCase::~CBCTestEikInfoDialogCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikInfoDialogCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikInfoDialogCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikInfoDialogCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline12 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KThree ), + KeyOK, + KeyOK, + LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikInfoDialogCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikInfoDialogCase::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestNoteCmdOutline12 ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline12: + TestEikInfoDialogL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikInfoDialogCase::TestEikInfoDialogL +// --------------------------------------------------------------------------- +// +void CBCTestEikInfoDialogCase::TestEikInfoDialogL() + { + CEikInfoDialog* eikInfoDialog = + new( ELeave ) CEikInfoDialog( KTitle, KMsg ); + CleanupStack::PushL( eikInfoDialog ); + AssertNotNullL( eikInfoDialog, KEikInfoDialogCreateComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + eikInfoDialog->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventLComment ); + + CleanupStack::Pop( eikInfoDialog ); + eikInfoDialog->RunDlgLD( KTitle, KMsg ); + AssertTrueL( ETrue, KRunDlgLDComment ); + delete eikInfoDialog; + eikInfoDialog = NULL; + + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctesteikprogressinfocase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctesteikprogressinfocase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,260 @@ +/* +* 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 "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: Implements test bc for eik progress info testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctesteikprogressinfocase.h" +#include "bctestsubeikprogressinfo.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KBCTestNoteProgressbarFinalValue = 200; +const TInt KBCTestNoteProgressbarMaxLength = 256; +const TInt KOne = 1; +const TInt KFour = 4; +const TInt KTen = 10; +const TInt KTwenty = 20; +const TInt KTwoHundred = 200; + +_LIT( KEikProgressInfoComment, "Eikprogressinfo created" ); +_LIT( KRunDlgLDComment, "Eikprogressinfo's SetFinalValue() invoked" ); +_LIT( KMinimumSizeComment, "Eikprogressinfo's MinimumSize() invoked" ); +_LIT( KSizeChangedComment, "Eikprogressinfo's SizeChanged() invoked" ); +_LIT( KActivateLComment, "Eikprogressinfo's ActivateL() invoked" ); +_LIT( KSetLayoutComment, "Eikprogressinfo's SetLayout() invoked" ); +_LIT( KSetBorderComment, "Eikprogressinfo's SetBorder() invoked" ); +_LIT( KEikProgressInfoCreateOverComment, + "Eikprogressinfo created(overload)" ); +_LIT( KIncrementAndDrawComment, + "Eikprogressinfo's IncrementAndDraw() invoked" ); +_LIT( KGetColorUseListLComment, + "Eikprogressinfo's GetColorUseListL() invoked" ); +_LIT( KHandlePointerEventLComment, + "EikProgressInfo's HandlePointerEventL() invoked" ); +_LIT( KHandleResourceChangeComment, + "EikProgressInfo's HandleResourceChange() invoked" ); +_LIT( KConstructFromResourceLComment, + "EikProgressInfo's ConstructFromResourceL() invoked" ); +_LIT( KWriteInternalStateL, + "EikProgressInfo's WriteInternalStateL() invoked" ); +_LIT( KBuf, "Evaluate" ); +_LIT( KEvaluateText, + "EikProgressInfo's EvaluateText() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEikProgressInfoCase* CBCTestEikProgressInfoCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestEikProgressInfoCase* self = new( ELeave ) + CBCTestEikProgressInfoCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEikProgressInfoCase::CBCTestEikProgressInfoCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEikProgressInfoCase::~CBCTestEikProgressInfoCase() + { + if ( iEikProgressInfo ) + { + delete iEikProgressInfo; + iEikProgressInfo = NULL; + } + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEikProgressInfoCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikProgressInfoCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEikProgressInfoCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline13 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KFour ), + KeyOK, + KeyOK, + + //outline14 + LeftCBA, + REP( Down, KFour ), + KeyOK, + REP( Down, KOne ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestEikProgressInfoCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEikProgressInfoCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline13 ) + || ( aCmd > EBCTestNoteCmdOutline14 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline13: + TestPublicFunctionsL(); + break; + case EBCTestNoteCmdOutline14: + TestProtectedFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEikProgressInfoCase::TestPublicFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestEikProgressInfoCase::TestPublicFunctionsL() + { + iEikProgressInfo = new( ELeave ) CEikProgressInfo(); + AssertNotNullL( iEikProgressInfo, KEikProgressInfoComment ); + + iEikProgressInfo->SetFinalValue( KBCTestNoteProgressbarFinalValue ); + AssertTrueL( ETrue, KRunDlgLDComment ); + + iEikProgressInfo->MinimumSize(); + AssertTrueL( ETrue, KMinimumSizeComment ); + + iEikProgressInfo->SizeChanged(); + AssertTrueL( ETrue, KSizeChangedComment ); + + iEikProgressInfo->ActivateL(); + AssertTrueL( ETrue, KActivateLComment ); + + CEikProgressInfo::SLayout sLayout; + iEikProgressInfo->SetLayout( sLayout ); + AssertTrueL( ETrue, KSetLayoutComment ); + + const TGulBorder gulBorder; + iEikProgressInfo->SetBorder( gulBorder ); + AssertTrueL( ETrue, KSetBorderComment ); + + CEikProgressInfo::SInfo sInfo; + CEikProgressInfo* tEikProgressInfo = + new( ELeave ) CEikProgressInfo( sInfo ); + CleanupStack::PushL( tEikProgressInfo ); + AssertNotNullL( tEikProgressInfo, KEikProgressInfoCreateOverComment ); + + tEikProgressInfo->IncrementAndDraw( 1 ); + AssertTrueL( ETrue, KIncrementAndDrawComment ); + + CArrayFix * colorUseList = + new( ELeave ) CArrayFix ( + ( TBufRep )CBufFlat::NewL, KTwenty ); + CleanupStack::PushL( colorUseList ); + tEikProgressInfo->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KGetColorUseListLComment ); + CleanupStack::PopAndDestroy( colorUseList ); + CleanupStack::PopAndDestroy( tEikProgressInfo ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iEikProgressInfo->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventLComment ); + + iEikProgressInfo->HandleResourceChange( KBCTestNoteProgressbarMaxLength ); + AssertTrueL( ETrue, KHandleResourceChangeComment ); + + TResourceReader reader; + iContainer->GetCoeEnv()->CreateResourceReaderLC( + reader, R_BCTEST_FOR_PROGRESSINFO ); + iEikProgressInfo->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KConstructFromResourceLComment ); + CleanupStack::PopAndDestroy(); + } + +// --------------------------------------------------------------------------- +// CBCTestEikProgressInfoCase::TestProtectedFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestEikProgressInfoCase::TestProtectedFunctionsL() + { + CBCTestSubEikProgressInfo* subEikProgressInfo = + CBCTestSubEikProgressInfo::NewL(); + CleanupStack::PushL( subEikProgressInfo ); + + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + subEikProgressInfo->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + TBuf stackBuf( KBuf ); + subEikProgressInfo->EvaluateText( stackBuf ); + AssertTrueL( ETrue, KEvaluateText ); + + CleanupStack::PopAndDestroy( subEikProgressInfo ); + } + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnoteapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnoteapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implements main application class. +* +*/ + + +// INCLUDE FILES +#include "bctestnoteapp.h" +#include "bctestnotedocument.h" +#include + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestNoteApp::AppDllUid() +// Returns application UID. + +// --------------------------------------------------------------------------- +// +TUid CBCTestNoteApp::AppDllUid() const + { + return KUidBCTestNote; + } + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestNoteApp::CreateDocumentL() +// Creates CBCTestNoteDocument object. +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestNoteApp::CreateDocumentL() + { + return CBCTestNoteDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestNoteApp. +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestNoteApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnoteappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnoteappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 "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: Implements test bc for note control appui. +* +*/ + +#include +#include + +#include "bctestnoteappui.h" +#include "bctestnote.hrh" +#include "bctestnoteview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestNoteAppUi::CBCTestNoteAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestNoteAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestNoteView* view = CBCTestNoteView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestNoteAppUi::~CBCTestNoteAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestNoteAppUi::~CBCTestNoteAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestNoteAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EEikCmdExit: + case EAknSoftkeyExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,125 @@ +/* +* 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 "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: Implements test bc for note control container. +* +*/ + + +#include "bctestnotecontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteContainer::CBCTestNoteContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNoteContainer::~CBCTestNoteContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNoteContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestNoteContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestNoteContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestNoteContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestNoteContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestNoteContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestNoteContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestNoteContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestNoteContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteContainer::GetCoeEnv +// --------------------------------------------------------------------------- +// +CCoeEnv* CBCTestNoteContainer::GetCoeEnv() + { + return iCoeEnv; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotecontrolcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotecontrolcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,240 @@ +/* +* 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 "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: Implements test bc for note control testcase. +* +*/ + + +#include +#include +#include +#include +#include + +#include "bctestnotecontrolcase.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KBCTestTextNumber = 100; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KFour = 4; +const TInt KSeven = 7; +const TInt KTen = 10; + +_LIT( KNoteControlCreateComment, "NoteControl created" ); +_LIT( KSetTextNumberLComment, + "NoteControl's SetTextNumberL() invoked" ); +_LIT( KSetImageLComment, "NoteControl's SetImageL() invoked" ); +_LIT( KSetIconLComment, "NoteControl's SetIconL() invoked" ); +_LIT( KSetTextPluralityLComment, + "NoteControl's SetTextPluralityL() invoked" ); +_LIT( KResetTextComment, "NoteControl's ResetText() invoked" ); +_LIT( KText, "Hello" ); +_LIT( KSetDynamicTextLComment, + "NoteControl's SetDynamicTextL() invoked" ); +_LIT( KTextAgain, "This is note control" ); +_LIT( KSetTextLComment, "NoteControl's SetTextL() invoked" ); +_LIT( KSetLabelReserveLengthLComment, + "NoteControl's SetLabelReserveLengthL() invoked" ); +_LIT( KNoteHeightComment, "NoteControl's NoteHeight() invoked" ); +_LIT( KNoteWidthComment, "NoteControl's NoteWidth() invoked" ); +_LIT( KSetAnimationLComment, "NoteControl's SetAnimationL() invoked" ); +_LIT( KHandlePointerEventLComment, + "NoteControl's HandlePointerEventL() invoked" ); +_LIT( KGetProgressInfoComment, + "NoteControl's GetProgressInfo() invoked" ); +_LIT( KLabel1, "Label1" ); +_LIT( KLabel2, "Label2" ); +_LIT( KLabel3, "Label3" ); +_LIT( KUpdateLabelsComment, + "NoteControl's UpdateLabels() invoked" ); +_LIT( KLabel, "This is update text!" ); +_LIT( KUpdateAndFormatLabelsLComment, + "NoteControl's UpdateAndFormatLabelsL() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteControlCase* CBCTestNoteControlCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestNoteControlCase* self = new( ELeave ) CBCTestNoteControlCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteControlCase::CBCTestNoteControlCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNoteControlCase::~CBCTestNoteControlCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNoteControlCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteControlCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestNoteControlCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline20 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KSeven ), + KeyOK, + KeyOK, + WAIT( KFour ), + + //outline21 + LeftCBA, + REP( Down, KSeven ), + KeyOK, + Down, + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteControlCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestNoteControlCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline20 ) + || ( aCmd > EBCTestNoteCmdOutline21 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline20: + TestNoteControlL(); + break; + case EBCTestNoteCmdOutline21: + + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestNoteControlCase::TestNoteControlL +// --------------------------------------------------------------------------- +// +void CBCTestNoteControlCase::TestNoteControlL() + { + CAknNoteDialog* noteDialog = new( ELeave ) CAknNoteDialog( + CAknNoteDialog::EWarningTone, CAknNoteDialog::EShortTimeout ); + CleanupStack::PushL( noteDialog ); + + noteDialog->PrepareLC( R_BCTESTNOTE_NO_ICON ); + + iNoteControl = STATIC_CAST ( CAknNoteControl*, + noteDialog->Control( EBCTestNoteCtrlIdNoImageNote ) ); + AssertNotNullL( iNoteControl, KNoteControlCreateComment ); + + iNoteControl->SetTextNumberL( KBCTestTextNumber ); + AssertTrueL( ETrue, KSetTextNumberLComment ); + + iNoteControl->SetImageL( NULL ); + AssertTrueL( ETrue, KSetImageLComment ); + + iNoteControl->SetIconL( NULL ); + AssertTrueL( ETrue, KSetIconLComment ); + + iNoteControl->SetTextPluralityL( ETrue ); + AssertTrueL( ETrue, KSetTextPluralityLComment ); + + iNoteControl->ResetText(); + AssertTrueL( ETrue, KResetTextComment ); + + iNoteControl->SetDynamicTextL( KText ); + AssertTrueL( ETrue, KSetDynamicTextLComment ); + + iNoteControl->SetTextL( KTextAgain, KTwo ); + AssertTrueL( ETrue, KSetTextLComment ); + + iNoteControl->SetLabelReserveLengthL( KTen, KTen, KTen ); + AssertTrueL( ETrue, KSetLabelReserveLengthLComment ); + + iNoteControl->NoteHeight(); + AssertTrueL( ETrue, KNoteHeightComment ); + + iNoteControl->NoteWidth(); + AssertTrueL( ETrue, KNoteWidthComment ); + + iNoteControl->SetAnimationL( R_BCTESTNOTE_BITMAP_ANIMATION ); + AssertTrueL( ETrue, KSetAnimationLComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iNoteControl->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventLComment ); + + iNoteControl->GetProgressInfo(); + AssertTrueL( ETrue, KGetProgressInfoComment ); + + iNoteControl->UpdateLabels( KLabel1, KLabel2, KLabel3 ); + AssertTrueL( ETrue, KUpdateLabelsComment ); + + iNoteControl->UpdateAndFormatLabelsL( KLabel ); + AssertTrueL( ETrue, KUpdateAndFormatLabelsLComment ); + + CleanupStack::Pop( noteDialog ); + noteDialog->RunLD(); + } + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotedialogcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotedialogcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,302 @@ +/* +* 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 "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: Implements test bc for note dialog testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include "bctestnotedialogcase.h" +#include "bctestsubnotedialog.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KBCTestTextNumber = 100; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KSix = 6; + +_LIT( KNoteDialogCreateComment, "NoteDialog created" ); +_LIT( KSetTimeoutComment, "NoteDialog's SetTimeout() invoked" ); +_LIT( KSetToneComment, "NoteDialog's SetTone() invoked" ); +_LIT( KSetTextWrappingComment, "NoteDialog's SetTextWrapping() invoked" ); +_LIT( KSetTextProcessingComment, + "NoteDialog's SetTextProcessing() invoked" ); +_LIT( KSetTextNumberLComment, "NoteDialog's SetTextNumberL() invoked" ); +_LIT( KSetImageLComment, "NoteDialog's SetImageL() invoked" ); +_LIT( KSetIconLComment, "NoteDialog's SetIconL() invoked" ); +_LIT( KSetTextPluralityLComment, + "NoteDialog's SetTextPluralityL() invoked" ); +_LIT( KCurrentLabel, "This is note dialog" ); +_LIT( KSetCurrentLabelLComment, + "NoteDialog's SetCurrentLabelL() invoked" ); +_LIT( KRunDlgLDTTComment, "NoteDialog's RunDlgLD() invoked" ); +_LIT( KRunDlgLDTComment, "NoteDialog's RunDlgLD() invoked(OverLoad)" ); +_LIT( KRunDlgLDComment, + "NoteDialog's RunDlgLD() invoked(OverLoad again)" ); +_LIT( KRunDlgLDLastComment, + "NoteDialog's RunDlgLD() invoked last time" ); +_LIT( KOfferKeyEventLComment, + "NoteDialog's OfferKeyEventL() invoked" ); +_LIT( KHandlePointerEventLComment, + "NoteDialog's HandlePointerEventL() invoked" ); +_LIT( KExecuteDlgLDComment, "NoteDialog's ExecuteDlgLD() invoked" ); +_LIT( KExecuteDlgLDOverComment, + "NoteDialog's ExecuteDlgLD() invoked(OverLoad)" ); +_LIT( KExecuteDlgLDOverLoadComment, + "NoteDialog's ExecuteDlgLD() invoked(OverLoad again)" ); +_LIT( KSetNoMemoryAllocationComment, + "NoteDialog's SetNoMemoryAllocation() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteDialogCase* CBCTestNoteDialogCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestNoteDialogCase* self = new( ELeave ) CBCTestNoteDialogCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteDialogCase::CBCTestNoteDialogCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNoteDialogCase::~CBCTestNoteDialogCase() + { + if ( iNoteDialog ) + { + delete iNoteDialog; + iNoteDialog = NULL; + } + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNoteDialogCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDialogCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestNoteDialogCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline17 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KSix ), + KeyOK, + KeyOK, //Invoke RunDlgLD() four times + KeyOK, + KeyOK, + KeyOK, + WAIT( 15 ), + + //outline18 + LeftCBA, + REP( Down, KSix ), + KeyOK, + REP( Down, KOne ), + KeyOK, //Invoke RunDlgLD() three times + DELAY( KOne ), + + //outline19 + LeftCBA, + REP( Down, KSix ), + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDialogCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestNoteDialogCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline17 ) + || ( aCmd > EBCTestNoteCmdOutline19 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline17: + TestSetFunctionsL(); + break; + case EBCTestNoteCmdOutline18: + TestOtherPublicFunctionsL(); + break; + case EBCTestNoteCmdOutline19: + TestProtectedFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDialogCase::TestSetFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestNoteDialogCase::TestSetFunctionsL() + { + iNoteDialog = new( ELeave ) CAknNoteDialog(); + AssertNotNullL( iNoteDialog, KNoteDialogCreateComment ); + + iNoteDialog->SetTimeout( CAknNoteDialog::EShortTimeout ); + AssertTrueL( ETrue, KSetTimeoutComment ); + + iNoteDialog->SetTone( CAknNoteDialog::EConfirmationTone ); + AssertTrueL( ETrue, KSetToneComment ); + + iNoteDialog->SetTextWrapping( ETrue ); + AssertTrueL( ETrue, KSetTextWrappingComment ); + + iNoteDialog->SetTextProcessing( ETrue ); + AssertTrueL( ETrue, KSetTextProcessingComment ); + + iNoteDialog->SetTextNumberL( KBCTestTextNumber ); + AssertTrueL( ETrue, KSetTextNumberLComment ); + + iNoteDialog->SetImageL( NULL ); + AssertTrueL( ETrue, KSetImageLComment ); + + iNoteDialog->SetIconL( NULL ); + AssertTrueL( ETrue, KSetIconLComment ); + + iNoteDialog->SetTextPluralityL( ETrue ); + AssertTrueL( ETrue, KSetTextPluralityLComment ); + + iNoteDialog->SetCurrentLabelL( R_BCTESTNOTE_NO_ICON, KCurrentLabel ); + AssertTrueL( ETrue, KSetCurrentLabelLComment ); + + delete iNoteDialog; + iNoteDialog = NULL; + + CAknNoteDialog* tmpNoteDialog = new( ELeave ) CAknNoteDialog(); + tmpNoteDialog->PrepareLC( R_BCTESTNOTE_IMAGE_NOTE ); + tmpNoteDialog->RunDlgLD( CAknNoteDialog::EShortTimeout, + CAknNoteDialog::EConfirmationTone ); + AssertTrueL( ETrue, KRunDlgLDTTComment ); + tmpNoteDialog = NULL; + + tmpNoteDialog = new( ELeave ) CAknNoteDialog(); + tmpNoteDialog->PrepareLC( R_BCTESTNOTE_IMAGE_NOTE ); + tmpNoteDialog->RunDlgLD( CAknNoteDialog::EWarningTone ); + AssertTrueL( ETrue, KRunDlgLDTComment ); + tmpNoteDialog = NULL; + + tmpNoteDialog = new( ELeave ) CAknNoteDialog(); + tmpNoteDialog->PrepareLC( R_BCTESTNOTE_IMAGE_NOTE ); + tmpNoteDialog->RunDlgLD(); + AssertTrueL( ETrue, KRunDlgLDComment ); + tmpNoteDialog = NULL; + + tmpNoteDialog = new( ELeave ) CAknNoteDialog(); + tmpNoteDialog->PrepareLC( R_BCTESTNOTE_IMAGE_NOTE ); + tmpNoteDialog->RunDlgLD( KTwo ); + AssertTrueL( ETrue, KRunDlgLDLastComment ); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDialogCase::TestOtherPublicFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestNoteDialogCase::TestOtherPublicFunctionsL() + { + CAknNoteDialog* tNoteDialog = new( ELeave ) CAknNoteDialog(); + + CleanupStack::PushL( tNoteDialog ); + + TKeyEvent keyEvent; + keyEvent.iCode = EKeyCBA1; + tNoteDialog->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventLComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + tNoteDialog->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventLComment ); + + CleanupStack::Pop( tNoteDialog ); + + tNoteDialog->ExecuteDlgLD( R_BCTESTNOTE_NO_ICON, KTwo ); + AssertTrueL( ETrue, KExecuteDlgLDComment ); + tNoteDialog = NULL; + + tNoteDialog = new( ELeave ) CAknNoteDialog(); + tNoteDialog->ExecuteDlgLD( CAknNoteDialog::EConfirmationTone, + R_BCTESTNOTE_NO_ICON ); + AssertTrueL( ETrue, KExecuteDlgLDOverComment ); + tNoteDialog = NULL; + + tNoteDialog = new( ELeave ) CAknNoteDialog(); + tNoteDialog->ExecuteDlgLD( CAknNoteDialog::EShortTimeout, + CAknNoteDialog::EConfirmationTone, R_BCTESTNOTE_NO_ICON ); + AssertTrueL( ETrue, KExecuteDlgLDOverLoadComment ); + tNoteDialog = NULL; + + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDialogCase::TestProtectedFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestNoteDialogCase::TestProtectedFunctionsL() + { + CAknNoteDialog* tmpNoteDialog = new( ELeave ) CAknNoteDialog(); + tmpNoteDialog->PrepareLC( R_BCTESTNOTE_IMAGE_NOTE ); + + CBCTestSubNoteDialog* subNoteDialog = + static_cast ( tmpNoteDialog ); + + subNoteDialog->SetNoMemoryAllocation(); + AssertTrueL( ETrue, KSetNoMemoryAllocationComment ); + + CleanupStack::PopAndDestroy( tmpNoteDialog ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implements test bc for note control document. +* +*/ + + +// INCLUDE FILES +#include "bctestnotedocument.h" +#include "bctestnoteappUi.h" + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CBCTestNoteDocument* CBCTestNoteDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestNoteDocument* CBCTestNoteDocument::NewL( CEikApplication& aApp ) + { + CBCTestNoteDocument* self = new( ELeave ) CBCTestNoteDocument( aApp ); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDocument::~CBCTestNoteDocument() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestNoteDocument::~CBCTestNoteDocument() + { + } + +// --------------------------------------------------------------------------- +// CBCTestNoteDocument::CBCTestNoteDocument( CEikApplication& ) +// Overload constructor. +// --------------------------------------------------------------------------- +// +CBCTestNoteDocument::CBCTestNoteDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// --------------------------------------------------------------------------- +// CEikAppUi* CBCTestNoteDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestNoteDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestNoteAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnoteview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnoteview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,168 @@ +/* +* 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 "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: Implements test bc for note control view. +* +*/ + + +#include +#include + +#include "bctestnote.hrh" +#include "bctestnoteview.h" +#include "bctestnotecontainer.h" +#include "bctestutil.h" +#include "bctestnotewrappercase.h" +#include "bctestwaitdialogcase.h" +#include "bcteststaticnotecase.h" +#include "bctesteikinfodialogcase.h" +#include "bctesteikprogressinfocase.h" +#include "bctestwaitnotewrappercase.h" +#include "bctestnotedialogcase.h" +#include "bctestnotecontrolcase.h" + +// constant +_LIT( KNoteWrapperCaseComment, "Note wrapper case" ); +_LIT( KWaitDialogCaseComment, "Wait dialog case" ); +_LIT( KStaticNoteCaseComment, "Static note case" ); +_LIT( KEikInfoDialogCaseComment, "Eik info dialog case" ); +_LIT( KEikProgressInfoCaseComment, "Eik progress info case" ); +_LIT( KWaitNoteWrapperCaseComment, "Wait note wrapper case" ); +_LIT( KNoteDialogCaseComment, "Note dialog case" ); +_LIT( KNoteControlCaseComment, "Note control case" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteView* CBCTestNoteView::NewL() + { + CBCTestNoteView* self = new ( ELeave ) CBCTestNoteView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteView::CBCTestNoteView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNoteView::ConstructL() + { + BaseConstructL( R_BCTESTNOTE_VIEW ); + + iContainer = new( ELeave ) CBCTestNoteContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestNoteWrapperCase::NewL( iContainer ), + KNoteWrapperCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestWaitDialogCase::NewL( iContainer ), + KWaitDialogCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestStaticNoteCase::NewL( iContainer ), + KStaticNoteCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestEikInfoDialogCase::NewL( iContainer ), + KEikInfoDialogCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestEikProgressInfoCase::NewL( iContainer ), + KEikProgressInfoCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestWaitNoteWrapperCase::NewL( iContainer ), + KWaitNoteWrapperCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestNoteDialogCase::NewL( iContainer ), + KNoteDialogCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestNoteControlCase::NewL( iContainer ), + KNoteControlCaseComment ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNoteView::~CBCTestNoteView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestNoteView::Id() const + { + return KBCTestNoteViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestNoteView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestNoteView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestNoteView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestNoteView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestNoteView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestNoteCmdEmptyOutline && + aCommand < EBCTestNoteCmdOutline159 ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotewrappercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestnotewrappercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,459 @@ +/* +* 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 "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: Implements test bc for note wrapper testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include "bctestnotewrappercase.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KThree = 3; +const TInt KFour = 4; +const TInt KFive = 5; +const TInt KTen = 15; + +// constant for CAknWarningNote +_LIT( KWarningNoteCreateComment, "WarningNote created" ); +_LIT( KWHandlePointerEventLComment, + "Warning Note's HandlePointerEventL() invoked" ); +_LIT( KWarningNoteCreateOverComment, "WarningNote created(OverLoad)" ); +_LIT( KWarningNote, "This is Warning note!" ); +_LIT( KWExecuteLDComment, + "CAknResourceNoteDialog's ExecuteLD() invoked" ); +_LIT( KWarningNoteCreateLoadComment, "pWarningNote created(overload)" ); + +// constant for CAknErrorNote +_LIT( KErrorNoteCreateComment, "ErrorNote created" ); +_LIT( KEHandlePointerEventLComment, + "Error Note's HandlePointerEventL() invoked" ); +_LIT( KErrorNoteCreateOverComment, "ErrorNote created(OverLoad)" ); +_LIT( KErrorNote, "This is Error note!" ); +_LIT( KEExecuteLDComment, + "CAknResourceNoteDialog's ExecuteLD() invoked" ); +_LIT( KErrorNoteCreateLoadComment, "ErrorNote created(OverLoad again)" ); + +// constant for CAknInformationNote +_LIT( KInformationNoteCreateComment, "informationNote created" ); +_LIT( KIHandlePointerEventLComment, + "information Note's HandlePointerEventL() invoked" ); +_LIT( KInformationNoteCreateOverComment, + "informationNote created(OverLoad)" ); +_LIT( KInforNote, "This is information note!" ); +_LIT( KIExecuteLDComment, + "CAknResourceNoteDialog's ExecuteLD() invoked" ); +_LIT( KInformationNoteCreateLoadComment, + "informationNote created(OverLoad again)" ); + +// constant for CAknConfirmationNote +_LIT( KConfirmationNoteCreateComment, "confirmationNote created" ); +_LIT( KCHandlePointerEventLComment, + "confirmation Note's HandlePointerEventL() invoked" ); +_LIT( KConfirmationNoteCreateOverComment, + "confirmationNote created(OverLoad)" ); +_LIT( KCExecuteLDComment, + "CAknResourceNoteDialog's ExecuteLD() invoked" ); +_LIT( KConfirmationNoteCreateLoadComment, + "confirmationNote created(OverLoad again)" ); + +// constant for CAknNoteWrapper +_LIT( KNoteWrapperCreateComment, "iNoteWrapper Created" ); +_LIT( KNHandlePointerEventLComment, + "Note Wrapper's HandlePointerEventL() invoked" ); +_LIT( KNHandleDialogPageEventLComment, + "Note Wrapper's HandleDialogPageEventL() invoked" ); +_LIT( KNExecuteLDComment, "Note Wrapper's ExecuteLD() invoked" ); +_LIT( KNoteWrapperCreateAgainComment, "iNoteWrapper Created" ); +_LIT( KNoteWrapperCreateOverComment, "tmpNoteWrapper Created" ); +_LIT( KPrompt, "Akn Note Wrapper OverLoad" ); +_LIT( KNExecuteLDOverComment, "Note Wrapper's ExecuteLD() overload" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteWrapperCase* CBCTestNoteWrapperCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestNoteWrapperCase* self = new( ELeave ) CBCTestNoteWrapperCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestNoteWrapperCase::CBCTestNoteWrapperCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNoteWrapperCase::~CBCTestNoteWrapperCase() + { + if ( iNoteWrapper ) + { + delete iNoteWrapper; + iNoteWrapper = NULL; + } + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline1 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA, + LeftCBA, + WAIT( KTwo ), + LeftCBA, + + //outline2 + LeftCBA, + LeftCBA, + REP( Down, KOne ), + LeftCBA, + WAIT( KTwo ), + LeftCBA, + + //outline3 + LeftCBA, + LeftCBA, + REP( Down, KTwo ), + LeftCBA, + WAIT( KTwo ), + LeftCBA, + + //outline4 + LeftCBA, + LeftCBA, + REP( Down, KThree ), + LeftCBA, + WAIT( KTwo ), + LeftCBA, + + //outline5 + LeftCBA, + LeftCBA, + REP( Down, KFour ), + LeftCBA, + WAIT( KTen ), + //LeftCBA, + + //outline6 + LeftCBA, + LeftCBA, + REP( Down, KFive ), + LeftCBA, + WAIT( KTen ), + //LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline01 ) + || ( aCmd > EBCTestNoteCmdOutline06 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline01: + TestWarningNoteL(); + break; + case EBCTestNoteCmdOutline02: + TestErrorNoteL(); + break; + case EBCTestNoteCmdOutline03: + TestInformationNoteL(); + break; + case EBCTestNoteCmdOutline04: + TestConfirmationNoteL(); + break; + case EBCTestNoteCmdOutline05: + TestNoteWrapperL(); + break; + case EBCTestNoteCmdOutline06: + TestNoteWrapperOverLoadL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::TestWarningNoteL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::TestWarningNoteL() + { + iWarningNote = new( ELeave ) CAknWarningNote(); + AssertNotNullL( iWarningNote, KWarningNoteCreateComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iWarningNote->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KWHandlePointerEventLComment ); + + CAknWarningNote* tWarningNote = new( ELeave ) CAknWarningNote( EFalse ); + CleanupStack::PushL( tWarningNote ); + AssertNotNullL( tWarningNote, KWarningNoteCreateOverComment ); + + CleanupStack::Pop( tWarningNote ); + tWarningNote->ExecuteLD( KWarningNote ); + AssertTrueL( ETrue, KWExecuteLDComment ); + + CAknWarningNote* pWarningNote = new( ELeave ) + CAknWarningNote( &iWarningNote ); + CleanupStack::PushL( pWarningNote ); + AssertNotNullL( pWarningNote, KWarningNoteCreateLoadComment ); + CleanupStack::Pop( pWarningNote ); + + delete iWarningNote; + iWarningNote = NULL; + delete pWarningNote; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::TestErrorNoteL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::TestErrorNoteL() + { + iErrorNote = new( ELeave ) CAknErrorNote(); + AssertNotNullL( iErrorNote, KErrorNoteCreateComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iErrorNote->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KEHandlePointerEventLComment ); + + CAknErrorNote* tErrorNote = new( ELeave ) CAknErrorNote( EFalse ); + CleanupStack::PushL( tErrorNote ); + AssertNotNullL( tErrorNote, KErrorNoteCreateOverComment ); + CleanupStack::Pop( tErrorNote ); + + tErrorNote->ExecuteLD( KErrorNote ); + AssertTrueL( ETrue, KEExecuteLDComment ); + + CAknErrorNote* pErrorNote = new( ELeave ) CAknErrorNote( &iErrorNote ); + CleanupStack::PushL( pErrorNote ); + AssertNotNullL( pErrorNote, KErrorNoteCreateLoadComment ); + CleanupStack::Pop( pErrorNote ); + + delete iErrorNote; + iErrorNote = NULL; + delete pErrorNote; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::TestInformationNoteL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::TestInformationNoteL() + { + iInforNote = new( ELeave ) CAknInformationNote(); + AssertNotNullL( iInforNote, KInformationNoteCreateComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iInforNote->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KIHandlePointerEventLComment ); + + CAknInformationNote* tInforNote = new( ELeave ) + CAknInformationNote( EFalse ); + CleanupStack::PushL( tInforNote ); + AssertNotNullL( tInforNote, KInformationNoteCreateOverComment ); + CleanupStack::Pop( tInforNote ); + + tInforNote->ExecuteLD( KInforNote ); + AssertTrueL( ETrue, KIExecuteLDComment ); + + CAknInformationNote* pInforNote = new( ELeave ) + CAknInformationNote( &iInforNote ); + CleanupStack::PushL( pInforNote ); + AssertNotNullL( pInforNote, KInformationNoteCreateLoadComment ); + CleanupStack::Pop( pInforNote ); + + delete iInforNote; + iInforNote = NULL; + delete pInforNote; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::TestConfirmationNoteL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::TestConfirmationNoteL() + { + iConfirmNote = new( ELeave ) CAknConfirmationNote(); + AssertNotNullL( iConfirmNote, KConfirmationNoteCreateComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iConfirmNote->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KCHandlePointerEventLComment ); + + CAknConfirmationNote* tConfirmNote = new( ELeave ) + CAknConfirmationNote( ETrue ); + CleanupStack::PushL( tConfirmNote ); + AssertNotNullL( tConfirmNote, KConfirmationNoteCreateOverComment ); + CleanupStack::Pop( tConfirmNote ); + + tConfirmNote->ExecuteLD(); + AssertTrueL( ETrue, KCExecuteLDComment ); + + CAknConfirmationNote* pConfirmNote = new( ELeave ) + CAknConfirmationNote( &iConfirmNote ); + CleanupStack::PushL( pConfirmNote ); + AssertNotNullL( pConfirmNote, KConfirmationNoteCreateLoadComment ); + CleanupStack::Pop( pConfirmNote ); + + delete iConfirmNote; + iConfirmNote = NULL; + delete pConfirmNote; + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::TestNoteWrapperL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::TestNoteWrapperL() + { + COwnAknNoteWrapper* tmpNoteWrapper = new( ELeave ) COwnAknNoteWrapper(); + CleanupStack::PushL( tmpNoteWrapper ); + AssertNotNullL( tmpNoteWrapper, KNoteWrapperCreateComment ); + + TInt err; + TRAP( err, tmpNoteWrapper->ReadAndPrepareLC( R_BCTESTNOTE_WRAPPER ) ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton3Up; + tmpNoteWrapper->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KNHandlePointerEventLComment ); + + tmpNoteWrapper->HandleDialogPageEventL( + MEikDialogPageObserver::EDialogPageTapped ); + AssertTrueL( ETrue, KNHandleDialogPageEventLComment ); + + //static delete tmpNoteWrapper in HandleDialogPageEventL(). + CleanupStack::Pop( tmpNoteWrapper ); + CAknNoteWrapper* otherTmpNoteWrapper = new( ELeave ) CAknNoteWrapper(); + otherTmpNoteWrapper->ExecuteLD( R_BCTESTNOTE_WRAPPER ); + AssertTrueL( ETrue, KNExecuteLDComment ); + } + +// --------------------------------------------------------------------------- +// CBCTestNoteWrapperCase::TestNoteWrapperOverLoadL +// --------------------------------------------------------------------------- +// +void CBCTestNoteWrapperCase::TestNoteWrapperOverLoadL() + { + iNoteWrapper = new( ELeave ) CAknNoteWrapper(); + AssertNotNullL( iNoteWrapper, KNoteWrapperCreateAgainComment ); + + CAknNoteWrapper* tmpNoteWrapper = new( ELeave ) + CAknNoteWrapper( &iNoteWrapper ); + CleanupStack::PushL( tmpNoteWrapper ); + AssertNotNullL( tmpNoteWrapper, KNoteWrapperCreateOverComment ); + + delete iNoteWrapper; + iNoteWrapper = NULL; + CleanupStack::PopAndDestroy( tmpNoteWrapper ); + tmpNoteWrapper = NULL; + + tmpNoteWrapper = new( ELeave ) CAknNoteWrapper(); + tmpNoteWrapper->ExecuteLD( R_BCTESTNOTE_WRAPPER, KPrompt ); + AssertTrueL( ETrue, KNExecuteLDOverComment ); + } + +// --------------------------------------------------------------------------- +// COwnAknNoteWrapper::ReadAndPrepareLC +// --------------------------------------------------------------------------- +// +void COwnAknNoteWrapper::ReadAndPrepareLC(TInt aResId) + { + TResourceReader resReader; + iCoeEnv->CreateResourceReaderLC(resReader, aResId); + TAknNoteResData resData; + resData.iResId = resReader.ReadInt32(); + resData.iTimeout = STATIC_CAST(CAknNoteDialog::TTimeout, resReader.ReadInt32()); + resData.iTone = STATIC_CAST(CAknNoteDialog::TTone, resReader.ReadInt16()); + resData.iText = resReader.ReadTPtrC(); + + CleanupStack::PopAndDestroy(); // Resource reader + PrepareLC(resData.iResId); + CleanupStack::Pop(); + } + +// --------------------------------------------------------------------------- +// COwnAknNoteWrapper::COwnAknNoteWrapper +// --------------------------------------------------------------------------- +// +COwnAknNoteWrapper::COwnAknNoteWrapper() + { + } + +// --------------------------------------------------------------------------- +// COwnAknNoteWrapper::~COwnAknNoteWrapper +// --------------------------------------------------------------------------- +// +COwnAknNoteWrapper::~COwnAknNoteWrapper() + { + } + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bcteststaticnotecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bcteststaticnotecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,186 @@ +/* +* 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 "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: Implements test bc for static note testcase. +* +*/ + + +#include +#include +#include +#include + +#include "bcteststaticnotecase.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" +#include "bctestsubstaticnote.h" + +// constant +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KFive = 5; + +_LIT( KEikDialogCreateComment, "eikdialog created" ); +_LIT( KStaticNoteDialogCreateComment, "StaticNote created" ); +_LIT( KSetNumberOfBordersComment, + "StaticNote's SetNumberOfBorders() invoked" ); +_LIT( KHandlePointerEventLComment, + "StaticNote's HandlePointerEventL() invoked" ); +_LIT( KSubStaticNoteComment, "SubStaticNote created" ); +_LIT( KOfferKeyEventLComment, "StaticNote's OfferKeyEventL() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestStaticNoteCase* CBCTestStaticNoteCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestStaticNoteCase* self = new( ELeave ) CBCTestStaticNoteCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestStaticNoteCase::CBCTestStaticNoteCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestStaticNoteCase::~CBCTestStaticNoteCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestStaticNoteCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestStaticNoteCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestStaticNoteCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline10 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KTwo ), + KeyOK, + KeyOK, + + //outline11 + LeftCBA, + REP( Down, KTwo ), + KeyOK, + REP( Down, KOne ), + KeyOK, + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestStaticNoteCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestStaticNoteCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline10 ) + || ( aCmd > EBCTestNoteCmdOutline11 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline10: + TestStaticNoteL(); + break; + case EBCTestNoteCmdOutline11: + TestProtectedFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestStaticNoteCase::TestStaticNoteL +// --------------------------------------------------------------------------- +// +void CBCTestStaticNoteCase::TestStaticNoteL() + { + iEikDialog = new( ELeave ) CEikDialog(); + AssertNotNullL( iEikDialog, KEikDialogCreateComment ); + iStaticNote = new( ELeave ) CAknStaticNoteDialog ( &iEikDialog ); + AssertNotNullL( iStaticNote, KStaticNoteDialogCreateComment ); + + iStaticNote->SetNumberOfBorders( KFive ); + AssertTrueL( ETrue, KSetNumberOfBordersComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + iStaticNote->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventLComment ); + + delete iEikDialog; + iEikDialog = NULL; + delete iStaticNote; + iStaticNote = NULL; + + } + +// --------------------------------------------------------------------------- +// CBCTestStaticNoteCase::TestProtectedFunctionsL +// +// +void CBCTestStaticNoteCase::TestProtectedFunctionsL() + { + CBCTestSubStaticNote* subStaticNote = CBCTestSubStaticNote::NewL(); + AssertNotNullL( subStaticNote, KSubStaticNoteComment ); + + subStaticNote->PrepareLC(R_BCTEST_STATIC_TEXT_NOTE); + TKeyEvent keyEvent; + keyEvent.iCode = EKeyOK; + subStaticNote->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventLComment ); + + CleanupStack::PopAndDestroy(); //PrepareLC + } + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubeikprogressinfo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubeikprogressinfo.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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: Invoke eik progress info's protected APIs. +* +*/ + + +#include +#include +#include +#include + +#include "bctestsubeikprogressinfo.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikProgressInfo* CBCTestSubEikProgressInfo::NewL() + { + CBCTestSubEikProgressInfo* self = new( ELeave ) + CBCTestSubEikProgressInfo(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikProgressInfo::CBCTestSubEikProgressInfo() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubEikProgressInfo::~CBCTestSubEikProgressInfo() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSubEikProgressInfo::ConstructL() + { + } + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubnotedialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubnotedialog.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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: Invoke note dialog's protected APIs. +* +*/ + + +#include +#include + +#include "bctestsubnotedialog.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSubNoteDialog* CBCTestSubNoteDialog::NewL() + { + CBCTestSubNoteDialog* self = new( ELeave ) CBCTestSubNoteDialog(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubNoteDialog::CBCTestSubNoteDialog() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubNoteDialog::~CBCTestSubNoteDialog() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSubNoteDialog::ConstructL() + { + } + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubstaticnote.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubstaticnote.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Invoke static note's protected APIs. +* +*/ + + +#include +#include + +#include "bctestsubstaticnote.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSubStaticNote* CBCTestSubStaticNote::NewL() + { + CBCTestSubStaticNote* self = new( ELeave ) CBCTestSubStaticNote(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubStaticNote::CBCTestSubStaticNote() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubStaticNote::~CBCTestSubStaticNote() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSubStaticNote::ConstructL() + { + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubwaitnotewrapper.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestsubwaitnotewrapper.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,120 @@ +/* +* 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 "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: Implement MAknProgressDialogCallBack. +* +*/ + + +#include +#include + +#include "bctestsubwaitnotewrapper.h" + +const TInt KMaxNumber = 10000000; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSubWaitNoteWrapper* CBCTestSubWaitNoteWrapper::NewL() + { + CBCTestSubWaitNoteWrapper* self = + new( ELeave ) CBCTestSubWaitNoteWrapper(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubWaitNoteWrapper::CBCTestSubWaitNoteWrapper() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubWaitNoteWrapper::~CBCTestSubWaitNoteWrapper() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSubWaitNoteWrapper::ConstructL() + { + iCounter = 0; + } + +// --------------------------------------------------------------------------- +// CBCTestSubWaitNoteWrapper::StepL() +// --------------------------------------------------------------------------- +// +void CBCTestSubWaitNoteWrapper::StepL() + { + iCounter++; + } + +// --------------------------------------------------------------------------- +// CBCTestSubWaitNoteWrapper::IsProcessDone() +// --------------------------------------------------------------------------- +// +TBool CBCTestSubWaitNoteWrapper::IsProcessDone() const + { + if ( iCounter > KMaxNumber ) + { + return ETrue; + } + else + { + return EFalse; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSubWaitNoteWrapper::ProcessFinished() +// --------------------------------------------------------------------------- +// +void CBCTestSubWaitNoteWrapper::ProcessFinished() + { + + } + +// --------------------------------------------------------------------------- +// CBCTestSubWaitNoteWrapper::DialogDismissedL(TInt aButtonId); +// --------------------------------------------------------------------------- +// +void CBCTestSubWaitNoteWrapper::DialogDismissedL( TInt aButtonId ) + { + if ( aButtonId == -1 ) + { + iCounter = 0; + } + } + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestwaitdialogcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestwaitdialogcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,258 @@ +/* +* 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 "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: Implements test bc for wait dialog testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include +#include + +#include "bctestwaitdialogcase.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KBCTestNoteProgressbarFinalValue = 200; +const TInt KBCTestNoteProgressbarIncrement = 5; +const TInt KBCTestNoteProgressbarInterval = 20; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KThree = 3; + +_LIT( KEikDialogCreateComment, "eikdialog created" ); +_LIT( KWaitDialogCreateComment, "WaitDialog created" ); +_LIT( KWHandlePointerEventLComment, + "WaitDialog's HandlePointerEventL() invoked" ); +_LIT( KPRunLDComment, "ProgressDialog's RunLD() invoked" ); +_LIT( KWaitDialogCreateOverLoadComment, "WaitDialog created(overload)" ); +_LIT( KProgressDialogCreateComment, "progressdialog created" ); +_LIT( KPOfferKeyEventLComment, + "ProgressDialog's OfferKeyEventL() invoked" ); +_LIT( KSetCallbackComment, "ProgressDialog SetCallback() invoked" ); +_LIT( KTProgressDialogCreateComment, "tprogressdialog created" ); +_LIT( KTExecuteLDComment, "ProgressDialog ExecuteLD() invoked" ); +_LIT( KGetProgressInfoLComment, + "ProgressDialog GetProgressInfoL() invoked" ); +_LIT( KTProcessFinishedLComment, + "ProgressDialog ProcessFinishedL() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestWaitDialogCase* CBCTestWaitDialogCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestWaitDialogCase* self = new( ELeave ) CBCTestWaitDialogCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestWaitDialogCase::CBCTestWaitDialogCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestWaitDialogCase::~CBCTestWaitDialogCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestWaitDialogCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestWaitDialogCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestWaitDialogCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline7 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + Down, + KeyOK, + KeyOK, + WAIT( KThree ), + RightCBA, + + //outline8 + LeftCBA, + Down, + KeyOK, + REP( Down, KOne ), + KeyOK, + WAIT( KTwo ), + KeyOK, + + //outline9 + LeftCBA, + Down, + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestWaitDialogCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestWaitDialogCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline07 ) + || ( aCmd > EBCTestNoteCmdOutline09 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline07: + TestWaitDialogL(); + break; + case EBCTestNoteCmdOutline08: + TestProgressDialogL(); + break; + case EBCTestNoteCmdOutline09: + TestProgressOtherFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestWaitDialogCase::TestWaitDialogL +// --------------------------------------------------------------------------- +// +void CBCTestWaitDialogCase::TestWaitDialogL() + { + iEikDialog = new( ELeave ) CEikDialog(); + AssertNotNullL( iEikDialog, KEikDialogCreateComment ); + CAknWaitDialog* tmpWaitDialog = new( ELeave ) CAknWaitDialog ( NULL ); + CleanupStack::PushL( tmpWaitDialog ); + AssertNotNullL( tmpWaitDialog, KWaitDialogCreateComment ); + + TPointerEvent tPointerEvent; + tPointerEvent.iType = TPointerEvent::EButton2Up; + tmpWaitDialog->HandlePointerEventL( tPointerEvent ); + AssertTrueL( ETrue, KWHandlePointerEventLComment ); + + CleanupStack::Pop( tmpWaitDialog ); + tmpWaitDialog->PrepareLC( R_BCTESTNOTE_WAIT_NOTE_FOR_AKNWAITDIALOG ); + tmpWaitDialog->RunLD(); + AssertTrueL( ETrue, KPRunLDComment ); + + CAknWaitDialog* tWaitDialog = new( ELeave ) CAknWaitDialog ( + &iEikDialog, ETrue ); + CleanupStack::PushL( tWaitDialog ); + AssertNotNullL( tWaitDialog, KWaitDialogCreateOverLoadComment ); + CleanupStack::Pop( tWaitDialog ); + + delete iEikDialog; + iEikDialog = NULL; + delete tWaitDialog; + } + +// --------------------------------------------------------------------------- +// CBCTestWaitDialogCase::TestProgressDialogL +// --------------------------------------------------------------------------- +// +void CBCTestWaitDialogCase::TestProgressDialogL() + { + CAknProgressDialog* progressDialog = new( ELeave ) CAknProgressDialog( + KBCTestNoteProgressbarFinalValue, + KBCTestNoteProgressbarIncrement, + KBCTestNoteProgressbarInterval, NULL ); + CleanupStack::PushL( progressDialog ); + AssertNotNullL( progressDialog, KProgressDialogCreateComment ); + + progressDialog->PrepareLC( R_BCTESTNOTE_PROGRESS_NOTE ); + progressDialog->RunLD(); + + TKeyEvent keyEvent; + keyEvent.iCode = EKeyCBA1; + progressDialog->OfferKeyEventL( keyEvent, EEventKeyUp ); + AssertTrueL( ETrue, KPOfferKeyEventLComment ); + + progressDialog->SetCallback( NULL ); + AssertTrueL( ETrue, KSetCallbackComment ); + + CleanupStack::Pop( progressDialog ); + + } + +// --------------------------------------------------------------------------- +// CBCTestWaitDialogCase::TestProgressOtherFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestWaitDialogCase::TestProgressOtherFunctionsL() + { + iEikDialog = new( ELeave ) CEikDialog(); + CAknProgressDialog* tProgressDialog = new( ELeave ) + CAknProgressDialog( &iEikDialog ); + CleanupStack::PushL( tProgressDialog ); + AssertNotNullL( tProgressDialog, KTProgressDialogCreateComment ); + + CleanupStack::Pop( tProgressDialog ); + delete iEikDialog; + iEikDialog = NULL; + tProgressDialog->ExecuteLD( R_BCTESTNOTE_PROGRESS_NOTE ); + AssertTrueL( ETrue, KTExecuteLDComment ); + + tProgressDialog->GetProgressInfoL(); + AssertTrueL( ETrue, KGetProgressInfoLComment ); + + tProgressDialog->ProcessFinishedL(); + AssertTrueL( ETrue, KTProcessFinishedLComment ); + } + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestwaitnotewrappercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnote/src/bctestwaitnotewrappercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,187 @@ +/* +* 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 "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: Implements test bc for wait note wrapper testcase. +* +*/ + + +#include +#include +#include +#include + +#include "bctestwaitnotewrappercase.h" +#include "bctestsubwaitnotewrapper.h" +#include "bctestnotecontainer.h" +#include "bctestnote.hrh" +#include "autotestcommands.h" + +// constant +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KFive = 5; + +_LIT( KWaitNoteWrapperComment, "Waitnotewrapper created" ); +_LIT( KExecuteLComment, "Waitnotewrapper's ExecuteL invoked" ); +_LIT( KPrompt, "Please waiting..." ); +_LIT( KExecuteLOverComment, + "Waitnotewrapper's ExecuteL invoked(Overload)" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestWaitNoteWrapperCase* CBCTestWaitNoteWrapperCase::NewL( + CBCTestNoteContainer* aContainer ) + { + CBCTestWaitNoteWrapperCase* self = + new( ELeave ) CBCTestWaitNoteWrapperCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestWaitNoteWrapperCase::CBCTestWaitNoteWrapperCase( + CBCTestNoteContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestWaitNoteWrapperCase::~CBCTestWaitNoteWrapperCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestWaitNoteWrapperCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestWaitNoteWrapperCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestWaitNoteWrapperCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline15 + DELAY( KOne ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KFive ), + KeyOK, + KeyOK, + WAIT( KTwo ), + RightCBA, + + //outline16 + LeftCBA, + REP( Down, KFive ), + KeyOK, + Down, + KeyOK, + WAIT( KTwo ), + RightCBA + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestWaitNoteWrapperCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestWaitNoteWrapperCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestNoteCmdOutline15 ) + || ( aCmd > EBCTestNoteCmdOutline16 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestNoteCmdOutline15: + TestWaitNoteWrapperL(); + break; + case EBCTestNoteCmdOutline16: + TestOtherFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestWaitNoteWrapperCase::TestWaitNoteWrapperL +// --------------------------------------------------------------------------- +// +void CBCTestWaitNoteWrapperCase::TestWaitNoteWrapperL() + { + iWaitNoteWrapper = CAknWaitNoteWrapper::NewL(); + iSubWaitNoteWrapper = CBCTestSubWaitNoteWrapper::NewL(); + AssertNotNullL( iWaitNoteWrapper, KWaitNoteWrapperComment ); + + iWaitNoteWrapper->ExecuteL( R_BCTESTNOTE_WAIT_NOTE_WRAPPER, + *iSubWaitNoteWrapper, ETrue ); + AssertTrueL( ETrue, KExecuteLComment ); + + delete iSubWaitNoteWrapper; + iSubWaitNoteWrapper = NULL; + delete iWaitNoteWrapper; + iWaitNoteWrapper = NULL; + + } + +// --------------------------------------------------------------------------- +// CBCTestWaitNoteWrapperCase::TestOtherFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestWaitNoteWrapperCase::TestOtherFunctionsL() + { + iWaitNoteWrapper = CAknWaitNoteWrapper::NewL(); + iSubWaitNoteWrapper = CBCTestSubWaitNoteWrapper::NewL(); + + iWaitNoteWrapper->ExecuteL( R_BCTESTNOTE_WAIT_NOTE_WRAPPER, + *iSubWaitNoteWrapper, KPrompt, ETrue ); + AssertTrueL( ETrue, KExecuteLOverComment ); + + delete iSubWaitNoteWrapper; + iSubWaitNoteWrapper = NULL; + delete iWaitNoteWrapper; + iWaitNoteWrapper = NULL; + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bctestnotifier.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bctestnotifier.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 "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: project specification file for the BCTestNotifier. +* +*/ + + +TARGET BCTestNotifier.exe +TARGETTYPE exe +UID 0x0 0x2000475F + + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestNotifier.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG SC + +SOURCEPATH ../Src +SOURCE bctestnotifierapp.cpp +SOURCE bctestnotifierdocument.cpp +SOURCE bctestnotifierappui.cpp +SOURCE bctestnotifierview.cpp +SOURCE bctestnotifiercontainer.cpp +SOURCE bctestnotifiercase.cpp +SOURCE bctestactiveengine.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY insock.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY estor.lib +LIBRARY AknNotify.lib +LIBRARY bafl.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/BCTestNotifier_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bctestnotifier.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bctestnotifier.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,208 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestNotifier.hrh" +#include "BCTestNotifier.loc" + +#ifdef LANGUAGE_01 +#include "BCTestNotifier_01.loc" +#endif + +#ifdef LANGUAGE_31 +#include "BCTestNotifier_31.loc" +#endif + +#ifdef LANGUAGE_37 +#include "BCTestNotifier_37.loc" +#endif + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestNotif"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestnotifier_menubar_main; + cba = r_bctestnotifier_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestnotifier_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestnotifier_view +// AVKON_VIEW for CBCTestNotifierView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestnotifier_view + { + menubar = r_bctestnotifier_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestnotifier_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestnotifier_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestnotifier_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestnotifier_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestnotifier_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnotifier_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestnotifier_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestnotifier_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestnotifier_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestnotifier_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestnotifier_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestnotifier_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestnotifier_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestNotifierCbaCmdNext; + txt = qtn_bctestnotifier_cba_next; + } + }; + } + + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bctestnotifier_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bctestnotifier_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475F // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestNotifier"; + localisable_resource_file = "\\resource\\apps\\BCTestNotifier"; + localisable_resource_id = R_BCTESTNOTIFIER_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //newfile = KAppDoesNotSupportNewFile; + //launch = KAppLaunchInForeground; + group_name = "BCTest"; + //default_screen_number = 2; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestNotifier.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestactiveengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestactiveengine.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTEST_ACTIVE_ENGINE_H +#define C_BCTEST_ACTIVE_ENGINE_H + +// INCLUDES +#include +#include + +// CLASS DECLARATION + +/** +* CBCTestActiveEngine application class. +* Provides factory to create concrete document object. +*/ +class CBCTestActiveEngine : public CActive + { + public: + CBCTestActiveEngine(); + virtual ~CBCTestActiveEngine(); + + public: + TRequestStatus* GetStatus(); + TBool Active(); + void MakeActive(); + + + protected: // From CActive + void RunL(); + void DoCancel(); + }; + +class CWaitGlobalNote : public CActive + { + public: + static CWaitGlobalNote* NewL(); + CWaitGlobalNote(); + virtual ~CWaitGlobalNote(); + + public: + void ShowGlobalNoteAsyncL(); + + protected: + void RunL(); + void DoCancel(); + void ConstructL(); + private: + TInt noteId; + CAknGlobalNote* iNote; + }; +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: BCTestNotifier resource header file +* +*/ + + +#ifndef BCTESTNOTIFIER_HRH +#define BCTESTNOTIFIER_HRH + +enum TBCTestNotifierMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest, + EBCTestMenuItem + }; + +enum TBCTestNotifierCba + { + EBCTestNotifierCbaCmdNext = 0x6300 + }; + + +#endif // BCTESTNOTIFIER_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestNotifier localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTNOTIFIER" +#define qtn_apps_tavl_grid "BCTESTNOTIFIER" + +// MenuBar +#define qtn_bctestnotifier_menubar "Option" +#define qtn_bctestnotifier_cba_next "Next" +#define qtn_bctestnotifier_autotest "Autotest" +#define qtn_bctestnotifier_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestnotifier_outline1 "Outline01" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestNotifier localise file +* +*/ + + +#include "bctestnotifier.loc" + +// LOCALISATION STRINGS + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier_31.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier_31.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestNotifier localise file +* +*/ + + +#include "bctestnotifier.loc" +#include "ChineseStrings.loc" + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier_37.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifier_37.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: BCTestNotifier localise file +* +*/ + + +#include "bctestnotifier.loc" +#include "ArabicStrings.loc" + + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTestNOTIFIERAPP_H +#define C_BCTestNOTIFIERAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestNotifier = { 0x2000475F }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestNotifierApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestNotifierApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTemplateDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTemplate ). + * @return The value of KUidBCTestTemplate. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTNOTIFIERAPPUI_H +#define C_BCTESTNOTIFIERAPPUI_H + +#include + +class CBCTestNotifierView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestNotifierAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestNotifierAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestNotifierAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestNotifierView* iView; + }; + +#endif // C_BCTESTNOTIFIERAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifiercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifiercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTEST_NOTIFIERCASE_H +#define C_BCTEST_NOTIFIERCASE_H + +#include "bctestcase.h" + +class CBCTestNotifierContainer; +class CCoeControl; +class CBCTestActiveEngine; +class CWaitGlobalNote; +/** +* test case for various list classes +*/ +class CBCTestNotifierCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestNotifierCase* NewL( CBCTestNotifierContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestNotifierCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestAllL(); + void TestGlobalConfirmationQueryL(); + void TestGlobalListQueryL(); + void TestGlobalMsgQueryL(); + void TestGlobalNoteL(); + void TestGlobalProgressDlgL(); + void TestPopupNotifyL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestNotifierCase( CBCTestNotifierContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestNotifierContainer* iContainer; + CBCTestActiveEngine* iActiveEngine; + CBCTestActiveEngine* iActiveEngine1; + CBCTestActiveEngine* iActiveEngine2; + CBCTestActiveEngine* iActiveEngine3; + CBCTestActiveEngine* iActiveEngine4; + CWaitGlobalNote* iActive; + }; + +#endif // C_BCTEST_NOTIFIERCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifiercontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifiercontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTEST_NOTIFIERCONTAINER_H +#define C_BCTEST_NOTIFIERCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestNotifierContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestNotifierContainer(); + + /** + * Destructor + */ + virtual ~CBCTestNotifierContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTEST_SETTINGPAGECONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTNOTIFIERDOCUMENT_H +#define C_BCTESTNOTIFIERDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestSettingPageDocument application class. +*/ +class CBCTestNotifierDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestNotifierDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestNotifierDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestNotifierDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestTemplateAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTNOTIFIERDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/inc/bctestnotifierview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTEST_NOTIFIER_VIEW_H +#define C_BCTEST_NOTIFIER_VIEW_H + +#include + +const TUid KBCTestNotifierViewId = { 1 }; + +class CBCTestNotifierContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestNotifierView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestNotifierView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestNotifierView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestNotifierView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestNotifierContainer* iContainer; + + }; + +#endif // BCTEST_NOTIFIER_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/sis/bctestnotifier.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/sis/bctestnotifier.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestNotifier-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestNotifier"},(0x2000475F),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestNotifier.exe"- +"!:\sys\bin\BCTestNotifier.exe" + +"\epoc32\data\z\resource\apps\BCTestNotifier.rsc"- +"!:\resource\apps\BCTestNotifier.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestNotifier_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestNotifier_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestactiveengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestactiveengine.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "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: Avkon Notifier test app +* +*/ + + +// INCLUDE FILES +#include "bctestactiveengine.h" +#include + + +#include + + + +// ================= MEMBER FUNCTIONS ========================================= +CBCTestActiveEngine::CBCTestActiveEngine() +: CActive( EPriorityStandard ) + { + CActiveScheduler::Add( this ); + } + +CBCTestActiveEngine::~CBCTestActiveEngine() + { + } + +TRequestStatus* CBCTestActiveEngine::GetStatus() + { + return &iStatus; + } + +void CBCTestActiveEngine::RunL() + { + Cancel(); + } + +void CBCTestActiveEngine::DoCancel() + { + } + +TBool CBCTestActiveEngine::Active() + { + return IsActive(); + } + +void CBCTestActiveEngine::MakeActive() + { + SetActive(); + } + +CWaitGlobalNote* CWaitGlobalNote::NewL() + { + CWaitGlobalNote* self = new (ELeave) CWaitGlobalNote; + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +CWaitGlobalNote::CWaitGlobalNote() +: CActive( EPriorityStandard ) + { + CActiveScheduler::Add( this ); + } + +CWaitGlobalNote::~CWaitGlobalNote() + { + Cancel(); + delete iNote; + } + +void CWaitGlobalNote::RunL() + { + iNote->CancelNoteL(noteId); + } + +void CWaitGlobalNote::DoCancel() + { + } + +void CWaitGlobalNote::ConstructL() + { + iNote = CAknGlobalNote::NewL(); + iNote->SetSoftkeys( R_AVKON_SOFTKEYS_EMPTY ); + } + +void CWaitGlobalNote::ShowGlobalNoteAsyncL() + { + _LIT(KNOTETEXT, "TEST"); + noteId = iNote->ShowNoteL( iStatus, EAknGlobalInformationNote, KNOTETEXT ); + SetActive(); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Notifier test app +* +*/ + + +// INCLUDE FILES +#include "BCTestNotifierApp.h" +#include "BCTestNotifierDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestNotifierApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestNotifierApp::AppDllUid() const + { + return KUidBCTestNotifier; + + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestNotifierApp::CreateDocumentL() +// Creates CBCTestTemplateDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestNotifierApp::CreateDocumentL() + { + return CBCTestNotifierDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestSettingPageApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestNotifierApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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 bc for notifier control api(s) +* +*/ + +#include +#include + +#include "bctestnotifierAppUi.h" +#include "bctestnotifier.hrh" +#include "bctestnotifierview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestNotifierAppUi::CBCTestNotifierAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestNotifierAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + // init view + CBCTestNotifierView* view = CBCTestNotifierView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageAppUi::~CBCTestSettingPageAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestNotifierAppUi::~CBCTestNotifierAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestNotifierAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifiercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifiercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,355 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctestnotifiercase.h" +#include "bctestnotifiercontainer.h" +#include "bctestactiveengine.h" +#include "bctestnotifier.hrh" +#include + +#include +//#include +#include +#include +#include +#include +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierCase* CBCTestNotifierCase::NewL( + CBCTestNotifierContainer* aContainer ) + { + CBCTestNotifierCase* self = new( ELeave ) CBCTestNotifierCase( + aContainer ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierCase::CBCTestNotifierCase( + CBCTestNotifierContainer* aContainer ) + : iContainer( aContainer ), + iActiveEngine( NULL ), + iActiveEngine1( NULL ), + iActiveEngine2( NULL ), + iActiveEngine3( NULL ), + iActiveEngine4( NULL ), + iActive(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierCase::~CBCTestNotifierCase() + { + delete iActiveEngine; + delete iActiveEngine1; + delete iActiveEngine2; + delete iActiveEngine3; + delete iActiveEngine4; + delete iActive; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNotifierCase::ConstructL() + { + iActiveEngine = new (ELeave) CBCTestActiveEngine; + iActiveEngine1 = new (ELeave) CBCTestActiveEngine; + iActiveEngine2 = new (ELeave) CBCTestActiveEngine; + iActiveEngine3 = new (ELeave) CBCTestActiveEngine; + iActiveEngine4 = new (ELeave) CBCTestActiveEngine; + iActive = CWaitGlobalNote::NewL(); + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestNotifierCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestNotifierCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, LeftCBA, WAIT(10), TEND ); + + } + +// --------------------------------------------------------------------------- +// CBCTestNotifierCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestNotifierCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestAllL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestNotifierCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestNotifierCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestNotifierCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +void CBCTestNotifierCase::TestAllL() + { + TestPopupNotifyL(); + TestGlobalConfirmationQueryL(); + TestGlobalListQueryL(); + TestGlobalMsgQueryL(); + TestGlobalNoteL(); + TestGlobalProgressDlgL(); + } + +void CBCTestNotifierCase::TestGlobalConfirmationQueryL() + { + _LIT(KTITLE, "TEST"); + CAknGlobalConfirmationQuery* globalConfirmationQuery = CAknGlobalConfirmationQuery::NewL(); + AssertNotNullL( globalConfirmationQuery, _L( "CAknGlobalConfirmationQuery newl called" )); + AssertNotNullL( globalConfirmationQuery, _L( "CAknGlobalConfirmationQuery newlc called" )); + + CleanupStack::PushL( globalConfirmationQuery ); + TAknsItemID id; + globalConfirmationQuery->SetImageSkinId( id ); + AssertTrueL( ETrue, _L( "CAknGlobalConfirmationQuery SetImageSkinId called" )); + if (!iActiveEngine->Active() ) + { + globalConfirmationQuery->ShowConfirmationQueryL( *(iActiveEngine->GetStatus()), KTITLE, + R_AVKON_SOFTKEYS_OK_CANCEL ); + AssertTrueL( ETrue, _L( "CAknGlobalConfirmationQuery ShowConfirmationQueryL called" )); + iActiveEngine->MakeActive(); + } + globalConfirmationQuery->UpdateConfirmationQuery( R_AVKON_SOFTKEYS_BACK ); + AssertTrueL( ETrue, _L( "CAknGlobalConfirmationQuery UpdateConfirmationQuery called" )); + globalConfirmationQuery->CancelConfirmationQuery(); + AssertTrueL( ETrue, _L( "CAknGlobalConfirmationQuery CancelConfirmationQuery called" )); + + CleanupStack::PopAndDestroy( globalConfirmationQuery ); + AssertTrueL( ETrue, _L( "CAknGlobalConfirmationQuery destructor called" )); + + } + +void CBCTestNotifierCase::TestGlobalListQueryL() + { + _LIT(KTITLE, "TEST"); + CAknGlobalListQuery* listQuery = CAknGlobalListQuery::NewL(); + AssertNotNullL( listQuery, _L( "CAknGlobalListQuery newl called" )); + AssertNotNullL( listQuery, _L( "CAknGlobalListQuery newlc called" )); + CleanupStack::PushL( listQuery ); + CDesCArrayFlat* array = new (ELeave)CDesCArrayFlat(1); + array->AppendL( _L( "test1" ) ); + array->AppendL( _L( "test2" ) ); + array->AppendL( _L( "test3" ) ); + array->AppendL( _L( "test4" ) ); + if ( !iActiveEngine1->Active() ) + { + listQuery->ShowListQueryL( array, *( iActiveEngine1->GetStatus() ) ); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery ShowListQueryL called" )); + iActiveEngine1->MakeActive(); + } + listQuery->MoveSelectionUp(); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery MoveSelectionUp called" )); + listQuery->MoveSelectionDown(); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery MoveSelectionDown called" )); + listQuery->SelectItem(); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery SelectItem called" )); + listQuery->SetHeadingL( KTITLE ); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery SetHeadingL called" )); + listQuery->CancelListQuery(); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery CancelListQuery called" )); + + delete array; + CleanupStack::PopAndDestroy( listQuery ); + AssertTrueL( ETrue, _L( "CAknGlobalListQuery destructor called" )); + + } + + +void CBCTestNotifierCase::TestGlobalMsgQueryL() + { + _LIT(KMSG, "MESSAGE"); + _LIT(KTITLE, "TEST"); + CAknGlobalMsgQuery* msgQuery = CAknGlobalMsgQuery::NewL(); + AssertNotNullL( msgQuery, _L( "CAknGlobalMsgQuery newl called" )); + AssertNotNullL( msgQuery, _L( "CAknGlobalMsgQuery newlc called" )); + CleanupStack::PushL( msgQuery ); + TAknsItemID id; + msgQuery->SetImageSkinId( id ); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery SetImageSkinId called" )); + if ( !iActiveEngine2->Active() ) + { + msgQuery->ShowMsgQueryL( *( iActiveEngine2->GetStatus() ), KMSG, + R_AVKON_SOFTKEYS_BACK, KTITLE, _L("") ); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery ShowListQueryL called" )); + iActiveEngine2->MakeActive(); + } + + msgQuery->UpdateMsgQuery( R_AVKON_SOFTKEYS_BACK ); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery UpdateMsgQuery called" )); + msgQuery->SetExitDelay( 1 ); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery SetExitDelay called" )); + msgQuery->CancelMsgQuery(); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery CancelMsgQuery called" )); + + CleanupStack::PopAndDestroy( msgQuery ); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery destructor called" )); + } + +void CBCTestNotifierCase::TestGlobalNoteL() + { + _LIT(KNOTETEXT, "MESSAGE"); + CAknGlobalNote* globalNote = CAknGlobalNote::NewL(); + CleanupStack::PushL( globalNote ); + AssertNotNullL( globalNote, _L( "CAknGlobalNote newl called" )); + AssertNotNullL( globalNote, _L( "CAknGlobalNote newlc called" )); + globalNote->SetSoftkeys( R_AVKON_SOFTKEYS_OK_EMPTY ); + AssertTrueL( ETrue, _L( "CAknGlobalNote SetSoftkeys called" )); + TInt noteID = globalNote->ShowNoteL( EAknGlobalInformationNote, KNOTETEXT ); + AssertTrueL( ETrue, _L( "CAknGlobalNote ShowNoteL called" )); + AssertTrueL( ETrue, _L( "CAknGlobalNote DoGlobaNoteBufferL called" )); + globalNote->CancelNoteL( noteID ); + AssertTrueL( ETrue, _L( "CAknGlobalNote CancelNoteL called" )); + + iActive->ShowGlobalNoteAsyncL(); + AssertTrueL( ETrue, _L( "CAknGlobalMsgQuery ShowNoteL Async called" )); + + CleanupStack::PopAndDestroy( globalNote ); + AssertTrueL( ETrue, _L( "CAknGlobalNote destructor called" )); + AssertTrueL( ETrue, _L( "CAknNotifyBase destructor called" )); + + globalNote = CAknGlobalNote::NewL(); + globalNote->SetTextProcessing( ETrue ); + AssertTrueL( ETrue, _L( "CAknGlobalNote SetTextProcessing called" )); + globalNote->SetPriority( 1 ); + AssertTrueL( ETrue, _L( "CAknGlobalNote SetPriority called" )); + globalNote->SetGraphic( 10 ); + AssertTrueL( ETrue, _L( "CAknGlobalNote SetGraphic called" )); + globalNote->SetAnimation( 10 ); + AssertTrueL( ETrue, _L( "CAknGlobalNote SetAnimation called" )); + globalNote->SetTone( 10 ); + AssertTrueL( ETrue, _L( "CAknGlobalNote SetTone called" )); + delete globalNote; + } + +void CBCTestNotifierCase::TestGlobalProgressDlgL() + { + _LIT(KNOTETEXT, "MESSAGE"); + CAknGlobalProgressDialog* progressDlg = CAknGlobalProgressDialog::NewL(); + AssertNotNullL( progressDlg, _L( "CAknGlobalProgressDialog newl called" )); + AssertNotNullL( progressDlg, _L( "CAknGlobalProgressDialog newlc called" )); + CleanupStack::PushL( progressDlg ); + progressDlg->SetIconL( _L(""), _L("") ); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog SetIconL called" )); + progressDlg->SetImageL( _L("") ); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog SetImageL called" )); + progressDlg->UpdateProgressDialog( 200, 400 ); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog UpdateProgressDialog called" )); + + TAknsItemID id1, id2; + progressDlg->SetImageSkinIds( id1, id2 ); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog SetImageSkinIds called" )); + if ( !iActiveEngine4->Active() ) + { + progressDlg->ShowProgressDialogL( *( iActiveEngine4->GetStatus() ), + KNOTETEXT ); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog ShowProgressDialogL Async called" )); + iActiveEngine4->MakeActive(); + } + progressDlg->CancelProgressDialog(); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog CancelProgressDialog called" )); + progressDlg->ProcessFinished(); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog ProcessFinished called" )); + + CleanupStack::PopAndDestroy( progressDlg ); + AssertTrueL( ETrue, _L( "CAknGlobalProgressDialog destructor called" )); + + + + } + +void CBCTestNotifierCase::TestPopupNotifyL() + { + CAknPopupNotify* popupNotify = CAknPopupNotify::NewL(); + AssertNotNullL( popupNotify, _L( "CAknPopupNotify newl called" )); + AssertNotNullL( popupNotify, _L( "CAknPopupNotify newlc called" )); + CleanupStack::PushL( popupNotify ); + CleanupStack::PopAndDestroy( popupNotify ); + AssertTrueL( ETrue, _L( "CAknPopupNotify destructor called" )); + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifiercontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifiercontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,119 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestnotifiercontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierContainer::CBCTestNotifierContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierContainer::~CBCTestNotifierContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNotifierContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestNotifierContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestNotifierContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestNotifierContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestNotifierContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestNotifierContainer::ResetControl() + { + if ( iControl ) + { + delete iControl; + iControl = NULL; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon SettingPage test application +* +*/ + + +// INCLUDE FILES +#include "BCTestNotifierDocument.h" +#include "BCTestNotifierAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestNotifierDocument* CBCTestNotifierDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestNotifierDocument* CBCTestNotifierDocument::NewL( CEikApplication& aApp ) + { + CBCTestNotifierDocument* self = new( ELeave ) CBCTestNotifierDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestNotifierDocument::~CBCTestNotifierDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestNotifierDocument::~CBCTestNotifierDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestNotifierDocument::CBCTestNotifierDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestNotifierDocument::CBCTestNotifierDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestNotifierDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestNotifierDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestNotifierAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestnotifier/src/bctestnotifierview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,130 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestnotifier.hrh" +#include "bctestnotifierview.h" +#include "bctestnotifiercontainer.h" +#include "bctestutil.h" +#include "bctestnotifiercase.h" +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierView* CBCTestNotifierView::NewL() + { + CBCTestNotifierView* self = new( ELeave ) CBCTestNotifierView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierView::CBCTestNotifierView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestNotifierView::ConstructL() + { + BaseConstructL( R_BCTESTNOTIFIER_VIEW ); + + iContainer = new( ELeave ) CBCTestNotifierContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestNotifierCase::NewL( iContainer ), + _L("Notifier test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestNotifierView::~CBCTestNotifierView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestNotifierView::Id() const + { + return KBCTestNotifierViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestNotifierView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestNotifierView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestNotifierView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestNotifierView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bctestpane.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bctestpane.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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: Project definition file for project BCTestPane +* +*/ + + +TARGET BCTestPane.exe +TARGETTYPE exe +UID 0x0 0x2000475A + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestPane.rss +HEADER +TARGETPATH /resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestpaneapp.cpp +SOURCE bctestpanedocument.cpp +SOURCE bctestpaneappui.cpp +SOURCE bctestpaneview.cpp +SOURCE bctestpanecontainer.cpp +SOURCE bctestpanecase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY bafl.lib +LIBRARY fbscli.lib +LIBRARY aknicon.lib +LIBRARY aknpictograph.lib + +START RESOURCE ../group/bctestpane_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bctestpane.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bctestpane.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,338 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME PANE + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestpane.hrh" +#include "bctestpane.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTPANE_BMP_FNAME APP_BITMAP_DIR"\\bctestpane.mbm" + +#define BCTESTPANE_VALUE5 5 + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_apps_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestpane_menubar_main; + cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestpane_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_view +// AVKON_VIEW for CbctestpaneView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestpane_view + { + menubar = r_bctestpane_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestpane_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestpane_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestpane_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpane_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdTitlePane; + txt = qtn_bctestpane_titlepane; + }, + MENU_ITEM + { + command = EBCTestCmdTabGroup; + txt = qtn_bctestpane_tabgroup; + }, + MENU_ITEM + { + command = EBCTestCmdStatusPane; + txt = qtn_bctestpane_statuspane; + }, + MENU_ITEM + { + command = EBCTestCmdContextPane; + txt = qtn_bctestpane_contextpane; + }, + MENU_ITEM + { + command = EBCTestCmdNaviPane; + txt = qtn_bctestpane_navipane; + }, + MENU_ITEM + { + command = EBCTestCmdDlgShutAndPicto; + txt = qtn_bctestpane_shutpicto; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpane_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestpane_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestpane_menu_exit; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_title_pane +// +//----------------------------------------------------------------------------- +// +RESOURCE TITLE_PANE r_bctestpane_title_pane + { + txt = qtn_bctestpane_title_pane; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_context_pane +// +//----------------------------------------------------------------------------- +// +RESOURCE CONTEXT_PANE r_bctestpane_context_pane + { + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_tab +// +//----------------------------------------------------------------------------- +// +RESOURCE TAB r_bctestpane_tab + { + id = EBCTestTab1; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_tab1 +// +//----------------------------------------------------------------------------- +// +RESOURCE TAB r_bctestpane_tab1 + { + id = EBCTestTab1; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_battery_strength; + bmpid = EMbmAvkonQgn_indi_battery_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_tabgroup +// +//----------------------------------------------------------------------------- +// +RESOURCE TAB_GROUP r_bctestpane_tabgroup + { + tab_width = EAknTabWidthWithTwoTabs; + active = 0; + tabs = + { + TAB + { + id = 0; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + }, + TAB + { + id = 1; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_battery_strength; + bmpid = EMbmAvkonQgn_indi_battery_strength_mask; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_navidecorator +// +//----------------------------------------------------------------------------- +// +RESOURCE NAVI_DECORATOR r_bctestpane_navidecorator + { + type = ENaviDecoratorLabel; + control = NAVI_LABEL + { + txt = qtn_bctestpane_navelabel; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_naviimage +// +//----------------------------------------------------------------------------- +// +RESOURCE NAVI_IMAGE r_bctestpane_naviimage + { + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_battery_strength; + bmpid = EMbmAvkonQgn_indi_battery_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_navilabel +// +//----------------------------------------------------------------------------- +// +RESOURCE NAVI_LABEL r_bctestpane_navilabel + { + txt = qtn_bctestpane_navelabel; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_volume_indicator +// For Outline1 +// +//----------------------------------------------------------------------------- +// +RESOURCE VOLUME r_bctestpane_volume_indicator + { + flags = ESettingsVolumeControl; + value = BCTESTPANE_VALUE5; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bctestpane_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bctestpane_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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: +* +*/ +#include +#include +#include "bctestpane.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475A // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_app_file; + localisable_resource_file = qtn_resource_file; + localisable_resource_id = R_BCTESTPANE_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,23 @@ +/* +* 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 "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: Build information file for project BCTestPane +* +*/ + + + +PRJ_MMPFILES + +BCTestPane.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpane.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpane.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 "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 headers for project BCTestPane +* +*/ + + +#ifndef BCTESTPANE_HRH +#define BCTESTPANE_HRH + +enum TBCTestPaneMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdTitlePane, + EBCTestCmdStatusPane, + EBCTestCmdContextPane, + EBCTestCmdTabGroup, + EBCTestCmdNaviPane, + EBCTestCmdDlgShutAndPicto, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestPaneIDs + { + EBCTestTab1 = 0x6100, + EBCTestTab2, + EBCTestTab3, + EBCTestTab4 + }; + +#endif // BCTESTTEMPLATE_HRH + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpane.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpane.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +/* +* 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 "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: Localization strings for project BCTestPane +* +*/ + + +// LOCALISATION STRINGS +#define qtn_apps_buf "bctestpane" +#define qtn_app_file "BctestPane" +#define qtn_resource_file "\\resource\\apps\\BCTestPane" +#define qtn_group_name "BCTest" + + +// Caption +#define qtn_apps_tavl_list "BCTESTPANE" +#define qtn_apps_tavl_grid "BCTESTPANE" + +// MenuBar +#define qtn_bctestpane_menubar "Option" +#define qtn_bctestpane_cba_next "Next" +#define qtn_bctestpane_autotest "Autotest" +#define qtn_bctestpane_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestpane_titlepane "Test title pane" +#define qtn_bctestpane_statuspane "Test status pane" +#define qtn_bctestpane_contextpane "Test context pane" +#define qtn_bctestpane_tabgroup "Test tab group" +#define qtn_bctestpane_navipane "Test Navigation pane" +#define qtn_bctestpane_shutpicto "Test DlgShutter and Pictograph" + +// text +#define qtn_bctestpane_title_pane "Title pane" +#define qtn_bctestpane_tab "Tab0" +#define qtn_bctestpane_navelabel "Navigation" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpaneapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpaneapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: Application +* +*/ + + +#ifndef C_BCTESTPANEAPP_H +#define C_BCTESTPANEAPP_H + +#include + +const TUid KUidBCTestPane = { 0x2000475A }; // UID of the application. + +/** + * CBCTestPaneApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestPaneApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestPaneDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestPane ). + * @return The value of KUidBCTestPane. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTPANEAPP_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpaneappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpaneappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: AppUi +* +*/ + + +#ifndef C_BCTESTPANEAPPUI_H +#define C_BCTESTPANEAPPUI_H + +#include + +class CBCTestPaneView; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestPaneAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestPaneAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestPaneAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestPaneView* iView; + + /** + * pointor to BCTesting framework. + * Own + */ + CBCTestUtil* iTestUtil; + + }; + +#endif // C_BCTESTPANEAPPUI_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpanecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpanecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,255 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTPANECASE_H +#define C_BCTESTPANECASE_H + +#include +#include +#include +#include +#include + +#include "bctestcase.h" + +class CEikonEnv; +class CBCTestPaneContainer; +class CBCTestPaneTitle; +class CBCTestContextPane; +class CAknTabGroup; +class CAknNavigationControlContainer; +class CAknNavigationDecorator; +class TBCTestNaviDeObserver; + +// a helper observer +// Note that: the header file "akntitlepaneobserver.h" only available in R&D SDK, +// So we just redefined the M-interface directly here. +class MAknTitlePaneObserver + { +public: + enum TAknTitlePaneEvents + { + EAknTitlePaneTapped + }; + +public: + /** + * HandleTitlePaneEventL is used in observers to handle title pane events. + * + * @param aEventID TAknTitlePaneEvents type title pane event + */ + virtual void HandleTitlePaneEventL( TInt aEventID ) = 0; + }; + +/** + * Observer class for CAknNaviDecorator + */ +class TBCTestNaviDeObserver: public MAknNaviDecoratorObserver + { +public: + + virtual void HandleNaviDecoratorEventL( TInt aEventId ); + + }; + +/** +* test case for Title Pane API, Status Pane, Context Pane API, Tab API, +* Navigation Pane API +*/ +class CBCTestPaneCase: public CBCTestCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPaneCase* NewL( CBCTestPaneContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPaneCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +// new function + + /** + * Called by conatainer to test some API related with CWindowGc + * @param a reference to CWindowGc + */ + void DrawCaseL( CWindowGc& aGc ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test functions + */ + void TestTitlePaneL(); + + void TestStatusPaneL(); + + void TestContextPaneL(); + + void TestTabGroupL(); + + void TestNaviPaneL(); + + void TestDlgShutAndPictoL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPaneCase( CBCTestPaneContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestPaneContainer* iContainer; + + /** + * Pointer to CEikonEnv. + * not own + */ + CEikonEnv* iEnv; + + /** + * Pointer to title pane class. + * own + */ + CBCTestPaneTitle* iTitle; + + /** + * Record current command + */ + TInt iCommand; + + /** + * Pointer to context pane + * own + */ + CBCTestContextPane* iContext; + + /** + * Pointer to tab group + * own + */ + CAknTabGroup* iTab; + + /** + * Pointer to navigation pane + * own + */ + CAknNavigationControlContainer* iNavi; + + /** + * Pointer to navigation decorator + * own + */ + CAknNavigationDecorator* iNaviDe; + + /** + * Implementation of MAknNaviDecoratorObserver + */ + TBCTestNaviDeObserver iNaviObserver; + + }; + +/** + * Class for testing protected API of CAknTitlePane + */ +class CBCTestPaneTitle: public CAknTitlePane + { + friend class CBCTestPaneCase; + }; + +/** + * Observer class for CAknTabGroup + */ +class TBCTestTabObserver: public MAknTabObserver + { +public: + + virtual void TabChangedL( TInt aIndex ); + + }; + +/** + * Implementation of MAknPictographAnimatorCallBack + */ +class TBCTestPictoAnimCallBack: public MAknPictographAnimatorCallBack + { +public: + + void DrawPictographArea(); + + }; + +/** + * Observer class for CAknTitlePane + */ +class TBCTestTitleObserver: public MAknTitlePaneObserver + { +public: + + void HandleTitlePaneEventL( TInt aEventID ); + + }; + +/** + * Derived class for CAknContextPane + */ +class CBCTestContextPane: public CAknContextPane + { + friend class CBCTestPaneCase; + +protected: + + TTypeUid::Ptr MopSupplyObject(TTypeUid aId); + + }; + +#endif // C_BCTESTPANECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpanecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpanecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef C_BCTESTPANECONTAINER_H +#define C_BCTESTPANECONTAINER_H + +#include + +class CBCTestPaneCase; + +/** +* container class +*/ +class CBCTestPaneContainer: public CCoeControl + { +public: + +// constructor and destructor + + /** + * C++ default constructor + */ + CBCTestPaneContainer(); + + /** + * Destructor + */ + virtual ~CBCTestPaneContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Set pane case class. + */ + void SetPaneCase( CBCTestPaneCase* aCase ); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + /** + * Pointer to case. + * Not own + */ + CBCTestPaneCase* iPaneCase; + + }; + +#endif // C_BCTESTPANECONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpanedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpanedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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: Document +* +*/ + + +#ifndef C_BCTESTPANEDOCUMENT_H +#define C_BCTESTPANEDOCUMENT_H + +#include + +class CEikAppUi; + +/** + * CBCTestPaneDocument application class. + */ +class CBCTestPaneDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestPaneDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestPaneDocument(); + +private: + +// Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestPaneDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestPaneAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTEMPLATEDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpaneview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/inc/bctestpaneview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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: View +* +*/ + + +#ifndef C_BCTESTPANEVIEW_H +#define C_BCTESTPANEVIEW_H + +#include + +const TUid KBCTestTemplateViewId = { 1 }; + +class CBCTestPaneContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPaneView : public CAknView + { +public: + +// Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestPaneView* NewL( CBCTestUtil* aUtil ); + + /** + * dtor + */ + virtual ~CBCTestPaneView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPaneView( CBCTestUtil* aUtil ); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * Not Own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestPaneContainer* iContainer; + + }; + +#endif // C_BCTESTPANEVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/sis/bctestpane.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/sis/bctestpane.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestpane.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestpane"},(0x2000475A),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestpane.exe"- +"!:\sys\bin\bctestpane.exe" + +"\epoc32\data\z\resource\apps\bctestpane.RSC"- +"!:\resource\apps\bctestpane.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestpane_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestpane_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpaneapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpaneapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,62 @@ +/* +* 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 "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: Application +* +*/ + + +#include + +#include "BCTestPaneApp.h" +#include "BCTestPaneDocument.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestPaneApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestPaneApp::AppDllUid() const + { + return KUidBCTestPane; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestPaneApp::CreateDocumentL() +// Creates CBCTestPaneDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestPaneApp::CreateDocumentL() + { + return CBCTestPaneDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestPaneApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestPaneApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpaneappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpaneappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,84 @@ +/* +* 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 "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: AppUi +* +*/ + + +#include +#include + +#include "bctestpaneappui.h" +#include "bctestpane.hrh" +#include "bctestpaneview.h" +#include "bctestutil.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestPaneAppUi::CBCTestPaneAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestPaneAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestPaneView* view = CBCTestPaneView::NewL( iTestUtil ); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneAppUi::~CBCTestPaneAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneAppUi::~CBCTestPaneAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestPaneAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpanecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpanecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,944 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestpanecase.h" +#include "bctestpanecontainer.h" +#include "bctestpane.hrh" +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneCase* CBCTestPaneCase::NewL( + CBCTestPaneContainer* aContainer ) + { + CBCTestPaneCase* self = new( ELeave ) CBCTestPaneCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneCase::CBCTestPaneCase( + CBCTestPaneContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPaneCase::~CBCTestPaneCase() + { + delete iTitle; + delete iNaviDe; + delete iTab; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::ConstructL() + { + BuildScriptL(); + + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestPaneCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 3 ), TEND ); + TInt loop = EBCTestCmdMaxOutline - EBCTestCmdTitlePane; + for ( TInt i = 0; i < loop; i++ ) + { + AddTestL( LeftCBA, REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::RunL( TInt aCmd ) + { + iCommand = aCmd; + ReleaseCase(); + switch ( aCmd ) + { + case EBCTestCmdTitlePane: + TestTitlePaneL(); + break; + case EBCTestCmdStatusPane: + TestStatusPaneL(); + break; + case EBCTestCmdContextPane: + TestContextPaneL(); + break; + case EBCTestCmdTabGroup: + TestTabGroupL(); + break; + case EBCTestCmdNaviPane: + TestNaviPaneL(); + break; + case EBCTestCmdDlgShutAndPicto: + TestDlgShutAndPictoL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::ReleaseCase() + { + iContainer->ResetControl(); + iContainer->SetPaneCase( NULL ); + } + +// --------------------------------------------------------------------------- +// Test CAknTitlePane +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestTitlePaneL() + { + iTitle = new( ELeave ) CBCTestPaneTitle(); + _LIT( KTitle1, "CAknTitlePane::CAknTitlePane" ); + AssertNotNullL( iTitle, KTitle1 ); + + iTitle->ConstructL(); + _LIT( KTitle2, "CAknTitlePane::ConstructL" ); + AssertTrueL( ETrue, KTitle2 ); + + TBCTestTitleObserver titleObserver; + iTitle->SetTitlePaneObserver( &titleObserver ); + _LIT( KTitle22, "CAknTitlePane::SetTitlePaneObserver" ); + AssertTrueL( ETrue, KTitle22 ); + + + delete iTitle; + iTitle = NULL; + + iTitle= new( ELeave ) CBCTestPaneTitle(); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TITLE_PANE ); + iTitle->SetFromResourceL( reader ); + _LIT( KTitle21, "CAknTitlePane::SetFromResorceL" ); + AssertTrueL( ETrue, KTitle21 ); + CleanupStack::PopAndDestroy(); // reader + delete iTitle; + iTitle = NULL; + + iTitle = new( ELeave ) CBCTestPaneTitle(); + iTitle->SetContainerWindowL( *iContainer ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TITLE_PANE ); + iTitle->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KTitle3, "CAknTitlePane::ConstructFromResourceL" ); + AssertTrueL( ETrue, KTitle3 ); + + _LIT( KTitleText, "iTitle text" ); + TPtrC titlePtr( KTitleText ); + + HBufC* buf = HBufC::NewLC( titlePtr.Length() ); + *buf = KTitleText; + + iTitle->SetText( buf, ETrue ); + _LIT( KTitle5, "CAknTitlePane::SetText( HBufC*, TBool )" ); + AssertTrueL( ETrue, KTitle5 ); + CleanupStack::Pop( buf ); + + HBufC* buf2 = HBufC::NewLC( titlePtr.Length() ); + *buf = KTitleText; + + iTitle->SetText( buf2 ); + _LIT( KTitle4, "CAknTitlePane::SetText" ); + AssertTrueL( ETrue, KTitle4 ); + CleanupStack::Pop( buf2 ); + + _LIT( KTitleText1, "Another iTitle" ); + TPtrC anotherText( KTitleText1 ); + iTitle->SetTextL( anotherText ); + _LIT( KTitle6, "CAknTitlePane::SetTextL" ); + AssertTrueL( ETrue, KTitle6 ); + + iTitle->SetTextL( anotherText, ETrue ); + _LIT( KTitle7, "CAknTitlePane::SetTextL( const TDesC&, TBool )" ); + AssertTrueL( ETrue, KTitle7 ); + + const TDesC* text = iTitle->Text(); + _LIT( KTitle8, "CAknTitlePane::Text" ); + AssertTrueL( ETrue, KTitle8 ); + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TSize size( 100, 80 ); + bmp->Create( size, ERgb ); + iTitle->SetPicture( bmp ); + _LIT( KTitle9, "CAknTitlePane::SetPicture" ); + AssertTrueL( ETrue, KTitle9 ); + CleanupStack::Pop( bmp ); + + iTitle->SetPictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_signal_strength, + EMbmAvkonQgn_indi_signal_strength_mask ); + _LIT( KTitle10, "CAknTitlePane::SetPictureFromFileL" ); + AssertTrueL( ETrue, KTitle10 ); + + CFbsBitmap* smallBmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( smallBmp ); + smallBmp->Create( size, ERgb ); + CFbsBitmap* smallMask = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( smallMask ); + smallMask->Create( size, ERgb ); + iTitle->SetSmallPicture( smallBmp, smallMask, ETrue ); + _LIT( KTitle11, "CAknTitlePane::SetSmallPicture" ); + AssertTrueL( ETrue, KTitle11 ); + CleanupStack::Pop( smallMask ); + CleanupStack::Pop( smallBmp ); + + iTitle->SetTextToDefaultL(); + _LIT( KTitle12, "CAknTitlePane::SetTextToDefaultL" ); + AssertTrueL( ETrue, KTitle12 ); + + iTitle->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + _LIT( KTitle15, "CAknTitlePane::HandleResourceChange" ); + AssertTrueL( ETrue, KTitle15 ); + + iTitle->PositionChanged(); + _LIT( KTitle16, "CAknTitlePane::PositionChanged" ); + AssertTrueL( ETrue, KTitle16 ); + + TInt count = iTitle->CountComponentControls(); + _LIT( KTitle17, "CAknTitlePane::PositionChanged" ); + AssertTrueL( ETrue, KTitle17 ); + + CCoeControl* ctrl = iTitle->ComponentControl( count - 1 ); + _LIT( KTitle18, "CAknTitlePane::ComponentControl" ); + AssertNotNullL( ctrl, KTitle18 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iTitle->HandlePointerEventL( event ); + _LIT( KTitle19, "CAknTitlePane::HandlePointerEventL" ); + AssertTrueL( ETrue, KTitle19 ); + + iContainer->SetPaneCase( this ); + } + +// --------------------------------------------------------------------------- +// Test status pane +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestStatusPaneL() + { + RWindowGroup& win = iEnv->RootWin(); + CEikStatusPane* status = CEikStatusPane::NewL( *iEnv, + &win, R_AVKON_STATUS_PANE ); + CleanupStack::PushL( status ); + _LIT( KStatusPane1, "CEikStatusPane::NewL" ); + AssertNotNullL( status, KStatusPane1 ); + + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_EMPTY ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_VT ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_VT_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_RIGHT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_LEFT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_IDLE_SOFTKEYS_RIGHT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_IDLE_SOFTKEYS_LEFT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_RIGHT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_LEFT ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE_FLAT ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ); + status->SwitchLayoutL( R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL ); + _LIT( KStatusPane16, + "Use CEikStatusPaneBase::SwitchLayoutL to test different layouts" ); + AssertTrueL( ETrue, KStatusPane16 ); + + status->MakeVisible( ETrue ); + _LIT( KStatusPane2, "CEikStatusPane::MakeVisible" ); + AssertTrueL( ETrue, KStatusPane2 ); + + status->SetDimmed( ETrue ); + status->SetDimmed( EFalse ); + _LIT( KStatusPane3, "CEikStatusPane::SetDimmed" ); + AssertTrueL( ETrue, KStatusPane3 ); + + status->SetFaded( ETrue ); + status->SetFaded( EFalse ); + _LIT( KStatusPane4, "CEikStatusPane::SetFaded" ); + AssertTrueL( ETrue, KStatusPane4 ); + + status->ApplyCurrentSettingsL(); + _LIT( KStatusPane5, "CEikStatusPane::ApplyCurrentSettingsL" ); + AssertTrueL( ETrue, KStatusPane5 ); + + status->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + status->HandleResourceChange( KEikMessageEmbedLevelChange ); + _LIT( KStatusPane6, "CEikStatusPane::HandleResourceChange" ); + AssertTrueL( ETrue, KStatusPane6 ); + + TBool changeNow = status->OkToChangeStatusPaneNow(); + _LIT( KStatusPane7, "CEikStatusPane::HandleResourceChange" ); + AssertTrueL( ETrue, KStatusPane7 ); + + status->PrepareForAppExit(); + _LIT( KStatusPane8, "CEikStatusPane::PrepareForAppExit" ); + AssertTrueL( ETrue, KStatusPane8 ); + + status->DrawNow(); + _LIT( KStatusPane9, "CEikStatusPaneBase::DrawNow" ); + AssertTrueL( ETrue, KStatusPane9 ); + + status->CEikStatusPaneBase::SetFaded( ETrue ); + _LIT( KStatusPane10, "CEikStatusPaneBase::SetFaded" ); + AssertTrueL( ETrue, KStatusPane10 ); + + status->IsFaded(); + _LIT( KStatusPane11, "CEikStatusPaneBase::IsFaded" ); + AssertTrueL( ETrue, KStatusPane11 ); + + const TInt KPaneCtrlUid = 268458427; + TPaneId paneId = TPaneId::Uid( KPaneCtrlUid ); + TRect rect = status->PaneRectL( paneId ); + _LIT( KStatusPane12, "CEikStatusPaneBase::PaneRectL" ); + AssertTrueL( ETrue, KStatusPane12 ); + + CEikStatusPaneBase::TPaneCapabilities capabilities = + status->PaneCapabilities( paneId ); + _LIT( KStatusPane13, "CEikStatusPaneBase::PaneCapabilities" ); + AssertTrueL( ETrue, KStatusPane13 ); + + TInt flags = 2; // KEikStatusPaneBaseVisibleBit + status->SetFlags( flags ); + _LIT( KStatusPane14, "CEikStatusPaneBase::SetFlags" ); + AssertTrueL( ETrue, KStatusPane14 ); + + CCoeControl* control = status->SwapControlL( paneId, iContainer ); + _LIT( KStatusPane15, "CEikStatusPaneBase::SwapControlL" ); + AssertTrueL( ETrue, KStatusPane15 ); + status->SwapControlL( paneId, control ); + + CleanupStack::PopAndDestroy( status ); + } + +// --------------------------------------------------------------------------- +// Test context pane +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestContextPaneL() + { + iContext = new( ELeave ) CBCTestContextPane(); + _LIT( KContextPane1, "CAknContextPane::CAknContextPane" ); + AssertNotNullL( iContext, KContextPane1 ); + + iContext->SetContainerWindowL( *iContainer ); + iContext->ConstructL(); + _LIT( KContextPane2, "CAknContextPane::ConstructL" ); + AssertTrueL( ETrue, KContextPane2 ); + + delete iContext; + iContext = NULL; + + iContext = new( ELeave ) CBCTestContextPane(); + iContext->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_CONTEXT_PANE ); + iContext->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader; + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TSize size( 100, 80 ); + bmp->Create( size, ERgb ); + iContext->SetPicture( bmp ); + _LIT( KContextPane3, "CAknContextPane::SetPicture with CFbsBitmap" ); + AssertTrueL( ETrue, KContextPane3 ); + CleanupStack::Pop( bmp ); + CEikImage* tempImage = iContext->SwapPicture( NULL ); + delete tempImage; + bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + bmp->Create( size, ERgb ); + iContext->SetPicture( bmp ); + CleanupStack::Pop( bmp ); + + CEikImage* image = new( ELeave ) CEikImage(); + CleanupStack::PushL( image ); + image->CreatePictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_signal_strength, + EMbmAvkonQgn_indi_signal_strength_mask ); + iContext->SetPicture( image ); + _LIT( KContextPane4, "CAknContextPane::SetPicture with CEikImage" ); + AssertTrueL( ETrue, KContextPane4 ); + CleanupStack::Pop( image ); + + const CEikImage& eikImage = iContext->Picture(); + _LIT( KContextPane5, "CAknContextPane::Picture" ); + AssertTrueL( ETrue, KContextPane5 ); + + iContext->SetPictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_signal_strength, + EMbmAvkonQgn_indi_signal_strength_mask ); + _LIT( KContextPane6, "CAknContextPane::SetPictureFromFileL" ); + AssertTrueL( ETrue, KContextPane6 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_CONTEXT_PANE ); + iContext->SetFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KContextPane7, "CAknContextPane::SetFromResourceL" ); + AssertTrueL( ETrue, KContextPane7 ); + + iContext->SetPictureToDefaultL(); + _LIT( KContextPane8, "CAknContextPane::SetPictureToDefaultL" ); + AssertTrueL( ETrue, KContextPane8 ); + + CEikImage* newImage = new( ELeave ) CEikImage(); + CleanupStack::PushL( newImage ); + newImage->CreatePictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_battery_strength, + EMbmAvkonQgn_indi_battery_strength_mask ); + CleanupStack::Pop( newImage ); + CEikImage* oldImage = iContext->SwapPicture( newImage ); + delete oldImage; + _LIT( KContextPane9, "CAknContextPane::SwapPicture" ); + AssertTrueL( ETrue, KContextPane9 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iContext->HandlePointerEventL( event ); + _LIT( KContextPane10, "CAknContextPane::HandlePointerEventL" ); + AssertTrueL( ETrue, KContextPane10 ); + + iContext->HandleResourceChange( KEikColorResourceChange ); + iContext->HandleResourceChange( KAknsMessageSkinChange ); + _LIT( KContextPane11, "CAknContextPane::HandleResourceChange" ); + AssertTrueL( ETrue, KContextPane11 ); + + iContext->SetPictureToDefaultL(); + iContainer->SetControl( iContext ); + } + +// --------------------------------------------------------------------------- +// Test CAknTabGroup +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestTabGroupL() + { + iTab = CAknTabGroup::NewL( *iContainer ); + _LIT( KTab1, "CAknTabGroup::NewL" ); + AssertNotNullL( iTab, KTab1 ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TAB ); + TInt tabId = iTab->AddTabL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KTab2, "CAknTabGroup::AddTabL with resource reader" ); + AssertTrueL( ETrue, KTab2 ); + + tabId++; //defined in HRH? + _LIT( KTabText, "Tab" ); + iTab->AddTabL( EBCTestTab2, KTabText ); + _LIT( KTab3, "CAknTabGroup::AddTabL with text" ); + AssertTrueL( ETrue, KTab3 ); + + tabId++; + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TSize size( 100, 80 ); + bmp->Create( size, ERgb ); + iTab->AddTabL( EBCTestTab3, KTabText, bmp ); + CleanupStack::Pop( bmp ); + _LIT( KTab4, "CAknTabGroup::AddTabL with text and CFbsBitmap" ); + AssertTrueL( ETrue, KTab4 ); + + tabId++; + CFbsBitmap* bmp1 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp1 ); + bmp1->Create( size, ERgb ); + iTab->AddTabL( EBCTestTab4, bmp1 ); + CleanupStack::Pop( bmp1 ); + _LIT( KTab5, "CAknTabGroup::AddTabL with CFbsBitmap" ); + AssertTrueL( ETrue, KTab5 ); + + TBCTestTabObserver observer; + iTab->SetObserver( NULL ); + iTab->SetObserver( &observer ); + _LIT( KTab22, "CAknTabGroup::TabCount" ); + AssertTrueL( ETrue, KTab22 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TAB1 ); + iTab->ReplaceTabL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KTab6, "CAknTabGroup::ReplaceTabL with resource reader" ); + AssertTrueL( ETrue, KTab6 ); + + iTab->ReplaceTabL( EBCTestTab1, KTabText ); + _LIT( KTab7, "CAknTabGroup::ReplaceTabL with text" ); + AssertTrueL( ETrue, KTab7 ); + + CFbsBitmap* bmp2 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp2 ); + bmp2->Create( size, ERgb ); + iTab->ReplaceTabL( EBCTestTab1, KTabText, bmp2 ); + CleanupStack::Pop( bmp2 ); + _LIT( KTab8, "CAknTabGroup::ReplaceTabL with text and CFbsBitmap" ); + AssertTrueL( ETrue, KTab8 ); + + CFbsBitmap* bmp3 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp3 ); + bmp3->Create( size, ERgb ); + iTab->ReplaceTabL( EBCTestTab1, bmp3 ); + CleanupStack::Pop( bmp3 ); + _LIT( KTab9, "CAknTabGroup::ReplaceTabL with CFbsBitmap" ); + AssertTrueL( ETrue, KTab9 ); + + _LIT( KTabText1, "Replace Tab text" ); + iTab->ReplaceTabTextL( EBCTestTab2, KTabText1 ); + _LIT( KTab10, "CAknTabGroup::ReplaceTabTextL" ); + AssertTrueL( ETrue, KTab10 ); + + iTab->SetActiveTabById( EBCTestTab2 ); + _LIT( KTab12, "CAknTabGroup::SetActiveTabById" ); + AssertTrueL( ETrue, KTab12 ); + + iTab->DeleteTabL( EBCTestTab1 ); + _LIT( KTab11, "CAknTabGroup::DeleteTabL" ); + AssertTrueL( ETrue, KTab11 ); + + iTab->SetActiveTabByIndex( 0 ); + _LIT( KTab13, "CAknTabGroup::SetActiveTabByIndex" ); + AssertTrueL( ETrue, KTab13 ); + + tabId = iTab->ActiveTabId(); + _LIT( KTab14, "CAknTabGroup::ActiveTabId" ); + AssertTrueL( ETrue, KTab14 ); + + TInt tabIndex = iTab->ActiveTabIndex(); + _LIT( KTab15, "CAknTabGroup::ActiveTabId" ); + AssertTrueL( ETrue, KTab15 ); + + iTab->SetTabFixedWidthL( KTabWidthWithFourTabs ); + iTab->SetTabFixedWidthL( KTabWidthWithThreeLongTabs ); + iTab->SetTabFixedWidthL( KTabWidthWithTwoLongTabs ); + iTab->SetTabFixedWidthL( KTabWidthWithTwoLongTabs + 40 ); + iTab->SetTabFixedWidthL( 20 ); + _LIT( KTab16, "CAknTabGroup::SetTabFixedWidthL" ); + AssertTrueL( ETrue, KTab16 ); + + iTab->DimTab( tabId, ETrue ); + _LIT( KTab17, "CAknTabGroup::DimTab" ); + AssertTrueL( ETrue, KTab17 ); + + TBool isTabDimmed = iTab->IsTabDimmed( tabId ); + _LIT( KTab18, "CAknTabGroup::IsTabDimmed" ); + AssertTrueL( ETrue, KTab18 ); + + tabIndex = iTab->TabIndexFromId( tabId ); + _LIT( KTab19, "CAknTabGroup::TabIndexFromId" ); + AssertTrueL( ETrue, KTab19 ); + + tabId = iTab->TabIdFromIndex( tabIndex ); + _LIT( KTab20, "CAknTabGroup::TabIndexFromId" ); + AssertTrueL( ETrue, KTab20 ); + + TInt tabCount = iTab->TabCount(); + _LIT( KTab21, "CAknTabGroup::TabCount" ); + AssertTrueL( ETrue, KTab21 ); + + TSize minimumSize = iTab->MinimumSize(); + _LIT( KTab23, "CAknTabGroup::MinimumSize" ); + AssertTrueL( ETrue, KTab23 ); + + TKeyEvent leftArrow = { EKeyLeftArrow, EKeyLeftArrow, 0, 0 }; + TKeyEvent rightArrow = { EKeyRightArrow, EKeyRightArrow, 0, 0 }; + iTab->OfferKeyEventL( leftArrow, EEventKey ); + iTab->OfferKeyEventL( rightArrow, EEventKey ); + _LIT( KTab24, "CAknTabGroup::OfferKeyEventL" ); + AssertTrueL( ETrue, KTab24 ); + + CArrayFixFlat* colorList = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( colorList ); + iTab->GetColorUseListL( *colorList ); + CleanupStack::PopAndDestroy( colorList ); + _LIT( KTab25, "CAknTabGroup::GetColorUseListL" ); + AssertTrueL( ETrue, KTab25 ); + + iTab->HandleResourceChange( KAknsMessageSkinChange ); + iTab->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + _LIT( KTab26, "CAknTabGroup::HandleResourceChange" ); + AssertTrueL( ETrue, KTab26 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iTab->HandlePointerEventL( event ); + _LIT( KTab27, "CAknTabGroup::HandlePointerEventL" ); + AssertTrueL( ETrue, KTab27 ); + + iTab->HandleControlEventL( iContainer, + MCoeControlObserver::EEventRequestFocus ); + _LIT( KTab28, "CAknTabGroup::HandleControlEventL" ); + AssertTrueL( ETrue, KTab28 ); + + iTab->HandleNaviDecoratorEventL( + MAknNaviDecoratorObserver::EAknNaviDecoratorEventLeftTabArrow); + iTab->HandleNaviDecoratorEventL( + MAknNaviDecoratorObserver::EAknNaviDecoratorEventRightTabArrow); + _LIT( KTab29, "CAknTabGroup::HandleNaviDecoratorEventL" ); + AssertTrueL( ETrue, KTab29 ); + + iTab->SetFocus( EFalse ); + _LIT( KTab30, "CAknTabGroup::FocusChanged" ); + AssertTrueL( ETrue, KTab30 ); + + tabCount = iTab->TabCount(); + iTab->SetActiveTabById( tabCount ); + //iTab->DeleteTabL( tabCount ); + + iContainer->SetControl( iTab ); //give owner ship to container + iTab=NULL; + + } + +// --------------------------------------------------------------------------- +// Test navigation pane API +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestNaviPaneL() + { + iNavi = new( ELeave ) CAknNavigationControlContainer(); + _LIT( KNavi1, "CAknNavigationControlContainer::CAknNavigationControlContainer" ); + AssertNotNullL( iNavi, KNavi1 ); + + iNavi->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_NAVIDECORATOR ); + iNavi->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KNavi2, "CAknNavigationControlContainer::ConstructFromResourceL" ); + AssertTrueL( ETrue, KNavi2 ); + + CAknNavigationDecorator* naviDe = iNavi->CreateTabGroupL(); + delete naviDe; + naviDe = NULL; + _LIT( KNavi3, "CAknNavigationControlContainer::CreateTabGroupL" ); + AssertTrueL( ETrue, KNavi3 ); + + TBCTestTabObserver observer; + naviDe = iNavi->CreateTabGroupL( &observer ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi4, "CAknNavigationControlContainer::CreateTabGroupL with observer" ); + AssertTrueL( ETrue, KNavi4 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TABGROUP ); + naviDe = iNavi->CreateTabGroupL( reader ); + CleanupStack::PopAndDestroy(); // reader + delete naviDe; + naviDe = NULL; + _LIT( KNavi5, "CAknNavigationControlContainer::CreateTabGroupL with resource reader" ); + AssertTrueL( ETrue, KNavi5 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TABGROUP ); + naviDe = iNavi->CreateTabGroupL( reader, &observer ); + CleanupStack::PopAndDestroy(); // reader + delete naviDe; + naviDe = NULL; + _LIT( KNavi6, "CAknNavigationControlContainer::CreateTabGroupL with resource reader and observer" ); + AssertTrueL( ETrue, KNavi6 ); + + _LIT( KNaviLabel, "Navigation Label" ); + naviDe = iNavi->CreateNavigationLabelL( KNaviLabel ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi7, "CAknNavigationControlContainer::CreateNavigationLabelL with text" ); + AssertTrueL( ETrue, KNavi7 ); + + TSize size( 100, 80 ); + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + bmp->Create( size, ERgb ); + naviDe = iNavi->CreateNavigationImageL( bmp ); + delete naviDe; + naviDe = NULL; + CleanupStack::Pop( bmp ); + _LIT( KNavi8, "CAknNavigationControlContainer::CreateNavigationImageL with CFbsBitmap" ); + AssertTrueL( ETrue, KNavi8 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_NAVIIMAGE ); + naviDe = iNavi->CreateNavigationImageL( reader ); + delete naviDe; + naviDe = NULL; + CleanupStack::PopAndDestroy(); // reader + _LIT( KNavi9, "CAknNavigationControlContainer::CreateNavigationImageL with resource reader" ); + AssertTrueL( ETrue, KNavi9 ); + + _LIT( KNaviMsgLabel, "Navigation message" ); + naviDe = iNavi->CreateMessageLabelL( KNaviMsgLabel ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi10, "CAknNavigationControlContainer::CreateMessageLabelL with text" ); + AssertTrueL( ETrue, KNavi10 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_NAVILABEL ); + naviDe = iNavi->CreateMessageLabelL( reader ); + delete naviDe; + naviDe = NULL; + CleanupStack::PopAndDestroy(); // reader + _LIT( KNavi11, "CAknNavigationControlContainer::CreateMessageLabelL with resource reader" ); + AssertTrueL( ETrue, KNavi11 ); + + naviDe = iNavi->CreateVolumeIndicatorL( R_BCTESTPANE_VOLUME_INDICATOR ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi12, "CAknNavigationControlContainer::CreateVolumeIndicatorL" ); + AssertTrueL( ETrue, KNavi12 ); + + naviDe = iNavi->CreateEditorIndicatorContainerL(); + delete naviDe; + naviDe = NULL; + _LIT( KNavi13, "CAknNavigationControlContainer::CreateEditorIndicatorContainerL" ); + AssertTrueL( ETrue, KNavi13 ); + + iNavi->PushDefaultL(); + _LIT( KNavi14, "CAknNavigationControlContainer::PushDefaultL" ); + AssertTrueL( ETrue, KNavi14 ); + + iNavi->Pop(); + _LIT( KNavi15, "CAknNavigationControlContainer::Pop" ); + AssertTrueL( ETrue, KNavi15 ); + + CAknNavigationDecorator* oldNaviDe = iNavi->Top(); + _LIT( KNavi16, "CAknNavigationControlContainer::Top" ); + AssertTrueL( ETrue, KNavi16 ); + + CAknNavigationDecorator* newNaviDe = + iNavi->CreateMessageLabelL( KNaviLabel ); + CleanupStack::PushL( newNaviDe ); + iNavi->ReplaceL( *oldNaviDe, *newNaviDe ); + _LIT( KNavi17, "CAknNavigationControlContainer::Top" ); + AssertTrueL( ETrue, KNavi17 ); + CleanupStack::PopAndDestroy( newNaviDe ); + + iNaviDe = iNavi->ResourceDecorator(); + iNavi->PushL( *iNaviDe ); + _LIT( KNavi18, "CAknNavigationControlContainer::ResourceDecorator" ); + AssertTrueL( ETrue, KNavi18 ); + + TInt colorScheme = CAknNavigationControlContainer::ColorScheme(); + _LIT( KNavi19, "CAknNavigationControlContainer::ColorScheme" ); + AssertTrueL( ETrue, KNavi19 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + iNavi->HandlePointerEventL( event ); + _LIT( KNavi20, "CAknNavigationControlContainer::HandlePointerEventL" ); + AssertTrueL( ETrue, KNavi20 ); + + CAknNaviLabel* naviLabel = new( ELeave ) CAknNaviLabel(); + CleanupStack::PushL( naviLabel ); + naviLabel->HandlePointerEventL( event ); + _LIT( KNaviLabel1, "CAknNaviLabel::HandlePointerEventL" ); + AssertTrueL( ETrue, KNaviLabel1 ); + + CAknNaviLabel::TNaviLabelType labelType = naviLabel->NaviLabelType(); + _LIT( KNaviLabel2, "CAknNaviLabel::NaviLabelType" ); + AssertTrueL( ETrue, KNaviLabel2 ); + CleanupStack::PopAndDestroy( naviLabel ); + + iNaviDe->CAknNavigationDecorator::HandlePointerEventL( event ); + _LIT( KNaviDe1, "CAknNavigationDecorator::HandlePointerEventL" ); + AssertTrueL( ETrue, KNaviDe1 ); + + TBool dimmed = iNaviDe->IsScrollButtonDimmed( + CAknNavigationDecorator::ELeftButton ); + _LIT( KNaviDe2, "CAknNavigationDecorator::IsScrollButtonDimmed" ); + AssertTrueL( ETrue, KNaviDe2 ); + + iNaviDe->SetNaviControlLayoutMode( + CAknNavigationDecorator::ENaviControlLayoutModeAutomatic); + _LIT( KNaviDe3, "CAknNavigationDecorator::SetNaviControlLayoutMode" ); + AssertTrueL( ETrue, KNaviDe3 ); + + CAknNavigationDecorator::TAknNaviControlLayoutMode mode = + iNaviDe->NaviControlLayoutMode(); + _LIT( KNaviDe4, "CAknNavigationDecorator::NaviControlLayoutMode" ); + AssertTrueL( ETrue, KNaviDe4 ); + + iNaviDe->SetNaviControlLayoutStyle( + CAknNavigationDecorator::ENaviControlLayoutNormal ); + _LIT( KNaviDe5, "CAknNavigationDecorator::SetNaviControlLayoutStyle" ); + AssertTrueL( ETrue, KNaviDe5 ); + + TBool supported = iNaviDe->NaviControlLayoutStyleSupported( + CAknNavigationDecorator::ENaviControlLayoutNarrow); + _LIT( KNaviDe6, "CAknNavigationDecorator::NaviControlLayoutStyleSupported" ); + AssertTrueL( ETrue, KNaviDe6 ); + + iNaviDe->SetNaviDecoratorObserver( &iNaviObserver ); + _LIT( KNaviDe7, "CAknNavigationDecorator::SetNaviDecoratorObserver" ); + AssertTrueL( ETrue, KNaviDe7 ); + + iContainer->SetControl( iNavi ); + } + +// --------------------------------------------------------------------------- +// Test DialogShutter and Pictograph +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestDlgShutAndPictoL() + { + AknDialogShutter::ShutDialogsL( *iEnv ); + _LIT( KDlgShut, "AknDialogShutter::ShutDialogsL" ); + AssertTrueL( ETrue, KDlgShut ); + + TBCTestPictoAnimCallBack animCallback; + CAknPictographInterface* picto = CAknPictographInterface::NewL( + *iContainer, animCallback ); + delete picto; + _LIT( KPictograph, "CAknPictographInterface::NewL" ); + AssertTrueL( ETrue, KPictograph ); + } + +// --------------------------------------------------------------------------- +// Test API related with CWindowGc +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::DrawCaseL( CWindowGc& aGc ) + { + if ( ( iCommand == EBCTestCmdTitlePane ) && iTitle ) + { + iTitle->PrepareContext( aGc ); + _LIT( KTitle21, "CAknTitlePane::PrepareContext" ); + AssertTrueL( ETrue, KTitle21 ); + } + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknTabObserver +// --------------------------------------------------------------------------- +// +void TBCTestNaviDeObserver::HandleNaviDecoratorEventL( TInt ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknTabObserver +// --------------------------------------------------------------------------- +// +void TBCTestTabObserver::TabChangedL( TInt ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknPictographAnimatorCallBack +// --------------------------------------------------------------------------- +// +void TBCTestPictoAnimCallBack::DrawPictographArea() + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknTitlePaneObserver +// --------------------------------------------------------------------------- +// +void TBCTestTitleObserver::HandleTitlePaneEventL( TInt ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestContextPane::MopSupplyObject +// --------------------------------------------------------------------------- +// +TTypeUid::Ptr CBCTestContextPane::MopSupplyObject( TTypeUid ) + { + return TTypeUid::Null(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpanecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpanecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestpanecontainer.h" +#include "bctestpanecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneContainer::CBCTestPaneContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPaneContainer::~CBCTestPaneContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestPaneContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + + if ( iPaneCase ) + { + TRAP_IGNORE( iPaneCase->DrawCaseL( gc ) ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestPaneContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestPaneContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::SetPaneCase +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::SetPaneCase( CBCTestPaneCase* aCase ) + { + iPaneCase = aCase; + DrawNow(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpanedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpanedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,62 @@ +/* +* 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 "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: Document +* +*/ + + +#include "BCTestPaneDocument.h" +#include "BCTestPaneAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestPaneDocument* CBCTestPaneDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneDocument* CBCTestPaneDocument::NewL( CEikApplication& aApp ) + { + CBCTestPaneDocument* self = new( ELeave ) CBCTestPaneDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneDocument::~CBCTestPaneDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneDocument::~CBCTestPaneDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneDocument::CBCTestPaneDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneDocument::CBCTestPaneDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestPaneDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestPaneDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestPaneAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpaneview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpane/src/bctestpaneview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestpane.hrh" +#include +#include "bctestpaneview.h" +#include "bctestpanecontainer.h" +#include "bctestutil.h" +#include "bctestpanecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneView* CBCTestPaneView::NewL( CBCTestUtil* aUtil ) + { + CBCTestPaneView* self = new( ELeave ) CBCTestPaneView( aUtil ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneView::CBCTestPaneView( CBCTestUtil* aUtil ): + iTestUtil( aUtil ) + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::ConstructL() + { + BaseConstructL( R_BCTESTPANE_VIEW ); + + iContainer = new( ELeave ) CBCTestPaneContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + // Add test case here. + _LIT( KPaneCase, "Pane case" ); + iTestUtil->AddTestCaseL( CBCTestPaneCase::NewL( iContainer ), + KPaneCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPaneView::~CBCTestPaneView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestPaneView::Id() const + { + return KBCTestTemplateViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/30x40.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/30x40.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/30x40M.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/30x40M.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/tel.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/tel.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/telM.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/datasrc/telM.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bctestpopups.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bctestpopups.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ +/* +* 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 "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: project specification file for the bctestpopups +* +*/ + + +TARGET bctestpopups.exe +TARGETTYPE exe +UID 0x0 0x200045CA + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestpopups.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG sc + +SOURCEPATH ../src +SOURCE bctestpopupsapp.cpp +SOURCE bctestpopupsdocument.cpp +SOURCE bctestpopupsappui.cpp +SOURCE bctestpopupsview.cpp +SOURCE bctestpopupscontainer.cpp +SOURCE bctestpopupfieldtextcase.cpp +SOURCE bctestsubpopupfieldtext.cpp +SOURCE bctestpopupcase.cpp +SOURCE bctestpopupsettingpage.cpp +SOURCE bctestpopupsettingpagecase.cpp +SOURCE bctestsubpopup.cpp +SOURCE bctestheadingpanecase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY AknIcon.lib +LIBRARY AknSkins.lib +LIBRARY avkon.lib +LIBRARY apparc.lib +LIBRARY aknnotify.lib +LIBRARY apgrfx.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY cone.lib +LIBRARY egul.lib +LIBRARY euser.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY eikctl.lib +LIBRARY eikdlg.lib +LIBRARY eikcdlg.lib +LIBRARY estor.lib + +// Creates Mbm file. +START BITMAP bctestpopups.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../DataSrc +SOURCE C8 30x40.bmp +SOURCE C8 30x40M.bmp +SOURCE C8 tel.bmp +SOURCE C8 telM.bmp +END + +START RESOURCE ../group/bctestpopups_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bctestpopups.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bctestpopups.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2813 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME POPU + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestpopups.hrh" +#include "bctestpopups.loc" + +#define BCTESTPOPFIELD_TEXT_WIDTH 8 + +// RESOURCE DEFINITIONS +//---------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//---------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//---------------------------------------------------------------------------- +// +// TBUF16 +// +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctestpopups_buf; + } + +//---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestpopups_menubar; + cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestpopups_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_view +// +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestpopups_view + { + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menubar +// MenuBar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestpopups_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestpopups_menu; + txt = qtn_bctestpopups_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menu +// Menu pane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpopups_menu + { + items = + { + MENU_ITEM + { + command = EBCTestPopupsCmdPopupsFieldText; + cascade = r_bctestpopups_menu_popup_field_text_cascade; + txt = qtn_bctestpopups_menu_popup_field_text; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdPopupsList; + cascade = r_bctestpopups_menu_popup_list_cascade; + txt = qtn_bctestpopups_menu_popup_list; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdPopupsHeadingPane; + cascade = r_bctestpopups_menu_popup_heading_pane_cascade; + txt = qtn_bctestpopups_menu_popup_heading_pane; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdPopupsSettingPage; + cascade = r_bctestpopups_menu_settingpage_cascade; + txt = qtn_bctestpopups_menu_popup_setting_page; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdPopupsLayout; + cascade = r_bctestpopups_menu_layout_cascade; + txt = qtn_bctestpopups_menu_popup_layout; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdAutotest; + txt = qtn_bctestpopups_menu_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestpopups_menu_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menu_popup_field_text_cascade +// Sub menu-pane of "Popup field" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpopups_menu_popup_field_text_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestPopupsCmdOutline01; + txt = qtn_bctestpopups_menu_out01; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline02; + txt = qtn_bctestpopups_menu_out02; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline03; + txt = qtn_bctestpopups_menu_out03; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menu_popup_list_cascade +// Sub menu-pane of "Popup list" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpopups_menu_popup_list_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestPopupsCmdOutline04; + txt = qtn_bctestpopups_menu_out04; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline05; + txt = qtn_bctestpopups_menu_out05; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline06; + txt = qtn_bctestpopups_menu_out06; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menu_popup_heading_pane_cascade +// Sub menu-pane of "Popup heading pane" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpopups_menu_popup_heading_pane_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestPopupsCmdOutline07; + txt = qtn_bctestpopups_menu_out07; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline08; + txt = qtn_bctestpopups_menu_out08; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline09; + txt = qtn_bctestpopups_menu_out09; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menu_settingpage_cascade +// Sub menu-pane of "Popup setting page" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpopups_menu_settingpage_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestPopupsCmdOutline10; + txt = qtn_bctestpopups_menu_out10; + }, + MENU_ITEM + { + command = EBCTestPopupsCmdOutline11; + txt = qtn_bctestpopups_menu_out11; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_menu_layout_cascade +// Sub menu-pane of "Popup layout" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpopups_menu_layout_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestPopupsCmdOutline12; + txt = qtn_bctestpopups_menu_out12; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_avkon_heading +// Avkon Heading +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_HEADING r_bctestpopups_avkon_heading + { + label = qtn_bctestpopups_label; + bmpfile = qtn_bctestpopups_bmpfile; + bmpid = EMbmBctestpopups30x40; + bmpmask = EMbmBctestpopups30x40m; + animation = r_bctestpopups_bitmap_animation; + headinglayout = R_AVKON_LIST_HEADING_PANE; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_bitmap_animation +// Bitmap Animation +// +//---------------------------------------------------------------------------- +// +RESOURCE BMPANIM_DATA r_bctestpopups_bitmap_animation + { + frameinterval = 200; + playmode = -1; + bmpfile = qtn_bctestpopups_bmpfile; + frames = r_bctestpopups_animation_array; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_animation_array +// Animation Array +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_animation_array + { + items = + { + BMPANIM_FRAME + { + bmpid = EMbmBctestpopups30x40; + maskid = EMbmBctestpopups30x40m; + }, + BMPANIM_FRAME + { + bmpid = EMbmBctestpopupsTel; + maskid = EMbmBctestpopupsTelm; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_iconfile +// Icon file to use. +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_iconfile + { + buf = qtn_bctestpopups_iconfile; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_text_label_title +// Text which is used by label +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_text_label_title + { + buf = qtn_bctestpopups_label_title; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_text_label_operation +// Text which is used by label +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_text_label_operation + { + buf = qtn_bctestpopups_operation; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_text_status_pane_title?? +// Text which is used on status pane +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title01 + { + buf = qtn_bctestpopups_menu_out01; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title02 + { + buf = qtn_bctestpopups_menu_out02; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title03 + { + buf = qtn_bctestpopups_menu_out03; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title04 + { + buf = qtn_bctestpopups_menu_out04; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title05 + { + buf = qtn_bctestpopups_menu_out05; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title06 + { + buf = qtn_bctestpopups_menu_out06; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title07 + { + buf = qtn_bctestpopups_menu_out07; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title08 + { + buf = qtn_bctestpopups_menu_out08; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title09 + { + buf = qtn_bctestpopups_menu_out09; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title10 + { + buf = qtn_bctestpopups_menu_out10; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title11 + { + buf = qtn_bctestpopups_menu_out11; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title12 + { + buf = qtn_bctestpopups_menu_out12; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title13 + { + buf = qtn_bctestpopups_menu_out13; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title14 + { + buf = qtn_bctestpopups_menu_out14; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title15 + { + buf = qtn_bctestpopups_menu_out15; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title16 + { + buf = qtn_bctestpopups_menu_out16; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title17 + { + buf = qtn_bctestpopups_menu_out17; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title18 + { + buf = qtn_bctestpopups_menu_out18; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title19 + { + buf = qtn_bctestpopups_menu_out19; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title20 + { + buf = qtn_bctestpopups_menu_out20; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title21 + { + buf = qtn_bctestpopups_menu_out21; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title22 + { + buf = qtn_bctestpopups_menu_out22; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title23 + { + buf = qtn_bctestpopups_menu_out23; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title24 + { + buf = qtn_bctestpopups_menu_out24; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title25 + { + buf = qtn_bctestpopups_menu_out25; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title26 + { + buf = qtn_bctestpopups_menu_out26; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title27 + { + buf = qtn_bctestpopups_menu_out27; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title28 + { + buf = qtn_bctestpopups_menu_out28; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title29 + { + buf = qtn_bctestpopups_menu_out29; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title30 + { + buf = qtn_bctestpopups_menu_out30; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title31 + { + buf = qtn_bctestpopups_menu_out31; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title32 + { + buf = qtn_bctestpopups_menu_out32; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title33 + { + buf = qtn_bctestpopups_menu_out33; + } + +RESOURCE TBUF256 r_bctestpopups_text_status_pane_title34 + { + buf = qtn_bctestpopups_menu_out34; + } + +// --------------------------------------------------------------------------- +// +// r_bctestpopups_query_prompt +// For pop-up field selection list item : editing query caption text +// +// --------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_query_prompt + { + buf = qtn_bctestpopups_query_prompt; + } + +// --------------------------------------------------------------------------- +// +// r_bctestpopups_time_initial_text +// Time array text which is used on selection list +// +// --------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_time_initial_text + { + buf = qtn_bctestpopups_time_text; + } + +// --------------------------------------------------------------------------- +// +// r_bctestpopups_date_initial_text +// Date array text which is used on selection list +// +// --------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_date_initial_text + { + buf = qtn_bctestpopups_date_text; + } + +// --------------------------------------------------------------------------- +// +// r_bctestpopups_???_format_string_text +// Each format which is used on selection list +// +// --------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_num_format_string_text + { + buf = qtn_bctestpopups_num_format; + } + +RESOURCE TBUF256 r_bctestpopups_phon_format_string_text + { + buf = qtn_bctestpopups_phon_format; + } + +RESOURCE TBUF256 r_bctestpopups_time_format_string_text + { + buf = qtn_bctestpopups_time_format; + } + +RESOURCE TBUF256 r_bctestpopups_date_format_string_text + { + buf = qtn_bctestpopups_date_format; + } + +RESOURCE TBUF256 r_bctestpopups_dura_format_string_text + { + buf = qtn_bctestpopups_dura_format; + } + +// --------------------------------------------------------------------------- +// +// r_bctestpopups_empty_text_raplacement +// Used in AttribSetDialog +// +// --------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_empty_text_raplacement + { + buf = qtn_bctestpopups_empty_text_replacement; + } + +// --------------------------------------------------------------------------- +// +// r_bctestpopups_other_text_raplacement +// Used in AttribSetDialog +// +// --------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestpopups_other_text_raplacement + { + buf = qtn_bctestpopups_other_text_replacement; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_two_text_field_dialog +// Standard for Popfield. there are two text fields. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_two_text_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | EEikDialogFlagNoBorder; + + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_two_text_field_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_two_text_field_form +// Standard for PopField. there are two text fields. +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_two_text_field_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop01; + id = EBCTestPopFieldDlgCtrlIdPop01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { +//FIXME: not setting this causes invisible list when pressing ok in edit state + //flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop02; + id = EBCTestPopFieldDlgCtrlIdPop02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { +// flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_five_text_field_dialog +// for Outline16,17 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_five_text_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_five_text_field_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_five_text_field_form +// for Outline16,17 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_five_text_field_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop01; + id = EBCTestPopFieldDlgCtrlIdPop01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop02; + id = EBCTestPopFieldDlgCtrlIdPop02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop03; + id = EBCTestPopFieldDlgCtrlIdPop03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop04; + id = EBCTestPopFieldDlgCtrlIdPop04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop05; + id = EBCTestPopFieldDlgCtrlIdPop05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_thirteen_text_field_dialog +// for Outline9 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_thirteen_text_field_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_thirteen_text_field_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_thirteen_text_field_form +// for Outline9 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_thirteen_text_field_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop00; + id = EBCTestPopFieldDlgCtrlIdPop00; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop01; + id = EBCTestPopFieldDlgCtrlIdPop01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop02; + id = EBCTestPopFieldDlgCtrlIdPop02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop03; + id = EBCTestPopFieldDlgCtrlIdPop03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop04; + id = EBCTestPopFieldDlgCtrlIdPop04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop05; + id = EBCTestPopFieldDlgCtrlIdPop05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop06; + id = EBCTestPopFieldDlgCtrlIdPop06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop07; + id = EBCTestPopFieldDlgCtrlIdPop07; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop08; + id = EBCTestPopFieldDlgCtrlIdPop08; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop09; + id = EBCTestPopFieldDlgCtrlIdPop09; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop10; + id = EBCTestPopFieldDlgCtrlIdPop10; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop11; + id = EBCTestPopFieldDlgCtrlIdPop11; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop12; + id = EBCTestPopFieldDlgCtrlIdPop12; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_allows_user_defined_entry_dialog +// for Outline20,21,22,23,24 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_allows_user_defined_entry_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_allows_user_defined_entry_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_allows_user_defined_entry_form +// for Outline20,21,22,23,24 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_allows_user_defined_entry_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop01; + id = EBCTestPopFieldDlgCtrlIdPop01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop02; + id = EBCTestPopFieldDlgCtrlIdPop02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_dialog +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_navigate_six_pages_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + pages = r_bctestpopups_navigate_six_pages; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages +// For Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_navigate_six_pages + { + items = + { + PAGE + { + id = EBCTestPopFieldPageCtrlIdPage01; + text = qtn_bctestpopups_label_page1; + form = r_bctestpopups_navigate_six_pages_text_form; + }, + PAGE + { + id = EBCTestPopFieldPageCtrlIdPage02; + text = qtn_bctestpopups_label_page2; + form = r_bctestpopups_navigate_six_pages_num_form; + }, + PAGE + { + id = EBCTestPopFieldPageCtrlIdPage03; + text = qtn_bctestpopups_label_page3; + form = r_bctestpopups_navigate_six_pages_phon_form; + }, + PAGE + { + id = EBCTestPopFieldPageCtrlIdPage04; + text = qtn_bctestpopups_label_page4; + form = r_bctestpopups_navigate_six_pages_time_form; + }, + PAGE + { + id = EBCTestPopFieldPageCtrlIdPage05; + text = qtn_bctestpopups_label_page5; + form = r_bctestpopups_navigate_six_pages_date_form; + }, + PAGE + { + id = EBCTestPopFieldPageCtrlIdPage06; + text = qtn_bctestpopups_label_page6; + form = r_bctestpopups_navigate_six_pages_dura_form; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_text_form +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_navigate_six_pages_text_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt01; + id = EBCTestPopFieldDlgCtrlIdText01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt02; + id = EBCTestPopFieldDlgCtrlIdText02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt03; + id = EBCTestPopFieldDlgCtrlIdText03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt04; + id = EBCTestPopFieldDlgCtrlIdText04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt05; + id = EBCTestPopFieldDlgCtrlIdText05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt06; + id = EBCTestPopFieldDlgCtrlIdText06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_num_form +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_navigate_six_pages_num_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num01; + id = EBCTestPopFieldDlgCtrlIdNum01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num02; + id = EBCTestPopFieldDlgCtrlIdNum02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num03; + id = EBCTestPopFieldDlgCtrlIdNum03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num04; + id = EBCTestPopFieldDlgCtrlIdNum04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num05; + id = EBCTestPopFieldDlgCtrlIdNum05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num06; + id = EBCTestPopFieldDlgCtrlIdNum06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_phon_form +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_navigate_six_pages_phon_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon01; + id = EBCTestPopFieldDlgCtrlIdPhon01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon02; + id = EBCTestPopFieldDlgCtrlIdPhon02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon03; + id = EBCTestPopFieldDlgCtrlIdPhon03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon04; + id = EBCTestPopFieldDlgCtrlIdPhon04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon05; + id = EBCTestPopFieldDlgCtrlIdPhon05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon06; + id = EBCTestPopFieldDlgCtrlIdPhon06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_time_form +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_navigate_six_pages_time_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time01; + id = EBCTestPopFieldDlgCtrlIdTime01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time02; + id = EBCTestPopFieldDlgCtrlIdTime02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time03; + id = EBCTestPopFieldDlgCtrlIdTime03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time04; + id = EBCTestPopFieldDlgCtrlIdTime04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time05; + id = EBCTestPopFieldDlgCtrlIdTime05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time06; + id = EBCTestPopFieldDlgCtrlIdTime06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_date_form +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_navigate_six_pages_date_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date01; + id = EBCTestPopFieldDlgCtrlIdDate01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date02; + id = EBCTestPopFieldDlgCtrlIdDate02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date03; + id = EBCTestPopFieldDlgCtrlIdDate03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date04; + id = EBCTestPopFieldDlgCtrlIdDate04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date05; + id = EBCTestPopFieldDlgCtrlIdDate05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date06; + id = EBCTestPopFieldDlgCtrlIdDate06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_navigate_six_pages_dura_form +// for Outline32 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_navigate_six_pages_dura_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura01; + id = EBCTestPopFieldDlgCtrlIdDura01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura02; + id = EBCTestPopFieldDlgCtrlIdDura02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura03; + id = EBCTestPopFieldDlgCtrlIdDura03; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura04; + id = EBCTestPopFieldDlgCtrlIdDura04; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura05; + id = EBCTestPopFieldDlgCtrlIdDura05; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura06; + id = EBCTestPopFieldDlgCtrlIdDura06; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_different_data_type_dialog +// for Outline25 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_different_data_type_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_different_data_type_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_different_data_type_form +// for Outline25 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_different_data_type_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt; + id = EBCTestPopFieldDlgCtrlIdText01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num; + id = EBCTestPopFieldDlgCtrlIdNum01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon; + id = EBCTestPopFieldDlgCtrlIdPhon01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time; + id = EBCTestPopFieldDlgCtrlIdTime01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date; + id = EBCTestPopFieldDlgCtrlIdDate01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura; + id = EBCTestPopFieldDlgCtrlIdDura01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_different_data_type_enter_dialog +// for Outline26,27 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_different_data_type_enter_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_different_data_type_enter_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_different_data_type_enter_form +// for Outline26,27 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_different_data_type_enter_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_txt; + id = EBCTestPopFieldDlgCtrlIdText01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_num; + id = EBCTestPopFieldDlgCtrlIdNum01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_phon; + id = EBCTestPopFieldDlgCtrlIdPhon01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_time; + id = EBCTestPopFieldDlgCtrlIdTime01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_date; + id = EBCTestPopFieldDlgCtrlIdDate01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_dura; + id = EBCTestPopFieldDlgCtrlIdDura01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldFlagAllowsUserDefinedEntry; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_list_with_radio_button_dialog +// for Outline28 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_list_with_radio_button_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_list_with_radio_button_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_list_with_radio_button_form +// for Outline28 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_list_with_radio_button_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop01; + id = EBCTestPopFieldDlgCtrlIdPop01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_pop02; + id = EBCTestPopFieldDlgCtrlIdPop02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + flags = EAknPopupFieldNoGraphic; + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_popup_field_text +// for Outline1 +// +//---------------------------------------------------------------------------- +// +RESOURCE POPUP_FIELD_TEXT r_bctestpopups_popup_field_text + { + popupfield = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + textarray = r_bctestpopups_field_text_array; + active = 0; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_field_text_dialog +// for Outline1 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_field_text_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_field_text_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_field_text_form +// for Outline1 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_field_text_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupFieldText; + prompt = qtn_bctestpopups_label_fldtext01; + id = EBCTestPopFieldDlgCtrlIdFldText01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD_TEXT + { + popupfield = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + textarray = r_bctestpopups_field_text_array; + active = 0; + }; + tooltip = qtn_bctestpopups_hint_text2; + }, + DLG_LINE + { + type = EAknCtPopupFieldText; + prompt = qtn_bctestpopups_label_fldtext02; + id = EBCTestPopFieldDlgCtrlIdFldText02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD_TEXT + { + popupfield = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + textarray = r_bctestpopups_field_text_array; + active = 1; + }; + tooltip = qtn_bctestpopups_hint_text2; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_attrib_set_dialog +// for Outline34 +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_attrib_set_dialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | + EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | + EEikDialogFlagCbaButtons | ///EEikDialogFlagModeless | + EEikDialogFlagNoBorder; + buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; + form = r_bctestpopups_attrib_set_form; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_attrib_set_form +// for Outline34 +// +//---------------------------------------------------------------------------- +// +RESOURCE FORM r_bctestpopups_attrib_set_form + { + items = + { + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_attribset01; + id = EBCTestPopFieldDlgCtrlIdAttribSet01; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + }, + DLG_LINE + { + type = EAknCtPopupField; + prompt = qtn_bctestpopups_label_attribset02; + id = EBCTestPopFieldDlgCtrlIdAttribSet02; + itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; + control = POPUP_FIELD + { + width = BCTESTPOPFIELD_TEXT_WIDTH; + other = qtn_bctestpopups_list_other; + }; + tooltip = qtn_bctestpopups_hint_text; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_one_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_one_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_two_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_two_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_three_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_three_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_four_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_four_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_five_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_five_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_six_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_six_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_seven_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_seven_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_eight_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_eight_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + }, + LBUF + { + txt = qtn_bctestpopups_list_text08; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_nine_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_nine_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + }, + LBUF + { + txt = qtn_bctestpopups_list_text08; + }, + LBUF + { + txt = qtn_bctestpopups_list_text09; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_ten_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_ten_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + }, + LBUF + { + txt = qtn_bctestpopups_list_text08; + }, + LBUF + { + txt = qtn_bctestpopups_list_text09; + }, + LBUF + { + txt = qtn_bctestpopups_list_text10; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_eleven_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_eleven_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + }, + LBUF + { + txt = qtn_bctestpopups_list_text08; + }, + LBUF + { + txt = qtn_bctestpopups_list_text09; + }, + LBUF + { + txt = qtn_bctestpopups_list_text10; + }, + LBUF + { + txt = qtn_bctestpopups_list_text11; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_twelve_text_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_twelve_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + }, + LBUF + { + txt = qtn_bctestpopups_list_text08; + }, + LBUF + { + txt = qtn_bctestpopups_list_text09; + }, + LBUF + { + txt = qtn_bctestpopups_list_text10; + }, + LBUF + { + txt = qtn_bctestpopups_list_text11; + }, + LBUF + { + txt = qtn_bctestpopups_list_text12; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_six_phone_array +// For pop-up field selection list item +// +// ---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_six_phone_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_phone01; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone02; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone03; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone04; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone05; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone06; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_field_text_array +// For pop-up field selection list item +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_field_text_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_text01; + }, + LBUF + { + txt = qtn_bctestpopups_list_text02; + }, + LBUF + { + txt = qtn_bctestpopups_list_text03; + }, + LBUF + { + txt = qtn_bctestpopups_list_text04; + }, + LBUF + { + txt = qtn_bctestpopups_list_text05; + }, + LBUF + { + txt = qtn_bctestpopups_list_text06; + }, + LBUF + { + txt = qtn_bctestpopups_list_text07; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_cba_options_exit +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestpopups_cba_options_exit + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestPopFieldCbaCmdExit; + txt = qtn_bctestpopups_cba_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpopups_empty_list_note +// Note for empty list. +// +// ---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestpopups_empty_list_note + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OK_EMPTY; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestPopFieldEmptyListNoteId; + control= AVKON_NOTE + { + layout = ENotificationWithGraphicsLayout; + singular_label = qtn_bctestpopups_empty_list_note; + // plural_label = + imagefile = qtn_bctestpopups_bmpfile; + imageid = EMbmBctestpopups30x40; + imagemask = EMbmBctestpopups30x40m; + }; + } + }; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_popup_setting_page +// For Popup Setting Page +// +//---------------------------------------------------------------------------- +// + +RESOURCE AVKON_SETTING_PAGE r_bctestpopups_popup_setting_page + { + number = 1; + label = qtn_bctestpopups_setting_page_title; + type = EAknCtPopupSettingList; + editor_resource_id = r_bctestpopups_popup_setting_list; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_popup_setting_list +// For Popup Setting List +// +//---------------------------------------------------------------------------- +// +RESOURCE POPUP_SETTING_LIST r_bctestpopups_popup_setting_list + { + flags = 0; + width = 20; + other = qtn_bctestpopups_other; + } + +//---------------------------------------------------------------------------- +// +// r_bctestpopups_list_item_array +// For Popup Setting Page and radio button setting page. +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestpopups_list_item_array + { + items = + { + LBUF + { + txt = qtn_bctestpopups_list_phone01; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone02; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone03; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone04; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone05; + }, + LBUF + { + txt = qtn_bctestpopups_list_phone06; + } + }; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bctestpopups_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bctestpopups_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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 bctestpopups +* +*/ + + +#include +#include + +#include "bctestpopups.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045CA // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_apps_name; + localisable_resource_file = qtn_localization_filename; + localisable_resource_id = R_BCTESTPOPUPS_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestpopups.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestheadingpanecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestheadingpanecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "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: Declares test bc for heading pane testcase. +* +*/ + + +#ifndef C_CBCTESTHEADINGPANECASE_H +#define C_CBCTESTHEADINGPANECASE_H + +#include "bctestcase.h" + +class CBCTestPopupsContainer; +class CCoeControl; + +/** + * test case for various popups classes + */ +class CBCTestHeadingPaneCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestHeadingPaneCase* NewL( CBCTestPopupsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestHeadingPaneCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestHeadingPaneL function + */ + void TestHeadingPaneL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestHeadingPaneCase( CBCTestPopupsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestPopupsContainer* iContainer; + + }; + +#endif // C_CBCTESTHEADINGPANECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,96 @@ +/* +* 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 "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: Declares test bc for popup testcase. +* +*/ + + +#ifndef C_CBCTESTPOPUPCASE_H +#define C_CBCTESTPOPUPCASE_H + +#include "bctestcase.h" + +class CBCTestPopupsContainer; +class CCoeControl; + +/** + * test case for various popups classes + */ +class CBCTestPopupCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPopupCase* NewL( CBCTestPopupsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPopupCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestPopupL function + */ + void TestPopupL(); + + /** + * TestProtectedFunctionsL function + */ + void TestProtectedFunctionsL(); + + /** + * TestTAknPopupFaderFunctionsL function + */ + void TestTAknPopupFaderFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPopupCase( CBCTestPopupsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestPopupsContainer* iContainer; + + }; + +#endif // C_CBCTESTPOPUPCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupfieldtextcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupfieldtextcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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: Declares test bc for popup field text testcase. +* +*/ + + +#ifndef C_CBCTESTPOPUPFIELDTEXTCASE_H +#define C_CBCTESTPOPUPFIELDTEXTCASE_H + +#include "bctestcase.h" + +class CBCTestPopupsContainer; +class CCoeControl; +class CAknForm; + +/** + * test case for various popups classes + */ +class CBCTestPopupFieldTextCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPopupFieldTextCase* + NewL( CBCTestPopupsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPopupFieldTextCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestPopupFieldTextL function + */ + void TestPopupFieldTextL(); + + /** + * TestPopupFieldL function + */ + void TestPopupFieldL(); + + /** + * TestProtectedFunctionsL function + */ + void TestProtectedFunctionsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPopupFieldTextCase( CBCTestPopupsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestPopupsContainer* iContainer; + + /** + * Pointer to BaseDialog. + * own + */ + CAknForm* iBaseDialog; + }; + +#endif // C_CBCTESTPOPUPFIELDTEXTCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopups.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopups.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,126 @@ +/* +* 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 "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: bctestpopups resource header file +* +*/ + + +#ifndef BCTESTPOPUPS_HRH +#define BCTESTPOPUPS_HRH + +enum TBCTestPopupsMenuGroupCommands + { + EBCTestPopupsCmdPopupsFieldText = 0x6000, + EBCTestPopupsCmdPopupsList, + EBCTestPopupsCmdPopupsHeadingPane, + EBCTestPopupsCmdPopupsSettingPage, + EBCTestPopupsCmdPopupsLayout, + EBCTestPopupsCmdAutotest + }; + +enum TBCTestPopupsMenuCommands + { + EBCTestPopupsCmdEmptyOutline = 0x6020, + EBCTestPopupsCmdOutline01, + EBCTestPopupsCmdOutline02, + EBCTestPopupsCmdOutline03, + EBCTestPopupsCmdOutline04, + EBCTestPopupsCmdOutline05, + EBCTestPopupsCmdOutline06, + EBCTestPopupsCmdOutline07, + EBCTestPopupsCmdOutline08, + EBCTestPopupsCmdOutline09, + EBCTestPopupsCmdOutline10, + EBCTestPopupsCmdOutline11, + EBCTestPopupsCmdOutline12, + EBCTestPopupsCmdMaxOutline + }; + +enum TBCTestPopFieldDialogControlIds + { + EBCTestPopFieldDlgCtrlIdPop00 = 0x100, + EBCTestPopFieldDlgCtrlIdPop01, + EBCTestPopFieldDlgCtrlIdPop02, + EBCTestPopFieldDlgCtrlIdPop03, + EBCTestPopFieldDlgCtrlIdPop04, + EBCTestPopFieldDlgCtrlIdPop05, + EBCTestPopFieldDlgCtrlIdPop06, + EBCTestPopFieldDlgCtrlIdPop07, + EBCTestPopFieldDlgCtrlIdPop08, + EBCTestPopFieldDlgCtrlIdPop09, + EBCTestPopFieldDlgCtrlIdPop10, + EBCTestPopFieldDlgCtrlIdPop11, + EBCTestPopFieldDlgCtrlIdPop12, + EBCTestPopFieldDlgCtrlIdText01, + EBCTestPopFieldDlgCtrlIdText02, + EBCTestPopFieldDlgCtrlIdText03, + EBCTestPopFieldDlgCtrlIdText04, + EBCTestPopFieldDlgCtrlIdText05, + EBCTestPopFieldDlgCtrlIdText06, + EBCTestPopFieldDlgCtrlIdNum01, + EBCTestPopFieldDlgCtrlIdNum02, + EBCTestPopFieldDlgCtrlIdNum03, + EBCTestPopFieldDlgCtrlIdNum04, + EBCTestPopFieldDlgCtrlIdNum05, + EBCTestPopFieldDlgCtrlIdNum06, + EBCTestPopFieldDlgCtrlIdPhon01, + EBCTestPopFieldDlgCtrlIdPhon02, + EBCTestPopFieldDlgCtrlIdPhon03, + EBCTestPopFieldDlgCtrlIdPhon04, + EBCTestPopFieldDlgCtrlIdPhon05, + EBCTestPopFieldDlgCtrlIdPhon06, + EBCTestPopFieldDlgCtrlIdTime01, + EBCTestPopFieldDlgCtrlIdTime02, + EBCTestPopFieldDlgCtrlIdTime03, + EBCTestPopFieldDlgCtrlIdTime04, + EBCTestPopFieldDlgCtrlIdTime05, + EBCTestPopFieldDlgCtrlIdTime06, + EBCTestPopFieldDlgCtrlIdDate01, + EBCTestPopFieldDlgCtrlIdDate02, + EBCTestPopFieldDlgCtrlIdDate03, + EBCTestPopFieldDlgCtrlIdDate04, + EBCTestPopFieldDlgCtrlIdDate05, + EBCTestPopFieldDlgCtrlIdDate06, + EBCTestPopFieldDlgCtrlIdDura01, + EBCTestPopFieldDlgCtrlIdDura02, + EBCTestPopFieldDlgCtrlIdDura03, + EBCTestPopFieldDlgCtrlIdDura04, + EBCTestPopFieldDlgCtrlIdDura05, + EBCTestPopFieldDlgCtrlIdDura06, + EBCTestPopFieldDlgCtrlIdFldText01, + EBCTestPopFieldDlgCtrlIdFldText02, + EBCTestPopFieldDlgCtrlIdAttribSet01, + EBCTestPopFieldDlgCtrlIdAttribSet02 + }; + +enum TBCTestPopFieldPageControlIds + { + EBCTestPopFieldPageCtrlIdPage01 = 1, + EBCTestPopFieldPageCtrlIdPage02, + EBCTestPopFieldPageCtrlIdPage03, + EBCTestPopFieldPageCtrlIdPage04, + EBCTestPopFieldPageCtrlIdPage05, + EBCTestPopFieldPageCtrlIdPage06 + }; + +enum TBCTestPopupsCba + { + EBCTestPopFieldCbaCmdExit = 0x6300 + }; + +enum TBCTestPopFieldNoteIds + { + EBCTestPopFieldEmptyListNoteId = 1 + }; +#endif // BCTESTPOPUPS_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopups.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopups.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,203 @@ +/* +* 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 "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: bctestpopups localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTPOPUPS" +#define qtn_apps_tavl_grid "BCTESTPOPUPS" + +// MenuBar +#define qtn_bctestpopups_menubar "Options" +#define qtn_bctestpopups_menu_popup_field_text "Popup field Text" +#define qtn_bctestpopups_menu_popup_list "Popup list" +#define qtn_bctestpopups_menu_popup_heading_pane "Popup heading pane" +#define qtn_bctestpopups_menu_popup_setting_page "Popup setting page" +#define qtn_bctestpopups_menu_popup_layout "Popup layout" +#define qtn_bctestpopups_menu_autotest "Autotest" +#define qtn_bctestpopups_menu_exit "Exit" + +//icon file +#define qtn_bctestpopups_iconfile "\\resource\\apps\\bctestpopups.mbm" + +// Sub menubar of "Popup field Text" menu +#define qtn_bctestpopups_menu_out01 "OUTLINE01" +#define qtn_bctestpopups_menu_out02 "OUTLINE02" +#define qtn_bctestpopups_menu_out03 "OUTLINE03" + +// Sub menubar of "Popup list" menu +#define qtn_bctestpopups_menu_out04 "OUTLINE04" +#define qtn_bctestpopups_menu_out05 "OUTLINE05" +#define qtn_bctestpopups_menu_out06 "OUTLINE06" + +// Sub menubar of "Popup heading pane" menu +#define qtn_bctestpopups_menu_out07 "OUTLINE07" +#define qtn_bctestpopups_menu_out08 "OUTLINE08" +#define qtn_bctestpopups_menu_out09 "OUTLINE09" + +// Sub menubar of "Popup setting page" menu +#define qtn_bctestpopups_menu_out10 "OUTLINE10" +#define qtn_bctestpopups_menu_out11 "OUTLINE11" + +// Sub menubar of "Popup layout" menu +#define qtn_bctestpopups_menu_out12 "OUTLINE12" + +// Extra manu item for AttribSetDialog +#define qtn_bctestpopups_menu_edit_entry "Edit Entry" + +// Messages +#define qtn_bctestpopups_label_title "bctestpopups\nSample Application" +#define qtn_bctestpopups_operation \ + "Press right softkey to\ndisplay next outline" + +// Time array text in popfield selection list +#define qtn_bctestpopups_time_text "000000." + +// Date array text in popfield selection list +#define qtn_bctestpopups_date_text "20000000:" + +// Navipane page label text +#define qtn_bctestpopups_label_page1 "text" +#define qtn_bctestpopups_label_page2 "num" +#define qtn_bctestpopups_label_page3 "phon" +#define qtn_bctestpopups_label_page4 "time" +#define qtn_bctestpopups_label_page5 "date" +#define qtn_bctestpopups_label_page6 "dura" + +// Each format string text +#define qtn_bctestpopups_num_format "%d" +#define qtn_bctestpopups_phon_format "%d" +#define qtn_bctestpopups_time_format "%-B%:0%J%:1%T%:2%S%:3%+B" +#define qtn_bctestpopups_date_format "%D%M%Y%/0%1%/1%2%/2%3%/3" +#define qtn_bctestpopups_dura_format "%02d:%02d'%02d\"" + +// Hint text +#define qtn_bctestpopups_hint_text "PopField" +#define qtn_bctestpopups_hint_text2 "PopupFieldText" + +// Data query prompt +#define qtn_bctestpopups_query_prompt "Enter other item" + +// Extra strings for AttribSet Dialog +#define qtn_bctestpopups_empty_text_replacement "An empty value." +#define qtn_bctestpopups_other_text_replacement "Another value." + +#define qtn_bctestpopups_empty_list_note "This list is empty." + +// Label field text +#define qtn_bctestpopups_label_pop00 "pop0" +#define qtn_bctestpopups_label_pop01 "pop1" +#define qtn_bctestpopups_label_pop02 "pop2" +#define qtn_bctestpopups_label_pop03 "pop3" +#define qtn_bctestpopups_label_pop04 "pop4" +#define qtn_bctestpopups_label_pop05 "pop5" +#define qtn_bctestpopups_label_pop06 "pop6" +#define qtn_bctestpopups_label_pop07 "pop7" +#define qtn_bctestpopups_label_pop08 "pop8" +#define qtn_bctestpopups_label_pop09 "pop9" +#define qtn_bctestpopups_label_pop10 "pop10" +#define qtn_bctestpopups_label_pop11 "pop11" +#define qtn_bctestpopups_label_pop12 "pop12" +#define qtn_bctestpopups_label_txt "txt" +#define qtn_bctestpopups_label_txt01 "txt1" +#define qtn_bctestpopups_label_txt02 "txt2" +#define qtn_bctestpopups_label_txt03 "txt3" +#define qtn_bctestpopups_label_txt04 "txt4" +#define qtn_bctestpopups_label_txt05 "txt5" +#define qtn_bctestpopups_label_txt06 "txt6" +#define qtn_bctestpopups_label_num "num" +#define qtn_bctestpopups_label_num01 "num1" +#define qtn_bctestpopups_label_num02 "num2" +#define qtn_bctestpopups_label_num03 "num3" +#define qtn_bctestpopups_label_num04 "num4" +#define qtn_bctestpopups_label_num05 "num5" +#define qtn_bctestpopups_label_num06 "num6" +#define qtn_bctestpopups_label_phon "phon" +#define qtn_bctestpopups_label_phon01 "phon1" +#define qtn_bctestpopups_label_phon02 "phon2" +#define qtn_bctestpopups_label_phon03 "phon3" +#define qtn_bctestpopups_label_phon04 "phon4" +#define qtn_bctestpopups_label_phon05 "phon5" +#define qtn_bctestpopups_label_phon06 "phon6" +#define qtn_bctestpopups_label_time "time" +#define qtn_bctestpopups_label_time01 "time1" +#define qtn_bctestpopups_label_time02 "time2" +#define qtn_bctestpopups_label_time03 "time3" +#define qtn_bctestpopups_label_time04 "time4" +#define qtn_bctestpopups_label_time05 "time5" +#define qtn_bctestpopups_label_time06 "time6" +#define qtn_bctestpopups_label_date "date" +#define qtn_bctestpopups_label_date01 "date1" +#define qtn_bctestpopups_label_date02 "date2" +#define qtn_bctestpopups_label_date03 "date3" +#define qtn_bctestpopups_label_date04 "date4" +#define qtn_bctestpopups_label_date05 "date5" +#define qtn_bctestpopups_label_date06 "date6" +#define qtn_bctestpopups_label_dura "dura" +#define qtn_bctestpopups_label_dura01 "dura1" +#define qtn_bctestpopups_label_dura02 "dura2" +#define qtn_bctestpopups_label_dura03 "dura3" +#define qtn_bctestpopups_label_dura04 "dura4" +#define qtn_bctestpopups_label_dura05 "dura5" +#define qtn_bctestpopups_label_dura06 "dura6" +#define qtn_bctestpopups_label_fldtext01 "fldtext01" +#define qtn_bctestpopups_label_fldtext02 "fldtext02" +#define qtn_bctestpopups_label_attribset01 "attribset01" +#define qtn_bctestpopups_label_attribset02 "attribset02" + +// Text in popfield selection list +#define qtn_bctestpopups_list_text01 "Select Item 1" +#define qtn_bctestpopups_list_text02 "Select Item 2" +#define qtn_bctestpopups_list_text03 "Select Item 3" +#define qtn_bctestpopups_list_text04 "Select Item 4" +#define qtn_bctestpopups_list_text05 "Select Item 5" +#define qtn_bctestpopups_list_text06 "Select Item 6" +#define qtn_bctestpopups_list_text07 "Select Item 7" +#define qtn_bctestpopups_list_text08 "Select Item 8" +#define qtn_bctestpopups_list_text09 "Select Item 9" +#define qtn_bctestpopups_list_text10 "Select Item 10" +#define qtn_bctestpopups_list_text11 "Select Item 11" +#define qtn_bctestpopups_list_text12 "Select Item 12" +#define qtn_bctestpopups_list_other "Other..." + +// The title of setting page +#define qtn_bctestpopups_setting_page_title "Setting Page" + +// Phone array text in popfield selection list +#define qtn_bctestpopups_list_phone01 "11 1111 111111" +#define qtn_bctestpopups_list_phone02 "22 2222 222222" +#define qtn_bctestpopups_list_phone03 "33 3333 333333" +#define qtn_bctestpopups_list_phone04 "44 4444 444444" +#define qtn_bctestpopups_list_phone05 "55 5555 555555" +#define qtn_bctestpopups_list_phone06 "66 6666 666666" + +// For Cba +#define qtn_bctestpopups_cba_exit "Exit" + +// registraton string +#define qtn_apps_name "bctestpopups" +#define qtn_localization_filename "\\resource\\apps\\bctestpopups" +#define qtn_group_name "BCTest" + +#define qtn_bctestpopups_buf "BCTestPopups" +#define qtn_bctestpopups_label "avkon heading" +#define qtn_bctestpopups_bmpfile "\\resource\\apps\\bctestpopups.mbm" +#define qtn_bctestpopups_other "Other ..." + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,52 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTPOPUPSAPP_H +#define C_CBCTESTPOPUPSAPP_H + +#include + +const TUid KUidBCTestPopups = { 0x200045CA }; // UID of the application. + +/** + * CBCTestPopupsApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestPopupsApp : public CAknApplication + { +private: + +// From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestPopupsDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestPopups ). + * @return The value of KUidBCTestPopups. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESTPOPUPSAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Declares test bc for popups control appui. +* +*/ + + +#ifndef C_CBCTESTPOPUPSAPPUI_H +#define C_CBCTESTPOPUPSAPPUI_H + +#include + +class CBCTestPopupsView; + +/** + * Application UI class + */ +class CBCTestPopupsAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestPopupsAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestPopupsAppUi(); + +private: + +// From CEikAppUi + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointer to the view. + * own + */ + CBCTestPopupsView* iView; + + }; + +#endif // C_CBCTESTPOPUPSAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsbasedialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsbasedialog.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "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: Declares test bc for popups base dialog. +* +*/ + + +#ifndef BCTESTPOPUPSBASEDIALOG_H +#define BCTESTPOPUPSBASEDIALOG_H + +#include + +/** + * CBCTestPopupsBaseDialog + */ +class CBCTestPopupsBaseDialog : public CAknForm + { + public: // Constructors and destructor + + /** + * Destructor. + */ + virtual ~CBCTestPopupsBaseDialog(); + + /** + * Constructor. + */ + CBCTestPopupsBaseDialog(); + + public: // From CAknDialog + + /** + * From CAknDialog, DynInitMenuPaneL. + * Dims "Label", "Add" and "Delete" menu items. + * @param aResourceId + * @param aMenuPane Pointer to menu-pane object. + */ + virtual void DynInitMenuPaneL( TInt aResourceId, + CEikMenuPane* aMenuPane ); + + /** + * From CAknDialog, ProcessCommandL. + * @param aResourceId + */ + virtual void ProcessCommandL( TInt aCommandId ); + + protected: // From CAknDialog + + /** + * From CAknDialog, OkToExitL. + * @param aButtonId + */ + virtual TBool OkToExitL( TInt aButtonId ); + + private: // From CEikDialog + + /** + * From CEikDialog, PreLayoutDynInitL. + * Initialises the dialog's controls before the dialog is sized + * and layed out. + */ + void PreLayoutDynInitL(); + + /** + * From CEikDialog, PostLayoutDynInitL. + * Initialises the dialog's controls after the dialog has been sized + * but before it has been activated. + */ + void PostLayoutDynInitL(); + + }; + +#endif // BCTESTPOPUPSBASEDIALOG_H + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupscontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupscontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,100 @@ +/* +* 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 "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: Declares test bc for popups control container. +* +*/ + + +#ifndef C_CBCTESTPOPUPSCONTAINER_H +#define C_CBCTESTPOPUPSCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestPopupsContainer: public CCoeControl + { + friend class CBCTestPopupFieldTextCase; + +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestPopupsContainer(); + + /** + * Destructor + */ + virtual ~CBCTestPopupsContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * get iCoeEnv + */ + CCoeEnv* GetCoeEnv(); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: + +// from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTPOPUPSCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Declares test bc for popups control document. +* +*/ + + +#ifndef C_CBCTESTPOPUPSDOCUMENT_H +#define C_CBCTESTPOPUPSDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestPopupsDocument application class. +*/ +class CBCTestPopupsDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestPopupsDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestPopupsDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestPopupsDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestPopupsAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + +}; + +#endif // C_CBCTESTPOPUPSDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,59 @@ +/* +* 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 "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: Implements test bc for popup field text testcase. +* +*/ + + + +#ifndef C_CBCTESTPOPUPSETTINGPAGE_H +#define C_CBCTESTPOPUPSETTINGPAGE_H + +#include + +class CBCTestPopupsContainer; + +/** +* test case for various popup classes +*/ +class CBCTestPopupSettingPage: public CAknPopupSettingPage + { +public: // constructor and destructor + + friend class CBCTestPopupSettingPageCase; + + /** + * C++ default constructor + */ + CBCTestPopupSettingPage( + const TInt aResourceId, + CAknQueryValueText& aQueryValue ); + + /** + * C++ default constructor + */ + CBCTestPopupSettingPage( + const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + MAknQueryValue& aQueryValue); + + ~CBCTestPopupSettingPage(); + + }; + +#endif //C_CBCTESTPOPUPSETTINGPAGE_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsettingpagecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsettingpagecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: Declares test bc for popup setting page testcase. +* +*/ + + +#ifndef C_CBCTESTPOPUPSETTINGPAGECASE_H +#define C_CBCTESTPOPUPSETTINGPAGECASE_H + +#include +#include + +#include "bctestcase.h" +#include "bctestpopupsettingpage.h" + +class CBCTestPopupsContainer; +class CCoeControl; +class CEikonEnv; + +/** + * test case for various popups classes + */ +class CBCTestPopupSettingPageCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPopupSettingPageCase* + NewL( CBCTestPopupsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPopupSettingPageCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions for CAknPopupSettingPage + */ + void TestFunctionsForSettingPageL(); + + /** + * Test functions for CAknPopupSettingList + */ + void TestFunctionsForSettingListL( + CAknPopupSettingList* aPopSettingList, + MAknQueryValue* aQueryValueText ); + + /** + * Test functions for AknPopupLayouts + */ + void TestFunctionForPopLayoutsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPopupSettingPageCase( CBCTestPopupsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestPopupsContainer* iContainer; + + /** + * Pointer to CEikonEnv. + * not own + */ + CEikonEnv* iEikEnv; + + /** + * Pointer to CBCTestPopupSettingPage. + * own + */ + CBCTestPopupSettingPage* iSettingPage; + + }; + +#endif // C_CBCTESTPOPUPSETTINGPAGECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestpopupsview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,102 @@ +/* +* 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 "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: Declares test bc for popups control view. +* +*/ + + +#ifndef C_CBCTESTPOPUPSVIEW_H +#define C_CBCTESTPOPUPSVIEW_H + +#include + +class CBCTestPopupsContainer; +class CBCTestUtil; + +const TUid KBCTestPopupsViewId = { 1 }; + +/** + * Application View class + */ +class CBCTestPopupsView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestPopupsView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestPopupsView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: + +// from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPopupsView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestPopupsContainer* iContainer; + + }; + +#endif // C_CBCTESTPOPUPSVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubaknpopuplist.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubaknpopuplist.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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: Invoke popup list's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBAKNPOPUPLIST_H +#define C_CBCTESTSUBAKNPOPUPLIST_H + +#include + +/** + * Invoke popup list's protected APIs + */ + +class CBCTestSubAknPopupList: public CAknPopupList + { + + friend class CBCTestPopupSettingPageCase; + + }; + +#endif // C_CBCTESTSUBAKNPOPUPLIST_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubaknpopupsettinglist.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubaknpopupsettinglist.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ +/* +* 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 "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: Invoke popup setting list's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBAKNPOPUPSETTINGLIST_H +#define C_CBCTESTSUBAKNPOPUPSETTINGLIST_H + +#include + +/** + * Invoke popup setting list's protected APIs + */ + +class CBCTestSubAknPopupSettingList: public CAknPopupSettingList + { + friend class CBCTestPopupSettingPageCase; + void Init() + { + CreateViewL(); + } + + }; + +#endif // C_CBCTESTSUBAKNPOPUPSETTINGLIST_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubaknsettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubaknsettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: Invoke popup settingpage's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBAKNSETTINGPAGE_H +#define C_CBCTESTSUBAKNSETTINGPAGE_H + +#include + +/** + * Invoke popup settingpage's protected APIs + */ +class CSubAknPopupSettingPage: public CAknPopupSettingPage + { + + friend class CBCTestPopupSettingPageCase; + + }; + +#endif // C_CBCTESTSUBAKNSETTINGPAGE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubpopup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubpopup.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Invoke popup list's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBPOPUP_H +#define C_CBCTESTSUBPOPUP_H + +#include + +/** + * Invoke popup list's protected APIs + */ +class CBCTestSubPopup: public CAknPopupList + { +public: // constructor and destructor + + friend class CBCTestPopupCase; + + /** + * Symbian 2nd static constructor + */ + static CBCTestSubPopup* NewL( + CEikListBox *aListBox, TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts + aType = AknPopupLayouts::EMenuWindow ); + + /** + * Destructor + */ + virtual ~CBCTestSubPopup (); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSubPopup(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( + CEikListBox *aListBox, TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts + aType = AknPopupLayouts::EMenuWindow ); + +private: //data + + }; + +#endif // C_CBCTESTSUBPOPUP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubpopupfieldtext.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/inc/bctestsubpopupfieldtext.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Invoke popup field's protected APIs. +* +*/ + + +#ifndef C_CBCTESTSUBPOPUPFIELDTEXT_H +#define C_CBCTESTSUBPOPUPFIELDTEXT_H + +#include + +class CAknForm; + +/** + * Invoke popup field's protected APIs + */ +class CBCTestSubPopupFieldText: public CAknPopupField + { +public: // constructor and destructor + + friend class CBCTestPopupFieldTextCase; + + /** + * Symbian 2nd static constructor + */ + static CBCTestSubPopupFieldText* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestSubPopupFieldText (); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSubPopupFieldText(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: //data + + CAknForm* iBaseDialog; + + }; + +#endif // C_CBCTESTSUBPOPUPFIELDTEXT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/sis/bctestpopups.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/sis/bctestpopups.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +; +; 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 "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: Package file for project bctestpopups +; + +; Languages +&EN + +; Header +#{"UIFW_bctestpopups"},(0x200045CA),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestpopups.exe"- +"!:\sys\bin\bctestpopups.exe" + +"\epoc32\data\z\resource\apps\bctestpopups.rsc"- +"!:\resource\apps\bctestpopups.rsc" + +"\epoc32\data\z\resource\apps\bctestpopups.mbm"- +"!:\resource\apps\bctestpopups.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestpopups_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestpopups_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestheadingpanecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestheadingpanecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,311 @@ +/* +* 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 "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: Implements test bc for heading pane testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include +#include // TResourceRead + +#include "bctestheadingpanecase.h" +#include "bctestpopupscontainer.h" +#include "bctestpopups.hrh" +#include "autotestcommands.h" + +// constant +_LIT( KAknPopupList, "PopupList created" ); +_LIT( KAknPopupHeadingPane, "Headingpane created" ); +_LIT( KHeading, "Heading pane" ); +_LIT( KConstructL, "Invoke CAknPopupHeadingPane's ConstructL()" ); +_LIT( KMinimumSize, "Invoke CAknPopupHeadingPane's MinimumSize()" ); +_LIT( KHandlePointerEventL, + "Invoke CAknPopupHeadingPane's HandlePointerEventL()" ); +_LIT( KSizeChanged, "Invoke CAknPopupHeadingPane's SizeChanged()" ); +_LIT( KPrompt, "Invoke CAknPopupHeadingPane's Prompt()" ); +_LIT( KPromptText, "Invoke CAknPopupHeadingPane's PromptText()" ); +_LIT( KOtherHeading, "Modify Heading" ); +_LIT( KSetTextL, "Invoke CAknPopupHeadingPane's SetTextL()" ); +_LIT( KSetLayout, "Invoke CAknPopupHeadingPane's SetLayout()" ); +_LIT( KSetHeaderImageL, + "Invoke CAknPopupHeadingPane's SetHeaderImageL()" ); +_LIT( KSetSkinFrameId, + "Invoke CAknPopupHeadingPane's SetSkinFrameId()" ); +_LIT( KSetSkinFrameCenterId, + "Invoke CAknPopupHeadingPane's SetSkinFrameCenterId()" ); +_LIT( KSetHeaderAnimationL, + "Invoke CAknPopupHeadingPane's SetHeaderAnimationL()" ); +_LIT( KStartAnimationL, + "Invoke CAknPopupHeadingPane's StartAnimationL()" ); +_LIT( KCancelAnimation, + "Invoke CAknPopupHeadingPane's CancelAnimation()" ); +_LIT( KConstructFromResourceL, + "Invoke CAknPopupHeadingPane's ConstructFromResourceL()" ); + +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KFifteen = 15; +const TInt KTwenty = 20; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestHeadingPaneCase* CBCTestHeadingPaneCase::NewL( + CBCTestPopupsContainer* aContainer ) + { + CBCTestHeadingPaneCase* self = new( ELeave ) CBCTestHeadingPaneCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestHeadingPaneCase::CBCTestHeadingPaneCase( + CBCTestPopupsContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestHeadingPaneCase::~CBCTestHeadingPaneCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestHeadingPaneCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestHeadingPaneCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestHeadingPaneCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline7 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KTwo ), + KeyOK, + KeyOK, + + //outline8 + LeftCBA, + REP( Down, KTwo ), + KeyOK, + REP( Down, KOne ), + KeyOK, + + //outline9 + LeftCBA, + REP( Down, KTwo ), + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestHeadingPaneCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestHeadingPaneCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestPopupsCmdOutline07 ) + || ( aCmd > EBCTestPopupsCmdOutline09 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestPopupsCmdOutline07: + TestHeadingPaneL(); + break; + case EBCTestPopupsCmdOutline08: + break; + case EBCTestPopupsCmdOutline09: + + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestHeadingPaneCase::TestHeadingPaneL +// --------------------------------------------------------------------------- +// +void CBCTestHeadingPaneCase::TestHeadingPaneL() + { + CEikFormattedCellListBox* listBox = + new( ELeave ) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( listBox ); + + CAknPopupList* popupList = CAknPopupList::NewL( listBox, + R_AVKON_SOFTKEYS_SELECT_BACK, + AknPopupLayouts::EPopupSNotePopupWindow ); + CleanupStack::PushL( popupList ); + AssertNotNullL( popupList, KAknPopupList ); + + listBox->ConstructL( popupList, EAknListBoxMenuList ); + + CAknPopupHeadingPane* head = new( ELeave ) CAknPopupHeadingPane(); + CleanupStack::PushL( head ); + AssertNotNullL( head, KAknPopupHeadingPane ); + head->SetContainerWindowL( *iContainer ); + + TBufC bufc( KHeading ); + TPtrC ptrc = bufc.Des(); + // Invoke CAknPopupHeadingPane's ConstructL() + head->ConstructL( ptrc ); + AssertTrueL( ETrue, KConstructL ); + + // Invoke CAknPopupHeadingPane's MinimumSize() + TSize s = head->MinimumSize(); + AssertTrueL( ETrue, KMinimumSize ); + + // Invoke CAknPopupHeadingPane's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + head->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + // Invoke CAknPopupHeadingPane's SizeChanged() + head->SizeChanged(); + AssertTrueL( ETrue, KSizeChanged ); + + // Invoke CAknPopupHeadingPane's Prompt() + head->Prompt(); + AssertTrueL( ETrue, KPrompt ); + + // Invoke CAknPopupHeadingPane's PromptText() + head->PromptText(); + AssertTrueL( ETrue, KPromptText ); + + // Invoke CAknPopupHeadingPane's SetTextL() + TBufC otherBufc( KOtherHeading ); + TPtrC otherPtrc = otherBufc.Des(); + head->SetTextL( otherPtrc ); + AssertTrueL( ETrue, KSetTextL ); + + // Invoke CAknPopupHeadingPane's SetLayout() + head->SetLayout( CAknPopupHeadingPane::EListHeadingPane ); + AssertTrueL( ETrue, KSetLayout ); + + // Invoke CAknPopupHeadingPane's SetHeaderImageL() + TBuf iconFile; + iContainer->GetCoeEnv()->ReadResource( iconFile, + R_BCTESTPOPUPS_ICONFILE ); + + CEikImage* image = new( ELeave ) CEikImage; + CleanupStack::PushL( image ); // image + CFbsBitmap* bitmap = NULL; + CFbsBitmap* bitmapM = NULL; + AknIconUtils::CreateIconL( bitmap, + bitmapM, + iconFile, + EMbmBctestpopupsTel, + EMbmBctestpopupsTelm ); + + CleanupStack::PushL( bitmap ); // bitmap + CleanupStack::PushL( bitmapM ); // bitmap mask + + image->SetPictureOwnedExternally( TBool( 0 ) ); + image->SetPicture( bitmap, bitmapM ); + + head->SetHeaderImageL( image ); + AssertTrueL( ETrue, KSetHeaderImageL ); + + CleanupStack::Pop( bitmapM ); + CleanupStack::Pop( bitmap ); + CleanupStack::Pop( image ); + + // Invoke CAknPopupHeadingPane's SetSkinFrameId() + TAknsItemID aknsItemID; + head->SetSkinFrameId( aknsItemID ); + AssertTrueL( ETrue, KSetSkinFrameId ); + + // Invoke CAknPopupHeadingPane's SetSkinFrameCenterId() + head->SetSkinFrameCenterId( aknsItemID ); + AssertTrueL( ETrue, KSetSkinFrameCenterId ); + + // Invoke CAknPopupHeadingPane's SetHeaderAnimationL() + head->SetHeaderAnimationL( R_BCTESTPOPUPS_BITMAP_ANIMATION ); + AssertTrueL( ETrue, KSetHeaderAnimationL ); + + // Invoke CAknPopupHeadingPane's StartAnimationL() + head->StartAnimationL(); + AssertTrueL( ETrue, KStartAnimationL ); + + // Invoke CAknPopupHeadingPane's CancelAnimation() + head->CancelAnimation(); + AssertTrueL( ETrue, KCancelAnimation ); + + CleanupStack::PopAndDestroy( head ); + head = NULL; + + head = new( ELeave ) CAknPopupHeadingPane(); + CleanupStack::PushL( head ); + + // Invoke CAknPopupHeadingPane's ConstructFromResourceL() + TResourceReader reader; + iContainer->GetCoeEnv()->CreateResourceReaderLC( + reader, R_BCTESTPOPUPS_AVKON_HEADING ); + head->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + CleanupStack::PopAndDestroy( head ); + CleanupStack::PopAndDestroy( popupList ); + CleanupStack::PopAndDestroy( listBox ); + + delete image; + } + + + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,346 @@ +/* +* 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 "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: Implements test bc for popup testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include //MAknsControlContext +#include + +#include "bctestsubpopup.h" +#include "bctestpopupcase.h" +#include "bctestpopupscontainer.h" +#include "bctestpopups.hrh" +#include "autotestcommands.h" + +// constant +const TInt KMaximumHeight = 5; + +_LIT( KAknPopupList, "PopupList created" ); +_LIT( KTitle, "Popup control" ); +_LIT( KSetTitleL, "Invoke CAknPopupList's SetTitleL()" ); +_LIT( KHeading, "Invoke CAknPopupList's Heading()" ); +_LIT( KButtonGroupContainer, + "Invoke CAknPopupList's ButtonGroupContainer()" ); +_LIT( KEnableFind, "Invoke CAknPopupList's EnableFind()" ); +_LIT( KListBox, "Invoke CAknPopupList's ListBox()" ); +_LIT( KFindBox, "Invoke CAknPopupList's FindBox()" ); +_LIT( KHandlePointerEventL, + "Invoke CAknPopupList's HandlePointerEventL()" ); +_LIT( KSetMaximumHeight, "Invoke CAknPopupList's SetMaximumHeight()" ); +_LIT( KExecuteLD, "Invoke CAknPopupList's ExecuteLD()" ); +_LIT( KSubPopup, "subpopup created" ); +_LIT( KLayout, "Invoke CAknPopupList's Layout()" ); +_LIT( KMopSupplyObject, "Invoke CAknPopupList's MopSupplyObject()" ); +_LIT( KHandleResourceChange, + "Invoke CAknPopupList's HandleResourceChange()" ); +_LIT( KHandleControlEventL, + "Invoke CAknPopupList's HandleControlEventL()" ); +_LIT( KHandleListBoxEventL, + "Invoke CAknPopupList's HandleListBoxEventL()" ); +_LIT( KListBoxOverLoad, "Invoke CAknPopupList's ListBox() againg" ); +_LIT( KConstListBox, "Invoke CAknPopupList's ListBox()(const)" ); +_LIT( KConstLayout, "Invoke CAknPopupList's Layout()(const)" ); +_LIT( KMinimumSize, "Invoke CAknPopupList's MinimumSize()" ); +_LIT( KOfferKeyEventL, "Invoke CAknPopupList's OfferKeyEventL()" ); +_LIT( KBaseDialog, "BaseDialog created" ); +_LIT( KFadeBehindPopup, "Invoke TAknPopupFader's FadeBehindPopup()" ); + +const TInt KOne = 1; +const TInt KTwo = 2; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupCase* CBCTestPopupCase::NewL( + CBCTestPopupsContainer* aContainer ) + { + CBCTestPopupCase* self = new( ELeave ) CBCTestPopupCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupCase::CBCTestPopupCase( + CBCTestPopupsContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPopupCase::~CBCTestPopupCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPopupCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPopupCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline4 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + Down, + KeyOK, + KeyOK, + RightCBA, + + //outline5 + LeftCBA, + Down, + KeyOK, + REP( Down, KOne ), + KeyOK, + + //outline6 + LeftCBA, + Down, + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPopupCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestPopupsCmdOutline04 ) + || ( aCmd > EBCTestPopupsCmdOutline06 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestPopupsCmdOutline04: + TestPopupL(); + break; + case EBCTestPopupsCmdOutline05: + TestProtectedFunctionsL(); + break; + case EBCTestPopupsCmdOutline06: + TestTAknPopupFaderFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPopupCase::TestPopupL +// --------------------------------------------------------------------------- +// +void CBCTestPopupCase::TestPopupL() + { + CEikFormattedCellListBox* listBox = + new( ELeave ) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( listBox ); + + CAknPopupList* popupList = CAknPopupList::NewL( listBox, + R_AVKON_SOFTKEYS_SELECT_BACK, + AknPopupLayouts::EPopupSNotePopupWindow ); + CleanupStack::PushL( popupList ); + AssertNotNullL( popupList, KAknPopupList ); + + listBox->ConstructL( popupList, EAknListBoxMenuList ); + + // Invoke CAknPopupList's SetTitleL() + popupList->SetTitleL( KTitle ); + AssertTrueL( ETrue, KSetTitleL ); + + // Invoke CAknPopupList's Heading() + popupList->Heading(); + AssertTrueL( ETrue, KHeading ); + + // Invoke CAknPopupList's ButtonGroupContainer() + popupList->ButtonGroupContainer(); + AssertTrueL( ETrue, KButtonGroupContainer ); + + // Invoke CAknPopupList's EnableFind() + popupList->EnableFind( EFalse ); + popupList->EnableFind( ETrue ); + AssertTrueL( ETrue, KEnableFind ); + + // Invoke CAknPopupList's ListBox() + popupList->ListBox(); + AssertTrueL( ETrue, KListBox ); + + // Invoke CAknPopupList's FindBox() + popupList->FindBox(); + AssertTrueL( ETrue, KFindBox ); + + // Invoke CAknPopupList's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + popupList->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + // Invoke CAknPopupList's SetMaximumHeight() + popupList->SetMaximumHeight( KMaximumHeight ); + AssertTrueL( ETrue, KSetMaximumHeight ); + + CleanupStack::Pop( popupList ); + + // Invoke CAknPopupList's ExecuteLD() + popupList->ExecuteLD(); + AssertTrueL( ETrue, KExecuteLD ); + + // Invoke CAknPopupList's MinimumSize() + CCoeControl* pList = CAknPopupList::NewL( listBox, + R_AVKON_SOFTKEYS_SELECT_BACK, + AknPopupLayouts::EPopupSNotePopupWindow ); + CleanupStack::PushL( pList ); + pList->MinimumSize(); + AssertTrueL( ETrue, KMinimumSize ); + + // Invoke CAknPopupList's OfferKeyEventL() + TKeyEvent keyEvent; + keyEvent.iCode = EKeyCBA1; + pList->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + CleanupStack::PopAndDestroy( pList ); + + CleanupStack::PopAndDestroy( listBox ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupCase::TestProtectedFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestPopupCase::TestProtectedFunctionsL() + { + CEikFormattedCellListBox* formatListBox = + new( ELeave ) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( formatListBox ); + + CBCTestSubPopup* subPopup = CBCTestSubPopup::NewL( formatListBox, + R_AVKON_SOFTKEYS_SELECT_BACK, + AknPopupLayouts::EPopupSNotePopupWindow ); + CleanupStack::PushL( subPopup ); + AssertNotNullL( subPopup, KSubPopup ); + + // Invoke CAknPopupList's Layout() + subPopup->Layout(); + AssertTrueL( ETrue, KLayout ); + + // Invoke CAknPopupList's MopSupplyObject() + TTypeUid typeUid( MAknsControlContext::ETypeId ); + subPopup->MopSupplyObject( typeUid ); + AssertTrueL( ETrue, KMopSupplyObject ); + + // Invoke CAknPopupList's HandleResourceChange() + subPopup->HandleResourceChange( KEikDynamicLayoutVariantSwitch_APAC ); + AssertTrueL( ETrue, KHandleResourceChange ); + + // Invoke CAknPopupList's HandleControlEventL() + subPopup->HandleControlEventL( formatListBox, + MCoeControlObserver::EEventRequestExit ); + AssertTrueL( ETrue, KHandleControlEventL ); + + // Invoke CAknPopupList's HandleListBoxEventL() + // the value EEventItemClicked maybe caused invoke CAknPopupList::AttemptExitL(),this function will disconstruct popuplist pointer, + // so change the value to EEventItemDoubleClicked + subPopup->HandleListBoxEventL( NULL, + MEikListBoxObserver::EEventItemDoubleClicked );//EEventItemClicked ); + AssertTrueL( ETrue, KHandleListBoxEventL ); + + // Invoke CAknPopupList's ListBox() + subPopup->ListBox(); + AssertTrueL( ETrue, KListBoxOverLoad ); + + // create const pointer of CAknPopupList + const CBCTestSubPopup* constSubPopup = + const_cast ( subPopup ); + + // Invoke CAknPopupList's Listbox()(const) + constSubPopup->ListBox(); + AssertTrueL( ETrue, KConstListBox ); + + // Invoke CAknPopupList's Layout()(const) + constSubPopup->Layout(); + AssertTrueL( ETrue, KConstLayout ); + CleanupStack::PopAndDestroy( subPopup ); + + CleanupStack::PopAndDestroy( formatListBox ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupCase::TestTAknPopupFaderFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestPopupCase::TestTAknPopupFaderFunctionsL() + { + // Invoke TAknPopupFader's CreateStaticL() + CAknForm* baseDialog = new( ELeave ) CAknForm(); + CleanupStack::PushL( baseDialog ); + AssertNotNullL( baseDialog, KBaseDialog ); + baseDialog->PrepareLC( R_BCTESTPOPUPS_FIELD_TEXT_DIALOG ); + CleanupStack::Pop(); + + TAknPopupFader aknPopup; + aknPopup.FadeBehindPopup( baseDialog, NULL, EFalse ); + AssertTrueL( ETrue, KFadeBehindPopup ); + + + CleanupStack::PopAndDestroy( baseDialog ); + } + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupfieldtextcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupfieldtextcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,513 @@ +/* +* 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 "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: Implements test bc for popup field text testcase. +* +*/ + + +#include +#include +#include +#include +#include // TResourceRead +#include +#include +#include //KEikDynamicLayoutVariantSwitch +#include //MAknsControlContext +#include +#include + +#include "bctestpopupfieldtextcase.h" +#include "bctestsubpopupfieldtext.h" +#include "bctestpopupscontainer.h" +#include "bctestpopups.hrh" +#include "autotestcommands.h" + +// constant +const TInt KBCTestMaxNumberOfLine = 2; +const TInt KAPFNumber = 1; + +_LIT( KBaseDialog, "BaseDialog created" ); +_LIT( KAknPopupFieldText, "Popupfieldtext created" ); +_LIT( KCurrentValueTextLC, + "Invoke CAknPopupFieldText's CurrentValueTextLC()" ); +_LIT( KCurrentValueIndex, + "Invoke CAknPopupFieldText's CurrentValueIndex()" ); +_LIT( KSetCurrentValueIndex, + "Invoke CAknPopupFieldText's SetCurrentValueIndex()" ); +_LIT( KSetAutoAppend, "Invoke CAknPopupFieldText's SetAutoAppend()" ); +_LIT( KAPFTSetAllowsUserDefinedEntry, + "Invoke CAknPopupFieldText's SetAllowsUserDefinedEntry()" ); +_LIT( KMdcArray, "Invoke CAknPopupFieldText's MdcArray()" ); +_LIT( KHandlePointerEventL, + "Invoke CAknPopupFieldText's HandlePointerEventL()" ); +_LIT( KConstructFromResourceL, + "Invoke CAknPopupFieldText's ConstructFromResourceL" ); +_LIT( KConstructL, "Invoke CAknPopupField's ConstructL()" ); +_LIT( KAknPopupField, "Popupfield created" ); +_LIT( KMinimumSize, "Invoke CAknPopupField's MinimumSize()" ); +_LIT( KSetAllowsUserDefinedEntry, + "Invoke CAknPopupField's SetAllowsUserDefinedEntry()" ); +_LIT( KActivateSelectionListL, + "Invoke CAknPopupField's ActivateSelectionListL()" ); +_LIT( KSetFont, "Invoke CAknPopupField's SetFont()" ); +_LIT( KSetShowIndicatorsL, + "Invoke CAknPopupField's SetShowIndicatorsL()" ); +_LIT( KNumLines, "Invoke CAknPopupField's NumLines()" ); +_LIT( KSetPopupFieldObserver, + "Invoke CAknPopupField's SetPopupFieldObserver()" ); +_LIT( KEmptyText, "empty text" ); +_LIT( KSetEmptyTextL, "Invoke CAknPopupField's SetEmptyTextL()" ); +_LIT( KOtherText, "Other text" ); +_LIT( KSetOtherTextL, "Invoke CAknPopupField's SetOtherTextL()" ); +_LIT( KInvalidText, "Invalid text" ); +_LIT( KSetInvalidTextL, "Invoke CAknPopupField's SetInvalidTextL()" ); +_LIT( KOfferKeyEventL, "Invoke CAknPopupField's OfferKeyEventL()" ); +_LIT( KSetMaxNumberOfLinesPermitted, + "Invoke CAknPopupField's SetMaxNumberOfLinesPermitted()" ); +_LIT( KSetFormFieldRect, "Invoke CAknPopupField's SetFormFieldRect()" ); +_LIT( KSetEmptyListNoteL, "Invoke CAknPopupField's SetEmptyListNoteL()" ); +_LIT( KHandleResourceChange, + "Invoke CAknPopupField's HandleResourceChange()" ); +_LIT( KBCTestSubPopupFieldText, "BCTestSubPopupFieldText created" ); +_LIT( KSizeChanged, "Invoke CAknPopupField's SizeChanged()" ); +_LIT( KSubHandleControlEventL, + "Invoke CAknPopupField's HandleControlEventL()" ); +_LIT( KCountComponentControls, + "Invoke CAknPopupField's CountComponentControls()" ); +_LIT( KComponentControl, "Invoke CAknPopupField's ComponentControl()" ); +_LIT( KFocusChanged, "Invoke CAknPopupField's FocusChanged()" ); +_LIT( KMopSupplyObject, "Invoke CAknPopupField's MopSupplyObject()" ); +_LIT( KProcessCommandL, "Invoke CAknPopupField's ProcessCommandL()" ); +_LIT( KHandleListBoxEventL, "Invoke CAknPopupField's HandleListBoxEventL()" ); +_LIT( KDraw, "Invoke CAknPopupField's Draw()" ); + +const TInt KZero = 1; +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KTen = 10; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupFieldTextCase* CBCTestPopupFieldTextCase::NewL( + CBCTestPopupsContainer* aContainer ) + { + CBCTestPopupFieldTextCase* self = new( ELeave ) CBCTestPopupFieldTextCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupFieldTextCase::CBCTestPopupFieldTextCase( + CBCTestPopupsContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPopupFieldTextCase::~CBCTestPopupFieldTextCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPopupFieldTextCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupFieldTextCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPopupFieldTextCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline1 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + KeyOK, + KeyOK, + + //outline2 + LeftCBA, + KeyOK, + REP( Down, KOne ), + KeyOK, + + //outline3 + LeftCBA, + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupFieldTextCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPopupFieldTextCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestPopupsCmdOutline01 ) + || ( aCmd > EBCTestPopupsCmdOutline03 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestPopupsCmdOutline01: + TestPopupFieldTextL(); + break; + case EBCTestPopupsCmdOutline02: + TestPopupFieldL(); + break; + case EBCTestPopupsCmdOutline03: + TestProtectedFunctionsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPopupFieldTextCase::TestPopupFieldTextL +// --------------------------------------------------------------------------- +// +void CBCTestPopupFieldTextCase::TestPopupFieldTextL() + { + iBaseDialog = new( ELeave ) CAknForm(); + AssertNotNullL( iBaseDialog, KBaseDialog ); + iBaseDialog->PrepareLC( R_BCTESTPOPUPS_FIELD_TEXT_DIALOG ); + CleanupStack::Pop(); + + // Invoke CAknPopupFieldText() + CAknPopupFieldText* popupFieldText = new( ELeave ) CAknPopupFieldText(); + delete popupFieldText; + popupFieldText = NULL; + + popupFieldText = static_cast + ( iBaseDialog->ControlOrNull( EBCTestPopFieldDlgCtrlIdFldText01 ) ); + AssertNotNullL( popupFieldText, KAknPopupFieldText ); + + // Invoke CAknPopupFieldText's CurrentValueTextLC() + HBufC* text = popupFieldText->CurrentValueTextLC(); + AssertTrueL( ETrue, KCurrentValueTextLC ); + CleanupStack::PopAndDestroy( text ); + + // Invoke CAknPopupFieldText's CurrentValueIndex() + TInt value = popupFieldText->CurrentValueIndex(); + AssertTrueL( ETrue, KCurrentValueIndex ); + + // Invoke CAknPopupFieldText's SetCurrentValueIndex() + popupFieldText->SetCurrentValueIndex( KOne ); + AssertTrueL( ETrue, KSetCurrentValueIndex ); + + // Invoke CAknPopupFieldText's SetAutoAppend() + popupFieldText->SetAutoAppend( ETrue ); + AssertTrueL( ETrue, KSetAutoAppend ); + + // Invoke CAknPopupFieldText's SetAllowsUserDefinedEntry() + popupFieldText->SetAllowsUserDefinedEntry( ETrue ); + AssertTrueL( ETrue, KAPFTSetAllowsUserDefinedEntry ); + + // Invoke CAknPopupFieldText's MdcArray() + const MDesCArray* array = popupFieldText->MdcArray(); + AssertTrueL( ETrue, KMdcArray ); + TInt mdcaCount = array->MdcaCount(); + + // Invoke CAknPopupFieldText's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + popupFieldText->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + delete iBaseDialog; + iBaseDialog = NULL; + + // Invoke CAknPopupFieldText's ConstructFromResourceL() + popupFieldText = new( ELeave ) CAknPopupFieldText(); + CleanupStack::PushL( popupFieldText ); + TResourceReader reader; + iContainer->GetCoeEnv()->CreateResourceReaderLC( + reader, R_BCTESTPOPUPS_POPUP_FIELD_TEXT ); + popupFieldText->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + CleanupStack::PopAndDestroy( popupFieldText ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupFieldTextCase::TestPopupFieldL +// --------------------------------------------------------------------------- +// +void CBCTestPopupFieldTextCase::TestPopupFieldL() + { + iBaseDialog = new( ELeave ) CAknForm(); + AssertNotNullL( iBaseDialog, KBaseDialog ); + iBaseDialog->PrepareLC( R_BCTESTPOPUPS_TWO_TEXT_FIELD_DIALOG ); + CleanupStack::Pop(); + + // Invoke CAknPopupField() + CAknPopupField* popupField = new( ELeave ) CAknPopupField(); + + // Invoke CAknPopupField's ConstructL() + TResourceReader reader; + CCoeEnv::Static()->CreateResourceReaderLC(reader, + R_BCTESTPOPUPS_POPUP_FIELD_TEXT ); + popupField->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KConstructL ); + + CleanupStack::PopAndDestroy(); + + delete popupField; + popupField = NULL; + + popupField = static_cast + ( iBaseDialog->ControlOrNull( EBCTestPopFieldDlgCtrlIdPop01 ) ); + AssertNotNullL( popupField, KAknPopupField ); + + // Invoke CAknPopupField's MinimumSize() + TSize s = popupField->MinimumSize(); + AssertTrueL( ETrue, KMinimumSize ); + + // Invoke CAknPopupField's SetAllowsUserDefinedEntry() + popupField->SetAllowsUserDefinedEntry( ETrue ); + AssertTrueL( ETrue, KSetAllowsUserDefinedEntry ); + + // Invoke CAknPopupField's ActivateSelectionListL() + popupField->ActivateSelectionListL(); + AssertTrueL( ETrue, KActivateSelectionListL ); + + // Invoke CAknPopupField's SetFont() + popupField->SetFont( NULL ); + AssertTrueL( ETrue, KSetFont ); + + // Invoke CAknPopupField's SetShowIndicatorsL() + popupField->SetShowIndicatorsL( EFalse ); + AssertTrueL( ETrue, KSetShowIndicatorsL ); + + // Invoke CAknPopupField's NumLines() + popupField->NumLines(); + AssertTrueL( ETrue, KNumLines ); + + // Invoke CAknPopupField's SetPopupFieldObserver() + popupField->SetPopupFieldObserver( NULL ); + AssertTrueL( ETrue, KSetPopupFieldObserver ); + + // Invoke CAknPopupField's SetEmptyTextL() + popupField->SetEmptyTextL( KEmptyText ); + AssertTrueL( ETrue, KSetEmptyTextL ); + + // Invoke CAknPopupField's SetOtherTextL() + popupField->SetOtherTextL( KOtherText ); + AssertTrueL( ETrue, KSetOtherTextL ); + + // Invoke CAknPopupField's SetInvalidTextL() + popupField->SetInvalidTextL( KInvalidText ); + AssertTrueL( ETrue, KSetInvalidTextL ); + + // Invoke CAknPopupField's OfferKeyEventL() + TKeyEvent keyEvent; + keyEvent.iCode = EKeyTab; + popupField->OfferKeyEventL( keyEvent, EEventKey ); + keyEvent.iCode = EKeyEnter; + popupField->OfferKeyEventL( keyEvent, EEventKey ); + keyEvent.iCode = EKeyOK; + popupField->OfferKeyEventL( keyEvent, EEventKey ); + keyEvent.iCode = EKeyLeftArrow; + popupField->OfferKeyEventL( keyEvent, EEventKey ); + keyEvent.iCode = EKeyRightArrow; + popupField->OfferKeyEventL( keyEvent, EEventKey ); + keyEvent.iCode = EKeyDownArrow; + popupField->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + // Invoke CAknPopupField's SetMaxNumberOfLinesPermitted() + popupField->SetMaxNumberOfLinesPermitted( KBCTestMaxNumberOfLine ); + AssertTrueL( ETrue, KSetMaxNumberOfLinesPermitted ); + + // Invoke CAknPopupField's SetFormFieldRect() + TRect rect( KTen, KTen, KTen, KTen ); + popupField->SetFormFieldRect( rect ); + AssertTrueL( ETrue, KSetFormFieldRect ); + + // Invoke CAknPopupField's SetEmptyListNoteL() + popupField->SetEmptyListNoteL( R_BCTESTPOPUPS_EMPTY_LIST_NOTE ); + AssertTrueL( ETrue, KSetEmptyListNoteL ); + + // Invoke CAknPopupField's HandleResourceChange() + popupField->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + AssertTrueL( ETrue, KHandleResourceChange ); + popupField->HandleResourceChange( + KEikMessageCaptionedControlEditableStateChange ); + popupField->HandleResourceChange( + KEikMessageCaptionedControlEditableStateChangeWideWithGraphic ); + popupField->HandleResourceChange( + KEikMessageCaptionedControlNotEditableStateChange ); + popupField->HandleResourceChange( + KEikMessageCaptionedControlEditableStateChangeWideWithoutGraphic ); + popupField->HandleResourceChange( + KEikMessageCaptionedControlNotEditableStateChangeWideWithGraphic ); + popupField->HandleResourceChange( + KEikMessageCaptionedControlNotEditableStateChangeWideWithoutGraphic ); + + + _LIT( KArrayContent, "test" ); + CAknQueryValueText* queryValue = CAknQueryValueText::NewL(); + CleanupStack::PushL( queryValue ); + CAknQueryValueTextArray* array = CAknQueryValueTextArray::NewL(); + CleanupStack::PushL( array ); + CDesC16ArrayFlat* temp = new (ELeave) CDesC16ArrayFlat(1); + CleanupStack::PushL( temp ); + temp->AppendL( KArrayContent ); + array->SetArray( *temp ); + queryValue->SetArrayL( array ); + popupField->SetQueryValueL( queryValue ); + + CBCTestSubPopupFieldText* subPopupField = + static_cast( popupField ); + subPopupField->ActivateSelectionListL(); + subPopupField->HandleListBoxEventL( NULL, + MEikListBoxObserver::EEventEnterKeyPressed ); + AssertTrueL( ETrue, KHandleListBoxEventL ); + + temp->Delete( 0 ); + CleanupStack::PopAndDestroy( temp ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( queryValue ); + + delete iBaseDialog; + iBaseDialog = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPopupFieldTextCase::TestProtectedFunctionsL +// --------------------------------------------------------------------------- +// +void CBCTestPopupFieldTextCase::TestProtectedFunctionsL() + { + iBaseDialog = new( ELeave ) CAknForm(); + AssertNotNullL( iBaseDialog, KBaseDialog ); + iBaseDialog->PrepareLC( R_BCTESTPOPUPS_TWO_TEXT_FIELD_DIALOG ); + CleanupStack::Pop(); + + CBCTestSubPopupFieldText* subPopupField = + static_cast + ( iBaseDialog->ControlOrNull( EBCTestPopFieldDlgCtrlIdPop01 ) ); + AssertNotNullL( subPopupField, KBCTestSubPopupFieldText ); + + // Invoke CAknPopupField's SetFormFieldRect() + TRect rect( KZero, KZero, KTen, KTen ); + subPopupField->SetFormFieldRect( rect ); + AssertTrueL( ETrue, KSetFormFieldRect ); + + // Invoke CAknPopupField's SizeChanged() + subPopupField->SizeChanged(); + AssertTrueL( ETrue, KSizeChanged ); + + // Invoke CAknPopupField's HandleControlEventL() + CEikFormattedCellListBox* formatListBox = + new( ELeave ) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( formatListBox ); + subPopupField->HandleControlEventL( formatListBox, + MCoeControlObserver::EEventRequestExit ); + subPopupField->HandleControlEventL( formatListBox, + MCoeControlObserver::EEventRequestFocus ); + subPopupField->HandleControlEventL( formatListBox, + MCoeControlObserver::EEventPrepareFocusTransition ); + _LIT( KArrayContent, "test" ); + CAknQueryValueText* queryValue = CAknQueryValueText::NewL(); + CleanupStack::PushL( queryValue ); + CAknQueryValueTextArray* array = CAknQueryValueTextArray::NewL(); + CleanupStack::PushL( array ); + CDesC16ArrayFlat* temp = new (ELeave) CDesC16ArrayFlat(1); + CleanupStack::PushL( temp ); + temp->AppendL( KArrayContent ); + array->SetArray( *temp ); + queryValue->SetArrayL( array ); + subPopupField->SetQueryValueL( queryValue ); + subPopupField->ActivateSelectionListL();// this called change the variable iSelectionMode to MCoeControlObserver::EEventRequestCancel + // so that when called function handleControlEventl(), it doesn't panic + // the above paragraph is copy from function CBCTestPopupFieldTextCase::TestPopupFieldL() + subPopupField->HandleControlEventL( formatListBox, + MCoeControlObserver::EEventRequestCancel ); + subPopupField->HandleControlEventL( formatListBox, + MCoeControlObserver::EEventStateChanged ); + AssertTrueL( ETrue, KSubHandleControlEventL ); + + // Invoke CAknPopupField's CountComponentControls() + subPopupField->CountComponentControls(); + AssertTrueL( ETrue, KCountComponentControls ); + + // Invoke CAknPopupField's ComponentControl() + subPopupField->ComponentControl( KAPFNumber ); + AssertTrueL( ETrue, KComponentControl ); + + // Invoke CAknPopupField's FocusChanged() + subPopupField->FocusChanged( EDrawNow ); + AssertTrueL( ETrue, KFocusChanged ); + + // Invoke CAknPopupField's MopSupplyObject() + TTypeUid typeUid( MAknsControlContext::ETypeId ); + subPopupField->MopSupplyObject( typeUid ); + AssertTrueL( ETrue, KMopSupplyObject ); + + // Invoke CAknPopupField's ProcessCommandL() + subPopupField->ProcessCommandL( EAknSoftkeyBack ); + AssertTrueL( ETrue, KProcessCommandL ); + + // Invoke CAknPopupField's Draw() + CWindowGc& gc = iContainer->SystemGc(); + iContainer->ActivateGc(); + subPopupField->Draw( rect ); + iContainer->DeactivateGc(); + AssertTrueL( ETrue, KDraw ); + + delete iBaseDialog; + iBaseDialog = NULL; + temp->Delete( 0 ); + CleanupStack::PopAndDestroy( temp ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( queryValue ); + CleanupStack::PopAndDestroy( formatListBox ); + } + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implements main application class. +* +*/ + + +// INCLUDE FILES +#include "bctestpopupsapp.h" +#include "bctestpopupsdocument.h" +#include + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestPopupsApp::AppDllUid() +// Returns application UID. +// --------------------------------------------------------------------------- +// +TUid CBCTestPopupsApp::AppDllUid() const + { + return KUidBCTestPopups; + + } + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestPopupsApp::CreateDocumentL() +// Creates CBCTestPopupsDocument object. +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestPopupsApp::CreateDocumentL() + { + return CBCTestPopupsDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestPopupsApp. +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestPopupsApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 "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: Implements test bc for popups control appui. +* +*/ + +#include +#include + +#include "bctestpopupsappui.h" +#include "bctestpopups.hrh" +#include "bctestpopupsview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestPopupsAppUi::CBCTestPopupsAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestPopupsAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestPopupsView* view = CBCTestPopupsView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestPopupsAppUi::~CBCTestPopupsAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPopupsAppUi::~CBCTestPopupsAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestPopupsAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EEikCmdExit: + case EAknSoftkeyExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupscontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupscontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,123 @@ +/* +* 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 "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: Implements test bc for popups control container. +* +*/ + + +#include "bctestpopupscontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupsContainer::CBCTestPopupsContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPopupsContainer::~CBCTestPopupsContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPopupsContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestPopupsContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestPopupsContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestPopupsContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestPopupsContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestPopupsContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestPopupsContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsContainer::GetCoeEnv +// --------------------------------------------------------------------------- +// +CCoeEnv* CBCTestPopupsContainer::GetCoeEnv() + { + return iCoeEnv; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Implements test bc for popups control document. +* +*/ + + +// INCLUDE FILES +#include "bctestpopupsdocument.h" +#include "bctestpopupsappUi.h" + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CBCTestPopupsDocument* CBCTestPopupsDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestPopupsDocument* CBCTestPopupsDocument::NewL( CEikApplication& aApp ) + { + CBCTestPopupsDocument* self = new( ELeave ) CBCTestPopupsDocument( aApp ); + return self; + + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsDocument::~CBCTestPopupsDocument() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestPopupsDocument::~CBCTestPopupsDocument() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsDocument::CBCTestPopupsDocument( CEikApplication& ) +// Overload constructor. +// --------------------------------------------------------------------------- +// +CBCTestPopupsDocument::CBCTestPopupsDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// --------------------------------------------------------------------------- +// CEikAppUi* CBCTestPopupsDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestPopupsDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestPopupsAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implements test bc for popup field text testcase. +* +*/ + + +#include +#include + +#include "bctestpopupsettingpage.h" +#include "bctestcase.h" +#include "bctestpopups.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupSettingPage::CBCTestPopupSettingPage( + const TInt aResourceId, + CAknQueryValueText& aQueryValue ) + : CAknPopupSettingPage(aResourceId, aQueryValue) + { + } + +CBCTestPopupSettingPage::CBCTestPopupSettingPage( + const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + MAknQueryValue& aQueryValue ) + : CAknPopupSettingPage( + aSettingTitleText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aQueryValue) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPopupSettingPage::~CBCTestPopupSettingPage() + { + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsettingpagecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsettingpagecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,569 @@ +/* +* 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 "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: Implements test bc for popup setting page testcase. +* +*/ + + +#include +#include +#include +#include +#include +#include // TResourceRead +#include +#include +#include +#include + +#include "bctestpopupsettingpagecase.h" +#include "bctestsubaknpopupsettinglist.h" +#include "bctestsubaknpopuplist.h" +#include "bctestsubaknsettingpage.h" +#include "bctestpopupscontainer.h" +#include "bctestpopups.hrh" +#include "autotestcommands.h" + +// constant +_LIT( KSettingListTitle, "Settings" ); +_LIT( KSettingPageConstructor, + "CAknPopupSettingPage's CBCTestPopupSettingPage(...)" ); +_LIT( KSettingPageConstructorB, + "CAknPopupSettingPage's CBCTestPopupSettingPage()" ); +_LIT( KAknPopupSettingPageConstructL, + "Invoke CAknPopupSettingPage's ConstructL()" ); +_LIT( KListBoxControl, + "Invoke CAknPopupSettingPage's ListBoxControl()" ); +_LIT( KHandlePopupSettingListEventL, + "Invoke CAknPopupSettingPage's HandlePopupSettingListEventL()" ); +_LIT( KHandlePointerEventL, + "Invoke CAknPopupSettingPage's HandlePointerEventL()" ); +_LIT( KQueryValue, "Invoke CAknPopupSettingPage's QueryValue()" ); +_LIT( KSelectCurrentItemL, + "Invoke CAknPopupSettingPage's SelectCurrentItemL()" ); +_LIT( KReserved_2, "Invoke CAknPopupSettingPage's Reserved_2()" ); +_LIT( KUpdateQueryValueL, + "Invoke CAknPopupSettingPage's UpdateQueryValueL()" ); +_LIT( KWriteInternalStateL, + "Invoke CAknPopupSettingPage's WriteInternalStateL()" ); +_LIT( KPopupSettingListBox, + "Invoke CAknPopupSettingPage's PopupSettingListBox()" ); +_LIT( KPSLSetQueryValueL, + "Invoke CAknPopupSettingList's SetQueryValueL()" ); +_LIT( KPSLNumLines, + "Invoke CAknPopupSettingList's NumLines()" ); +_LIT( KPSLSetPopupSettingListObserver, + "Invoke CAknPopupSettingList's SetPopupSettingListObserver()" ); +_LIT( KPopupSettingListSetAllowsUserDefinedEntry, + "Invoke CAknPopupSettingList's SetAllowsUserDefinedEntry()" ); +_LIT( KPopupSettingListSetShowIndicators, + "Invoke CAknPopupSettingList's SetShowIndicators()" ); +_LIT( KPopupSettingListHandlePointerEventL, + "Invoke CAknPopupSettingList's HandlePointerEventL()" ); +_LIT( KPopupSettingListHandleResourceChange, + "Invoke CAknPopupSettingList's HandleResourceChange()" ); +_LIT( KPopupSettingListCreateMenuListL, + "Invoke CAknPopupSettingList's CreateMenuListL()" ); +_LIT( KPopupSettingListActivateMenuListL, + "Invoke CAknPopupSettingList's ActivateMenuListL()" ); +_LIT( KPopupSettingListDestroyMenuList, + "Invoke CAknPopupSettingList's DestroyMenuList()" ); +_LIT( KPopupSettingListConfigureMenuListL, + "Invoke CAknPopupSettingList's ConfigureMenuListL()" ); +_LIT( KPopupSettingListHandleListBoxEventL, + "Invoke CAknPopupSettingList's HandleListBoxEventL()" ); +_LIT( KCAknPopupSettingList, + "Invoke CAknPopupSettingList's CAknPopupSettingList()" ); +_LIT( KLayoutHandleSizeChanged, + "AknPopupLayouts's HandleSizeChanged()" ); +_LIT( KLayoutModifyWindowGraphicForHeading, + "AknPopupLayouts's ModifyWindowGraphicForHeading()" ); +_LIT( KLayoutModifyWindowGraphicForMessageBox, + "AknPopupLayouts's ModifyWindowGraphicForMessageBox()" ); +_LIT( KLayoutCalcPopupMenuWindow, + "AknPopupLayouts's CalcPopupMenuWindow()" ); +_LIT( KLayoutCalcPopupMenuGraphicWindow, + "AknPopupLayouts's CalcPopupMenuGraphicWindow()" ); +_LIT( KLayoutCalcPopupMenuGraphicHeadingWindow, + "AknPopupLayouts's CalcPopupMenuGraphicHeadingWindow()" ); +_LIT( KLayoutCalcPopupMenuDoubleWindow, + "AknPopupLayouts's CalcPopupMenuDoubleWindow()" ); +_LIT( KLayoutCalcPopupMenuDoubleLargeGraphicWindow, + "AknPopupLayouts's CalcPopupMenuDoubleLargeGraphicWindow()" ); +_LIT( KLayoutCalcPopupSNoteGroupWindow, + "AknPopupLayouts's CalcPopupSNoteGroupWindow()" ); +_LIT( KLayoutSetupMenuPopupWindow, + "AknPopupLayouts's SetupMenuPopupWindow()" ); +_LIT( KLayoutSetupPopupMenuGraphicWindow, + "AknPopupLayouts's SetupPopupMenuGraphicWindow()" ); +_LIT( KLayoutSetupPopupMenuGraphicHeadingWindow, + "AknPopupLayouts's SetupPopupMenuGraphicHeadingWindow()" ); +_LIT( KLayoutSetupPopupMenuDoubleWindow, + "AknPopupLayouts's SetupPopupMenuDoubleWindow()" ); +_LIT( KLayoutSetupImageSelectionMenuPopupWindow, + "AknPopupLayouts's SetupImageSelectionMenuPopupWindow()" ); +_LIT( KLayoutSetupPopupSNoteGroupWindow, + "AknPopupLayouts's SetupPopupSNoteGroupWindow()" ); +_LIT( KLayoutHandleSizeAndPositionOfComponents, + "AknPopupLayouts's HandleSizeAndPositionOfComponents()" ); +_LIT( KLayoutSetupDefaults, "AknPopupLayouts's SetupDefaults()" ); +_LIT( KLayoutWindowRectA, "AknPopupLayouts's WindowRect()" ); +_LIT( KLayoutMenuRect, "AknPopupLayouts's MenuRect()" ); +_LIT( KLayoutCheckRange, "AknPopupLayouts's CheckRange()" ); +_LIT( KLayoutMenuPopupWindowGraphics, + "AknPopupLayouts's MenuPopupWindowGraphics()" ); + +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KThree = 3; +const TInt KFour = 4; +const TInt KSixteen = 16; +const TInt KTwoHundred = 200; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupSettingPageCase* CBCTestPopupSettingPageCase::NewL( + CBCTestPopupsContainer* aContainer ) + { + CBCTestPopupSettingPageCase* self = new( ELeave ) + CBCTestPopupSettingPageCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupSettingPageCase::CBCTestPopupSettingPageCase( + CBCTestPopupsContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPopupSettingPageCase::~CBCTestPopupSettingPageCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPopupSettingPageCase::ConstructL() + { + iEikEnv = static_cast ( iContainer->GetCoeEnv() ); + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupSettingPageCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPopupSettingPageCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline10 + DELAY( KOne ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP( Down, KThree ), + KeyOK, + KeyOK, + + //outline11 + LeftCBA, + REP( Down, KThree ), + KeyOK, + REP( Down, KOne ), + KeyOK, + + //outline12 + LeftCBA, + REP( Down, KFour ), + KeyOK, + REP( Down, KTwo ), + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupSettingPageCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPopupSettingPageCase::RunL( TInt aCmd ) + { + if ( ( aCmd < EBCTestPopupsCmdOutline10 ) + || ( aCmd > EBCTestPopupsCmdOutline12 ) ) + { + return; + } + switch ( aCmd ) + { + case EBCTestPopupsCmdOutline10: + TestFunctionsForSettingPageL(); + break; + case EBCTestPopupsCmdOutline11: + break; + case EBCTestPopupsCmdOutline12: + TestFunctionForPopLayoutsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPopupSettingPageCase::TestFunctionsForSettingPageL +// --------------------------------------------------------------------------- +// +void CBCTestPopupSettingPageCase::TestFunctionsForSettingPageL() + { + // Construct + CDesCArrayFlat* item; + CAknQueryValueTextArray* textArray; + CAknQueryValueText* queryValueText; + + item = iEikEnv->ReadDesCArrayResourceL( R_BCTESTPOPUPS_LIST_ITEM_ARRAY ); + CleanupStack::PushL( item ); + + textArray = CAknQueryValueTextArray::NewL(); + textArray->SetArray( *item ); + CleanupStack::PushL( textArray ); + + queryValueText = CAknQueryValueText::NewL(); + CleanupStack::PushL( queryValueText ); + queryValueText->SetArrayL( textArray ); + + TBufC title ( KSettingListTitle ); + + iSettingPage = + new( ELeave ) CBCTestPopupSettingPage( &title, + 0, + 0, + 0, + R_BCTESTPOPUPS_POPUP_SETTING_PAGE, + *queryValueText ); + iSettingPage->ConstructL();// construct it correctly + AssertTrueL( ETrue, KSettingPageConstructor ); + delete iSettingPage; + iSettingPage = NULL; + + // Invoke CAknPopupSettingPage's CBCTestPopupSettingPage() + iSettingPage = new( ELeave ) CBCTestPopupSettingPage( + R_BCTESTPOPUPS_POPUP_SETTING_PAGE, *queryValueText ); + AssertTrueL( ETrue, KSettingPageConstructorB ); + + // Invoke CAknPopupSettingPage's ConstructL() + iSettingPage->ConstructL(); + AssertTrueL( ETrue, KAknPopupSettingPageConstructL ); + + // Invoke CAknPopupSettingPage's ListBoxControl() + CAknSetStyleListBox* listBox = iSettingPage->ListBoxControl(); + AssertTrueL( ETrue, KListBoxControl ); + + // Invoke CAknPopupSettingPage's HandlePopupSettingListEventL() + iSettingPage->HandlePopupSettingListEventL( + NULL, + MAknPopupSettingListObserver + ::EAknPopupSettingSelectionAndRequestAccept, + 0 ); + AssertTrueL( ETrue, KHandlePopupSettingListEventL ); + + // Invoke CAknPopupSettingPage's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + iSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + // Invoke CAknPopupSettingPage's QueryValue() + iSettingPage->QueryValue(); + AssertTrueL( ETrue, KQueryValue ); + + // Invoke CAknPopupSettingPage's SelectCurrentItemL() + iSettingPage->SelectCurrentItemL(); + AssertTrueL( ETrue, KSelectCurrentItemL ); + + // Invoke CAknPopupSettingPage's Reserved_2() + iSettingPage->Reserved_2(); + AssertTrueL( ETrue, KReserved_2 ); + + // Invoke CAknPopupSettingPage's UpdateQueryValueL() + iSettingPage->UpdateQueryValueL( queryValueText ); + AssertTrueL( ETrue, KUpdateQueryValueL ); + + // Invoke CAknPopupSettingPage's WriteInternalStateL() + CBufFlat* buf = CBufFlat::NewL( KTwoHundred ); + CleanupStack::PushL( buf ); + RBufWriteStream stream; + stream.Open( *buf ); + iSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KWriteInternalStateL ); + stream.Close(); + CleanupStack::PopAndDestroy( buf ); + + // Invoke CAknPopupSettingPage's PopupSettingListBox() + CAknPopupSettingList* popSettingList = + iSettingPage->PopupSettingListBox(); + AssertTrueL( ETrue, KPopupSettingListBox ); + TestFunctionsForSettingListL( popSettingList, queryValueText ); + + delete iSettingPage; + iSettingPage = NULL; + CleanupStack::PopAndDestroy( queryValueText ); + CleanupStack::PopAndDestroy( textArray ); + CleanupStack::PopAndDestroy( item ); + } + +// --------------------------------------------------------------------------- +// CBCTestPopupSettingPageCase::TestFunctionsForSettingListL +// --------------------------------------------------------------------------- +// +void CBCTestPopupSettingPageCase::TestFunctionsForSettingListL( + CAknPopupSettingList* aPopSettingList, MAknQueryValue* aQueryValueText ) + { + // Invoke CAknPopupSettingList's SetQueryValueL() + aPopSettingList->SetQueryValueL( aQueryValueText ); + AssertTrueL( ETrue, KPSLSetQueryValueL ); + + // Invoke CAknPopupSettingList's NumLines() + aPopSettingList->NumLines(); + AssertTrueL( ETrue, KPSLNumLines ); + + // Invoke CAknPopupSettingList's SetPopupSettingListObserver() + aPopSettingList->SetPopupSettingListObserver( iSettingPage ); + AssertTrueL( ETrue, KPSLSetPopupSettingListObserver ); + + // Invoke CAknPopupSettingList's SetAllowsUserDefinedEntry() + aPopSettingList->SetAllowsUserDefinedEntry( EFalse ); + aPopSettingList->SetAllowsUserDefinedEntry( ETrue ); + AssertTrueL( ETrue, KPopupSettingListSetAllowsUserDefinedEntry ); + + // Invoke CAknPopupSettingList's SetShowIndicators() + aPopSettingList->SetShowIndicators( ETrue ); + AssertTrueL( ETrue, KPopupSettingListSetShowIndicators ); + + // Invoke CAknPopupSettingList's HandlePointerEventL() + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::ESwitchOn; + aPopSettingList->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KPopupSettingListHandlePointerEventL ); + + // Invoke CAknPopupSettingList's HandleResourceChange() + aPopSettingList->HandleResourceChange( 0 ); + AssertTrueL( ETrue, KPopupSettingListHandleResourceChange ); + + CBCTestSubAknPopupSettingList* subPopSettingList = + static_cast ( aPopSettingList ); + + // Invoke CAknPopupSettingList's CreateMenuListL() + subPopSettingList->CreateMenuListL(); + AssertTrueL( ETrue, KPopupSettingListCreateMenuListL ); + + // Invoke CAknPopupSettingList's ActivateMenuListL() + subPopSettingList->ActivateMenuListL(); + AssertTrueL( ETrue, KPopupSettingListActivateMenuListL ); + + // Invoke CAknPopupSettingList's DestroyMenuList() + subPopSettingList->DestroyMenuList(); + AssertTrueL( ETrue, KPopupSettingListDestroyMenuList ); + + // Invoke CAknPopupSettingList's ConfigureMenuListL() + subPopSettingList->ConfigureMenuListL(); + AssertTrueL( ETrue, KPopupSettingListConfigureMenuListL ); + + // Invoke CAknPopupSettingList's HandleListBoxEventL() + CEikTextListBox* listBox = new( ELeave ) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( listBox ); + subPopSettingList->HandleListBoxEventL( listBox, + MEikListBoxObserver::EEventItemClicked ); + AssertTrueL( ETrue, KPopupSettingListHandleListBoxEventL ); + CleanupStack::PopAndDestroy( listBox ); + + // Invoke CAknPopupSettingList's CAknPopupSettingList() + CAknPopupSettingList* popupSettingList = + new( ELeave ) CAknPopupSettingList(); + AssertNotNullL( popupSettingList, KCAknPopupSettingList ); + CleanupStack::PushL( popupSettingList ); + CleanupStack::PopAndDestroy( popupSettingList ); + + } + +// --------------------------------------------------------------------------- +// CBCTestPopupSettingPageCase::TestFunctionForPopLayoutsL +// --------------------------------------------------------------------------- +// +void CBCTestPopupSettingPageCase::TestFunctionForPopLayoutsL() + { + CEikTextListBox* list = new( ELeave ) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( list ); + + CBCTestSubAknPopupList* popupList = ( CBCTestSubAknPopupList* ) + CBCTestSubAknPopupList::NewL( list, R_AVKON_SOFTKEYS_SELECT_CANCEL, + AknPopupLayouts::EMenuWindow ); + CleanupStack::PushL( popupList ); + + popupList->SetMaximumHeight( KTwo ); + + list->ConstructL( popupList, CEikListBox::ELeftDownInViewRect ); + list->CreateScrollBarFrameL( ETrue ); + list->ScrollBarFrame()->SetScrollBarVisibilityL( + CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto ); + + CDesCArray* items = + iEikEnv->ReadDesCArrayResourceL( R_BCTESTPOPUPS_EIGHT_TEXT_ARRAY ); + + CTextListBoxModel* model = list->Model(); + model->SetItemTextArray( items ); + model->SetOwnershipType( ELbmOwnsItemArray ); + + TAknPopupLayoutsNode lst = { 0, EListNode, popupList->ListBox() }; + TAknPopupLayoutsNode heading = { &lst, + EHeadingNode, popupList->Heading() }; + TAknPopupLayoutsNode windowOwning = { &heading, + EWindowOwningNode, popupList }; + TAknPopupLayoutsNode findPane = + { &windowOwning, EFindBoxNode, ( CCoeControl* ) popupList->FindBox() }; + TAknPopupLayoutsNode *listBegin = &findPane; + + AknPopupLayouts::HandleSizeChanged( popupList->Layout(), + AknPopupLayouts::EMenuWindow, + listBegin ); + AssertTrueL( ETrue, KLayoutHandleSizeChanged ); + + AknPopupLayouts::HandleSizeChanged( + popupList->Layout(), + AknPopupLayouts::EMenuWindow, + popupList->Heading(), + popupList->ListBox(), + popupList + ); + AssertTrueL( ETrue, KLayoutHandleSizeChanged ); + + AknPopupLayouts::ModifyWindowGraphicForHeading( popupList->Layout() ); + AssertTrueL( ETrue, KLayoutModifyWindowGraphicForHeading ); + + AknPopupLayouts::ModifyWindowGraphicForMessageBox( + popupList->Layout(), KTwo ); + AknPopupLayouts::ModifyWindowGraphicForMessageBox( + popupList->Layout(), KThree ); + AssertTrueL( ETrue, KLayoutModifyWindowGraphicForMessageBox ); + + TRect rect; + + AknPopupLayouts::CalcPopupMenuWindow( popupList->Layout(), rect, KTwo ); + AssertTrueL( ETrue, KLayoutCalcPopupMenuWindow ); + + AknPopupLayouts::CalcPopupMenuGraphicWindow( popupList->Layout(), + rect, KTwo ); + AssertTrueL( ETrue, KLayoutCalcPopupMenuGraphicWindow ); + + AknPopupLayouts::CalcPopupMenuGraphicHeadingWindow( popupList->Layout(), + rect, KTwo ); + AssertTrueL( ETrue, KLayoutCalcPopupMenuGraphicHeadingWindow ); + + AknPopupLayouts::CalcPopupMenuDoubleWindow( popupList->Layout(), + rect, KTwo ); + AknPopupLayouts::CalcPopupMenuDoubleWindow( popupList->Layout(), + rect, KOne ); + AssertTrueL( ETrue, KLayoutCalcPopupMenuDoubleWindow ); + + AknPopupLayouts::CalcPopupMenuDoubleLargeGraphicWindow( + popupList->Layout(), + rect, + KTwo ); + AknPopupLayouts::CalcPopupMenuDoubleLargeGraphicWindow( + popupList->Layout(), + rect, + KOne ); + + AssertTrueL( ETrue, KLayoutCalcPopupMenuDoubleLargeGraphicWindow ); + + AknPopupLayouts::CalcPopupSNoteGroupWindow( popupList->Layout(), + rect, KOne ); + AssertTrueL( ETrue, KLayoutCalcPopupSNoteGroupWindow ); + + AknPopupLayouts::SetupMenuPopupWindow( popupList->Layout(), KOne, ETrue ); + AssertTrueL( ETrue, KLayoutSetupMenuPopupWindow ); + + AknPopupLayouts::SetupPopupMenuGraphicWindow( popupList->Layout(), + KOne, ETrue ); + AssertTrueL( ETrue, KLayoutSetupPopupMenuGraphicWindow ); + + AknPopupLayouts::SetupPopupMenuGraphicHeadingWindow( popupList->Layout(), + KOne, ETrue ); + AssertTrueL( ETrue, KLayoutSetupPopupMenuGraphicHeadingWindow ); + + AknPopupLayouts::SetupPopupMenuDoubleWindow( popupList->Layout(), + KOne, ETrue ); + AssertTrueL( ETrue, KLayoutSetupPopupMenuDoubleWindow ); + + AknPopupLayouts::SetupImageSelectionMenuPopupWindow( popupList->Layout(), + KOne, ETrue ); + AssertTrueL( ETrue, KLayoutSetupImageSelectionMenuPopupWindow ); + + AknPopupLayouts::SetupPopupSNoteGroupWindow( popupList->Layout(), + KOne, ETrue ); + AssertTrueL( ETrue, KLayoutSetupPopupSNoteGroupWindow ); + + AknPopupLayouts::HandleSizeAndPositionOfComponents( + popupList->Layout(), + popupList->ListBox(), + popupList->Heading() ); + AssertTrueL( ETrue, KLayoutHandleSizeAndPositionOfComponents ); + + AknPopupLayouts::SetupDefaults( popupList->Layout() ); + AssertTrueL( ETrue, KLayoutSetupDefaults ); + + rect = AknPopupLayouts::WindowRect( popupList->Layout() ); + AssertTrueL( ETrue, KLayoutWindowRectA ); + + rect = AknPopupLayouts::MenuRect( popupList->Layout() ); + AssertTrueL( ETrue, KLayoutMenuRect ); + + TInt value = 1; + AknPopupLayouts::CheckRange( value, KTwo, KThree ); + value = 5; + AknPopupLayouts::CheckRange( value, KOne, KThree ); + AssertTrueL( ETrue, KLayoutCheckRange ); + + AknPopupLayouts::MenuPopupWindowGraphics( popupList->Layout() ); + AssertTrueL( ETrue, KLayoutMenuPopupWindowGraphics ); + + CleanupStack::PopAndDestroy( popupList ); // listBox and popupList + CleanupStack::PopAndDestroy( list ); + } + + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestpopupsview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,150 @@ +/* +* 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 "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: Implements test bc for popups control view. +* +*/ + + +#include +#include + +#include "bctestpopups.hrh" +#include "bctestpopupsview.h" +#include "bctestpopupscontainer.h" +#include "bctestutil.h" +#include "bctestpopupfieldtextcase.h" +#include "bctestpopupcase.h" +#include "bctestheadingpanecase.h" +#include "bctestpopupsettingpagecase.h" + +// constant +_LIT( KPopupFieldTextCaseComment, "Popupfieldtext case" ); +_LIT( KPopupCaseComment, "Popup case" ); +_LIT( KHeadingPaneCaseComment, "Heading pane case" ); +_LIT( KPopupsSettingPageCaseComment, "PopupSettingPage case" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupsView* CBCTestPopupsView::NewL() + { + CBCTestPopupsView* self = new ( ELeave ) CBCTestPopupsView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPopupsView::CBCTestPopupsView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPopupsView::ConstructL() + { + BaseConstructL( R_BCTESTPOPUPS_VIEW ); + + iContainer = new( ELeave ) CBCTestPopupsContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestPopupFieldTextCase::NewL( iContainer ), + KPopupFieldTextCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestPopupCase::NewL( iContainer ), + KPopupCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestHeadingPaneCase::NewL( iContainer ), + KHeadingPaneCaseComment ); + + iTestUtil->AddTestCaseL( CBCTestPopupSettingPageCase::NewL( iContainer ), + KPopupsSettingPageCaseComment ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPopupsView::~CBCTestPopupsView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestPopupsView::Id() const + { + return KBCTestPopupsViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestPopupsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestPopupsView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestPopupsView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EBCTestPopupsCmdAutotest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestPopupsCmdEmptyOutline && + aCommand < EBCTestPopupsCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestsubpopup.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestsubpopup.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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: Invoke popup list's protected APIs. +* +*/ + + +#include +#include +#include + +#include "bctestsubpopup.h" +#include "bctestpopups.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSubPopup* CBCTestSubPopup::NewL( + CEikListBox *aListBox, TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts aType ) + { + CBCTestSubPopup* self = new( ELeave ) CBCTestSubPopup(); + CleanupStack::PushL( self ); + self->ConstructL( aListBox, aCbaResource, aType ); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubPopup::CBCTestSubPopup() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubPopup::~CBCTestSubPopup() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSubPopup::ConstructL( + CEikListBox *aListBox, TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts aType ) + { + CAknPopupList::ConstructL( aListBox, aCbaResource, aType ); + } + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestsubpopupfieldtext.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestpopups/src/bctestsubpopupfieldtext.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Invoke popup field's protected APIs. +* +*/ + + +#include +#include +#include +#include + +#include "bctestsubpopupfieldtext.h" +#include "bctestpopups.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSubPopupFieldText* CBCTestSubPopupFieldText::NewL() + { + CBCTestSubPopupFieldText* self = new( ELeave ) CBCTestSubPopupFieldText(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSubPopupFieldText::CBCTestSubPopupFieldText():CAknPopupField() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSubPopupFieldText::~CBCTestSubPopupFieldText() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSubPopupFieldText::ConstructL() + { + CAknPopupField::ConstructL(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bctestprivateuifrm.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bctestprivateuifrm.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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: project specification file for the BCTestprivateuifrm. +* +*/ + + +TARGET BCTestPrivateUIFrm.exe +TARGETTYPE exe +UID 0x0 0x20004758 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestprivateuifrm.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestprivateuifrmapp.cpp +SOURCE bctestprivateuifrmdocument.cpp +SOURCE bctestprivateuifrmappui.cpp +SOURCE bctestprivateuifrmview.cpp +SOURCE bctestprivateuifrmcontainer.cpp +SOURCE bctestprivateuifrmcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eikdlg.lib +LIBRARY eiksrv.lib +LIBRARY estor.lib + +START RESOURCE ../group/bctestprivateuifrm_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bctestprivateuifrm.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bctestprivateuifrm.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,241 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestprivateuifrm.hrh" +#include "bctestprivateuifrm.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestprivateuifrm_BMP_FNAME APP_BITMAP_DIR"\\bctestprivateuifrm.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "privateuifrm"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestprivateuifrm_menubar_main; + cba = r_bctestprivateuifrm_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestprivateuifrm_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\bctestprivateuifrm_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestprivateuifrm_view +// AVKON_VIEW for CbctestprivateuifrmView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestprivateuifrm_view + { + menubar = r_bctestprivateuifrm_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestprivateuifrm_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestprivateuifrm_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestprivateuifrm_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestprivateuifrm_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestprivateuifrm_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestprivateuifrm_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestprivateuifrm_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestprivateuifrm_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestprivateuifrm_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestprivateuifrm_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestprivateuifrm_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestprivateuifrm_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestprivateuifrm_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestPrivateUIFrmCbaCmdNext; + txt = qtn_bctestprivateuifrm_cba_next; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctest_lbbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE LBBUT r_bctestprivateui_lbbut + { + buttontype=0; // EEikCtCommandButton + button = CMBUT + { + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt=""; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + }; + hotkey=0; + flags=1; // EEikLabeledButtonShowHotKey + } + +// ---------------------------------------------------------------------------- +// +// r_bctest_button_panel +// +// ---------------------------------------------------------------------------- +// +RESOURCE DLG_BUTTONS r_bctest_button_panel + { + buttons = {}; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bctestprivateuifrm_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bctestprivateuifrm_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004758 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestPrivateUIFrm"; + localisable_resource_file = "\\resource\\apps\\BCTestPrivateUIFrm"; + localisable_resource_id = R_BCTESTPRIVATEUIFRM_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestPrivateUIFrm.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrm.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrm.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +/* +* 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 "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: BCTestPrivateUIFrm resource header file +* +*/ + + +#ifndef BCTESTPRIVATEUIFRM_HRH +#define BCTESTPRIVATEUIFRM_HRH + +enum TBCTestPrivateUIFrmMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestPrivateUIFrmCba + { + EBCTestPrivateUIFrmCbaCmdNext = 0x6300 + }; + +enum TBCTestPrivateUIBtn + { + EBCTestPrivateUIBtn1 = 0x63F0 + }; + +#endif // BCTESTPRIVATEUIFRM_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrm.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrm.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestPrivateUIFrm localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTPRIVATEUIFRM" +#define qtn_apps_tavl_grid "BCTESTPRIVATEUIFRM" + +// MenuBar +#define qtn_bctestprivateuifrm_menubar "Option" +#define qtn_bctestprivateuifrm_cba_next "Next" +#define qtn_bctestprivateuifrm_autotest "Autotest" +#define qtn_bctestprivateuifrm_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestprivateuifrm_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestPrivateUIFrmAPP_H +#define BCTestPrivateUIFrmAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestPrivateUIFrm = { 0x20004758 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestPrivateUIFrmApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestPrivateUIFrmApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestPrivateUIFrmDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestPrivateUIFrm ). + * @return The value of KUidBCTestPrivateUIFrm. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for PrivateUIFrm control API. +* +*/ + + +#ifndef C_BCTESTPrivateUIFrmAPPUI_H +#define C_BCTESTPrivateUIFrmAPPUI_H + +#include + +class CBCTestPrivateUIFrmView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPrivateUIFrmAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestPrivateUIFrmAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestPrivateUIFrmAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestPrivateUIFrmView* iView; + }; + +#endif // C_BCTESTPrivateUIFrmAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,216 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PrivateUIFrmCASE_H +#define BCTEST_PrivateUIFrmCASE_H + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestcase.h" + +class CBCTestPrivateUIFrmContainer; +class CCoeControl; + +class CSonEikHotKeyControl: public CEikHotKeyControl +{ + public: + + CSonEikHotKeyControl(CEikHotKeyTable* aTable,MEikCommandObserver* aObserver); + void TestKC_WriteInternalStateL(RWriteStream& aWriteStream); +}; + +class CSonEikButtonPanel : public CEikButtonPanel +{ + public: + void TestBP_WriteInternalStateL(RWriteStream& aWriteStream); + // from MEikButtonGroup + void SetCommandL(TInt /*aPosition*/, + TInt /*aCommandId*/, + const TDesC* /*aText*/, + const CFbsBitmap* /*aBitmap*/, + const CFbsBitmap* /*aMask*/){}; + void SetCommandL(TInt /*aPosition*/, + TInt /*aResourceId*/){}; + void SetCommandSetL(TInt /*aResourceId*/){}; + void AddCommandL(TInt /*aPosition*/, + TInt /*aCommandId*/, + const TDesC* /*aText*/, + const CFbsBitmap* /*aBitmap*/, + const CFbsBitmap* /*aMask*/){}; + void AddCommandToStackL(TInt /*aPosition*/, + TInt /*aCommandId*/, + const TDesC* /*aText*/, + const CFbsBitmap* /*aBitmap*/, + const CFbsBitmap* /*aMask*/){}; + void AddCommandToStackL(TInt /*aPosition*/,TInt /*aResourceId*/){}; + void AddCommandSetToStackL(TInt /*aResourceId*/){}; + void SetDefaultCommand(TInt /*aCommandId*/){}; + TSize CalcMinimumSizeL(TInt /*aResourceId*/) + { + return TSize(0,0); + }; + void RemoveCommandFromStack(TInt /*aPosition*/,TInt /*aCommandId*/){}; + TInt CommandPos(TInt /*aCommandId*/) const + { + return 0; + }; + void DimCommand(TInt /*aCommandId*/,TBool /*aDimmed*/){}; + TBool IsCommandDimmed(TInt /*aCommandId*/) const + { + return ETrue; + }; + void MakeCommandVisible(TInt /*aCommandId*/,TBool /*aVisible*/){}; + TBool IsCommandVisible(TInt /*aCommandId*/) const + { + return ETrue; + }; + CCoeControl* AsControl() + { + return NULL; + }; + const CCoeControl* AsControl() const + { + return NULL; + }; + void SetBoundingRect(const TRect& /*aBoundingRect*/){}; + void ReduceRect(TRect& /*aBoundingRect*/) const{}; + CCoeControl* GroupControlById(TInt /*aCommandId*/) const + { + return NULL; + }; + CEikCommandButton* GroupControlAsButton(TInt /*aCommandId*/) const + { + return NULL; + }; + TInt CommandId(TInt /*aCommandPos*/) const + { + return 0; + }; + TInt ButtonCount() const + { + return 0; + }; + TUint ButtonGroupFlags() const + { + return 0; + }; + void AnimateCommandByPosition( TInt ){}; + TBool IsCommandVisibleByPosition( TInt ) const { return ETrue; }; + void MakeCommandVisibleByPosition( TInt, TBool ){}; + TBool IsCommandDimmedByPosition( TInt ) const { return EFalse; }; + void DimCommandByPosition( TInt, TBool ){}; + void SetMSKCommandObserver( MEikCommandObserver* ){}; +}; + +class CBCTestObserver : public MEikCommandObserver, public CBase +{ + public: + //from MEikCommandObserver + void ProcessCommandL(TInt aCommandId); +}; +/** +* test case for various list classes +*/ +class CBCTestPrivateUIFrmCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPrivateUIFrmCase* NewL( CBCTestPrivateUIFrmContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPrivateUIFrmCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunctionL(); + void TestAlertL(); + void TestBtpanL(); + void TestProtectedBtpanL(); + void TestDpageL(); + void TestHfdlgL(); + void TestHkeycL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPrivateUIFrmCase( CBCTestPrivateUIFrmContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestPrivateUIFrmContainer* iContainer; + + }; + +#endif // BCTEST_PrivateUIFrmCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_PrivateUIFrmCONTAINER_H +#define BCTEST_PrivateUIFrmCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestPrivateUIFrmContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestPrivateUIFrmContainer(); + + /** + * Destructor + */ + virtual ~CBCTestPrivateUIFrmContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + RWindow & GetWindow(); +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_PrivateUIFrmCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTPrivateUIFrmDOCUMENT_H +#define C_BCTESTPrivateUIFrmDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestPrivateUIFrmDocument application class. +*/ +class CBCTestPrivateUIFrmDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestPrivateUIFrmDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestPrivateUIFrmDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestPrivateUIFrmDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestPrivateUIFrmAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTPrivateUIFrmDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/inc/bctestprivateuifrmview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for PrivateUIFrm control API. +* +*/ + + +#ifndef BCTEST_PrivateUIFrm_VIEW_H +#define BCTEST_PrivateUIFrm_VIEW_H + +#include + +const TUid KBCTestPrivateUIFrmViewId = { 1 }; + +class CBCTestPrivateUIFrmContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPrivateUIFrmView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestPrivateUIFrmView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestPrivateUIFrmView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPrivateUIFrmView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestPrivateUIFrmContainer* iContainer; + + }; + +#endif // BCTEST_PrivateUIFrm_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/sis/bctestprivateuifrm.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/sis/bctestprivateuifrm.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesttempalte.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestPrivateUIFrm"},(0x20004758),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestprivateuifrm.exe"- +"!:\sys\bin\bctestprivateuifrm.exe" + +"\epoc32\data\z\resource\apps\bctestprivateuifrm.RSC"- +"!:\resource\apps\bctestprivateuifrm.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestprivateuifrm_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestprivateuifrm_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon PrivateUIFrm test app +* +*/ + + +// INCLUDE FILES +#include "BCTestPrivateUIFrmApp.h" +#include "BCTestPrivateUIFrmDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestPrivateUIFrmApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestPrivateUIFrmApp::AppDllUid() const + { + return KUidBCTestPrivateUIFrm; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestPrivateUIFrmApp::CreateDocumentL() +// Creates CBCTestPrivateUIFrmDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestPrivateUIFrmApp::CreateDocumentL() + { + return CBCTestPrivateUIFrmDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestPrivateUIFrmApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestPrivateUIFrmApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for PrivateUIFrm control api(s) +* +*/ + +#include +#include + +#include "bctestPrivateUIFrmAppUi.h" +#include "bctestPrivateUIFrm.hrh" +#include "bctestPrivateUIFrmview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmAppUi::CBCTestPrivateUIFrmAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestPrivateUIFrmView* view = CBCTestPrivateUIFrmView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestPrivateUIFrmAppUi::~CBCTestPrivateUIFrmAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmAppUi::~CBCTestPrivateUIFrmAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,388 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include + +#include "bctestPrivateUIFrmcase.h" +#include "bctestPrivateUIFrmcontainer.h" +#include "bctestPrivateUIFrm.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmCase* CBCTestPrivateUIFrmCase::NewL( + CBCTestPrivateUIFrmContainer* aContainer ) + { + CBCTestPrivateUIFrmCase* self = new( ELeave ) CBCTestPrivateUIFrmCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmCase::CBCTestPrivateUIFrmCase( + CBCTestPrivateUIFrmContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmCase::~CBCTestPrivateUIFrmCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), TEND); + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestFunctionL() + { + // Test some API here + TestAlertL(); + TestBtpanL(); + TestProtectedBtpanL(); + TestDpageL(); + TestHfdlgL(); + TestHkeycL(); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestDocument2 (Test class CEikAlert) +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestAlertL() + { + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestDpageL (Test class CEikDialogPage) +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestDpageL() + { + CEikCaptionedControl *cControl = new ( ELeave ) CEikCaptionedControl(); + CleanupStack::PushL( cControl ); + const CEikDialogPage *iDPage = cControl->DialogPage(); +// iDPage->SetFormLayout(ESingle); +// iDPage->FormLayout(); + CleanupStack::PopAndDestroy( cControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestHfdlgL (Test class CEikDebugKeys & CEikDebugWin) +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestHfdlgL() + { + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestBtpanL (Test class CEikButtonPanel) +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestBtpanL() + { + // construct from resource + ///////////////////////////////////////////////////////////////// + CEikButtonPanel * panel = new ( ELeave )CEikButtonPanel(); + CleanupStack::PushL( panel ); + + TResourceReader panelReader; + CEikonEnv::Static()->CreateResourceReaderLC( panelReader, R_BCTEST_BUTTON_PANEL ); + panel->ConstructFromResourceL(panelReader); + + CleanupStack::PopAndDestroy( 2 ); //reader, panel; + + // construct manually + ///////////////////////////////////////////////////////////////// + CEikButtonPanel * Panel = new ( ELeave )CEikButtonPanel(); + CleanupStack::PushL( Panel ); + _LIT( KCEikButtonPanel, "CEikButtonPanel::CEikButtonPanel() invoked" ); + AssertNotNullL( Panel, KCEikButtonPanel ); + + Panel->ConstructL(); + _LIT( KConstructL, "CEikButtonPanel::ConstructL() invoked" ); + AssertTrueL( ETrue, KConstructL ); + + TInt id = Panel->ButtonId( iContainer ); + _LIT( KButtonId , "CEikButtonPanel::ButtonId(CCoeControl*) invoked" ); + AssertIntL( id, id, KButtonId ); + + Panel->ButtonById( id ); + _LIT( KButtonById , "CEikButtonPanel::ButtonById(TInt) invoked" ); + AssertTrueL( ETrue, KButtonById ); + + Panel->ButtonForKey( 1, id ); + _LIT( KButtonForKey, + "CEikButtonPanel::ButtonForKey(TInt ,TInt& ) invoked" ); + AssertTrueL( ETrue, KButtonForKey ); + + Panel->LabeledButtonById( id ); + _LIT( KLabeledButtonById, + "CEikButtonPanel::LabeledButtonById(TInt) invoked" ); + AssertTrueL( ETrue, KLabeledButtonById ); + + CArrayFix* colorlist = + new ( ELeave ) CArrayFixFlat( 1 ); + CleanupStack::PushL( colorlist ); + Panel->GetColorUseListL( *colorlist ); + CleanupStack::Pop( colorlist ); + _LIT( KGetColorUseListL, + "CEikButtonPanel::GetColorUseListL(CArrayFix) invoked" ); + AssertTrueL( ETrue, KGetColorUseListL ); + delete colorlist; + + CEikLabeledButton* labeledButton = new( ELeave ) CEikLabeledButton(); + CleanupStack::PushL( labeledButton ); + TResourceReader reader; + CEikonEnv::Static()->CreateResourceReaderLC( reader, + R_BCTESTPRIVATEUI_LBBUT ); + labeledButton->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); //reader + CleanupStack::Pop( labeledButton ); + _LIT( KConstructFromResourceL, + "CEikButtonPanel::ConstructFromResourceL(TResourceReader&) invoked" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + //can not be zero, becuase it used Groups[aRow-1] + Panel->AddButtonL( labeledButton, EBCTestPrivateUIBtn1, 1); + _LIT( KAddButtonL, + "CEikButtonPanel::AddButtonL(CEikLabeledButton* ,TInt ,TInt) invoked" ); + AssertTrueL( ETrue, KAddButtonL ); + + //should be: MCoeControlObserver::EEventStateChanged; but failed + Panel->HandleControlEventL( labeledButton, + MCoeControlObserver::EEventRequestCancel); + _LIT( KHandleControlEventL, + "CEikButtonPanel::HandleControlEventL(CCoeControl*,TCoeEvent) invoked" ); + AssertTrueL( ETrue, KHandleControlEventL ); + + TPointerEvent PointerEvent; + Panel->HandlePointerEventL( PointerEvent ); + _LIT( KHandlePointerEventL, + "CEikButtonPanel::HandlePointerEventL(TPointerEvent) invoked" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + Panel->HandleResourceChange( 10 ); + _LIT( KHandleResourceChange , + "CEikButtonPanel::HandleResourceChange(TInt) invoked" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + Panel->MakeButtonVisible( id, ETrue); + _LIT( KMakeButtonVisible, + "CEikButtonPanel::MakeButtonVisible(TInt,TBool) invoked" ); + AssertTrueL( ETrue, KMakeButtonVisible ); + + Panel->MinimumSize(); + _LIT( KMinimumSize, "CEikButtonPanel::MinimumSize() invoked" ); + AssertTrueL( ETrue, KMinimumSize ); + + TKeyEvent KeyEvent; + TKeyResponse keyResponse = Panel->OfferKeyEventL( KeyEvent, EEventKey ); + _LIT( KOfferKeyEventL, + "CEikButtonPanel::OfferKeyEventL(TKeyEvent,TEventCode) invoked" ); + AssertIntL( EKeyWasNotConsumed, keyResponse, KOfferKeyEventL ); + + Panel->ResetMinimumSize(); + _LIT( KResetMinimumSize, "CEikButtonPanel::ResetMinimumSize() invoked" ); + AssertTrueL( ETrue, KResetMinimumSize ); + + CBCTestObserver* CommandObserver = new ( ELeave )CBCTestObserver; + CleanupStack::PushL( CommandObserver ); + Panel->SetCommandObserver( CommandObserver ); + _LIT( KSetCommandObserver, + "CEikButtonPanel::SetCommandObserver(MEikCommandObserver* ) invoked" ); + AssertTrueL( ETrue, KSetCommandObserver ); + CleanupStack::PopAndDestroy( CommandObserver ); + + Panel->SetHorizontal(); + _LIT( KSetHorizontal, "CEikButtonPanel::SetHorizontal() invoked" ); + AssertTrueL( ETrue, KSetHorizontal ); + + Panel->SetMinButtonWidth( 10 ); + _LIT( KSetMinButtonWidth, + "CEikButtonPanel::SetMinButtonWidth() invoked" ); + AssertTrueL( ETrue, KSetMinButtonWidth ); + + CleanupStack::PopAndDestroy( Panel ); //delete Panel; + _LIT( KUCEikButtonPanel, "CEikButtonPanel::~CEikButtonPanel invoked" ); + AssertTrueL( ETrue, KUCEikButtonPanel ); + + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestBtpanL (Test class CEikButtonPanel) +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestProtectedBtpanL() + { + CSonEikButtonPanel * subPanel = new (ELeave) CSonEikButtonPanel; + CleanupStack::PushL(subPanel); + _LIT( KPanelFileName, "C:\\BCTestLog\\Panel.txt" ); + + RFs& fs = CEikonEnv::Static()->FsSession(); + RFile File1; + if ( File1.Open( fs, KPanelFileName, EFileWrite | EFileShareAny ) + != KErrNone ){ + File1.Create( fs, KPanelFileName, EFileWrite | EFileShareAny ); + } + File1.Close(); + RFileWriteStream wStream; + User::LeaveIfError( wStream.Replace( fs, KPanelFileName, EFileWrite )); + wStream.PushL(); + subPanel->TestBP_WriteInternalStateL( wStream ); + wStream.Pop(); + wStream.Release(); + _LIT( KWriteInternalStateL, + "CEikButtonPanel::WriteInternalStateL invoked" ); + AssertTrueL( ETrue, KWriteInternalStateL ); + CleanupStack::PopAndDestroy( subPanel ); + + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestBtpanL +// (Test class CEikButtonPanel protect function) +// --------------------------------------------------------------------------- +// +void CSonEikButtonPanel::TestBP_WriteInternalStateL( RWriteStream& + aWriteStream ) + { + CEikButtonPanel::WriteInternalStateL( aWriteStream ); + } + +// --------------------------------------------------------------------------- +// CBCTestDocAndInitCase::TestKC_WriteInternalStateL +// (Test class CEikHotKeyControl protect function) +// --------------------------------------------------------------------------- +// +void CSonEikHotKeyControl::TestKC_WriteInternalStateL( RWriteStream& + aWriteStream ) + { + WriteInternalStateL( aWriteStream ); + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmCase::TestHkeycL (Test class CEikHotKeyControl) +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmCase::TestHkeycL() + { + } + +// --------------------------------------------------------------------------- +// CBCTestObserver::ProcessCommandL (from MAknServerAppExitObserver) +// --------------------------------------------------------------------------- +// +void CBCTestObserver::ProcessCommandL(TInt /*aCommandId*/) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,121 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestPrivateUIFrmcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmContainer::CBCTestPrivateUIFrmContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmContainer::~CBCTestPrivateUIFrmContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestPrivateUIFrmContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestPrivateUIFrmContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestPrivateUIFrmContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +RWindow & CBCTestPrivateUIFrmContainer::GetWindow() +{ + return Window(); +} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon PrivateUIFrm test application +* +*/ + + +// INCLUDE FILES +#include "BCTestPrivateUIFrmDocument.h" +#include "BCTestPrivateUIFrmAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestPrivateUIFrmDocument* CBCTestPrivateUIFrmDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmDocument* CBCTestPrivateUIFrmDocument::NewL( CEikApplication& aApp ) + { + CBCTestPrivateUIFrmDocument* self = new( ELeave ) CBCTestPrivateUIFrmDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestPrivateUIFrmDocument::~CBCTestPrivateUIFrmDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmDocument::~CBCTestPrivateUIFrmDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestPrivateUIFrmDocument::CBCTestPrivateUIFrmDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmDocument::CBCTestPrivateUIFrmDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestPrivateUIFrmDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestPrivateUIFrmDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestPrivateUIFrmAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestprivateuifrm/src/bctestprivateuifrmview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestprivateuifrm.hrh" +#include +#include "bctestPrivateUIFrmview.h" +#include "bctestPrivateUIFrmcontainer.h" +#include "bctestutil.h" +#include "bctestPrivateUIFrmcase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmView* CBCTestPrivateUIFrmView::NewL() + { + CBCTestPrivateUIFrmView* self = new( ELeave ) CBCTestPrivateUIFrmView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmView::CBCTestPrivateUIFrmView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmView::ConstructL() + { + BaseConstructL( R_BCTESTPRIVATEUIFRM_VIEW ); + + iContainer = new( ELeave ) CBCTestPrivateUIFrmContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestPrivateUIFrmCase::NewL( iContainer ), + _L("PrivateUIFrm test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPrivateUIFrmView::~CBCTestPrivateUIFrmView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestPrivateUIFrmView::Id() const + { + return KBCTestPrivateUIFrmViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPrivateUIFrmView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestPrivateUIFrmView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bctestptieng.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bctestptieng.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,76 @@ +/* +* 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 "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: project specification file for the BCTestPtiEng. +* +*/ + + +TARGET bctestptieng.exe +TARGETTYPE exe +UID 0x0 0x200045CF + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestptieng.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestptiengapp.cpp +SOURCE bctestptiengdocument.cpp +SOURCE bctestptiengappui.cpp +SOURCE bctestptiengview.cpp +SOURCE bctestptiengcontainer.cpp +SOURCE bctestuserdict.cpp +SOURCE bctestlan.cpp +SOURCE bctestkeymap.cpp +SOURCE bctestqwertymap.cpp +SOURCE bctestlandb.cpp +SOURCE bctestptiengine.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY ptiengine.lib +LIBRARY bafl.lib + +START RESOURCE ../group/bctestptieng_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bctestptieng.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bctestptieng.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,230 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestptieng.hrh" +#include "bctestptieng.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTPTIENG_BMP_FNAME APP_BITMAP_DIR"\\bctestptieng.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestPtiEng"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestptieng_menubar_main; + cba = r_bctestptieng_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestptieng_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\bctestptieng_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestptieng_view +// AVKON_VIEW for CBCTestPtiEngView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestptieng_view + { + menubar = r_bctestptieng_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestptieng_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestptieng_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestptieng_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestptieng_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestptieng_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestptieng_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdPtiUserDict; + txt = "Test Pti User Dict"; + }, + MENU_ITEM + { + command = EBCTestCmdPtiLanguage; + txt = "Test Pti Language"; + }, + MENU_ITEM + { + command = EBCTestCmdPtiKeymap; + txt = "Test Pti Keymap"; + }, + MENU_ITEM + { + command = EBCTestCmdQwertyMap; + txt = "Test Qwerty map"; + }, + MENU_ITEM + { + command = EBCTestCmdLanDB; + txt = "Test Language DB"; + }, + MENU_ITEM + { + command = EBCTestCmdPtiEng; + txt = "Test Pti Engine"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestptieng_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestptieng_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestptieng_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestptieng_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestptieng_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestptieng_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestPtiEngCbaCmdNext; + txt = qtn_bctestptieng_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bctestptieng_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bctestptieng_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045CF // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "bctestptieng"; + localisable_resource_file = "\\resource\\apps\\bctestptieng"; + localisable_resource_id = R_BCTESTPTIENG_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestptieng.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/StreamLogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/StreamLogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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: +* +*/ +// +// just for simple use, +// this file doesn't following any code convensions or symbian rules. +// + +#ifndef __DLL_LOGGER_H__ +#define __DLL_LOGGER_H__ + +#include // link against efsrv.lib +#include + +#define CERR StreamLogger::begin() + +/** +* usage: StreamLogger::begin()<<"your string"<FsSession(); + if ( file.Open( fs, KLogFile, EFileWrite | EFileShareAny ) != KErrNone ) + file.Create( fs, KLogFile, EFileWrite | EFileShareAny ); + + TInt pos=0; // this must be 0 + file.Seek( ESeekEnd, pos ); + } + + ~LogFile(){ + file.Close(); + } + + RFile& operator()(){ return file; } + private: + RFile file; + }; + +public: + ~StreamLogger(){} + + static StreamLogger& begin(){ + StreamLogger* self = new (ELeave) StreamLogger; + return *self; + } + + void suicide(){ delete this; } + + StreamLogger& operator<<(const TDesC& aText){ + LogFile file; + + HBufC8* text = HBufC8::NewL( aText.Length() ); + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + + return *this; + } + + StreamLogger& operator<<(TInt n){ + LogFile file; + + TInt i=1; + for(TInt v=n; v!=0; ++i, v/=10){} + HBufC* text = HBufC::NewL( i ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, n ); + HBufC8* text8 = HBufC8::NewL( textPtr.Length() ); + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + + return *this; + } + + StreamLogger& cr(){ + LogFile file; + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + return *this; + } + + typedef StreamLogger& (*_Manipulator)(StreamLogger&); + StreamLogger& operator<<(_Manipulator op){ return op(*this); } + +private: + StreamLogger(){} //disable ctor +}; + +inline StreamLogger& end(StreamLogger& self){ self.suicide(); return self; } + +inline StreamLogger& endl(StreamLogger& self){ self.cr(); return self; } + +#endif //__FILE_LOGGER_H__ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestkeymap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestkeymap.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PTIENG_KEYMAP_H +#define BCTEST_PTIENG_KEYMAP_H + +#include "bctestcase.h" + +class CPtiKeyMappings; +class MPtiKeyMappings; + +/** +* test case for various list classes +*/ +class CBCTestKeymap: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestKeymap* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestKeymap(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +// new funcs + + static MPtiKeyMappings* CreateKeyMapL(); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + /** + * C++ default constructor + */ + CBCTestKeymap(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void TestKeyData(); + void TestReverseMapping(); + void TestReplaceMappingL(); + void TestNextKey(); + void TestStartMapping(); + void TestMapping(); + void TestCreateL(); + void SetupL(); + void Teardown(); + +//data + CPtiKeyMappings* iMap; + }; + +#endif // BCTEST_PTIENG_KEYMAP_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestlan.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestlan.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,84 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PTIENG_LAN_H +#define BCTEST_PTIENG_LAN_H + +#include "bctestcase.h" + +class CPtiCoreLanguage; + +/** +* test case for various list classes +*/ +class CBCTestLanguage: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestLanguage* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestLanguage(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + /** + * C++ default constructor + */ + CBCTestLanguage(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void SetupL(); + void Teardown(); + void TestL12nL(); + void TestSetKeyMap(); + void TestOthers(); + +//data + CPtiCoreLanguage* iLan; + }; + +#endif // BCTEST_PTIENG_LAN_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestlandb.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestlandb.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,84 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PTIENG_LAN_DB_H +#define BCTEST_PTIENG_LAN_DB_H + +#include "bctestcase.h" + +class CPtiLanguageDatabase; + +/** +* test case for various list classes +*/ +class CBCTestLanDB: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestLanDB* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestLanDB(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + /** + * C++ default constructor + */ + CBCTestLanDB(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void SetupL(); + void Teardown(); + void TestDBInfoL(); + void TestImplL(); + void TestOthersL(); + +//data + CPtiLanguageDatabase* iDB; + }; + +#endif // BCTEST_PTIENG_LAN_DB_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestpticore.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestpticore.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,94 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PTICORE_H +#define BCTEST_PTICORE_H + +#include "bctestcase.h" + +class CPtiCore; + +/** +* test case for various list classes +*/ +class CBCTestPtiCore: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPtiCore* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestPtiCore(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +//new funcs + + /** + * @return the 1st core UID in core list + */ + static TInt TestListCoreL(); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + void TestJapaneseL(); + void TestChineseL(); + void TestUserDictL(); + void TestPredictiveLatinL(); + void TestGeneralL(); + + /** + * C++ default constructor + */ + CBCTestPtiCore(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void SetupL(); + void Teardown(); + +//data + CPtiCore* iCore; + }; + +#endif // BCTEST_PTICORE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptieng.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptieng.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,45 @@ +/* +* 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 "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: BCTestPtiEng resource header file +* +*/ + + +#ifndef BCTEST_PTIENG_HRH +#define BCTEST_PTIENG_HRH + +enum TBCTestPtiEngMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + + EBCTestCmdPtiUserDict, + EBCTestCmdPtiLanguage, + EBCTestCmdPtiKeymap, + EBCTestCmdQwertyMap, + EBCTestCmdPtiCore, + EBCTestCmdLanDB, + EBCTestCmdPtiEng, + + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestPtiEngCba + { + EBCTestPtiEngCbaCmdNext = 0x6300 + }; + +#endif // BCTEST_PTIENG_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptieng.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptieng.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestTemplate localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTPTIENG" +#define qtn_apps_tavl_grid "BCTESTPTIENG" + +// MenuBar +#define qtn_bctesttemplate_menubar "Option" +#define qtn_bctestptieng_cba_next "Next" +#define qtn_bctestptieng_autotest "Autotest" +#define qtn_bctestptieng_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestptieng_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef CBCTESTPTIENGINE_H +#define CBCTESTPTIENGINE_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestPtiEng = { 0x200045CF }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestPtiEngApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestPtiEngApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestPtiEngDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestPtiEng ). + * @return The value of KUidBCTestPtiEng. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTPTIENGAPPUI_H +#define C_BCTESTPTIENGAPPUI_H + +#include + +class CBCTestPtiEngView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPtiEngAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestPtiEngAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestPtiEngAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestPtiEngView* iView; + }; + +#endif // C_BCTESTPTIENGAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_PTIENG_CONTAINER_H +#define BCTEST_PTIENG_CONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestPtiEngContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestPtiEngContainer(); + + /** + * Destructor + */ + virtual ~CBCTestPtiEngContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_PTIENG_CONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTEST_PTIENG_DOCUMENT_H +#define C_BCTEST_PTIENG_DOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestPtiEngDocument application class. +*/ +class CBCTestPtiEngDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestPtiEngDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestPtiEngDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestPtiEngDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestPtiEngAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTEST_PTIENG_DOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengine.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PTIENGINE_H +#define BCTEST_PTIENGINE_H + +#include "bctestcase.h" + +class CPtiEngine; + +/** +* test case for various list classes +*/ +class CBCTestPtiEngine: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPtiEngine* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestPtiEngine(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +//new funcs + + /** + * @return the 1st core UID in core list + */ + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + void TestJapaneseInputL(); + void TestOtherL(); + void TestSpellL(); + void TestChineseInputL(); + void TestReorderingL(); + void TestNavigationL(); + void TestLastKeyL(); + void TestDictL(); + void TestInputModeL(); + void TestPredictL(); + void TestMultitappingL(); + void TestInputL(); + void TestInfoL(); + void TestCoreL(); + void TestLanguageL(); + CPtiEngine* TestCreateL(); + + /** + * C++ default constructor + */ + CBCTestPtiEngine(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void SetupL(); + void TeardownL(); + +//data + CPtiEngine* iEngine; + }; + +#endif // BCTEST_PTIENGINE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestptiengview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_PTIENG_VIEW_H +#define BCTEST_PTIENG_VIEW_H + +#include + +const TUid KBCTestPtiEngViewId = { 1 }; + +class CBCTestPtiEngContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPtiEngView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestPtiEngView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestPtiEngView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPtiEngView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestPtiEngContainer* iContainer; + + }; + +#endif // BCTEST_PTIENG_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestqwertymap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestqwertymap.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_QWERTY_KEYMAP_H +#define BCTEST_QWERTY_KEYMAP_H + +#include "bctestcase.h" + +class CPtiQwertyKeyMappings; +class MPtiKeyMappings; + +/** +* test case for various list classes +*/ +class CBCTestQwertyMap: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestQwertyMap* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestQwertyMap(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +// new funcs + + static MPtiKeyMappings* CreateKeyMapL(); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + /** + * C++ default constructor + */ + CBCTestQwertyMap(); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + void TestKeyData(); + void TestReverseMapping(); + void TestReplaceMappingL(); + void TestNextKey(); + void TestStartMapping(); + void TestMapping(); + void TestCreateL(); + void SetupL(); + void Teardown(); + +//data + CPtiQwertyKeyMappings* iMap; + }; + +#endif // BCTEST_QWERTY_KEYMAP_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestuserdict.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/inc/bctestuserdict.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,124 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PTIENG_DICT_H +#define BCTEST_PTIENG_DICT_H + +#include "bctestcase.h" + +class CBCTestPtiEngContainer; +class CCoeControl; +class CPtiUserDictionary; + +/** +* test case for various list classes +*/ +class CBCTestUserDict: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestUserDict* NewL( CBCTestPtiEngContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestUserDict(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestUserDict( CBCTestPtiEngContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * added detailed tests + */ + void TestCreateL(); + + void TestSetDataL(); + + void TestSaveDataL(); + + void TestReloadL(); + + void Reset(); + + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestPtiEngContainer* iContainer; + + /** + * pointer to a user dict, own + */ + CPtiUserDictionary* iDict; + + }; + +#endif // BCTEST_PTIENG_DICT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/sis/bctestptieng.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/sis/bctestptieng.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestptieng.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestptieng"},(0x200045CF),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestptieng.exe"- +"!:\sys\bin\bctestptieng.exe" + +"\epoc32\data\z\resource\apps\bctestptieng.RSC"- +"!:\resource\apps\bctestptieng.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestptieng_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestptieng_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestkeymap.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestkeymap.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,306 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "BCTestKeymap.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" + +const TInt KPtiNumKeys = 12; + +const TUint16 Keys[]= + { + //lower case + /*1*/ '1', '\t', + /*2*/ 'a','b','c','\t', + /*3*/ 'd','e','f','\t', + /*4*/ 'g','h','i','\t', + /*5*/ 'j','k','l','\t', + /*6*/ 'm','n','o','\t', + /*7*/ 'p','q','r','s','\t', + /*8*/ 't','u','v','\t', + /*9*/ 'w','x','y','z','\t', + /***/ '+','\t', + /*0*/ '0','\t', + /*#*/ '#','\t', + + //upper case + /*1*/ '.', '\t', + /*2*/ 'A','B','C','\t', + /*3*/ 'D','E','F','\t', + /*4*/ 'G','H','I','\t', + /*5*/ 'J','K','L','\t', + /*6*/ 'M','N','O','\t', + /*7*/ 'P','Q','R','S','\t', + /*8*/ 'T','U','V','\t', + /*9*/ 'W','X','Y','Z','\t', + /***/ '-','\t', + /*0*/ ' ','\t', + /*#*/ '^', + + '\0' //string terminator + }; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestKeymap* CBCTestKeymap::NewL() + { + CBCTestKeymap* self = new( ELeave ) CBCTestKeymap(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestKeymap::CBCTestKeymap():iMap(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestKeymap::~CBCTestKeymap() + { + Teardown(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestKeymap::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestKeymap::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestKeymap::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, + REP(Down, 2), + KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestKeymap::RunL +// --------------------------------------------------------------------------- +// +void CBCTestKeymap::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdPtiKeymap) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestKeymap::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestKeymap::TestFunctionL() + { + SetupL(); + TestCreateL(); + TestMapping(); + TestReplaceMappingL(); + TestReverseMapping(); + TestKeyData(); + } + + +void CBCTestKeymap::SetupL() + { + TRAPD(err, iMap = static_cast(CreateKeyMapL())); + if(err == KErrCorrupt) + { + AssertTrueL(ETrue, _L("data format err")); + } + else + { + AssertNotNullL(iMap, _L("created by NewL from descriptor")); + } + } + +void CBCTestKeymap::Teardown() + { + delete iMap; + iMap = NULL; + } + +void CBCTestKeymap::TestCreateL() + { + //raw data format: + // + // #map //=2*KPtiNumKeys*sizeof(TPtiKeyMapping) = 2*12*(2*sizeof(int)) + // {index, chars}, {index, chars}, ... , {index, chars} //lower case + // {INDEX, CHARS}, {INDEX, CHARS}, ... , {INDEX, CHARS} //upper case + // + // #chars + // char1, char2, ... , charN + // + + TInt16 charBuffer[1+(KPtiNumKeys*2)*2+1+sizeof(Keys)/sizeof(TUint16)]; + + RArray maps; + for (TInt i = 0; i < KPtiNumKeys * 2; i++) + { + TPtiKeyMapping map = {0, 0}; + maps.AppendL( map ); + } + + TInt16* ptr = charBuffer+1+maps.Count()*2+1; + TInt curKey=0; + TInt index=0; + for (TInt i = 0; i < sizeof(Keys)/sizeof(TUint16)-1; ++i) + { + if (Keys[i] == '\t') + { + maps[++curKey].iIndex = index; + continue; + } + + *(ptr+index)= Keys[i]; + index++; + maps[curKey].iNumChars++; + } + + charBuffer[0]=maps.Count(); + ptr=charBuffer+1; + for(TInt i=0; iStartMapping(/*TPtiKey::*/EPtiKey2, /*TPtiTextCase::*/EPtiCaseLower), + _L("press 2 got 'a'")); + AssertIntL( + TUint('A'), iMap->StartMapping(/*TPtiKey::*/EPtiKey2, /*TPtiTextCase::*/EPtiCaseUpper), + _L("press Shift 2 got 'A'")); + } + +void CBCTestKeymap::TestNextKey() + { + TBool isAppend = ETrue; + iMap->StartMapping(EPtiKey3, EPtiCaseLower); + AssertIntL( TUint16('e'), iMap->NextKey(EPtiKey3, isAppend, EPtiCaseLower), + _L("press 3, press 3 got 'e'")); + + AssertTrueL( !isAppend, _L("and 'e' is not append")); + + AssertIntL( TUint16('F'), iMap->NextKey(EPtiKey3, isAppend, EPtiCaseUpper), + _L("then, press Shift 3 got 'F'")); + + AssertIntL( TUint16('g'), iMap->NextKey(EPtiKey4, isAppend, EPtiCaseLower), + _L("then press 4 as next key, got 'g'")); + } + +void CBCTestKeymap::TestReplaceMappingL() + { + TBool isAppend = ETrue; + _LIT(KNewMapLower, "!@#$"); + _LIT(KNewMapUpper, "%:=&"); + TBuf<5> lowerMap(KNewMapLower); + TBuf<5> upperMap(KNewMapUpper); + + AssertIntL( KErrNone, iMap->ReplaceKeyMapL(EPtiKey1, lowerMap, EPtiCaseLower), + _L("Lower case mapping for Key 1 change to !@#$")); + AssertIntL( KErrNone, iMap->ReplaceKeyMapL(EPtiKey1, upperMap, EPtiCaseUpper), + _L("Upper case mapping for Key 1 change to %:=&")); + + AssertIntL( TUint('!'), iMap->StartMapping(EPtiKey1, EPtiCaseLower), + _L("press 1 got '!'")); + AssertIntL( TUint16('@'), iMap->NextKey(EPtiKey1, isAppend, EPtiCaseLower), + _L("press 1, again got '@'")); + AssertIntL( TUint16('='), iMap->NextKey(EPtiKey1, isAppend, EPtiCaseUpper), + _L("then, press Shift 1 got '@'")); + AssertIntL( TUint16('a'), iMap->NextKey(EPtiKey2, isAppend, EPtiCaseLower), + _L("then press 2 as next key, got 'a'")); + } + +void CBCTestKeymap::TestReverseMapping() + { + AssertIntL( EPtiKey2, iMap->KeyForCharacter('c'), + _L("'c' is mapped by key 2")); + AssertIntL( EPtiKey9, iMap->KeyForCharacter('X'), + _L("'X' is mapped by key 9")); + } + +void CBCTestKeymap::TestKeyData() + { + _LIT(KNewMapLower, "!@#$"); + _LIT(KNewMapUpper, "%:=&"); + TBuf<8> mapStr; + + iMap->GetDataForKey(EPtiKey1, mapStr, EPtiCaseLower); + AssertTrueL( ETrue, _L("Lower case data for key 1 is !@#$")); + + iMap->GetDataForKey(EPtiKey1, mapStr, EPtiCaseUpper); + AssertTrueL( ETrue, _L("Upper case data for key 1 is %:=&")); + } + +//static +MPtiKeyMappings* CBCTestKeymap::CreateKeyMapL() + { + TBuf keyStr(Keys); + return CPtiKeyMappings::NewL(keyStr); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestlan.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestlan.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,179 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "BCTestLan.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" +#include "bctestqwertymap.h" +#include "bctestkeymap.h" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLanguage* CBCTestLanguage::NewL() + { + CBCTestLanguage* self = new( ELeave ) CBCTestLanguage(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestLanguage::CBCTestLanguage():iLan(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLanguage::~CBCTestLanguage() + { + Teardown(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLanguage::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLanguage::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestLanguage::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, + REP(Down, 1), + KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestLanguage::RunL +// --------------------------------------------------------------------------- +// +void CBCTestLanguage::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdPtiLanguage) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLanguage::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestLanguage::TestFunctionL() + { + SetupL(); + TestL12nL(); + TestSetKeyMap(); + TestOthers(); + } + + +void CBCTestLanguage::SetupL() + { + iLan = CPtiCoreLanguage::NewL(); + AssertNotNullL(iLan, _L("created by NewL")); + } + +void CBCTestLanguage::Teardown() + { + delete iLan; + iLan = NULL; + } + +void CBCTestLanguage::TestSetKeyMap() + { + iLan->SetKeyMappings(CBCTestKeymap::CreateKeyMapL()); + iLan->SetQwertyKeyMappings(CBCTestQwertyMap::CreateKeyMapL()); + AssertNotNullL(iLan->GetKeymappings(), _L("Key mapping set and got.")); + AssertNotNullL(iLan->GetQwertyKeymappings(), _L("Qwerty key mapping set and got.")); + + //clear them all + iLan->ClearMultitapping(); + iLan->ClearQwerty(); + AssertTrueL(NULL == iLan->GetKeymappings(), _L("Key mapping cleared.")); + AssertTrueL(NULL == iLan->GetQwertyKeymappings(), _L("Qwerty key mapping cleared.")); + } + +void CBCTestLanguage::TestL12nL() + { + //short name + _LIT(KShortL12nName, "en"); + iLan->SetLocalizedName(KShortL12nName); + AssertTrueL(iLan->LocalizedNameDes() == KShortL12nName, _L("short i12n name en set and got")); + + //long name + _LIT(KLongL12nName, "English, use in both western Eroup and north America"); + iLan->SetLocalizedName(KLongL12nName); + TBuf cutName; + const TDesC& ref = KLongL12nName; + cutName.Copy(ref.Left(KMaxLanguageNameLength)); + AssertTrueL(iLan->LocalizedNameDes() == cutName, _L("long i12n name set and cut")); + + //lan code + TInt oldCode = iLan->LanguageCode(); + iLan->SetLanguageCode(31); // chinese + iLan->SetLanguageCode(31); // set same code again + AssertIntL(iLan->LanguageCode(), 31, _L("set lan code to 31")); + iLan->SetLanguageCode(1); // set another code + AssertIntL(iLan->LanguageCode(), 1, _L("set lan code to 1")); + iLan->SetLanguageCode(oldCode); // reset + } + +void CBCTestLanguage::TestOthers() + { + RArray inputModes; + iLan->GetAvailableInputModesL(inputModes); + AssertTrueL(ETrue, _L("available input modes are got into RArray")); + inputModes.Close(); + + CArrayFixFlat* modes = new (ELeave) CArrayFixFlat(10); + CleanupStack::PushL(modes); + iLan->GetAvailableInputModesL(modes); + AssertTrueL(ETrue, _L("available input modes are got into CArrayFix")); + CleanupStack::PopAndDestroy(); // modes + + iLan->RemoveCore(NULL); + AssertTrueL(ETrue, _L("NULL core removed")); + } +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestlandb.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestlandb.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,186 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "BCTestLanDB.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" +#include "bctestqwertymap.h" +#include "bctestkeymap.h" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLanDB* CBCTestLanDB::NewL() + { + CBCTestLanDB* self = new( ELeave ) CBCTestLanDB(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestLanDB::CBCTestLanDB():iDB(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLanDB::~CBCTestLanDB() + { + Teardown(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLanDB::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLanDB::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestLanDB::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, + REP(Down, 4), + KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestLanDB::RunL +// --------------------------------------------------------------------------- +// +void CBCTestLanDB::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdLanDB) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLanDB::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestLanDB::TestFunctionL() + { + SetupL(); + TestDBInfoL(); + TestImplL(); + TestOthersL(); + } + + +void CBCTestLanDB::SetupL() +{ + // language impl uid(s) are defined in ptiuids.hrh + iDB = CPtiLanguageDatabase::CreateDatabaseL(TUid::Uid(EPtiLangImplUidEnglish)); + AssertNotNullL(iDB, _L("english Pti language base create")); +} + +void CBCTestLanDB::Teardown() + { + delete iDB; + iDB = NULL; + } + + +void CBCTestLanDB::TestImplL() +{ + + // #languages + AssertTrueL(iDB->NumLanguages() != 0, _L("NumLanguages got")); + CERR<<_L("Num of Languages: ")<NumLanguages()<LanguageCode(0)==1, _L("1st lan code got")); + + // sub lan code[] + AssertTrueL(iDB->SubLanguageCode(0)==0, _L("sub lan code at 0 got")); + CERR<<_L("sub lan code at 0: ")<SubLanguageCode(0)<LangData(0)==NULL, _L("lan data at 0 got")); + AssertTrueL(iDB->LangData(0, NULL)==NULL, _L("lan data at 0 with param NULL got")); + + // + AssertTrueL(iDB->PinyinPhraseData() == NULL, _L("pinyin phrase data got")); + AssertTrueL(iDB->ZhuyinPhraseData() == NULL, _L("zhuyin phrase data got")); + AssertTrueL(iDB->NativeId(0) == 9, _L("native id at 0 got")); + CERR<<_L("nativeID[0]: ")<NativeId(0)<CoreUID(), _L("Empty CoreUID returned")); + + AssertTrueL(ptr->LangData(0)==NULL, _L("Empty LangData1 returned")); + + AssertTrueL(ptr->LangData(0, NULL)==NULL, _L("Empty LangData2 returned")); + + AssertIntL(0, ptr->LanguageCode(0), _L("Empty Language code returned")); + + AssertIntL(0, ptr->NativeId(0), _L("Empty NativeId returned")); + + AssertIntL(0, ptr->NumLanguages(), _L("Empty NumLanguages returned")); + + CleanupStack::PopAndDestroy(); //ptr; + } +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestpticore.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestpticore.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,218 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "BCTestPtiCore.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" +#include "streamlogger.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiCore* CBCTestPtiCore::NewL() + { + CBCTestPtiCore* self = new( ELeave ) CBCTestPtiCore(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiCore::CBCTestPtiCore():iCore(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPtiCore::~CBCTestPtiCore() + { + Teardown(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPtiCore::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiCore::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPtiCore::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, + REP(Down, 4), + KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiCore::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPtiCore::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdPtiCore) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiCore::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestPtiCore::TestFunctionL() + { + SetupL(); + TestGeneralL(); + TestPredictiveLatinL(); + TestUserDictL(); + TestChineseL(); + TestJapaneseL(); + } + + +void CBCTestPtiCore::SetupL() + { + iCore = CPtiCore::CreateCoreL(TUid::Uid(TestListCoreL())); + AssertNotNullL(iCore, _L("Pti core create from core list")); + } + +void CBCTestPtiCore::Teardown() + { + delete iCore; + iCore = NULL; + } + +//static +TInt CBCTestPtiCore::TestListCoreL() + { + CArrayFix* list = CPtiCore::ListCoresLC(); + TInt firstUID = (*list)[0] ; + CleanupStack::PopAndDestroy(); //list + return firstUID; + } + +void CBCTestPtiCore::TestGeneralL() + { + Teardown(); + iCore = new (ELeave) MonkCore; + + AssertIntL( KErrNotSupported, iCore->Convert(EPtiSimplifiedToComplex, NULL, 0, NULL), + _L("Convert hasn't been supported yet")); + + TPtrC8 dummy(KNullDesC8); + AssertTrueL( iCore->SetCurrentInputSequence(dummy) == KErrNotSupported, + _L("SetCurrentImputSequence() is not support")); + + TBuf<5> output; + AssertIntL( KErrNotSupported, iCore->GetSpelling('a', output, EPtiStrokes), + _L("GetSpelling returns General Err")); + + _LIT(KNewMapLower, "!@#$"); + TBuf<5> lowerMap(KNewMapLower); + AssertIntL( KErrNotSupported, + iCore->SetExternalKeyMapL(EPtiEngineMultitapping, EPtiKey1, lowerMap, EPtiCaseLower), + _L("SetExternalKeyMapL hasn't been supported")); + + AssertIntL( KErrNotSupported, iCore->CommitCurrentWord(), + _L("CommitCurrentWord")); + + AssertTrueL( TPtrC() == iCore->GetCurrentWord(), + _L("GetCurrentWord")); + } + +void CBCTestPtiCore::TestPredictiveLatinL() + { + AssertIntL( 0, iCore->NumberOfCandidates(), + _L("NumberOfCandidates not implemented")); + + CDesCArray* cands = new (ELeave) CDesCArrayFlat(2); + CleanupStack::PushL(cands); + AssertIntL(KErrNotSupported, iCore->GetCandidateListL(*cands), _L("Get CandidateList not supported")); + AssertIntL(KErrNotSupported, iCore->GetNextWordCandidateListL(*cands), _L("Get Next word CandidateList not supported")); + CleanupStack::PopAndDestroy(); //cands + + TBuf<5> res; + AssertIntL(KErrNotSupported, iCore->GetFirstCandidate(res), _L("Get first cnadiate not supported")); + AssertIntL(KErrNotSupported, iCore->GetNextCandidate(res), _L("Get next cnadiate not supported")); + AssertIntL(KErrNotSupported, iCore->GetPreviousCandidate(res), _L("Get prev cnadiate not supported")); + } + +void CBCTestPtiCore::TestUserDictL() + { + TPtiUserDictionaryEntry entry(_L("foobar")); + AssertIntL(KErrNotSupported, iCore->AddUserDictionaryEntry(entry, NULL), _L("Add user dict entry not supported")); + AssertIntL(KErrNotSupported, iCore->RemoveUserDictionaryEntry(entry, NULL), _L("Remove user dict entry not supported")); + AssertIntL(0, iCore->NumberOfEntriesInUserDictionary(NULL), _L("NumberOfEntries in user dict got")); + AssertIntL(KErrNotSupported, iCore->GetUserDictionaryEntry(0, entry, NULL), _L("get user dict entry not supported")); + CPtiUserDictionary* dict=iCore->CreateEmptyUserDictionaryL(32); + CleanupStack::PushL(dict); + AssertNotNullL(dict, _L("Create empty user dict")); + AssertIntL(KErrNotSupported, iCore->AttachUserDictionary(dict), _L("attach user dict not supported")); + AssertTrueL(!iCore->DetachUserDictionary(dict), _L("detach user dict")); + CleanupStack::PopAndDestroy(); //dict + } + +void CBCTestPtiCore::TestChineseL() + { + AssertTrueL(TPtrC() == iCore->GetCandidatePage(), _L("Get candidate page")); + AssertTrueL(!iCore->NextCandidatePage(), _L("no next candidate page")); + AssertTrueL(!iCore->PreviousCandidatePage(), _L("no prev candidate page")); + AssertTrueL(!iCore->MoreCandidatePages(), _L("no more candidate page")); + iCore->SetCandidatePageLength(0); + AssertTrueL(ETrue, _L("set cnadidate page length do nothing")); + AssertTrueL(TPtrC() == iCore->GetPhoneticSpelling(0), _L("Get phonetic spelling")); + AssertIntL(0, iCore->PhoneticSpellingCount(), _L("phonetic spelling count returns 0")); + AssertTrueL(!iCore->SelectPhoneticSpelling(0), _L("select phonetic spelling returns false")); + AssertIntL(KErrNotSupported, iCore->SelectedPhoneticSpelling(), _L("selected phonetic spelling not supported")); + TText mark='a'; + AssertTrueL(!iCore->ToneMark(mark), _L("tone mark returns false")); + AssertTrueL(!iCore->IsToneMarkValidForSpelling(), _L("tone mark is invalid for spelling")); + AssertTrueL(!iCore->SetPredictiveChineseChar(_L("")), _L("set predictive chinese char returns false")); + AssertTrueL(!iCore->SetToneMark(0), _L("set tone mark returns false")); + } + +void CBCTestPtiCore::TestJapaneseL() + { + AssertTrueL(TPtrC() == iCore->ReadingTextL(), _L("reading text")); + AssertTrueL(NULL == iCore->CompositionData(), _L("composition data got")); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestPtiEngApp.h" +#include "BCTestPtiEngDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestPtiEngApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestPtiEngApp::AppDllUid() const + { + return KUidBCTestPtiEng; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestPtiEngApp::CreateDocumentL() +// Creates CBCTestPtiEngDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestPtiEngApp::CreateDocumentL() + { + return CBCTestPtiEngDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestPtiEngApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestPtiEngApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "BCTestPtiEngAppUi.h" +#include "BCTestPtiEng.hrh" +#include "BCTestPtiEngview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestPtiEngAppUi::CBCTestPtiEngAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestPtiEngView* view = CBCTestPtiEngView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestPtiEngAppUi::~CBCTestPtiEngAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPtiEngAppUi::~CBCTestPtiEngAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestPtiEngAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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: container +* +*/ + + +#include "BCTestPtiEngcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngContainer::CBCTestPtiEngContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngContainer::~CBCTestPtiEngContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestPtiEngContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestPtiEngContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestPtiEngContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestPtiEngContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } +// end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestPtiEngDocument.h" +#include "BCTestPtiEngAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestPtiEngDocument* CBCTestPtiEngDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPtiEngDocument* CBCTestPtiEngDocument::NewL( CEikApplication& aApp ) + { + CBCTestPtiEngDocument* self = new( ELeave ) CBCTestPtiEngDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestPtiEngDocument::~CBCTestPtiEngDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPtiEngDocument::~CBCTestPtiEngDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestPtiEngDocument::CBCTestPtiEngDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPtiEngDocument::CBCTestPtiEngDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestPtiEngDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestPtiEngDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestPtiEngAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengine.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,769 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +/* Changes History + +22/05/07 Changes to resolve Tools IDO warning issue devesh.priyadarshi@nokia.com +30/08/07 Changes to resolve return code issues in TestInputModeL komala.nagaraju@nokia.com + +*/ +#include +#include +#include +#include +#include +#include +#include +#include + +#include "BCTestPtiEngine.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" +#include "streamlogger.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngine* CBCTestPtiEngine::NewL() + { + CBCTestPtiEngine* self = new( ELeave ) CBCTestPtiEngine(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngine::CBCTestPtiEngine():iEngine(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngine::~CBCTestPtiEngine() + { + TeardownL(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngine::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngine::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngine::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, + REP(Down, 5), + KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngine::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngine::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdPtiEng) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngine::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngine::TestFunctionL() + { + SetupL(); + TestLanguageL(); + TestInfoL(); + TestInputL(); + TestJapaneseInputL(); + TestChineseInputL(); + //TestDictL(); + TestOtherL(); + } + + +void CBCTestPtiEngine::SetupL() + { + iEngine = CPtiEngine::NewL(); + AssertNotNullL(iEngine, _L("pti engine created")); + } + +void CBCTestPtiEngine::TeardownL() + { + if(iEngine) + iEngine->CloseCurrentLanguageL(); + delete iEngine; + iEngine=NULL; + } + +void CBCTestPtiEngine::TestLanguageL() + { + CArrayFixFlat* langs = new (ELeave) CArrayFixFlat(100); + CleanupStack::PushL(langs); + iEngine->GetAvailableLanguagesL(langs); + + AssertTrueL(langs->Count()>0, _L("available languages got")); + CleanupStack::PopAndDestroy( 1 ); // cores, langs + + RArray langRefs; + iEngine->GetAvailableLanguagesL(langRefs); + AssertTrueL(langRefs.Count()>0, _L("available languages got into RArray")); + + // + //activate + // + if(langRefs.Count()) + { + MPtiLanguage *lan = iEngine->GetLanguage(langRefs[0]); + if (lan->HasInputMode(EPtiEngineMultitapping)) + { + iEngine->ActivateLanguageL(lan->LanguageCode(), EPtiEngineMultitapping); + AssertTrueL( ETrue, _L("activate multitapping")); + } + else + { + iEngine->ActivateLanguageL(lan->LanguageCode(), EPtiEnginePredictive); + AssertTrueL( ETrue, _L("activate predictive")); + } + } + + langRefs.Close(); + } + + +void CBCTestPtiEngine::TestInfoL() + { + TBuf<16> msg; + msg.Format(_L("num of lan: %d"), iEngine->NumberOfLanguages()); + msg.ZeroTerminate(); + AssertTrueL(iEngine->NumberOfLanguages()>0, msg); + + if (iEngine->InputMode() == EPtiEngineMultitapping) + { + AssertTrueL(ETrue, _L("input mode is Multitapping")); + } + else + { + AssertTrueL(ETrue, _L("input mode is Predictive")); + } + + // localized language name + TFileName localName; + iEngine->GetLocalizedLanguageName(31, localName); //31 is chinese? + localName.ZeroTerminate(); + AssertTrueL(ETrue, localName); + + //observer + MPtiObserver* obs = iEngine->Observer(); + AssertTrueL(ETrue, _L("observer got")); + iEngine->SetObserver(obs); + AssertTrueL(ETrue, _L("observer set")); + } + +void CBCTestPtiEngine::TestInputL() + { + TestInputModeL(); + TestMultitappingL(); + TestPredictL(); + TestLastKeyL(); + TestNavigationL(); + TestReorderingL(); + } + +void CBCTestPtiEngine::TestMultitappingL() + { + //multitapping + iEngine->ActivateLanguageL(ELangEnglish, EPtiEngineMultitapping); + iEngine->AppendKeyPress(EPtiKey3); + iEngine->AppendKeyPress(EPtiKey6); + iEngine->AppendKeyPress(EPtiKey6); + iEngine->AppendKeyPress(EPtiKey6); + iEngine->AppendKeyPress(EPtiKey4); + _LIT(KDog, "dog"); + AssertTrueL( iEngine->CurrentWord()==KDog, _L("multityping input verified")); + + // commit + AssertIntL(KErrNone, iEngine->CommitCurrentWord(), + _L("Tell engine that current word was accepted")); + + // set external key map + TInt ret(0); + TBuf<5> testLit; + testLit.Copy(_L("abcd")); + TRAPD(err, ret = iEngine->SetExternalKeyMapL(EPtiEngineMultitapping, EPtiKey5, + testLit, EPtiCaseUpper)); + if ((ret == KErrNone) || (err != KErrNone)) + { + AssertTrueL(ETrue, _L("set external key map failure")); + } + AssertTrueL(ETrue, _L("external key map set")); + } + +static void SimuInput(CPtiEngine* aEngine, const TDesC& aKeys) + { + for(int i=0; iDeleteKeyPress(); + } + else + { + aEngine->AppendKeyPress(aEngine->CharacterToKey(aKeys[i])); + } + } + } + +void CBCTestPtiEngine::TestPredictL() + { + //predictive + iEngine->ActivateLanguageL(ELangEnglish, EPtiEnginePredictive); + SimuInput(iEngine, _L("this")); + + TBuf<32> msg=_L("current word is: "); + msg.Append(iEngine->CurrentWord()); //may be "this" + msg.ZeroTerminate(); + AssertTrueL( ETrue, msg); + + // next + msg=_L("next word is: "); + msg.Append(iEngine->NextCandidate()); // Move on to next candidate. + msg.ZeroTerminate(); + AssertTrueL( ETrue, msg); + iEngine->CommitCurrentWord(); + + // delete + SimuInput(iEngine, _L("8447")); + msg = _L("current word after del is: "); + msg.Append(iEngine->DeleteKeyPress()); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + // reject + iEngine->ClearCurrentWord(); + AssertTrueL(ETrue, _L("reject current word")); + + // char2key + AssertIntL(EPtiKey7, iEngine->CharacterToKey('s'), _L("char 's' map to key 7")); + + // candidate list + iEngine->ClearCurrentWord(); + CDesCArray* cands = new (ELeave) CDesCArrayFlat(16); + CleanupStack::PushL(cands); + + SimuInput(iEngine, _L("8447")); + iEngine->GetCandidateListL(*cands); + msg=_L("candidates: "); + for (int i = 0; i < cands->Count(); ++i) + { + msg.Append(cands->MdcaPoint(i)); + msg.Append(_L(", ")); + } + msg.ZeroTerminate(); + AssertIntL(cands->Count(), iEngine->NumberOfCandidates(), msg); + CleanupStack::PopAndDestroy(); // cands + + // set current word + iEngine->SetCurrentWord(_L("dog")); + SimuInput(iEngine, _L("t")); + msg=_L("dog+t change to: "); + msg.Append(iEngine->CurrentWord()); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } + +void CBCTestPtiEngine::TestInputModeL() + { + // AssertIntL(iEngine->SetInputMode(EPtiEngineMultitapping), KErrNone, + // _L("set input mode to multitapping")); + // AssertIntL(iEngine->SetInputMode(EPtiEnginePredictive), KErrNone, + // _L("set input mode to predictive")); + // AssertIntL(iEngine->SetInputMode(EPtiEngineNumeric), KErrNone, + // _L("set input mode to numeric")); + + TInt err = iEngine->SetInputMode(EPtiEngineMultitapping); + if(err == KErrNoSuitableCore) + AssertIntL(KErrNoSuitableCore, err, _L("set input mode to multitapping not supported for current language")); + else + AssertIntL(KErrNone, err, _L("set input mode to multitapping")); + + err = iEngine->SetInputMode(EPtiEnginePredictive); + if(err == KErrNoSuitableCore) + AssertIntL(KErrNoSuitableCore, err, _L("set input mode to predictive not supported for current language")); + else + AssertIntL(KErrNone, err, _L("set input mode to predictive")); + + err = iEngine->SetInputMode(EPtiEngineNumeric); + if(err == KErrNoSuitableCore) + AssertIntL(KErrNoSuitableCore, err, _L("set input mode to numeric not supported for current language")); + else + AssertIntL(KErrNone, err, _L("set input mode to numeric")); + + // set case + iEngine->SetCase(EPtiCaseUpper); + AssertIntL(EPtiCaseUpper, iEngine->Case(), _L("upper case set")); + + iEngine->SetCase(EPtiCaseLower); + AssertIntL(EPtiCaseLower, iEngine->Case(), _L("lower case set")); + } + +void CBCTestPtiEngine::TestDictL() + { + CDesCArrayFlat* words = new (ELeave) CDesCArrayFlat(5); + CleanupStack::PushL( words ); + words->AppendL(_L("lorem")); + words->AppendL(_L("ipsum")); + words->AppendL(_L("dolor")); + words->AppendL(_L("sit")); + words->AppendL(_L("amet")); + + TBuf<50> filename(_L("C:\\BCTestLog\\TestUserDict.txt")); + AssertIntL(KErrNotSupported, + iEngine->CreateUserDictionaryL(filename, words, EPtiEngineWordCompletion), + _L("user dict created isn't supported")); + + CleanupStack::PopAndDestroy(); //words + + + TInt err; + //attach + MPtiUserDictionary* dict = iEngine->AttachUserDictionaryL(filename); + if(dict) + { + AssertTrueL(ETrue, _L("user dict attached")); + } + else + { + AssertTrueL(ETrue, _L("user dict attached failure")); + } + + //detach + if(iEngine->DetachUserDictionary(filename) == KErrNone) + { + AssertTrueL(ETrue, _L("user dict detach")); + } + else + { + AssertTrueL(ETrue, _L("User dict detach failure")); + } + + if(iEngine->DetachUserDictionary(0) == KErrNone) + { + AssertTrueL(ETrue, _L("user dict detach by ID")); + } + else + { + AssertTrueL(ETrue, _L("User dict detach by ID failure")); + } + + //entry + TFileName msg; + TPtiUserDictionaryEntry entry(_L("foobar")); + + TInt number = iEngine->NumberOfEntriesInUserDictionary(); + if(number == KErrNotSupported) + { + AssertTrueL(ETrue, _L("user dict doesn't support entry")); + } + else + { + msg.Format(_L("total %d entries"), number); + AssertTrueL(ETrue, msg); + } + + err=iEngine->AddUserDictionaryEntry(entry); + msg.Format(_L("add entry returns: %d"), err); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + err=iEngine->AddUserDictionaryEntry(entry, 0); + msg.Format(_L("add entry with ID 0 returns: %d"), err); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + err=iEngine->RemoveEntryFromUserDictionary(entry); + msg.Format(_L("remove entry returns: %d"), err); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + err=iEngine->RemoveEntryFromUserDictionary(entry, 0); + msg.Format(_L("remove entry with ID 0 returns: %d"), err); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + err = iEngine->GetUserDictionaryEntry(0, entry); + msg.Format(_L("get first entry returns: %d"), err); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + dict = iEngine->DefaultUserDictionary(EPtiEnginePinyin); + if(dict) + { + AssertNotNullL(dict, _L("dict for Pinyin found")); + } + else + { + AssertTrueL(ETrue, _L("dict for Pinyin not found")); + } + } + +void CBCTestPtiEngine::TestLastKeyL() + { + iEngine->ClearCurrentWord(); + AssertIntL(EPtiKeyNone, iEngine->LastEnteredKey(), _L("none last entered key")); + + SimuInput(iEngine, _L("dog")); + AssertIntL(EPtiKeyGHI, iEngine->LastEnteredKey(), _L("last key for 'dog' is GHI")); + } + +void CBCTestPtiEngine::TestNavigationL() + { + iEngine->ClearCurrentWord(); + SimuInput(iEngine, _L("46873")); + + CDesCArray* cands = new (ELeave) CDesCArrayFlat(16); + CleanupStack::PushL(cands); + + iEngine->GetCandidateListL(*cands); + AssertIntL(0, iEngine->FirstCandidate().Compare(cands->MdcaPoint(0)), + _L("First candidate verified")); + + for (int i = 1; i < cands->Count(); ++i) + { + AssertIntL(0, iEngine->NextCandidate().Compare(cands->MdcaPoint(i)), + _L("next candidate verified")); + } + + for (int i = cands->Count() - 2; i >= 0; --i) + { + AssertIntL(0, iEngine->PreviousCandidate().Compare(cands->MdcaPoint(i)), + _L("Previous candidate verified")); + } + + CleanupStack::PopAndDestroy(); // cands + } + +void CBCTestPtiEngine::TestReorderingL() + { + TInt err=iEngine->SetReordering(ETrue); + if(err == KErrNone) + { + AssertIntL(KErrNone, err, _L("set reordering")); + iEngine->ClearCurrentWord(); + SimuInput(iEngine, _L("364")); + + // get the third candidate + TBuf<64> word; + iEngine->NextCandidate(); + iEngine->NextCandidate(); + word.Copy(iEngine->NextCandidate()); + + // comit it 4 times + for(int i=0; i<4; ++i) + { + iEngine->SetCurrentWord(word); + iEngine->CommitCurrentWord(); + } + SimuInput(iEngine, _L("364")); + AssertIntL(0, iEngine->CurrentWord().Compare(word), + _L("reordered candidate verified")); + iEngine->SetReordering(EFalse); + } + else + { + AssertIntL(KErrNotSupported, err, + _L("set reordering isn't supported")); + } + } + +CPtiEngine* CreateEngineL(TInt aLanguage, TPtiEngineInputMode aMode) + { + CPtiEngine* engine = CPtiEngine::NewL(); + MPtiLanguage* lang = engine->GetLanguage(aLanguage); + + TBuf<100> numStr; + + if (!lang) + { + goto fail; + } + + if (!lang->HasInputMode(aMode)) + { + goto fail; + } + + TInt err = engine->ActivateLanguageL(aLanguage, aMode); + if (err != KErrNone) + { + goto fail; + } + + return engine; + +fail: + delete engine; + return NULL; + } + +void CBCTestPtiEngine::TestChineseInputL() + { + TeardownL(); + + if((iEngine = CreateEngineL(ELangPrcChinese, EPtiEngineStroke))!=NULL) + { + AssertNotNullL(iEngine, _L("Chinese Pinyin activated")); + SimuInput(iEngine, _L("wei")); + + int page=0; + iEngine->SetCandidatePageLength(20); + AssertTrueL(ETrue, _L("page length set to 20")); + for(TPtrC str=iEngine->CandidatePage(); + iEngine->MoreCandidatePages(); + iEngine->NextCandidatePage()) + { + TFileName res; + res.Format(_L("page[%d]: "), page++); + for(int j=0; j")); + } + res.ZeroTerminate(); + AssertTrueL(ETrue, res); + + if(page>10) + { + break; + } + }//end of for + + //predict + iEngine->PreviousCandidatePage(); + TPtrC aChar=iEngine->CandidatePage(); + iEngine->SetPredictiveChineseChar(aChar); + AssertTrueL(ETrue, _L("next chinese char predicted")); + + //test next candidate list + iEngine->CommitCurrentWord(); + CDesCArray* cands = new (ELeave) CDesCArrayFlat(16); + CleanupStack::PushL(cands); + + TRAPD(err, iEngine->GetNextWordCandidateListL(*cands)); + if(err == KErrNotSupported) + { + AssertTrueL(ETrue, _L("predict next candidate not supported")); + } + else{ + TFileName msg=_L("candidates: "); + for (int i = 0; i < cands->Count(); ++i) + { + msg.Append(cands->MdcaPoint(i)); + msg.Append(_L(", ")); + } + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + } + CleanupStack::PopAndDestroy(); // cands + + //test conversion + TInt convCap=iEngine->AvailableCharConversions(); + if((convCap & EPtiSimplifiedToComplex)!=0) + { + AssertTrueL(ETrue, _L("can convert from simplified chinese to traditional")); + } + else + { + AssertIntL(0, convCap, _L("conv capability:")); + } + char inbuf[]={0x76, 0x84}; + char outbuf[]={0,0}; + iEngine->CharConversion(EPtiSimplifiedToComplex, inbuf, 2, outbuf); + AssertTrueL(ETrue, _L("tried char conversion")); + + //Chinese Varient + RArray modes; + iEngine->GetModeNameIndexL(EPtiChineseVariantPrc, modes); + AssertTrueL(ETrue, _L("Chinese varient index table got")); + modes.Close(); + + //phrase list + iEngine->ClearCurrentWord(); + SimuInput(iEngine, _L("wei")); + cands = new (ELeave) CDesCArrayFlat(16); + CleanupStack::PushL(cands); + iEngine->GetChinesePhraseCandidatesL(*cands); + AssertTrueL(ETrue, _L("Chinese phrase candidate list got")); + CleanupStack::PopAndDestroy(); //cands + + TestSpellL(); + TestDictL();// test Pinyin dict. + } + else + { + AssertTrueL(ETrue, _L("unable to activate Chinese Pinyin")); + if ( iEngine == NULL ) + { + SetupL(); + } + iEngine->ActivateLanguageL(ELangEnglish, EPtiEnginePredictive); + } + } + +void CBCTestPtiEngine::TestSpellL() + { + TBuf<8> spell; + TInt err=iEngine->GetSpelling(0x7684, spell, EPtiPinyin); + if(err==KErrNotSupported) + { + AssertTrueL(ETrue, _L("get spelling not support")); + } + else if(err==KErrNone) + { + spell.ZeroTerminate(); + AssertTrueL(ETrue, spell); + } + else + { + AssertTrueL(ETrue, _L("get spelling failuer")); + } + + //phonetic + iEngine->ClearCurrentWord(); + SimuInput(iEngine, _L("wei")); + TInt number = iEngine->PhoneticSpellingCount(); + TFileName msg; + msg.Format(_L("phonetic spelling count: %d"), number); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + spell=iEngine->GetPhoneticSpelling(0); + AssertTrueL(ETrue, _L("get phonetic spelling for 0")); + + TBool result = iEngine->SelectPhoneticSpelling(0); + AssertTrueL(ETrue, _L("select phonetic spelling for 0")); + + number = iEngine->SelectedPhoneticSpelling(); + msg.Format(_L("selected phonetic spelling: %d"), number); + msg.ZeroTerminate(); + AssertTrueL(ETrue, msg); + + CDesCArray* array = new (ELeave) CDesCArrayFlat(16); + CleanupStack::PushL(array); + iEngine->GetPhoneticSpellingsL(*array); + AssertTrueL(ETrue, _L("phonetic spellings got")); + CleanupStack::PopAndDestroy(); //array + } + +void CBCTestPtiEngine::TestOtherL() + { + iEngine->HandleCommandL(EPtiCommandNone); + AssertTrueL(ETrue, _L("handle command")); + + iEngine->EnableToneMarks(ETrue); + iEngine->EnableToneMarks(EFalse); + iEngine->ResetToneMark(); + AssertTrueL(ETrue, _L("tone mark set and reset")); + + TText result; + iEngine->ToneMark(result); + AssertTrueL(ETrue, _L("tone mark got")); + + if(iEngine->IsToneMarkValidForSpelling()) + AssertTrueL(ETrue, _L("tone mark is valid for spelling")); + else + AssertTrueL(ETrue, _L("tone mark is invalid for spelling")); + + if(iEngine->IncrementToneMark(ETrue)) + AssertTrueL(ETrue, _L("new tone mark was found and set")); + else + AssertTrueL(ETrue, _L("didn't found new tone mark")); + + if(iEngine->SetToneMark(0)) + AssertTrueL(ETrue, _L("tone mark was legal")); + else + AssertTrueL(ETrue, _L("illegal tone mark")); + + //key mapping + TBuf<8> mapRes; + iEngine->MappingDataForKey(EPtiKey2, mapRes, EPtiCaseLower); + AssertTrueL(ETrue, _L("mapping data for key")); + + RArray qwertyMapRes; + iEngine->GetNumericModeKeysForQwertyL(ELangEnglish, qwertyMapRes); + AssertTrueL(ETrue, _L("get numeric mode keys for qwerty keys")); + qwertyMapRes.Close(); + } + +void CBCTestPtiEngine::TestJapaneseInputL() + { + TeardownL(); + + if((iEngine = CreateEngineL(ELangJapanese, /*EPtiEngineHiraganaKanji*/EPtiEnginePredictive))!=NULL) + { + AssertTrueL(ETrue, _L("Japanese Hirakana Kanji activated")); + } + else + { + AssertTrueL(ETrue, _L("can not activate Japanese input")); + if ( iEngine == NULL ) + { + SetupL(); + } + iEngine->ActivateLanguageL(ELangEnglish, EPtiEnginePredictive); + } + + MPtiEngineCompositionDataInterface* data=iEngine->CompositionData(); + AssertTrueL(ETrue, _L("Japanese composition data IF got")); + + SimuInput(iEngine, _L("nihon")); + TPtrC str=iEngine->ReadingTextL(); + AssertTrueL(ETrue, _L("reading text for japanese input")); + iEngine->ClearCurrentWord(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestptiengview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,144 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "BCTestPtiEng.hrh" +#include +#include "BCTestPtiEngview.h" +#include "BCTestPtiEngcontainer.h" +#include "bctestutil.h" +#include "BCTestuserdict.h" +#include "bctestlan.h" +#include "bctestkeymap.h" +#include "bctestqwertymap.h" +#include "bctestlandb.h" +#include "bctestptiengine.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngView* CBCTestPtiEngView::NewL() + { + CBCTestPtiEngView* self = new( ELeave ) CBCTestPtiEngView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngView::CBCTestPtiEngView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngView::ConstructL() + { + BaseConstructL( R_BCTESTPTIENG_VIEW ); + + iContainer = new( ELeave ) CBCTestPtiEngContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + iTestUtil->AddTestCaseL( CBCTestUserDict::NewL( iContainer ), + _L("Test Pti User Dict") ); + iTestUtil->AddTestCaseL( CBCTestLanguage::NewL(), + _L("Test Pti Language") ); + iTestUtil->AddTestCaseL( CBCTestKeymap::NewL(), + _L("Test Pti Keymap") ); + iTestUtil->AddTestCaseL( CBCTestQwertyMap::NewL(), + _L("Test Qwerty map") ); + iTestUtil->AddTestCaseL( CBCTestLanDB::NewL(), + _L("Test Language Database") ); + iTestUtil->AddTestCaseL( CBCTestPtiEngine::NewL(), + _L("Test Pti Engine") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPtiEngView::~CBCTestPtiEngView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestPtiEngView::Id() const + { + return KBCTestPtiEngViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPtiEngView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestPtiEngView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestqwertymap.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestqwertymap.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,436 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "BCTestQwertymap.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" +#include "streamlogger.h" + +const TInt KPtiQwertyNumKeys = 44; + +// +// the oder of Qwerty can be found in ptidefs.h. +// +const char LowerKeys[]= + "1234567890" + "+-,;.#/'" + "abcdefghijklmnopqrstuvwxyz"; + +const char UpperKeys[]= + "!@[$%^&*()" + "=_<:>]?\"" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + +// +// helper class +// +struct TKeyMap + { + static const int KSize = + KPtiQwertyNumKeys*2 // char, '\t' + +2 // '\n', PAD + +KPtiQwertyNumKeys*2 // CHAR, '\t' + +1; // '\0' as terminator + + static TKeyMap& Instance() + { + static TKeyMap inst; + return inst; + } + + const TUint16* AsUint16() + { + return iBuffer; + } + + const TDesC& AsDescriptor() + { + return iDes; + } + +private: + TKeyMap() + { + TUint16* ptr = iBuffer; + for(int i=0; i iDes; + }; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestQwertyMap* CBCTestQwertyMap::NewL() + { + CBCTestQwertyMap* self = new( ELeave ) CBCTestQwertyMap(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestQwertyMap::CBCTestQwertyMap():iMap(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestQwertyMap::~CBCTestQwertyMap() + { + Teardown(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestQwertyMap::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestQwertyMap::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestQwertyMap::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, + REP(Down, 3), + KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestQwertyMap::RunL +// --------------------------------------------------------------------------- +// +void CBCTestQwertyMap::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdQwertyMap) + { + return; + } + + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestQwertyMap::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestQwertyMap::TestFunctionL() + { + SetupL(); + //TestCreateL(); + TestMapping(); + TestReplaceMappingL(); + TestReverseMapping(); + TestKeyData(); + } + +/* +static void MyConstructL(TDesC& aData) + { + //monk members + HBufC* iData; + HBufC* iDeadKeyData; + RArray iMaps; + RArray iDeadKeyMaps; + + TBool deadkey = EFalse; + + iData = HBufC::NewL(aData.Length()); + iDeadKeyData = HBufC::NewL(aData.Length()); + + TInt curKey = 0, i, index = 0; + TInt deadIndex = 0; + const TUint16* ptr = aData.Ptr(); + TPtr dest(iData->Des()); + TPtr deadDest(iDeadKeyData->Des()); + + TPtiKeyMapping map; + map.iNumChars = 0; + for (i = 0; i < KPtiQwertyNumKeys * 2; i++) + { + iMaps.AppendL(map); + iDeadKeyMaps.AppendL(map); + } + CERR<<_L("map init with size: ")< iMaps.Count()) + { + User::Leave(KErrCorrupt); + } + iMaps[curKey].iIndex = index; + iDeadKeyMaps[curKey].iIndex = deadIndex; + continue; + } + else if (ptr[i] == '\v') + { + deadkey = ETrue; + } + else if (ptr[i] == '\n') + { + // This is last character for lower keys. + // Jump to beginning of upper keys. + curKey++; + deadkey = EFalse; + if (curKey > iMaps.Count()) + { + User::Leave(KErrCorrupt); + } + iMaps[curKey].iIndex = index; + iDeadKeyMaps[curKey].iIndex = deadIndex; + i++; + continue; + } + + if (!deadkey) + { + dest.Append(ptr[i]); + index++; + iMaps[curKey].iNumChars++; + } + else + { + deadDest.Append(ptr[i]); + deadIndex++; + iDeadKeyMaps[curKey].iNumChars++; + } + } + // monk destruct + iMaps.Close(); + delete iData; + iDeadKeyMaps.Close(); + delete iDeadKeyData; + } +*/ + +void CBCTestQwertyMap::SetupL() + { + TRAPD(err, iMap = static_cast(CreateKeyMapL())); + if(err == KErrCorrupt) + { + AssertTrueL(ETrue, _L("data format err")); + } + else + { + AssertNotNullL(iMap, _L("created by NewL from descriptor")); + } + } + +void CBCTestQwertyMap::Teardown() + { + delete iMap; + iMap = NULL; + } + +void CBCTestQwertyMap::TestCreateL() + { + TInt16 charBuffer[1 //map count + +(KPtiQwertyNumKeys*2)*2 //map {index, numChars} * count + +1 //data count + +(KPtiQwertyNumKeys*2)*2 //data buffer: lower case (char, \t) + upper case (CHAR \t) + +1 //dead data count + +1 //dead data buffer + ]; + + RArray maps; + for (TInt i = 0; i < KPtiQwertyNumKeys * 2; i++) + { + TPtiKeyMapping map = {0, 0}; + maps.AppendL( map ); + } + + TInt16* ptr = charBuffer+1+maps.Count()*2+1; + TInt curKey=0; + TInt index=0; + const TUint16* keys = TKeyMap::Instance().AsUint16(); + for (TInt i = 0; i < TKeyMap::KSize-1; ++i) + { + if (keys[i] == '\t' || keys[i] == '\n') + { + maps[++curKey].iIndex = index; + if(keys[i] == '\n'){ + ++i; + } + continue; + } + + *(ptr+index)= keys[i]; + index++; + maps[curKey].iNumChars++; + } + + charBuffer[0]=maps.Count(); + ptr=charBuffer+1; + for(TInt i=0; iStartMapping(EPtiKeyQwertyA, EPtiCaseLower), + _L("press a got 'a'")); + AssertIntL( + TUint('A'), iMap->StartMapping(EPtiKeyQwertyA, EPtiCaseUpper), + _L("press Shift a got 'A'")); + AssertIntL( + TUint('^'), iMap->StartMapping(EPtiKeyQwerty6, EPtiCaseUpper), + _L("press Shift 6 got '^'")); + } + +void CBCTestQwertyMap::TestNextKey() + { + TBool isAppend = ETrue; + iMap->StartMapping(EPtiKeyQwertyA, EPtiCaseLower); + AssertIntL( TUint16('a'), iMap->NextKey(EPtiKeyQwertyA, isAppend, EPtiCaseLower), + _L("press a, press a still got 'a'")); + + AssertTrueL( !isAppend, _L("and 'a' is not append")); + + AssertIntL( TUint16('A'), iMap->NextKey(EPtiKeyQwertyA, isAppend, EPtiCaseUpper), + _L("then, press Shift a got 'A'")); + + AssertIntL( TUint16('b'), iMap->NextKey(EPtiKeyQwertyB, isAppend, EPtiCaseLower), + _L("then press b as next key, got 'b'")); + } + +void CBCTestQwertyMap::TestReplaceMappingL() + { + TBool isAppend = ETrue; + _LIT(KNewMapLower, "`"); + _LIT(KNewMapUpper, "~"); + TBuf<5> lowerMap(KNewMapLower); + TBuf<5> upperMap(KNewMapUpper); + + AssertIntL( KErrNone, iMap->ReplaceKeyMapL(EPtiKeyQwerty1, lowerMap, EPtiCaseLower), + _L("Lower case mapping for Key 1 change to `")); + AssertIntL( KErrNone, iMap->ReplaceKeyMapL(EPtiKeyQwerty1, upperMap, EPtiCaseUpper), + _L("Upper case mapping for Key 1 change to ~")); + + AssertIntL( TUint('`'), iMap->StartMapping(EPtiKeyQwerty1, EPtiCaseLower), + _L("press 1 got '`'")); + AssertIntL( TUint16('`'), iMap->NextKey(EPtiKeyQwerty1, isAppend, EPtiCaseLower), + _L("press 1, again still got '`'")); + AssertIntL( TUint16('~'), iMap->NextKey(EPtiKeyQwerty1, isAppend, EPtiCaseUpper), + _L("then, press Shift 1 got '~'")); + AssertIntL( TUint16('2'), iMap->NextKey(EPtiKeyQwerty2, isAppend, EPtiCaseLower), + _L("then press 2 as next key, got '2'")); + } + +void CBCTestQwertyMap::TestReverseMapping() + { + AssertIntL( EPtiKeyQwerty2, iMap->KeyForCharacter('@'), + _L("'@' is mapped by key 2")); + AssertIntL( EPtiKeyQwertyW, iMap->KeyForCharacter('W'), + _L("'W' is mapped by key w")); + } + +void CBCTestQwertyMap::TestKeyData() + { + _LIT(KNewMapLower, "`"); + _LIT(KNewMapUpper, "~"); + TBuf<8> mapStr; + + iMap->GetDataForKey(EPtiKeyQwerty1, mapStr, EPtiCaseLower); + AssertTrueL( mapStr == KNewMapLower, + _L("Lower case data for key 1 is `")); + + iMap->GetDataForKey(EPtiKeyQwerty1, mapStr, EPtiCaseUpper); + AssertTrueL( mapStr == KNewMapUpper, + _L("Upper case data for key 1 is ~")); + } + +//static +MPtiKeyMappings* CBCTestQwertyMap::CreateKeyMapL() + { + TBuf keyStr(TKeyMap::Instance().AsDescriptor()); + return CPtiQwertyKeyMappings::NewL(keyStr); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestuserdict.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestptieng/src/bctestuserdict.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,197 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "BCTestUserDict.h" +#include "BCTestPtiEngcontainer.h" +#include "BCTestPtiEng.hrh" + +const TInt KMaxSize = 32; +_LIT(KFileName, "C:\\BCTestLog\\TestUserDict.txt"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestUserDict* CBCTestUserDict::NewL( + CBCTestPtiEngContainer* aContainer ) + { + CBCTestUserDict* self = new( ELeave ) CBCTestUserDict( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestUserDict::CBCTestUserDict( + CBCTestPtiEngContainer* aContainer ) + : iContainer( aContainer ), iDict(NULL) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUserDict::~CBCTestUserDict() + { + Reset(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUserDict::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestUserDict::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestUserDict::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestUserDict::RunL +// --------------------------------------------------------------------------- +// +void CBCTestUserDict::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdPtiUserDict) + { + return; + } + + ReleaseCaseL(); + PrepareCaseL( aCmd ); + TestFunctionL(); + } + +// --------------------------------------------------------------------------- +// CBCTestUserDict::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestUserDict::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdPtiUserDict: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestUserDict::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestUserDict::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestUserDict::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestUserDict::TestFunctionL() + { + TestCreateL(); + TestSetDataL(); + TestSaveDataL(); + TestReloadL(); + } + +void CBCTestUserDict::TestCreateL() + { + iDict = CPtiUserDictionary::NewL(KMaxSize); + AssertNotNullL(iDict, _L("CPtiUserDictionary::NewL(iMax) create")); + } + +void CBCTestUserDict::TestSetDataL() + { + TUint8 data[] = {'h', 'e', 'l', 'l', 'o'}; + TInt size = sizeof(data)/sizeof(TUint8); + iDict->SetDataL( + static_cast(data), + size); + AssertTrueL(ETrue, _L("CPtiUserDictionary::SetDataL() invoked")); + + AssertTrueL( iDict->SpaceLeft() == -1, _L("SpaceLeft() always returns -1")); + } + +void CBCTestUserDict::TestSaveDataL() + { + TBuf filename(KFileName); + iDict->SetFileName(filename); + + RFs& fs = CEikonEnv::Static()->FsSession(); + RFile file; + if ( file.Open( fs, filename, EFileWrite | EFileShareAny ) != KErrNone ) + { + file.Create( fs, filename, EFileWrite | EFileShareAny ); + } + + file.Close(); + + AssertTrueL(KErrNone == iDict->WriteL(), _L("WriteL called WriteL(filename)")); + } + +void CBCTestUserDict::TestReloadL() + { + Reset(); + TBuf filename(KFileName); + iDict = CPtiUserDictionary::NewL(filename, KMaxSize); + + AssertNotNullL(iDict, _L("reload by NewL(filename, iMax)")); + } + +void CBCTestUserDict::Reset() + { + delete iDict; + iDict = NULL; + } + +// End of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bctestquery.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bctestquery.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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: This is project specification file for the AknAtList +* +*/ + + +TARGET BCTestQuery.exe +TARGETTYPE exe +UID 0x0 0x200045C9 +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin + +START RESOURCE bctestquery.rss +HEADER +TARGETPATH /resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestqueryapp.cpp +SOURCE bctestqueryappUi.cpp +SOURCE bctestquerydocument.cpp +SOURCE bctestquerycontainer.cpp +SOURCE bctestqueryview.cpp +SOURCE bctestlistquery.cpp +SOURCE bctestquerydialog.cpp +SOURCE bctestqueryvalue.cpp + +USERINCLUDE . ../Inc +// for autotest +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY eikctl.lib +LIBRARY bafl.lib +LIBRARY eikdlg.lib +LIBRARY AknSkins.lib +LIBRARY AknIcon.lib +LIBRARY egul.lib +LIBRARY gdi.lib +LIBRARY efsrv.lib +LIBRARY estor.lib +LIBRARY insock.lib +LIBRARY bctestutil.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestquery_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bctestquery.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bctestquery.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1005 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME BCQE + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestquery.hrh" +#include "bctestquery.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE + +#define BCTESTQUERY_NUMBER_EDITOR_MIN 0 +#define BCTESTQUERY_NUMBER_EDITOR_MAX 1000000 + +#define BCTESTQUERY_LISTBOX_HEIGHT 3 +#define BCTESTQUERY_LISTBOX_WIDTH 3 + +//For Ip address editor +#define IPADDRESS_MIN_FIRST_FIELD_VALUE 0 +#define IPADDRESS_MIN_SECOND_FIELD_VALUE 0 +#define IPADDRESS_MIN_THIRD_FIELD_VALUE 0 +#define IPADDRESS_MIN_FOURTH_FIELD_VALUE 0 +#define IPADDRESS_MAX_FIRST_FIELD_VALUE 255 +#define IPADDRESS_MAX_SECOND_FIELD_VALUE 255 +#define IPADDRESS_MAX_THIRD_FIELD_VALUE 255 +#define IPADDRESS_MAX_FOURTH_FIELD_VALUE 255 + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestQuery"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestquery_menubar_main; + cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestquery_localisable_app_info + { + short_caption = qtn_apps_bcqe_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_bcqe_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_view +// AVKON_VIEW for CBCTestQueryView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestquery_view + { + menubar = r_bctestquery_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestquery_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestquery_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestquery_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestquery_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestquery_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestquery_menu_exit; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestquery_case_menu + { + items = + { + MENU_ITEM + { + cascade = r_bctestquery_listquery_menu; + txt = qtn_bctestlist_menu_listquery; + }, + MENU_ITEM + { + cascade = r_bctestquery_querydlg_menu; + txt = qtn_bctestlist_menu_querydlg; + }, + MENU_ITEM + { + cascade = r_bctestquery_queryvalue_menu; + txt = qtn_bctestlist_menu_queryvalue; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_listquery_menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestquery_listquery_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline01; + txt = qtn_bctestquery_outline01; + }, + MENU_ITEM + { + command = EBCTestCmdOutline02; + txt = qtn_bctestquery_outline02; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_querydlg_menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestquery_querydlg_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline03; + txt = qtn_bctestquery_outline03; + }, + MENU_ITEM + { + command = EBCTestCmdOutline04; + txt = qtn_bctestquery_outline04; + }, + MENU_ITEM + { + command = EBCTestCmdOutline05; + txt = qtn_bctestquery_outline05; + }, + MENU_ITEM + { + command = EBCTestCmdOutline06; + txt = qtn_bctestquery_outline06; + }, + MENU_ITEM + { + command = EBCTestCmdOutline07; + txt = qtn_bctestquery_outline07; + }, + MENU_ITEM + { + command = EBCTestCmdOutline08; + txt = qtn_bctestquery_outline08; + }, + MENU_ITEM + { + command = EBCTestCmdOutline09; + txt = qtn_bctestquery_outline09; + }, + MENU_ITEM + { + command = EBCTestCmdOutline10; + txt = qtn_bctestquery_outline10; + }, + MENU_ITEM + { + command = EBCTestCmdOutline11; + txt = qtn_bctestquery_outline11; + }, + MENU_ITEM + { + command = EBCTestCmdOutline12; + txt = qtn_bctestquery_outline12; + }, + MENU_ITEM + { + command = EBCTestCmdOutline13; + txt = qtn_bctestquery_outline13; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_queryvalue_menu +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestquery_queryvalue_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline14; + txt = qtn_bctestquery_outline14; + }, + MENU_ITEM + { + command = EBCTestCmdOutline15; + txt = qtn_bctestquery_outline15; + }, + MENU_ITEM + { + command = EBCTestCmdOutline16; + txt = qtn_bctestquery_outline16; + }, + MENU_ITEM + { + command = EBCTestCmdOutline17; + txt = qtn_bctestquery_outline17; + }, + MENU_ITEM + { + command = EBCTestCmdOutline18; + txt = qtn_bctestquery_outline18; + }, + MENU_ITEM + { + command = EBCTestCmdOutline19; + txt = qtn_bctestquery_outline19; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_multi_line_number_and_number +// Resource of MultiLine Data Query. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_multi_line_number_and_number + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtMultilineQuery; + id = EMultilineFirstLine; + control = AVKON_DATA_QUERY + { + layout = EMultiDataFirstNumEd; + label = qtn_bctestquery_num_label_text; + control = AVKON_INTEGER_EDWIN + { + min = BCTESTQUERY_NUMBER_EDITOR_MIN; + max = BCTESTQUERY_NUMBER_EDITOR_MAX; + }; + }; + }, + DLG_LINE + { + type = EAknCtMultilineQuery; + id = EMultilineSecondLine; + control = AVKON_DATA_QUERY + { + layout = EMultiDataSecondNumEd; + label = qtn_bctestquery_num_label_text; + control = AVKON_INTEGER_EDWIN + { + min = BCTESTQUERY_NUMBER_EDITOR_MIN; + max = BCTESTQUERY_NUMBER_EDITOR_MAX; + }; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_multi_line_ip_address +// Resource of Multiline IP Address Query. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_multi_line_ip_address + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknExtCtMultilineQuery; + id = EMultilineFirstLine; + control = AVKON_DATA_QUERY + { + layout = EMultiDataFirstIpEd; + label = qtn_bctestquery_ip_query_label_text; + control = IP_FIELD_EDITOR + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + }; + }; + }, + DLG_LINE + { + type = EAknExtCtMultilineQuery; + id = EMultilineSecondLine; + control = AVKON_DATA_QUERY + { + layout = EMultiDataSecondIpEd; + label = qtn_bctestquery_ip_query_label_text; + control = IP_FIELD_EDITOR + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + }; + }; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestquery_ip_address +// Resource of IP Address Query. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_ip_address + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknExtCtQuery; + id = EGeneralQuery; + control = AVKON_DATA_QUERY + { + layout = EIpLayout; + label = qtn_bctestquery_ip_query_label_text; + control = IP_FIELD_EDITOR + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + }; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_fixex_point +// Resource of Fixed Point Query. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_fixed_point + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknExtCtQuery; + id = EGeneralQuery; + control= AVKON_DATA_QUERY + { + layout = EFixedPointLayout; + label = qtn_bctestquery_num_label_text; + control = FIXPTED + { + min = BCTESTQUERY_NUMBER_EDITOR_MIN; + max = BCTESTQUERY_NUMBER_EDITOR_MAX; + }; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_multi_selection_query +// Resource of Multi Selection Query. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_multi_selection_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSingleGraphicPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxMultiselectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + array_id = r_bctestquery_multi_selection_query_list_item; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_singlepopupmenu_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_singlepopupmenu_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSinglePopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_singlegraphicheading_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_singlegraphicheading_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSingleGraphicHeadingPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_menudouble_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_menudouble_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtMenuDoublePopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_doublelargegraphic_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_doublelargegraphic_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtDoubleLargeGraphicPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_singleheading_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_singleheading_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSingleHeadingPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_double2_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_double2_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtDouble2PopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_single2graphic_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_single2graphic_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSingle2GraphicPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_doublegraphic_query +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_doublegraphic_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtDoubleGraphicPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_empty_query +// Resource of empty Query. +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestquery_empty_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSingleGraphicPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxSelectionList; + height = BCTESTQUERY_LISTBOX_HEIGHT; + width = BCTESTQUERY_LISTBOX_WIDTH; + }; + heading = qtn_bctestquery_selection_title; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_multi_selection_query_list_item +// Items array for Multi Selection Query +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestquery_multi_selection_query_list_item + { + items = + { + LBUF + { + txt = qtn_bctestquery_selection_item1; + }, + LBUF + { + txt = qtn_bctestquery_selection_item2; + }, + LBUF + { + txt = qtn_bctestquery_selection_item3; + }, + LBUF + { + txt = qtn_bctestquery_selection_item4; + }, + LBUF + { + txt = qtn_bctestquery_selection_item5; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_bmp_animation +// +//----------------------------------------------------------------------------- +// +RESOURCE BMPANIM_DATA r_bctestquery_bmp_animation + { + identifier = 0; + frameinterval = 1; + playmode = 0; + flash = 0; + bmpfile = AVKON_ICON_FILE; + frames = 0; + backgroundframe = 0; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_extcontrol +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_DATA_QUERY r_bctestquery_extcontrol + { + layout = EIpLayout; + label = qtn_bctestquery_ip_query_label_text; + control = IP_FIELD_EDITOR + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_multi_control +// +//----------------------------------------------------------------------------- +// +RESOURCE DLG_LINE r_bctestquery_multi_control + { + type = EAknExtCtMultilineQuery; + id = EMultilineFirstLine; + control = AVKON_DATA_QUERY + { + layout = EMultiDataFirstIpEd; + label = qtn_bctestquery_ip_query_label_text; + control = IP_FIELD_EDITOR + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + }; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_date_format_string +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF32 r_bctestquery_date_format + { + buf = qtn_bctestquery_date_format; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_duration_format +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 r_bctestquery_duration_format + { + buf = qtn_bctestquery_time_format; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_caption +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 r_bctestquery_caption + { + buf = qtn_bctestquery_query_caption; + } +//----------------------------------------------------------------------------- +// +// r_bctestquery_number_format +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 r_bctestquery_number_format + { + buf = qtn_bctestquery_number_format; + } + +//----------------------------------------------------------------------------- +// +// r_bctestquery_time_format +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF40 r_bctestquery_time_format + { + buf = qtn_bctestquery_time_format; + } + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bctestquery_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bctestquery_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045C9 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestQuery"; + + localisable_resource_file = "\\resource\\apps\\BCTestQuery"; + localisable_resource_id = R_BCTESTQUERY_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: Build information +* +*/ + + + + +PRJ_MMPFILES + +bctestquery.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestlistquery.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestlistquery.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,140 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for aknlistquery +* +*/ + +#ifndef C_CBCTESTLISTQUERY_H +#define C_CBCTESTLISTQUERY_H + +#include +#include + +#include "bctestcase.h" + +class CEikonEnv; +class CBCTestQueryContainer; + +/** +* test case for various list classes +*/ +class CBCTestListQuery: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListQuery* NewL( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ); + + /** + * Destructor + */ + virtual ~CBCTestListQuery(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Creates the icon and adds it to the array if it was successful + */ + void CreateIconAndAddToArrayL( CArrayPtr*& aIconsArray, + const TDesC& aIconFile, + TInt aBitmap, TInt aMask = -1); + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + void GraphicIconL( CArrayPtr* aIcons ); + + /** + * Test functions + */ + void TestListQueryDialogL(); + + void TestMessageQueryDialogL(); + + void TestListQuerySetSizeAndPositionL( TInt aResourceId ); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestListQuery( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Not Own + */ + CBCTestQueryContainer* iContainer; + + /** + * Not Own + */ + CEikonEnv* iEnv; + + }; + +/** + * Test protected API of CAknListQueryDialog + */ +class CBCTestListQueryDialog: public CAknListQueryDialog + { + friend class CBCTestListQuery; + +public: + +// constructor + + CBCTestListQueryDialog( TInt* aIndex ); + + CBCTestListQueryDialog( CListBoxView::CSelectionIndexArray* aSelectionIndexArray ); + + }; + +/** + * Test protected API of CAknMessageQueryDialog + */ +class CBCTestMessageQueryDialog: public CAknMessageQueryDialog + { + friend class CBCTestListQuery; + +public: + + CBCTestMessageQueryDialog( const TTone aTone ); + + }; + +#endif // C_CBCTESTLISTQUERY_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquery.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquery.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ +/* +* 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 "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 headers for project BCTestQuery +* +*/ + + +#ifndef BCTESTQUERY_HRH +#define BCTESTQUERY_HRH + +enum TBCTestAppMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + + // Column list boxes + EBCTestCmdOutline01, + EBCTestCmdOutline02, + EBCTestCmdOutline03, + EBCTestCmdOutline04, + EBCTestCmdOutline05, + EBCTestCmdOutline06, + EBCTestCmdOutline07, + EBCTestCmdOutline08, + EBCTestCmdOutline09, + EBCTestCmdOutline10, + EBCTestCmdOutline11, + EBCTestCmdOutline12, + EBCTestCmdOutline13, + EBCTestCmdOutline14, + EBCTestCmdOutline15, + EBCTestCmdOutline16, + EBCTestCmdOutline17, + EBCTestCmdOutline18, + EBCTestCmdOutline19, + EBCTestCmdOutline20, + EBCTestCmdOutline21, + EBCTestCmdOutline22, + EBCTestCmdOutline23, + EBCTestCmdOutline24, + EBCTestCmdOutline25, + EBCTestCmdOutline26, + EBCTestCmdOutline27, + EBCTestCmdOutline28, + EBCTestCmdOutline29, + EBCTestCmdOutline30, + EBCTestCmdOutline31, + EBCTestCmdOutline32, + EBCTestCmdOutline33, + EBCTestCmdOutline34, + EBCTestCmdOutline35, + EBCTestCmdOutline36, + EBCTestCmdOutline37, + EBCTestCmdOutline38, + EBCTestCmdOutline39, + EBCTestCmdOutline40, + EBCTestCmdOutline41, + EBCTestCmdOutline42, + EBCTestCmdOutline43, + EBCTestCmdOutline44, + EBCTestCmdOutline45, + EBCTestCmdOutline46, + EBCTestCmdOutline47, + EBCTestCmdOutline48, + EBCTestCmdOutline49, + EBCTestCmdOutline50, + EBCTestCmdOutline51, + EBCTestCmdOutline52, + EBCTestCmdOutline53, + EBCTestCmdOutline54, + EBCTestCmdOutline55, + EBCTestCmdOutline56, + EBCTestCmdOutline57, + + EProgSoftkeyNextOutline, + + EProgCmdAutoTest + }; + +#endif //BCTESTQUERY_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquery.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquery.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: Localization strings for project BCTestQuery +* +*/ + + +// Caption +#define qtn_apps_bcqe_list "BCTestQuery" +#define qtn_apps_bcqe_grid "BCTestQuery" + +// Menu title +#define qtn_bctestquery_autotest "AutoTest" +#define qtn_bctestquery_menu_exit "Exit" +#define text_softkey_option "Options" +#define qtn_bctestquery_cba_next "Next" + +#define qtn_bctestlist_menu_listquery "List Query" +#define qtn_bctestlist_menu_querydlg "Query Dialog" +#define qtn_bctestlist_menu_queryvalue "Query Value" + +// Item text +#define qtn_bctestquery_selection_title "Ringing :" +#define qtn_bctestquery_selection_item1 "1\tVIP" +#define qtn_bctestquery_selection_item2 "1\tFamily" +#define qtn_bctestquery_selection_item3 "1\tColleogues" +#define qtn_bctestquery_selection_item4 "1\tClients" +#define qtn_bctestquery_selection_item5 "1\tFriends" + + +#define qtn_bctestquery_num_label_text "Enter number :" +#define qtn_bctestquery_ip_query_label_text "IP Address" + +#define qtn_bctestquery_date_format "%2d/%2d/%2d" +#define qtn_bctestquery_time_format "%2d:%2d:%2d:" +#define qtn_bctestquery_number_format "%d" + +#define qtn_bctestquery_query_caption "Query" + +// Menu +#define qtn_bctestquery_outline01 "OUTLINE01" +#define qtn_bctestquery_outline02 "OUTLINE02" +#define qtn_bctestquery_outline03 "OUTLINE03" +#define qtn_bctestquery_outline04 "OUTLINE04" +#define qtn_bctestquery_outline05 "OUTLINE05" +#define qtn_bctestquery_outline06 "OUTLINE06" +#define qtn_bctestquery_outline07 "OUTLINE07" +#define qtn_bctestquery_outline08 "OUTLINE08" +#define qtn_bctestquery_outline09 "OUTLINE09" +#define qtn_bctestquery_outline10 "OUTLINE10" +#define qtn_bctestquery_outline11 "OUTLINE11" +#define qtn_bctestquery_outline12 "OUTLINE12" +#define qtn_bctestquery_outline13 "OUTLINE13" +#define qtn_bctestquery_outline14 "OUTLINE14" +#define qtn_bctestquery_outline15 "OUTLINE15" +#define qtn_bctestquery_outline16 "OUTLINE16" +#define qtn_bctestquery_outline17 "OUTLINE17" +#define qtn_bctestquery_outline18 "OUTLINE18" +#define qtn_bctestquery_outline19 "OUTLINE19" +#define qtn_bctestquery_outline20 "OUTLINE20" +#define qtn_bctestquery_outline21 "OUTLINE21" +#define qtn_bctestquery_outline22 "OUTLINE22" +#define qtn_bctestquery_outline23 "OUTLINE23" +#define qtn_bctestquery_outline24 "OUTLINE24" +#define qtn_bctestquery_outline25 "OUTLINE25" +#define qtn_bctestquery_outline26 "OUTLINE26" +#define qtn_bctestquery_outline27 "OUTLINE27" +#define qtn_bctestquery_outline28 "OUTLINE28" +#define qtn_bctestquery_outline29 "OUTLINE29" +#define qtn_bctestquery_outline30 "OUTLINE30" +#define qtn_bctestquery_outline31 "OUTLINE31" +#define qtn_bctestquery_outline32 "OUTLINE32" +#define qtn_bctestquery_outline33 "OUTLINE33" +#define qtn_bctestquery_outline34 "OUTLINE34" +#define qtn_bctestquery_outline35 "OUTLINE35" +#define qtn_bctestquery_outline36 "OUTLINE36" +#define qtn_bctestquery_outline37 "OUTLINE37" +#define qtn_bctestquery_outline38 "OUTLINE38" +#define qtn_bctestquery_outline39 "OUTLINE39" +#define qtn_bctestquery_outline40 "OUTLINE40" +#define qtn_bctestquery_outline41 "OUTLINE41" +#define qtn_bctestquery_outline42 "OUTLINE42" +#define qtn_bctestquery_outline43 "OUTLINE43" +#define qtn_bctestquery_outline44 "OUTLINE44" +#define qtn_bctestquery_outline45 "OUTLINE45" +#define qtn_bctestquery_outline46 "OUTLINE46" +#define qtn_bctestquery_outline47 "OUTLINE47" +#define qtn_bctestquery_outline48 "OUTLINE48" +#define qtn_bctestquery_outline49 "OUTLINE49" +#define qtn_bctestquery_outline50 "OUTLINE50" +#define qtn_bctestquery_outline51 "OUTLINE51" +#define qtn_bctestquery_outline52 "OUTLINE52" +#define qtn_bctestquery_outline53 "OUTLINE53" +#define qtn_bctestquery_outline54 "OUTLINE54" +#define qtn_bctestquery_outline55 "OUTLINE55" +#define qtn_bctestquery_outline56 "OUTLINE56" +#define qtn_bctestquery_outline57 "OUTLINE57" +#define qtn_bctestquery_outline58 "OUTLINE58" +#define qtn_bctestquery_outline59 "OUTLINE59" +#define qtn_bctestquery_outline60 "OUTLINE60" + +// Application Title +#define qtn_bctestquery_app_title "Query Test\n Application" + +// End Of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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: Application +* +*/ + + +#ifndef C_BCTESTQUERYAPP_H +#define C_BCTESTQUERYAPP_H + +#include + +const TUid KUidBCTestQuery = { 0x200045C9 }; // UID of the application + +/** +* CBCTestQueryApp application class. +* Provides factory to create concrete document object. +*/ + +class CBCTestQueryApp : public CAknApplication + { + +private: // From CApaAppcication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestQueryDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID (KUidBCTestQuery). + * @return The value of KUidBCTestQuery. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTQUERYAPP_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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: AppUi +* +*/ + + +#ifndef C_BCTESTQUERYAPPUI_H +#define C_BCTESTQUERYAPPUI_H + +#include + +class CBCTestUtil; + +/** +* Application UI class. +*/ +class CBCTestQueryAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * Default constructor. + */ + CBCTestQueryAppUi(); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + /** + * Destructor. + */ + virtual ~CBCTestQueryAppUi(); + +private: + + /** + * From CEikAppUi, HandleCommandL. + * Handles the commands. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +private: // Data + + /** + * Own + */ + CBCTestUtil* iTestUtil; + + }; + +#endif // C_BCTESTQUERYAPPUI_H + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquerycontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquerycontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,74 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTESTQUERYCONTAINER_H +#define C_BCTESTQUERYCONTAINER_H + +#include + +class CBCTestQueryBaseCase; + +/** +* container class +*/ +class CBCTestQueryContainer: public CCoeControl + { +public: + +// constructor and destructor + + CBCTestQueryContainer(); + + virtual ~CBCTestQueryContainer(); + + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and this container will own the + * component control. + */ + void SetControl( CCoeControl* aControl ); + + void ResetControl(); + +// from CCoeControl + + TInt CountComponentControls() const; + + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Responsible for delete this + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTQUERYCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquerydialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquerydialog.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,202 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for aknlistquery +* +*/ + +#ifndef C_CBCTESTQUERYDIALOG_H +#define C_CBCTESTQUERYDIALOG_H + +#include +#include + +#include "bctestcase.h" + +class CEikonEnv; +class CBCTestQueryContainer; + +/** +* test case for various list classes +*/ +class CBCTestQueryDialog: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestQueryDialog* NewL( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ); + + /** + * Destructor + */ + virtual ~CBCTestQueryDialog(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestTextQueryDialogL(); + + void TestNumberQueryDialogL(); + + void TestTimeQueryDialogL(); + + void TestDurationQueryDialogL(); + + void TestFloatingPointQueryDialogL(); + + void TestMultilineDataQueryDialogL(); + + void TestFixedPointQueryDialogL(); + + void TestIpAddressQueryDialogL(); + + void TestMultiLineIpQueryDialogL(); + + void TestQueryDialogL(); + + void TestAknDialogL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestQueryDialog( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Not Own + */ + CBCTestQueryContainer* iContainer; + + /** + * Not Own + */ + CEikonEnv* iEnv; + + }; + +/** + * Test protected API of CAknTextQueryDialog + */ +class CBCTestTextQueryDialog: public CAknTextQueryDialog + { + friend class CBCTestQueryDialog; + +public: + + CBCTestTextQueryDialog( TDes& aDataText, const TTone& aTone = ENoTone ); + + }; + +/** + * Test protected API of CAknNumberQueryDialog + */ +class CBCTestNumberQueryDialog: public CAknNumberQueryDialog + { + friend class CBCTestQueryDialog; + +public: + + CBCTestNumberQueryDialog( TInt& aNumber, const TTone& aTone = ENoTone ); + + }; + +/** + * Test protected API of CAknTimeQueryDialog + */ +class CBCTestTimeQueryDialog: public CAknTimeQueryDialog + { + friend class CBCTestQueryDialog; + +public: + + CBCTestTimeQueryDialog( TTime& aTime, const TTone& aTone = ENoTone ); + + }; + +/** + * Test protected API of CAknDurationQueryDialog + */ +class CBCTestDurationQueryDialog: public CAknDurationQueryDialog + { + friend class CBCTestQueryDialog; + +public: + + CBCTestDurationQueryDialog( TTimeIntervalSeconds& aTime, + const TTone& aTone = ENoTone ); + + }; + +/** + * Test protected API of CAknFloatingPointQueryDialog + */ +class CBCTestFloatingPointQueryDialog: public CAknFloatingPointQueryDialog + { + friend class CBCTestQueryDialog; + +public: + + CBCTestFloatingPointQueryDialog( TReal& aNumber, + const TTone& aTone = ENoTone ); + + }; + +/** + * Test protected API of CAknMultiLineDataQueryDialog + */ +class CBCTestMultiLineDataQueryDialog: public CAknMultiLineDataQueryDialog + { + friend class CBCTestQueryDialog; + +public: + + CBCTestMultiLineDataQueryDialog( const TTone& aTone ); + + }; + +/** + * Test protected API of CAknDialog + */ +class CBCTestAknDialog: public CAknDialog + { + friend class CBCTestQueryDialog; + }; + +#endif // C_CBCTESTQUERYDIALOG_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquerydocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestquerydocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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: document +* +*/ + + +#ifndef C_BCTESTQUERYDOCUMENT_H +#define C_BCTESTQUERYDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestQueryDocument application class. +*/ +class CBCTestQueryDocument : public CAknDocument + { +public: // Constructors and destructor + + /** + * Symbian two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestQueryDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestQueryDocument(); + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestQueryDocument( CEikApplication& aApp ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + +private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestQueryAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTQUERYDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryvalue.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryvalue.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,101 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for query value classes +* +*/ + +#ifndef C_CBCTESTQUERYVALUE_H +#define C_CBCTESTQUERYVALUE_H + +#include "bctestcase.h" + +class CEikonEnv; +class CBCTestQueryContainer; + +/** +* test case for various list classes +*/ +class CBCTestQueryValue: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestQueryValue* NewL( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ); + + /** + * Destructor + */ + virtual ~CBCTestQueryValue(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestQueryValueDateL(); + + void TestQueryValueDurationL(); + + void TestQueryValueNumberL(); + + void TestQueryValuePhoneL(); + + void TestQueryValueTextL(); + + void TestQueryValueTimeL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestQueryValue( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Not Own + */ + CBCTestQueryContainer* iContainer; + + /** + * Not Own + */ + CEikonEnv* iEnv; + + }; + +#endif // C_CBCTESTQUERYVALUE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/inc/bctestqueryview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,77 @@ +/* +* 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 "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: view +* +*/ + +#ifndef C_CBCTESTLISTVIEW_H +#define C_CBCTESTLISTVIEW_H + +#include + +const TUid KBCTestListViewId = { 1 }; + +class CBCTestQueryContainer; +class CBCTestUtil; + +/** +* view class +*/ +class CBCTestQueryView: public CAknView + { +public: + +// constructor and destructor + + static CBCTestQueryView* NewL( CBCTestUtil* aUtil ); + + ~CBCTestQueryView(); + +// from CAknView + + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + void DoDeactivate(); + +private: // constructor + + CBCTestQueryView( CBCTestUtil* aUtil ); + + void ConstructL(); + +private: // data + + /** + * Own + */ + CBCTestQueryContainer* iContainer; // own + + /** + * Not Own + */ + CBCTestUtil* iTestUtil; + + }; + +#endif // C_CBCTESTLISTVIEW_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/sis/bctestquery.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/sis/bctestquery.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestquery-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestQuery"},(0x200045C9),1,0,0,TYPE=SA + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101f7961), 0, 0, 0, {"Series60ProductID"} + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +; Target +"\epoc32\release\armv5\urel\bctestquery.exe"- +"!:\sys\bin\bctestquery.exe" + +"\epoc32\data\z\resource\apps\bctestquery.RSC"- +"!:\resource\apps\bctestquery.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestquery_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestquery_reg.RSC" + +; bctestutil DLL must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestlistquery.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestlistquery.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,460 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for aknlistquery +* +*/ + + +#include +#include +#include +#include +#include +#include +#include + +#include "bctestlistquery.h" +#include "bctestquerycontainer.h" +#include "bctestquery.hrh" +#include + +_LIT( KListQueryTest1, "CBCTestListQueryDialog constructor" ); +_LIT( KListQueryTest2, "CBCTestListQueryDialog::ExecuteLD" ); +_LIT( KListQueryTest3, "CBCTestListQueryDialog constructor with index array" ); +_LIT( KListQueryTest4, "CBCTestListQueryDialog::SetItemTextArray" ); +_LIT( KListQueryTest5, "CBCTestListQueryDialog::SetOwnershipType" ); +_LIT( KListQueryTest6, "CBCTestListQueryDialog::PreLayoutDynInitL" ); +_LIT( KListQueryTest7, "CBCTestListQueryDialog::PostLayoutDynInitL" ); +_LIT( KListQueryTest8, "CBCTestListQueryDialog::BorderStyle" ); +_LIT( KListQueryTest9, "CBCTestListQueryDialog::SetTone" ); +_LIT( KListQueryTest10, "CBCTestListQueryDialog::SetSizeAndPosition" ); +_LIT( KListQueryTest11, "CBCTestListQueryDialog::OfferKeyEventL" ); +_LIT( KListQueryTest12, "CBCTestListQueryDialog::HandleListBoxEventL" ); +_LIT( KListQueryTest13, "CBCTestListQueryDialog::ListBox" ); +_LIT( KListQueryTest14, "CBCTestListQueryDialog::SetIconArrayL" ); +_LIT( KListQueryTest15, "CBCTestListQueryDialog::ListControl" ); +_LIT( KListQueryTest16, "CAknListQueryControl::FocusChanged" ); +_LIT( KListQueryTest17, "CAknListQueryControl::OfferKeyEventL" ); +_LIT( KListQueryTest18, "CAknListQueryControl::HandlePointerEventL" ); +_LIT( KListQueryTest19, "CBCTestListQueryDialog::MessageBox" ); +_LIT( KListQueryTest20, "CBCTestListQueryDialog::QueryHeading" ); +_LIT( KListQueryTest21, "CBCTestListQueryDialog::FindBox" ); +_LIT( KListQueryTest22, "CBCTestListQueryDialog::ActivateL" ); +_LIT( KListQueryTest23, "CBCTestListQueryDialog::HandlePointerEventL" ); +_LIT( KListQueryTest24, "CBCTestListQueryDialog::OkToExitL" ); +_LIT( KListQueryTest25, "CBCTestListQueryDialog::CloseState" ); + +_LIT( KMessageText, "Message Text" ); +_LIT( KHeaderText, "Header Text" ); +_LIT( KMsgQueryTest1, "CAknMessageQueryDialog::NewL" ); +_LIT( KMsgQueryTest2, "CAknMessageQueryDialog::ExecuteLD" ); +_LIT( KMsgQueryTest3, "CAknMessageQueryDialog constructor" ); +_LIT( KMsgQueryTest4, "CAknMessageQueryDialog::SetSizeAndPosition" ); +_LIT( KMsgQueryTest5, "CAknMessageQueryDialog::PreLayoutDynInitL" ); +_LIT( KMsgQueryTest6, "CAknMessageQueryDialog::PostLayoutDynInitL" ); +_LIT( KMsgQueryTest7, "CAknMessageQueryDialog::SetMessageTextL" ); +_LIT( KMsgQueryTest8, "CAknMessageQueryDialog::SetHeaderTextL" ); +_LIT( KMsgQueryTest9, "CAknMessageQueryDialog::SetLinkTextL" ); +_LIT( KMsgQueryTest10, "CAknMessageQueryDialog::SetLink" ); +_LIT( KMsgQueryTest11, "CAknMessageQueryDialog::OfferKeyEventL" ); +_LIT( KMsgQueryTest12, "CAknMessageQueryDialog::HandlePointerEventL" ); +_LIT( KMsgQueryTest13, "CAknMessageQueryDialog::ProcessCommandL" ); +_LIT( KMsgQueryTest14, "CAknMessageQueryDialog::OkToExitL" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListQuery* CBCTestListQuery::NewL( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ) + { + CBCTestListQuery* self = new( ELeave ) CBCTestListQuery( + aContainer, aEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListQuery::CBCTestListQuery( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ): iContainer( aContainer ), iEnv( aEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListQuery::~CBCTestListQuery() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestListQuery::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::BuildScriptL() + { + // outline1 + AddTestL( DELAY( 1 ), LeftCBA, KeyOK, TEND ); + AddTestL( KeyOK, REP( Down, 3), REP( Up, 2 ), LeftCBA, TEND ); + AddTestL( RightCBA, TEND ); + + // outline2 + AddTestL( LeftCBA, KeyOK, TEND ); + AddTestL( Down, KeyOK, LeftCBA, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestListQuery::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline01 || aCmd > EBCTestCmdOutline02 ) + { + return; + } + switch ( aCmd ) + { + case EBCTestCmdOutline01: + TestListQueryDialogL(); + break; + case EBCTestCmdOutline02: + TestMessageQueryDialogL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListQuery::TestListQueryDialogL +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::TestListQueryDialogL() + { + TInt index = 0; + CBCTestListQueryDialog* dlg = new( ELeave ) CBCTestListQueryDialog( + &index ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KListQueryTest1 ); + + dlg->ExecuteLD( R_BCTESTQUERY_MULTI_SELECTION_QUERY ); + AssertTrueL( ETrue, KListQueryTest2 ); + CleanupStack::Pop( dlg ); + dlg = NULL; + + dlg = new( ELeave ) CBCTestListQueryDialog( &index ); + dlg->PrepareLC( R_BCTESTQUERY_EMPTY_QUERY ); + dlg->ActivateL(); + CleanupStack::Pop( dlg ); + + TRect rect = iContainer->Rect(); + TSize size = rect.Size(); + + CDesCArray* textArray = iEnv->ReadDesCArrayResourceL( + R_BCTESTQUERY_MULTI_SELECTION_QUERY_LIST_ITEM ); + CleanupStack::PushL( textArray ); + + CArrayFix* indexArray = new( ELeave ) CArrayFixFlat( 4 ); + CleanupStack::PushL( indexArray ); + indexArray->AppendL( 0 ); + indexArray->AppendL( 1 ); + + dlg = new( ELeave ) CBCTestListQueryDialog( indexArray ); + dlg->PrepareLC( R_BCTESTQUERY_MULTI_SELECTION_QUERY ); + AssertTrueL( ETrue, KListQueryTest3 ); + + dlg->SetItemTextArray( textArray ); + AssertTrueL( ETrue, KListQueryTest4 ); + + dlg->SetOwnershipType( ELbmOwnsItemArray ); + AssertTrueL( ETrue, KListQueryTest5 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KListQueryTest6 ); + + dlg->PostLayoutDynInitL(); + AssertTrueL( ETrue, KListQueryTest7 ); + + TInt style = dlg->BorderStyle(); + AssertTrueL( ETrue, KListQueryTest8 ); + + dlg->SetTone( CAknQueryDialog::ENoTone ); + AssertTrueL( ETrue, KListQueryTest9 ); + + dlg->SetSizeAndPosition( size ); + AssertTrueL( ETrue, KListQueryTest10 ); + + TKeyEvent eventT = { 'T', 'T', 0, 0 }; + dlg->OfferKeyEventL( eventT, EEventKey ); + AssertTrueL( ETrue, KListQueryTest11 ); + + dlg->HandleListBoxEventL( + dlg->ListBox(), + MEikListBoxObserver::EEventEnterKeyPressed ); + AssertTrueL( ETrue, KListQueryTest12 ); + AssertTrueL( ETrue, KListQueryTest13 ); + + CArrayPtr* icons = new( ELeave ) CArrayPtrFlat( + 4 ); + CleanupStack::PushL( icons ); + GraphicIconL( icons ); + dlg->SetIconArrayL( icons ); + CleanupStack::Pop( icons ); + AssertTrueL( ETrue, KListQueryTest14 ); + + CAknListQueryControl* listControl = dlg->ListControl(); + AssertTrueL( ETrue, KListQueryTest15 ); + + listControl->FocusChanged( ENoDrawNow ); + AssertTrueL( ETrue, KListQueryTest16 ); + + TKeyEvent eventEnter = { EKeyEnter, EKeyEnter, 0, 0 }; + listControl->OfferKeyEventL( eventEnter, EEventKey ); + AssertTrueL( ETrue, KListQueryTest17 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + listControl->HandlePointerEventL( event ); + AssertTrueL( ETrue, KListQueryTest18 ); + + CAknMessageQueryControl* message = dlg->MessageBox(); + AssertTrueL( ETrue, KListQueryTest19 ); + + CAknPopupHeadingPane* pane = dlg->QueryHeading(); + AssertTrueL( ETrue, KListQueryTest20 ); + + CAknSearchField* field = dlg->FindBox(); + AssertTrueL( ETrue, KListQueryTest21 ); + + dlg->ActivateL(); + AssertTrueL( ETrue, KListQueryTest22 ); + + event.iType = TPointerEvent::EButton2Up; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KListQueryTest23 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KListQueryTest24 ); + + dlg->CloseState(); + AssertTrueL( ETrue, KListQueryTest25 ); + + CleanupStack::Pop( dlg ); + CleanupStack::PopAndDestroy( indexArray ); + CleanupStack::Pop( textArray ); + + TestListQuerySetSizeAndPositionL( + R_BCTESTQUERY_SINGLEPOPUPMENU_QUERY ); + TestListQuerySetSizeAndPositionL( + R_BCTESTQUERY_SINGLEGRAPHICHEADING_QUERY ); + TestListQuerySetSizeAndPositionL( R_BCTESTQUERY_MENUDOUBLE_QUERY ); + TestListQuerySetSizeAndPositionL( + R_BCTESTQUERY_DOUBLELARGEGRAPHIC_QUERY ); + TestListQuerySetSizeAndPositionL( + R_BCTESTQUERY_SINGLEHEADING_QUERY ); + TestListQuerySetSizeAndPositionL( + R_BCTESTQUERY_DOUBLE2_QUERY ); + + // NOTE: DO NOT USE this LIST (break ui-style, only for java)!!! + //TestListQuerySetSizeAndPositionL( + // R_BCTESTQUERY_SINGLE2GRAPHIC_QUERY ); + } + +// --------------------------------------------------------------------------- +// To improve branch coverage of SetSizeAndPosition +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::TestListQuerySetSizeAndPositionL( TInt aResourceId ) + { + TInt index = 0; + CBCTestListQueryDialog* dlg = new( ELeave ) + CBCTestListQueryDialog( &index ); + dlg->PrepareLC( aResourceId ); + dlg->PreLayoutDynInitL(); + TSize size = iContainer->Rect().Size(); + dlg->SetSizeAndPosition( size ); + CleanupStack::PopAndDestroy( dlg ); + } + +// --------------------------------------------------------------------------- +// Test CAknMessageQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::TestMessageQueryDialogL() + { + TPtrC msg( KMessageText ); + CAknMessageQueryDialog* msgDlg = CAknMessageQueryDialog::NewL( + msg, CAknQueryDialog::ENoTone ); + CleanupStack::PushL( msgDlg ); + AssertNotNullL( msgDlg, KMsgQueryTest1 ); + + msgDlg->ExecuteLD( R_AVKON_MESSAGE_QUERY_DIALOG, KMessageText ); + AssertTrueL( ETrue, KMsgQueryTest2 ); + CleanupStack::Pop( msgDlg ); + + CBCTestMessageQueryDialog* dlg = new( ELeave ) + CBCTestMessageQueryDialog( CAknQueryDialog::EConfirmationTone ); + dlg->PrepareLC( R_AVKON_MESSAGE_QUERY_DIALOG ); + AssertTrueL( ETrue, KMsgQueryTest3 ); + + TSize size = iContainer->Rect().Size(); + dlg->SetSizeAndPosition( size ); + AssertTrueL( ETrue, KMsgQueryTest4 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KMsgQueryTest5 ); + + dlg->PostLayoutDynInitL(); + AssertTrueL( ETrue, KMsgQueryTest6 ); + + dlg->SetMessageTextL( KMessageText ); + AssertTrueL( ETrue, KMsgQueryTest7 ); + + dlg->SetHeaderTextL( KHeaderText ); + AssertTrueL( ETrue, KMsgQueryTest8 ); + + dlg->SetLinkTextL( KMessageText ); + AssertTrueL( ETrue, KMsgQueryTest9 ); + + TCallBack callBack; + dlg->SetLink( callBack ); + AssertTrueL( ETrue, KMsgQueryTest10 ); + + TKeyEvent eventT = { 'T', 'T', 0, 0 }; + dlg->OfferKeyEventL( eventT, EEventKey ); + AssertTrueL( ETrue, KMsgQueryTest11 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Up; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KMsgQueryTest12 ); + + dlg->ProcessCommandL( EAknSoftkeyView ); + AssertTrueL( ETrue, KMsgQueryTest13 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KMsgQueryTest14 ); + + CleanupStack::PopAndDestroy( dlg ); + } + +// --------------------------------------------------------------------------- +// Set graphic icon Array +// --------------------------------------------------------------------------- +// +void CBCTestListQuery::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + CreateIconAndAddToArrayL( aIcons, AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_marked_add, + EMbmAvkonQgn_indi_marked_add_mask ); + CreateIconAndAddToArrayL( aIcons, AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_prop_folder_medium, + EMbmAvkonQgn_prop_folder_medium_mask ); + } + } + +// ---------------------------------------------------------------------------- +// Creates the icon and adds it to the array if it was successful +// ---------------------------------------------------------------------------- +// +void CBCTestListQuery::CreateIconAndAddToArrayL( + CArrayPtr*& aIconsArray, + const TDesC& aIconFile, + TInt aBitmap, TInt aMask/* = -1*/) + { + CGulIcon* icon = CGulIcon::NewLC(); + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + if (aMask >= 0) + { + AknIconUtils::CreateIconL( bitmap, mask, aIconFile, aBitmap, aMask); + } + else + { + bitmap = AknIconUtils::CreateIconL( aIconFile, aBitmap); + } + + if (bitmap) + { + icon->SetBitmap(bitmap); + if (mask) + icon->SetMask(mask); + aIconsArray->AppendL(icon); + CleanupStack::Pop(icon); + } + else + { + CleanupStack::PopAndDestroy(icon); + } + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestListQueryDialog::CBCTestListQueryDialog( TInt* aIndex ) + : CAknListQueryDialog( aIndex ) + { + } + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestListQueryDialog::CBCTestListQueryDialog( + CListBoxView::CSelectionIndexArray* aSelectionIndexArray ) + : CAknListQueryDialog( aSelectionIndexArray ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestMessageQueryDialog::CBCTestMessageQueryDialog( const TTone aTone ) + : CAknMessageQueryDialog( aTone ) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Application +* +*/ + + +#include + +#include "BCTestQueryApp.h" +#include "BCTestQueryDocument.h" + + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestQueryApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestQueryApp::AppDllUid() const + { + return KUidBCTestQuery; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestQueryApp::CreateDocumentL() +// Creates CBCTestQueryDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestQueryApp::CreateDocumentL() + { + return CBCTestQueryDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// NewApplication() +// Constructs CBCTestQueryApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestQueryApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "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: AppUi +* +*/ + + +#include + +#include + +#include "bctestquery.hrh" +#include "bctestqueryappui.h" +#include "bctestqueryview.h" +#include "bctestutil.h" + +// ================= MEMBER FUNCTIONS ========================================= +// +// ---------------------------------------------------------------------------- +// CBCTestQueryAppUi::CBCTestQueryAppUi() +// Default constructor. +// ---------------------------------------------------------------------------- +// +CBCTestQueryAppUi::CBCTestQueryAppUi() + { + } + +// ---------------------------------------------------------------------------- +// void CBCTestQueryAppUi::ConstructL() +// Symbian 2nd phase constructor can leave. +// Creates view class object. +// ---------------------------------------------------------------------------- +void CBCTestQueryAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + CBCTestQueryView* view = CBCTestQueryView::NewL( iTestUtil ); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + } + +// ---------------------------------------------------------------------------- +// CBCTestQueryAppUi::~CBCTestQueryAppUi() +// Destructor +// ---------------------------------------------------------------------------- +CBCTestQueryAppUi::~CBCTestQueryAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// void CBCTestQueryAppUi::HandleCommandL( TInt ) +// Handles the commands. +// ---------------------------------------------------------------------------- +void CBCTestQueryAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + Exit(); + break; + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + } + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestquerycontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestquerycontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,119 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestquerycontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryContainer::CBCTestQueryContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestQueryContainer::~CBCTestQueryContainer() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestQueryContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestQueryContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestQueryContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestQueryContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestQueryContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestQueryContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestQueryContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestQueryContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestQueryContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestQueryContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestQueryContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestquerydialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestquerydialog.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,960 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for query dialog +* +*/ + + +#include +#include +#include +#include +#include +#include +#include + +#include "bctestquerydialog.h" +#include "bctestquerycontainer.h" +#include "bctestquery.hrh" +#include + +const TInt KBufLength = 64; + +_LIT( KDataText, "Data text" ); +_LIT( KTestQueryTest1, "CAknTextQueryDialog::NewL" ); +_LIT( KTestQueryTest2, "CAknTextQueryDialog constructor" ); +_LIT( KTestQueryTest3, "CAknTextQueryDialog::RemoveEditorIndicator" ); +_LIT( KTestQueryTest4, "CAknTextQueryDialog::SetEmergencyCallSupport" ); +_LIT( KTestQueryTest5, "CAknTextQueryDialog::SetPredictiveTextInputPermitted" ); +_LIT( KTestQueryTest6, "CAknTextQueryDialog::Prompt" ); +_LIT( KTestQueryTest7, "CAknTextQueryDialog::Heading" ); +_LIT( KTestQueryTest8, "CAknTextQueryDialog::PreLayoutDynInitL" ); +_LIT( KTestQueryTest9, "CAknTextQueryDialog::QueryControl" ); +_LIT( KTestQueryTest10, "CAknTextQueryDialog::SetMaxLength" ); +_LIT( KTestQueryTest11, "CAknTextQueryDialog::MaxTextLength" ); +_LIT( KTestQueryTest12, "CAknTextQueryDialog::HandleQueryEditorSizeEventL" ); +_LIT( KTestQueryTest13, "CAknTextQueryDialog::CheckIfEntryTextOk" ); +_LIT( KTestQueryTest14, "CAknTextQueryDialog::SetDefaultInputMode" ); +_LIT( KTestQueryTest15, "CAknTextQueryDialog::HandleQueryEditorSizeEventL" ); +_LIT( KTestQueryTest16, "CAknTextQueryDialog::HandlePointerEventL" ); +_LIT( KTestQueryTest17, "CAknQueryControl::SetImageL" ); +_LIT( KTestQueryTest18, "CAknQueryControl::SetAnimationL" ); +_LIT( KTestQueryTest19, "CAknQueryControl::CancelAnimation" ); +_LIT( KTestQueryTest20, "CAknQueryControl::HandlePointerEventL" ); +_LIT( KTestQueryTest21, "CAknQueryControl::SetNumberOfEditorLines" ); +_LIT( KTestQueryTest22, "CAknQueryControl::HandleEdwinEventL" ); +_LIT( KTestQueryTest23, "CAknQueryControl::HandleControlEventL" ); +_LIT( KTestQueryTest24, "CAknTextQueryDialog::OkToExitL" ); +_LIT( KTestQueryTest25, "CAknTextQueryDialog::DismissQueryL" ); + +_LIT( KNumberQueryTest1, "CAknNumberQueryDialog::NewL" ); +_LIT( KNumberQueryTest2, "CAknNumberQueryDialog constructor" ); +_LIT( KNumberQueryTest3, "CAknNumberQueryDialog::PreLayoutDynInitL" ); +_LIT( KNumberQueryTest4, "CAknNumberQueryDialog::SetMinimumAndMaximum" ); +_LIT( KNumberQueryTest5, "CAknNumberQueryDialog::HandlePointerEventL" ); +_LIT( KNumberQueryTest6, "CAknNumberQueryDialog::OkToExitL" ); + +_LIT( KTimeQueryTest1, "CAknTimeQueryDialog::NewL" ); +_LIT( KTimeQueryTest2, "CAknTimeQueryDialog constructor" ); +_LIT( KTimeQueryTest3, "CAknTimeQueryDialog::PreLayoutDynInitL" ); +_LIT( KTimeQueryTest4, "CAknTimeQueryDialog::SetMinimumAndMaximum" ); +_LIT( KTimeQueryTest5, "CAknTimeQueryDialog::HandlePointerEventL" ); +_LIT( KTimeQueryTest6, "CAknTimeQueryDialog::OkToExitL" ); + +_LIT( KDurationQueryTest1, "CAknDurationQueryDialog::NewL" ); +_LIT( KDurationQueryTest2, "CAknDurationQueryDialog constructor" ); +_LIT( KDurationQueryTest3, "CAknDurationQueryDialog::PreLayoutDynInitL" ); +_LIT( KDurationQueryTest4, "CAknDurationQueryDialog::SetMinimumAndMaximum" ); +_LIT( KDurationQueryTest5, "CAknDurationQueryDialog::HandlePointerEventL" ); +_LIT( KDurationQueryTest6, "CAknDurationQueryDialog::OkToExitL" ); + +_LIT( KFloatingQueryTest1, "CAknFloatingPointQueryDialog::NewL" ); +_LIT( KFloatingQueryTest2, "CAknFloatingPointQueryDialog constructor" ); +_LIT( KFloatingQueryTest3, "CAknFloatingPointQueryDialog::PreLayoutDynInitL" ); +_LIT( KFloatingQueryTest4, "CAknFloatingPointQueryDialog::SetMinimumAndMaximum" ); +_LIT( KFloatingQueryTest5, "CAknFloatingPointQueryDialog::HandlePointerEventL" ); +_LIT( KFloatingQueryTest6, "CAknFloatingPointQueryDialog::OkToExitL" ); + +_LIT( KMultiDataQueryTest1, "CAknMultiLineDataQueryDialog::NewL( TTime, TTime )" ); +_LIT( KMultiDataQueryTest2, "CAknMultiLineDataQueryDialog::NewL( TDes, TDes )" ); +_LIT( KMultiDataQueryTest3, "CAknMultiLineDataQueryDialog::NewL( TDes, TTime )" ); +_LIT( KMultiDataQueryTest4, "CAknMultiLineDataQueryDialog::NewL( TDes, TInt )" ); +_LIT( KMultiDataQueryTest5, "CAknMultiLineDataQueryDialog::NewL( TDes, TTimeIntervalSeconds )" ); +_LIT( KMultiDataQueryTest6, "CAknMultiLineDataQueryDialog::NewL( TTime, TTimeIntervalSeconds )" ); +_LIT( KMultiDataQueryTest7, "CAknMultiLineDataQueryDialog::NewL( TInt, TInt )" ); +_LIT( KMultiDataQueryTest8, "CAknMultiLineDataQueryDialog constructor" ); +_LIT( KMultiDataQueryTest9, "CAknMultiLineDataQueryDialog::PreLayoutDynInitL" ); +_LIT( KMultiDataQueryTest10, "CAknMultiLineDataQueryDialog::SetPromptL" ); +_LIT( KMultiDataQueryTest11, "CAknMultiLineDataQueryDialog::DoSetPromptL" ); +_LIT( KMultiDataQueryTest12, "CAknMultiLineDataQueryDialog::SetMaxLengthOfFirstEditor" ); +_LIT( KMultiDataQueryTest13, "CAknMultiLineDataQueryDialog::SetMaxLengthOfSecondEditor" ); +_LIT( KMultiDataQueryTest14, "CAknMultiLineDataQueryDialog::HandleResourceChange" ); +_LIT( KMultiDataQueryTest15, "CAknMultiLineDataQueryDialog::HandlePointerEventL" ); +_LIT( KMultiDataQueryTest16, "CAknMultiLineDataQueryDialog::UpdateLeftSoftKeyL" ); +_LIT( KMultiDataQueryTest17, "CAknMultiLineDataQueryDialog::FirstControl" ); +_LIT( KMultiDataQueryTest18, "CAknMultiLineDataQueryDialog::SecondControl" ); +_LIT( KMultiDataQueryTest19, "CAknMultilineQueryControl::HandlePointerEventL" ); +_LIT( KMultiDataQueryTest20, "CAknMultiLineDataQueryDialog::QueryControl" ); +_LIT( KMultiDataQueryTest21, "CAknMultiLineDataQueryDialog::QueryHeading" ); +_LIT( KMultiDataQueryTest22, "CAknMultiLineDataQueryDialog::NeedToDismissQueryL" ); +_LIT( KMultiDataQueryTest23, "CAknMultiLineDataQueryDialog::SecondPrompt" ); +_LIT( KMultiDataQueryTest24, "CAknMultiLineDataQueryDialog::OkToExitL" ); +_LIT( KMultiDataQueryTest25, "CAknExtMultilineQueryControl::HandlePointerEventL" ); + +_LIT( KIpQueryTest1, "CAknIpAddressQueryDialog::NewL" ); +_LIT( KIpQueryTest2, "CAknIpAddressQueryDialog::SetMinimumAndMaximum" ); +_LIT( KIpQueryTest3, "CAknIpAddressQueryDialog::ExecuteLD" ); +_LIT( KIpQueryTest4, "CAknExtQueryControl constructor" ); +_LIT( KIpQueryTest5, "CAknExtQueryControl::HandlePointerEventL" ); +_LIT( KIpQueryTest6, "CAknExtQueryControl::SetMinimumAndMaximum( TInt, TInt )" ); +_LIT( KIpQueryTest7, "CAknExtQueryControl::SetMinimumAndMaximum" ); + +_LIT( KFixedPointQueryTest1, "CAknFixedPointQueryDialog::NewL" ); +_LIT( KFixedPointQueryTest2, "CAknFixedPointQueryDialog::SetMinimumAndMaximum" ); +_LIT( KFixedPointQueryTest3, "CAknFixedPointQueryDialog::ExecuteLD" ); + +_LIT( KFirstPrompt, "Ip address" ); +_LIT( KMultiIpQueryTest1, "CAknMultiLineIpQueryDialog::NewL" ); +_LIT( KMultiIpQueryTest2, "CAknMultiLineIpQueryDialog::SetPromptL" ); +_LIT( KMultiIpQueryTest3, "CAknMultiLineIpQueryDialog::SetMaxLengthOfFirstEditor" ); +_LIT( KMultiIpQueryTest4, "CAknMultiLineIpQueryDialog::SetMaxLengthOfSecondEditor" ); +_LIT( KMultiIpQueryTest5, "CAknMultiLineIpQueryDialog::ExecuteLD" ); + +_LIT( KQueryDlgText, "Query dialog text" ); +_LIT( KQueryTest1, "CAknQueryDialog::NewL( TTone )" ); +_LIT( KQueryTest2, "CAknQueryDialog::NewL( TDesC, TTone )" ); +_LIT( KQueryTest3, "CAknQueryDialog::NewL( TInt, TTone )" ); +_LIT( KQueryTest4, "CAknQueryDialog::NewL( TTime, TTone )" ); +_LIT( KQueryTest5, "CAknQueryDialog::NewL( TTimeIntervalSeconds, TTone )" ); +_LIT( KQueryTest6, "CAknQueryDialog::NewL( TReal, TTone )" ); +_LIT( KQueryTest7, "CAknQueryDialog::NewL( TInetAddr, TTone )" ); + +_LIT( KAknDlgTest1, "CAknDialog constructor" ); +_LIT( KAknDlgTest2, "CAknDialog::ExecuteLD" ); +_LIT( KAknDlgTest3, "CAknDialog::DynInitMenuPaneL" ); +_LIT( KAknDlgTest4, "CAknDialog::DisplayMenuL" ); +_LIT( KAknDlgTest5, "CAknDialog::MenuShowing" ); +_LIT( KAknDlgTest6, "CAknDialog::OkToExitL" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryDialog* CBCTestQueryDialog::NewL( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ) + { + CBCTestQueryDialog* self = new( ELeave ) CBCTestQueryDialog( + aContainer, aEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryDialog::CBCTestQueryDialog( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ): iContainer( aContainer ), iEnv( aEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestQueryDialog::~CBCTestQueryDialog() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestQueryDialog::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::BuildScriptL() + { + // outline03 - outline08 + for ( TInt i=0; i <= EBCTestCmdOutline08 - EBCTestCmdOutline03; i++ ) + { + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + + // outline09 + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, 6 ), KeyOK, TEND ); + AddTestL( REP( Key2, 10 ), REP( KeyBackspace, 10 ), TEND ); + AddTestL( Key1, Key2, Key3, LeftCBA, TEND ); + + // outline10 + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, 7 ), KeyOK, TEND ); + AddTestL( REP( Key2, 3 ), REP( Key3, 3 ), Right, Key1, Key0, Right, + Key1, Key2, Key3, LeftCBA, TEND ); + + // outline11 + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, 8 ), KeyOK, TEND ); + AddTestL( REP( Key2, 3 ), REP( Key3, 3 ), Right, Key1, Key0, Right, + Key1, Key2, Key3, TEND ); + AddTestL( Down, Up, Down, REP( Key2, 12 ), LeftCBA, TEND ); + + // outline12 + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, 9 ), KeyOK, TEND ); + + // outline13 + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( REP( Down, 10 ), KeyOK, LeftCBA, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestQueryDialog::RunL +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline03 || aCmd > EBCTestCmdOutline13 ) + { + return; + } + switch ( aCmd ) + { + case EBCTestCmdOutline03: + TestTextQueryDialogL(); + break; + case EBCTestCmdOutline04: + TestNumberQueryDialogL(); + break; + case EBCTestCmdOutline05: + TestTimeQueryDialogL(); + break; + case EBCTestCmdOutline06: + TestDurationQueryDialogL(); + break; + case EBCTestCmdOutline07: + TestFloatingPointQueryDialogL(); + break; + case EBCTestCmdOutline08: + TestMultilineDataQueryDialogL(); + break; + case EBCTestCmdOutline09: + TestFixedPointQueryDialogL(); + break; + case EBCTestCmdOutline10: + TestIpAddressQueryDialogL(); + break; + case EBCTestCmdOutline11: + TestMultiLineIpQueryDialogL(); + break; + case EBCTestCmdOutline12: + TestQueryDialogL(); + break; + case EBCTestCmdOutline13: + TestAknDialogL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// Test CAknTextQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestTextQueryDialogL() + { + TBuf<100> dataText( KDataText ); + CAknTextQueryDialog* textDlg = CAknTextQueryDialog::NewL( dataText, + CAknQueryDialog::ENoTone ); + CleanupStack::PushL( textDlg ); + AssertNotNullL( textDlg, KTestQueryTest1 ); + CleanupStack::PopAndDestroy( textDlg ); + + CBCTestTextQueryDialog* dlg = new( ELeave ) CBCTestTextQueryDialog( + dataText, CAknQueryDialog::EWarningTone ); + dlg->PrepareLC( R_AVKON_DIALOG_QUERY_VALUE_TEXT ); + AssertTrueL( ETrue, KTestQueryTest2 ); + + dlg->RemoveEditorIndicator(); + AssertTrueL( ETrue, KTestQueryTest3 ); + + dlg->SetEmergencyCallSupport( ETrue ); + AssertTrueL( ETrue, KTestQueryTest4 ); + + dlg->SetPredictiveTextInputPermitted( ETrue ); + AssertTrueL( ETrue, KTestQueryTest5 ); + + TPtrC prompt = dlg->Prompt(); + AssertTrueL( ETrue, KTestQueryTest6 ); + + CAknPopupHeadingPane* headingPane = dlg->Heading(); + AssertTrueL( ETrue, KTestQueryTest7 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KTestQueryTest8 ); + + CAknQueryControl* ctrl = dlg->QueryControl(); + AssertTrueL( ETrue, KTestQueryTest9 ); + + const TInt maxLength = 60; + dlg->SetMaxLength( maxLength ); + AssertTrueL( ETrue, KTestQueryTest10 ); + + TInt maxLen = dlg->MaxTextLength( ctrl, dataText, 10 ); + AssertTrueL( ETrue, KTestQueryTest11 ); + + dlg->HandleQueryEditorSizeEventL( ctrl, + MAknQueryControlObserver::EQueryControltSizeChanging ); + AssertTrueL( ETrue, KTestQueryTest12 ); + + TBool check = dlg->CheckIfEntryTextOk(); + AssertTrueL( ETrue, KTestQueryTest13 ); + + dlg->SetDefaultInputMode( EAknEditorSecretAlphaInputMode ); + AssertTrueL( ETrue, KTestQueryTest14 ); + + dlg->HandleQueryEditorSizeEventL( ctrl, + MAknQueryControlObserver::EQueryControltSizeChanging ); + dlg->HandleQueryEditorSizeEventL( ctrl, + MAknQueryControlObserver::EQueryControlEditorStateChanging ); + AssertTrueL( ETrue, KTestQueryTest15 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton2Up; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KTestQueryTest16 ); + + ctrl->SetImageL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_marked_add, + EMbmAvkonQgn_indi_marked_add_mask ); + AssertTrueL( ETrue, KTestQueryTest17 ); + + ctrl->SetAnimationL( R_BCTESTQUERY_BMP_ANIMATION ); + AssertTrueL( ETrue, KTestQueryTest18 ); + + ctrl->CancelAnimation(); + AssertTrueL( ETrue, KTestQueryTest19 ); + + ctrl->HandlePointerEventL( event ); + AssertTrueL( ETrue, KTestQueryTest20 ); + + ctrl->SetNumberOfEditorLines( 1 ); + AssertTrueL( ETrue, KTestQueryTest21 ); + + ctrl->HandleEdwinEventL( NULL, MEikEdwinObserver::EEventTextUpdate ); + AssertTrueL( ETrue, KTestQueryTest22 ); + + ctrl->HandleControlEventL( ctrl, + MCoeControlObserver::EEventStateChanged ); + AssertTrueL( ETrue, KTestQueryTest23 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KTestQueryTest24 ); + + dlg->DismissQueryL(); + AssertTrueL( ETrue, KTestQueryTest25 ); + + CleanupStack::Pop( dlg ); + } + +// --------------------------------------------------------------------------- +// Test CAknNumberQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestNumberQueryDialogL() + { + TInt number = 10; + CAknNumberQueryDialog* numDlg = CAknNumberQueryDialog::NewL( number, + CAknQueryDialog::ENoTone ); + CleanupStack::PushL( numDlg ); + AssertNotNullL( numDlg, KNumberQueryTest1 ); + CleanupStack::PopAndDestroy( numDlg ); + + CBCTestNumberQueryDialog* dlg = new( ELeave ) CBCTestNumberQueryDialog( + number, CAknQueryDialog::EConfirmationTone ); + dlg->PrepareLC( R_AVKON_DIALOG_QUERY_VALUE_NUMBER ); + AssertTrueL( ETrue, KNumberQueryTest2 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KNumberQueryTest3 ); + + dlg->SetMinimumAndMaximum( 0, 100 ); + AssertTrueL( ETrue, KNumberQueryTest4 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KNumberQueryTest5 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KNumberQueryTest6 ); + + CleanupStack::PopAndDestroy( dlg ); + } + +// --------------------------------------------------------------------------- +// Test CAknTimeQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestTimeQueryDialogL() + { + TTime time; + time.HomeTime(); + CAknTimeQueryDialog* timeDlg = CAknTimeQueryDialog::NewL( time, + CAknQueryDialog::ENoTone ); + CleanupStack::PushL( timeDlg ); + AssertNotNullL( timeDlg, KTimeQueryTest1 ); + CleanupStack::PopAndDestroy( timeDlg ); + + CBCTestTimeQueryDialog* dlg = new( ELeave ) CBCTestTimeQueryDialog( + time, CAknQueryDialog::EConfirmationTone ); + dlg->PrepareLC( R_AVKON_DIALOG_QUERY_VALUE_TIME ); + AssertTrueL( ETrue, KTimeQueryTest2 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KTimeQueryTest3 ); + + TTime maxTime; + TTimeIntervalYears years( 3 ); + maxTime = time + years; + dlg->SetMinimumAndMaximum( time, maxTime ); + AssertTrueL( ETrue, KTimeQueryTest4 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KTimeQueryTest5 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KTimeQueryTest6 ); + + CleanupStack::PopAndDestroy( dlg ); + } + +// --------------------------------------------------------------------------- +// Test CAknDurationQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestDurationQueryDialogL() + { + TTimeIntervalSeconds time( 3000 ); + CAknDurationQueryDialog* durationDlg = CAknDurationQueryDialog::NewL( + time, CAknQueryDialog::ENoTone ); + CleanupStack::PushL( durationDlg ); + AssertNotNullL( durationDlg, KDurationQueryTest1 ); + CleanupStack::PopAndDestroy( durationDlg ); + + CBCTestDurationQueryDialog* dlg = new( ELeave ) + CBCTestDurationQueryDialog( time, + CAknQueryDialog::EConfirmationTone ); + dlg->PrepareLC( R_AVKON_DIALOG_QUERY_VALUE_DURATION ); + AssertTrueL( ETrue, KDurationQueryTest2 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KDurationQueryTest3 ); + + TTimeIntervalSeconds maxTime( 30000 ); + dlg->SetMinimumAndMaximum( time, maxTime ); + AssertTrueL( ETrue, KDurationQueryTest4 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KDurationQueryTest5 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KDurationQueryTest6 ); + + CleanupStack::PopAndDestroy( dlg ); + } + +// --------------------------------------------------------------------------- +// Test CAknFloatingPointQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestFloatingPointQueryDialogL() + { + TReal number = 1005.74; + CAknFloatingPointQueryDialog* floatDlg = CAknFloatingPointQueryDialog::NewL( + number, + CAknQueryDialog::ENoTone ); + CleanupStack::PushL( floatDlg ); + AssertNotNullL( floatDlg, KFloatingQueryTest1 ); + CleanupStack::PopAndDestroy( floatDlg ); + + CBCTestFloatingPointQueryDialog* dlg = new( ELeave ) + CBCTestFloatingPointQueryDialog( + number, CAknQueryDialog::EConfirmationTone ); + dlg->PrepareLC( R_AVKON_DIALOG_QUERY_VALUE_NUMBER ); + AssertTrueL( ETrue, KFloatingQueryTest2 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KFloatingQueryTest3 ); + + TReal maxNumber = 20000.987; + dlg->SetMinimumAndMaximum( number, maxNumber ); + AssertTrueL( ETrue, KFloatingQueryTest4 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KFloatingQueryTest5 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KFloatingQueryTest6 ); + + CleanupStack::PopAndDestroy( dlg ); + } + +// --------------------------------------------------------------------------- +// Test CAknMultiLineDataQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestMultilineDataQueryDialogL() + { + TTime time; + time.HomeTime(); + TTimeIntervalYears years( 2 ); + TTime time2; + time2 = time + years; + CAknMultiLineDataQueryDialog* mulDlg = CAknMultiLineDataQueryDialog:: + NewL( time, time2 ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest1 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + _LIT( KMulDlgText1, "Test text 1" ); + _LIT( KMulDlgText2, "Test text 2" ); + TBuf buf1( KMulDlgText1 ); + TBuf buf2( KMulDlgText2 ); + mulDlg = CAknMultiLineDataQueryDialog::NewL( buf1, buf2 ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest2 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + mulDlg = CAknMultiLineDataQueryDialog::NewL( buf1, time2 ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest3 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + TInt number = 5; + mulDlg = CAknMultiLineDataQueryDialog::NewL( buf1, number ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest4 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + TTimeIntervalSeconds seconds( 100 ); + mulDlg = CAknMultiLineDataQueryDialog::NewL( buf1, seconds ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest5 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + mulDlg = CAknMultiLineDataQueryDialog::NewL( time, seconds ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest6 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + TInt number2 = 10; + mulDlg = CAknMultiLineDataQueryDialog::NewL( number, number2 ); + CleanupStack::PushL( mulDlg ); + AssertNotNullL( mulDlg, KMultiDataQueryTest7 ); + CleanupStack::PopAndDestroy( mulDlg ); + mulDlg = NULL; + + CBCTestMultiLineDataQueryDialog* dlg = new( ELeave ) + CBCTestMultiLineDataQueryDialog( CAknQueryDialog::EConfirmationTone ); + dlg->PrepareLC( R_BCTESTQUERY_MULTI_LINE_NUMBER_AND_NUMBER ); + AssertTrueL( ETrue, KMultiDataQueryTest8 ); + + dlg->PreLayoutDynInitL(); + AssertTrueL( ETrue, KMultiDataQueryTest9 ); + + dlg->SetPromptL( KMulDlgText1, KMulDlgText2 ); + AssertTrueL( ETrue, KMultiDataQueryTest10 ); + + dlg->DoSetPromptL(); + AssertTrueL( ETrue, KMultiDataQueryTest11 ); + + TInt maxLength = 100; + dlg->SetMaxLengthOfFirstEditor( maxLength ); + AssertTrueL( ETrue, KMultiDataQueryTest12 ); + + dlg->SetMaxLengthOfSecondEditor( maxLength ); + AssertTrueL( ETrue, KMultiDataQueryTest13 ); + + dlg->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue, KMultiDataQueryTest14 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + dlg->HandlePointerEventL( event ); + AssertTrueL( ETrue, KMultiDataQueryTest15 ); + + dlg->UpdateLeftSoftKeyL(); + AssertTrueL( ETrue, KMultiDataQueryTest16 ); + + CAknMultilineQueryControl* firstControl = dlg->FirstControl(); + AssertTrueL( ETrue, KMultiDataQueryTest17 ); + + CAknMultilineQueryControl* secondControl = dlg->SecondControl(); + AssertTrueL( ETrue, KMultiDataQueryTest18 ); + + firstControl->HandlePointerEventL( event ); + AssertTrueL( ETrue, KMultiDataQueryTest19 ); + + CAknQueryControl* queryControl = dlg->QueryControl(); + AssertTrueL( ETrue, KMultiDataQueryTest20 ); + + CAknPopupHeadingPane* headingPane = dlg->QueryHeading(); + AssertTrueL( ETrue, KMultiDataQueryTest21 ); + + TKeyEvent eventHash = { 0, EStdKeyHash, 0, 0 }; + TBool dismiss = dlg->NeedToDismissQueryL( eventHash ); + AssertTrueL( ETrue, KMultiDataQueryTest22 ); + + TPtrC secondPrompt = dlg->SecondPrompt(); + AssertTrueL( ETrue, KMultiDataQueryTest23 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KMultiDataQueryTest24 ); + + CleanupStack::PopAndDestroy( dlg ); + + CAknExtMultilineQueryControl* extCtrl = new( ELeave ) + CAknExtMultilineQueryControl(); + CleanupStack::PushL( extCtrl ); + extCtrl->SetContainerWindowL( *iContainer ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTQUERY_MULTI_CONTROL ); + extCtrl->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + extCtrl->HandlePointerEventL( event ); + AssertTrueL( ETrue, KMultiDataQueryTest25 ); + + CleanupStack::PopAndDestroy( extCtrl ); + } + +// --------------------------------------------------------------------------- +// Test CAknIpAddressQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestIpAddressQueryDialogL() + { + TInetAddr addr; + TBuf textData; + + CAknIpAddressQueryDialog* dlg = NULL; + TInetAddr minAddr( 0, 0 ); + TUint32 maxAddrValue = 0xffffffff; + TInetAddr maxAddr( maxAddrValue, 65535 ); + dlg = CAknIpAddressQueryDialog::NewL( addr, + CAknIpAddressQueryDialog::ENoTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KIpQueryTest1 ); + + dlg->SetMinimumAndMaximum( minAddr, maxAddr ); + AssertTrueL( ETrue, KIpQueryTest2 ); + + CleanupStack::Pop( dlg ); + dlg->ExecuteLD( R_BCTESTQUERY_IP_ADDRESS ); + AssertTrueL( ETrue, KIpQueryTest3 ); + + CAknExtQueryControl* extCtrl = new( ELeave ) CAknExtQueryControl(); + CleanupStack::PushL( extCtrl ); + AssertNotNullL( extCtrl, KIpQueryTest4 ); + + extCtrl->SetContainerWindowL( *iContainer ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTQUERY_EXTCONTROL ); + extCtrl->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + extCtrl->HandlePointerEventL( event ); + AssertTrueL( ETrue, KIpQueryTest5 ); + + TInt minValue = 0; + TInt maxValue = 10000; + extCtrl->SetMinimumAndMaximum( minValue, maxValue ); + AssertTrueL( ETrue, KIpQueryTest6 ); + + extCtrl->SetMinimumAndMaximum( minAddr, maxAddr ); + AssertTrueL( ETrue, KIpQueryTest7 ); + + CleanupStack::PopAndDestroy( extCtrl ); + } + +// --------------------------------------------------------------------------- +// Test CAknFixedPointQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestFixedPointQueryDialogL() + { + TInt initial = 5; + TBuf<10> textData; + + CAknFixedPointQueryDialog* dlg = NULL; + TInt minValue = 0; + TInt maxValue = 100000; + dlg = CAknFixedPointQueryDialog::NewL( initial, + CAknFixedPointQueryDialog::ENoTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KFixedPointQueryTest1 ); + + dlg->SetMinimumAndMaximum( minValue, maxValue ); + AssertTrueL( ETrue, KFixedPointQueryTest2 ); + + CleanupStack::Pop( dlg ); + dlg->ExecuteLD( R_BCTESTQUERY_FIXED_POINT ); + AssertTrueL( ETrue, KFixedPointQueryTest3 ); + } + +// --------------------------------------------------------------------------- +// Test CAknMultiLineIpQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestMultiLineIpQueryDialogL() + { + TInetAddr addr1; + TInetAddr addr2; + TBuf textData; + TBuf tmp; + + CAknMultiLineIpQueryDialog* dlg; + dlg = CAknMultiLineIpQueryDialog::NewL( addr1, addr2, + CAknMultiLineIpQueryDialog::ENoTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KMultiIpQueryTest1 ); + + dlg->SetPromptL( KFirstPrompt, KFirstPrompt ); + AssertTrueL( ETrue, KMultiIpQueryTest2 ); + + const TInt KMaxLength = 64; + dlg->SetMaxLengthOfFirstEditor( KMaxLength ); + AssertTrueL( ETrue, KMultiIpQueryTest3 ); + + dlg->SetMaxLengthOfSecondEditor( KMaxLength ); + AssertTrueL( ETrue, KMultiIpQueryTest4 ); + + CleanupStack::Pop( dlg ); + dlg->ExecuteLD( R_BCTESTQUERY_MULTI_LINE_IP_ADDRESS ); + AssertTrueL( ETrue, KMultiIpQueryTest5 ); + } + +// --------------------------------------------------------------------------- +// Test CAknQueryDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestQueryDialogL() + { + CAknQueryDialog* dlg = CAknQueryDialog::NewL( + CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest1 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + + TBuf text( KQueryDlgText ); + dlg = CAknQueryDialog::NewL( text, CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest2 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + + TInt number = 10; + dlg = CAknQueryDialog::NewL( number, CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest3 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + + TTime time; + time.HomeTime(); + dlg = CAknQueryDialog::NewL( time, CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest4 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + + TTimeIntervalSeconds seconds( 1000 ); + dlg = CAknQueryDialog::NewL( seconds, CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest5 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + + TReal real( 100.56 ); + dlg = CAknQueryDialog::NewL( real, CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest6 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + + TInetAddr addr( 23 ); + dlg = CAknQueryDialog::NewL( addr, CAknQueryDialog::EConfirmationTone ); + CleanupStack::PushL( dlg ); + AssertNotNullL( dlg, KQueryTest7 ); + CleanupStack::PopAndDestroy( dlg ); + dlg = NULL; + } + +// --------------------------------------------------------------------------- +// Test CAknDialog +// --------------------------------------------------------------------------- +// +void CBCTestQueryDialog::TestAknDialogL() + { + CBCTestAknDialog* dlg = new( ELeave ) CBCTestAknDialog(); + dlg->ExecuteLD( R_AVKON_DIALOG_QUERY_VALUE_NUMBER ); + AssertTrueL( ETrue, KAknDlgTest1 ); + AssertTrueL( ETrue, KAknDlgTest2 ); + + dlg = new( ELeave ) CBCTestAknDialog(); + dlg->PrepareLC( R_AVKON_DIALOG_QUERY_VALUE_NUMBER ); + + CEikMenuPane* menuPane = new( ELeave ) CEikMenuPane( dlg ); + CleanupStack::PushL( menuPane ); + dlg->DynInitMenuPaneL( R_BCTESTQUERY_LISTQUERY_MENU, menuPane ); + AssertTrueL( ETrue, KAknDlgTest3 ); + + dlg->DisplayMenuL(); + AssertTrueL( ETrue, KAknDlgTest4 ); + + TBool show = dlg->MenuShowing(); + AssertTrueL( ETrue, KAknDlgTest5 ); + + dlg->OkToExitL( EAknSoftkeyOk ); + AssertTrueL( ETrue, KAknDlgTest6 ); + + CleanupStack::PopAndDestroy( menuPane ); + CleanupStack::PopAndDestroy( dlg ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestTextQueryDialog::CBCTestTextQueryDialog( TDes& aDataText, + const TTone& aTone ) : CAknTextQueryDialog( aDataText, aTone ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestNumberQueryDialog::CBCTestNumberQueryDialog( TInt& aNumber, + const TTone& aTone ) : CAknNumberQueryDialog( aNumber, aTone ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestTimeQueryDialog::CBCTestTimeQueryDialog( TTime& aTime, + const TTone& aTone ) : CAknTimeQueryDialog( aTime, aTone ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestDurationQueryDialog::CBCTestDurationQueryDialog( + TTimeIntervalSeconds& aTime, const TTone& aTone ) + : CAknDurationQueryDialog( aTime, aTone ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestFloatingPointQueryDialog::CBCTestFloatingPointQueryDialog( + TReal& aNumber, const TTone& aTone ) + : CAknFloatingPointQueryDialog( aNumber, aTone ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestMultiLineDataQueryDialog::CBCTestMultiLineDataQueryDialog( + const TTone& aTone ) : CAknMultiLineDataQueryDialog( aTone ) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestquerydocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestquerydocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: document +* +*/ + +#include "bctestquerydocument.h" +#include "bctestqueryappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestQueryDocument* CBCTestQueryDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestQueryDocument* CBCTestQueryDocument::NewL( CEikApplication& aApp ) + { + CBCTestQueryDocument* self = new( ELeave ) CBCTestQueryDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestQueryDocument::~CBCTestQueryDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestQueryDocument::~CBCTestQueryDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestQueryDocument::CBCTestQueryDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestQueryDocument::CBCTestQueryDocument( CEikApplication& aApp ) + : CAknDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestQueryDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestQueryDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestQueryAppUi; + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryvalue.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryvalue.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,657 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case for query value classes +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestqueryvalue.h" +#include "bctestquerycontainer.h" +#include "bctestquery.hrh" +#include + +const TInt KTextLength = 64; + +_LIT( KValueDateTest1, "CAknQueryValueDateArray::NewL" ); +_LIT( KValueDateTest2, "CAknQueryValueDateArray::SetArray" ); +_LIT( KValueDateTest3, "CAknQueryValueDateArray::FormatString" ); +_LIT( KValueDateTest4, "CAknQueryValueDateArray::FormattedStringSize" ); +_LIT( KValueDateTest5, "CAknQueryValueDateArray::MdcaCount" ); +_LIT( KValueDateTest6, "CAknQueryValueDateArray::MdcaPoint" ); +_LIT( KValueDateTest7, "CAknQueryValueDate::NewL" ); +_LIT( KValueDateTest8, "CAknQueryValueDate::SetQueryCaption" ); +_LIT( KValueDateTest9, "CAknQueryValueDate::SetArrayL" ); +_LIT( KValueDateTest10, "CAknQueryValueDate::MdcArray" ); +_LIT( KValueDateTest11, "CAknQueryValueDate::SetCurrentValueIndex" ); +_LIT( KValueDateTest12, "CAknQueryValueDate::CurrentValueIndex" ); +_LIT( KValueDateTest13, "CAknQueryValueDate::Value" ); +_LIT( KValueDateTest14, "CAknQueryValueDate::CurrentValueTextLC" ); +_LIT( KValueDateTest15, "CAknQueryValueDate::CreateEditorL" ); +_LIT( KValueDateTest16, "CAknQueryValue::AppendValueIfNewL" ); +_LIT( KValueDateTest17, "CAknQueryValue::SetQueryMode" ); +_LIT( KValueDateTest18, "CAknQueryValue::SetSettingPageResourceIds" ); +_LIT( KValueDateTest19, "CAknQueryValueDate::SetAutoAppend" ); + +_LIT( KValueDurationTest1, "CAknQueryValueDurationArray::NewL" ); +_LIT( KValueDurationTest2, "CAknQueryValueDurationArray::SetArray" ); +_LIT( KValueDurationTest3, "CAknQueryValueDurationArray::FormatString" ); +_LIT( KValueDurationTest4, "CAknQueryValueDurationArray::FormattedStringSize" ); +_LIT( KValueDurationTest16, "CAknQueryValueDurationArray::FormatDuration" ); +_LIT( KValueDurationTest5, "CAknQueryValueDurationArray::MdcaCount" ); +_LIT( KValueDurationTest6, "CAknQueryValueDurationArray::MdcaPoint" ); +_LIT( KValueDurationTest7, "CAknQueryValueDuration::NewL" ); +_LIT( KValueDurationTest8, "CAknQueryValueDuration::SetQueryCaption" ); +_LIT( KValueDurationTest9, "CAknQueryValueDuration::SetArrayL" ); +_LIT( KValueDurationTest10, "CAknQueryValueDuration::MdcArray" ); +_LIT( KValueDurationTest11, "CAknQueryValueDuration::SetCurrentValueIndex" ); +_LIT( KValueDurationTest12, "CAknQueryValueDuration::CurrentValueIndex" ); +_LIT( KValueDurationTest13, "CAknQueryValueDuration::Value" ); +_LIT( KValueDurationTest14, "CAknQueryValueDuration::CurrentValueTextLC" ); +_LIT( KValueDurationTest15, "CAknQueryValueDuration::CreateEditorL" ); + +_LIT( KValueNumberTest1, "CAknQueryValueNumberArray::NewL" ); +_LIT( KValueNumberTest2, "CAknQueryValueNumberArray::SetArray" ); +_LIT( KValueNumberTest3, "CAknQueryValueNumberArray::FormatString" ); +_LIT( KValueNumberTest4, "CAknQueryValueNumberArray::FormattedStringSize" ); +_LIT( KValueNumberTest5, "CAknQueryValueNumberArray::MdcaCount" ); +_LIT( KValueNumberTest6, "CAknQueryValueNumberArray::MdcaPoint" ); +_LIT( KValueNumberTest7, "CAknQueryValueNumber::NewL" ); +_LIT( KValueNumberTest8, "CAknQueryValueNumber::SetQueryCaption" ); +_LIT( KValueNumberTest9, "CAknQueryValueNumber::SetArrayL" ); +_LIT( KValueNumberTest10, "CAknQueryValueNumber::MdcArray" ); +_LIT( KValueNumberTest11, "CAknQueryValueNumber::SetCurrentValueIndex" ); +_LIT( KValueNumberTest12, "CAknQueryValueNumber::CurrentValueIndex" ); +_LIT( KValueNumberTest13, "CAknQueryValueNumber::Value" ); +_LIT( KValueNumberTest14, "CAknQueryValueNumber::CurrentValueTextLC" ); +_LIT( KValueNumberTest15, "CAknQueryValueNumber::CreateEditorL" ); + +_LIT( KValuePhoneTest1, "CAknQueryValuePhoneArray::NewL" ); +_LIT( KValuePhoneTest2, "CAknQueryValuePhoneArray::SetArray" ); +_LIT( KValuePhoneTest4, "CAknQueryValuePhoneArray::FormattedStringSize" ); +_LIT( KValuePhoneTest5, "CAknQueryValuePhoneArray::MdcaCount" ); +_LIT( KValuePhoneTest6, "CAknQueryValuePhoneArray::MdcaPoint" ); +_LIT( KValuePhoneTest7, "CAknQueryValuePhone::NewL" ); +_LIT( KValuePhoneTest8, "CAknQueryValuePhone::SetQueryCaption" ); +_LIT( KValuePhoneTest9, "CAknQueryValuePhone::SetArrayL" ); +_LIT( KValuePhoneTest10, "CAknQueryValuePhone::MdcArray" ); +_LIT( KValuePhoneTest11, "CAknQueryValuePhone::SetCurrentValueIndex" ); +_LIT( KValuePhoneTest12, "CAknQueryValuePhone::CurrentValueIndex" ); +_LIT( KValuePhoneTest13, "CAknQueryValuePhone::Value" ); +_LIT( KValuePhoneTest14, "CAknQueryValuePhone::CurrentValueTextLC" ); +_LIT( KValuePhoneTest15, "CAknQueryValuePhone::CreateEditorL" ); + +_LIT( KValueTextTest1, "CAknQueryValueTextArray::NewL" ); +_LIT( KValueTextTest2, "CAknQueryValueTextArray::SetArray" ); +_LIT( KValueTextTest4, "CAknQueryValueTextArray::FormattedStringSize" ); +_LIT( KValueTextTest5, "CAknQueryValueTextArray::MdcaCount" ); +_LIT( KValueTextTest6, "CAknQueryValueTextArray::MdcaPoint" ); +_LIT( KValueTextTest7, "CAknQueryValueText::NewL" ); +_LIT( KValueTextTest8, "CAknQueryValueText::SetQueryCaption" ); +_LIT( KValueTextTest9, "CAknQueryValueText::SetArrayL" ); +_LIT( KValueTextTest10, "CAknQueryValueText::MdcArray" ); +_LIT( KValueTextTest11, "CAknQueryValueText::SetCurrentValueIndex" ); +_LIT( KValueTextTest12, "CAknQueryValueText::CurrentValueIndex" ); +_LIT( KValueTextTest13, "CAknQueryValueText::Value" ); +_LIT( KValueTextTest14, "CAknQueryValueText::CurrentValueTextLC" ); +_LIT( KValueTextTest15, "CAknQueryValueText::CreateEditorL" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryValue* CBCTestQueryValue::NewL( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ) + { + CBCTestQueryValue* self = new( ELeave ) CBCTestQueryValue( + aContainer, aEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryValue::CBCTestQueryValue( CBCTestQueryContainer* aContainer, + CEikonEnv* aEnv ): iContainer( aContainer ), iEnv( aEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestQueryValue::~CBCTestQueryValue() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestQueryValue::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::BuildScriptL() + { + for ( TInt i = 0; i <= EBCTestCmdOutline19 - EBCTestCmdOutline14; i++ ) + { + AddTestL( LeftCBA, REP( Down, 2 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, LeftCBA, TEND ); + // for outline15 + if ( i == EBCTestCmdOutline15 - EBCTestCmdOutline14 ) + { + AddTestL( LeftCBA, TEND ); + } + } + } + +// --------------------------------------------------------------------------- +// CBCTestQueryValue::RunL +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline14 || aCmd > EBCTestCmdOutline19 ) + { + return; + } + switch ( aCmd ) + { + case EBCTestCmdOutline14: + TestQueryValueDateL(); + break; + case EBCTestCmdOutline15: + TestQueryValueDurationL(); + break; + case EBCTestCmdOutline16: + TestQueryValueNumberL(); + break; + case EBCTestCmdOutline17: + TestQueryValuePhoneL(); + break; + case EBCTestCmdOutline18: + TestQueryValueTextL(); + break; + case EBCTestCmdOutline19: + TestQueryValueTimeL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// Test CAknQueryValueDate +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::TestQueryValueDateL() + { + CAknQueryValueDateArray* dateArray = CAknQueryValueDateArray::NewL( + R_BCTESTQUERY_DATE_FORMAT ); + CleanupStack::PushL( dateArray ); + AssertNotNullL( dateArray, KValueDateTest1 ); + + CArrayFix* timeArray = new( ELeave ) CArrayFixFlat( 4 ); + CleanupStack::PushL( timeArray ); + TTime time1; + time1.HomeTime(); + TTime time2; + time2 = time1 + TTimeIntervalDays( 3 ); + timeArray->AppendL( time1 ); + timeArray->AppendL( time2 ); + + dateArray->SetArray( *timeArray ); + AssertTrueL( ETrue, KValueDateTest2 ); + + const HBufC* buf = dateArray->FormatString(); + AssertTrueL( ETrue, KValueDateTest3 ); + + const TInt size = dateArray->FormattedStringSize(); + AssertTrueL( ETrue, KValueDateTest4 ); + + TInt mdcaCount = dateArray->MdcaCount(); + AssertTrueL( ETrue, KValueDateTest5 ); + for ( TInt i = 0; i < mdcaCount; i++ ) + { + TPtrC text = dateArray->MdcaPoint( i ); + } + AssertTrueL( ETrue, KValueDateTest6 ); + + CAknQueryValueDate* date = CAknQueryValueDate::NewL(); + CleanupStack::PushL( date ); + AssertNotNullL( date, KValueDateTest7 ); + + date->CAknQueryValue::AppendValueIfNewL(); + AssertTrueL( ETrue, KValueDateTest16 ); + + date->SetQueryMode( MAknQueryValue::ESettingPageMode ); + date->SetQueryMode( MAknQueryValue::EQueryMode ); + AssertTrueL( ETrue, KValueDateTest17 ); + + date->SetSettingPageResourceIds( 0, 0 ); + AssertTrueL( ETrue, KValueDateTest18 ); + + date->SetQueryCaption( R_BCTESTQUERY_CAPTION ); + AssertTrueL( ETrue, KValueDateTest8 ); + + date->SetArrayL( dateArray ); + AssertTrueL( ETrue, KValueDateTest9 ); + + const MDesCArray* mdescArray = date->MdcArray(); + AssertTrueL( ETrue, KValueDateTest10 ); + + date->SetCurrentValueIndex( 0 ); + AssertTrueL( ETrue, KValueDateTest11 ); + + TInt index = date->CurrentValueIndex(); + AssertTrueL( ETrue, KValueDateTest12 ); + + TTime dateTime = date->Value(); + AssertTrueL( ETrue, KValueDateTest13 ); + + HBufC* text = date->CurrentValueTextLC(); + AssertTrueL( ETrue, KValueDateTest14 ); + + TBool create = date->CreateEditorL(); + AssertTrueL( ETrue, KValueDateTest15 ); + + date->SetAutoAppend( ETrue ); + date->SetAutoAppend( EFalse ); + AssertTrueL( ETrue, KValueDateTest19 ); + + CleanupStack::PopAndDestroy( text ); + CleanupStack::PopAndDestroy( date ); + CleanupStack::PopAndDestroy( timeArray ); + CleanupStack::PopAndDestroy( dateArray ); + } + +// --------------------------------------------------------------------------- +// Test CAknQueryValueDuration +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::TestQueryValueDurationL() + { + CArrayFix* durationArray = new( ELeave ) + CArrayFixFlat( 2 ); + CleanupStack::PushL( durationArray ); + TTimeIntervalSeconds dura1( 200 ); + TTimeIntervalSeconds dura2( 7800 ); + durationArray->AppendL( dura1 ); + durationArray->AppendL( dura2 ); + + CAknQueryValueDurationArray* array = CAknQueryValueDurationArray::NewL( + R_BCTESTQUERY_TIME_FORMAT ); + CleanupStack::PushL( array ); + AssertNotNullL( array, KValueDurationTest1 ); + + array->SetArray( *durationArray ); + AssertTrueL( ETrue, KValueDurationTest2 ); + + const HBufC* buf = array->FormatString(); + AssertTrueL( ETrue, KValueDurationTest3 ); + + const TInt size = array->FormattedStringSize(); + AssertTrueL( ETrue, KValueDurationTest4 ); + + TBufC formatText; + TPtr ptr( formatText.Des() ); + TTimeIntervalSeconds dura( 10000 ); + array->FormatDuration( ptr, dura ); + AssertTrueL( ETrue, KValueDurationTest16 ); + + TInt mdcaCount = array->MdcaCount(); + AssertTrueL( ETrue, KValueDurationTest5 ); + for ( TInt i = 0; i < mdcaCount; i++ ) + { + TPtrC text = array->MdcaPoint( i ); + } + AssertTrueL( ETrue, KValueDurationTest6 ); + + CAknQueryValueDuration* duration = CAknQueryValueDuration::NewL(); + CleanupStack::PushL( duration ); + AssertNotNullL( duration, KValueDurationTest7 ); + + duration->SetQueryCaption( R_BCTESTQUERY_CAPTION ); + AssertNotNullL( duration, KValueDurationTest8 ); + + duration->SetArrayL( array ); + AssertNotNullL( duration, KValueDurationTest9 ); + + const MDesCArray* mdescArray = duration->MdcArray(); + AssertNotNullL( duration, KValueDurationTest10 ); + + duration->SetCurrentValueIndex( 1 ); + AssertNotNullL( duration, KValueDurationTest11 ); + + TInt index = duration->CurrentValueIndex(); + AssertNotNullL( duration, KValueDurationTest12 ); + + HBufC* text = duration->CurrentValueTextLC(); + AssertNotNullL( duration, KValueDurationTest13 ); + + TTimeIntervalSeconds secondValue = duration->Value(); + AssertNotNullL( duration, KValueDurationTest14 ); + + duration->CreateEditorL(); + AssertNotNullL( duration, KValueDurationTest15 ); + + CleanupStack::PopAndDestroy( text ); + CleanupStack::PopAndDestroy( duration ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( durationArray ); + } + +// --------------------------------------------------------------------------- +// Test CAknQueryValueNumber +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::TestQueryValueNumberL() + { + CArrayFix* numberArray = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( numberArray ); + numberArray->AppendL( 134567 ); + numberArray->AppendL( 25890 ); + + CAknQueryValueNumberArray* array = CAknQueryValueNumberArray::NewL( + R_BCTESTQUERY_NUMBER_FORMAT ); + CleanupStack::PushL( array ); + AssertNotNullL( array, KValueNumberTest1 ); + + array->SetArray( *numberArray ); + AssertTrueL( ETrue, KValueNumberTest2 ); + + const HBufC* buf = array->FormatString(); + AssertTrueL( ETrue, KValueNumberTest3 ); + + const TInt stringSize = array->FormattedStringSize(); + AssertTrueL( ETrue, KValueNumberTest4 ); + + TInt mdcaCount = array->MdcaCount(); + AssertTrueL( ETrue, KValueNumberTest5 ); + for ( TInt i = 0; i < mdcaCount; i++ ) + { + TPtrC text = array->MdcaPoint( i ); + } + AssertTrueL( ETrue, KValueNumberTest6 ); + + CAknQueryValueNumber* number = CAknQueryValueNumber::NewL(); + CleanupStack::PushL( number ); + AssertNotNullL( number, KValueNumberTest7 ); + + number->SetQueryCaption( R_BCTESTQUERY_CAPTION ); + AssertTrueL( ETrue, KValueNumberTest8 ); + + number->SetArrayL( array ); + AssertTrueL( ETrue, KValueNumberTest9 ); + + const MDesCArray* mdcArray = number->MdcArray(); + AssertTrueL( ETrue, KValueNumberTest10 ); + + number->SetCurrentValueIndex( 0 ); + AssertTrueL( ETrue, KValueNumberTest11 ); + + TInt index = number->CurrentValueIndex(); + AssertTrueL( ETrue, KValueNumberTest12 ); + + TInt numberValue = number->Value(); + AssertTrueL( ETrue, KValueNumberTest13 ); + + HBufC* text = number->CurrentValueTextLC(); + AssertTrueL( ETrue, KValueNumberTest14 ); + + number->CreateEditorL(); + AssertTrueL( ETrue, KValueNumberTest15 ); + + CleanupStack::PopAndDestroy( text ); + CleanupStack::PopAndDestroy( number ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( numberArray ); + } + +// --------------------------------------------------------------------------- +// Test CAknQueryValuePhone +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::TestQueryValuePhoneL() + { + CDesCArray* textArray = new( ELeave ) CDesCArrayFlat( 2 ); + CleanupStack::PushL( textArray ); + _LIT( KPhoneValue1, "010-12345678" ); + _LIT( KPhoneValue2, "13512345678" ); + textArray->AppendL( KPhoneValue1 ); + textArray->AppendL( KPhoneValue2 ); + + CAknQueryValuePhoneArray* array = CAknQueryValuePhoneArray::NewL(); + CleanupStack::PushL( array ); + AssertNotNullL( array, KValuePhoneTest1 ); + + array->SetArray( *textArray ); + AssertTrueL( ETrue, KValuePhoneTest2 ); + + const TInt stringSize = array->FormattedStringSize(); + AssertTrueL( ETrue, KValuePhoneTest4 ); + + TInt mdcaCount = array->MdcaCount(); + AssertTrueL( ETrue, KValuePhoneTest5 ); + for ( TInt i = 0; i < mdcaCount; i++ ) + { + TPtrC text = array->MdcaPoint( i ); + } + AssertTrueL( ETrue, KValuePhoneTest6 ); + + CAknQueryValuePhone* phone = CAknQueryValuePhone::NewL(); + CleanupStack::PushL( phone ); + AssertNotNullL( phone, KValuePhoneTest7 ); + + phone->SetQueryCaption( R_BCTESTQUERY_CAPTION ); + AssertTrueL( ETrue, KValuePhoneTest8 ); + + phone->SetArrayL( array ); + AssertTrueL( ETrue, KValuePhoneTest9 ); + + const MDesCArray* mdcArray = phone->MdcArray(); + AssertTrueL( ETrue, KValuePhoneTest10 ); + + phone->SetCurrentValueIndex( 0 ); + AssertTrueL( ETrue, KValuePhoneTest11 ); + + TInt index = phone->CurrentValueIndex(); + AssertTrueL( ETrue, KValuePhoneTest12 ); + + HBufC* phoneValue = phone->Value(); + AssertTrueL( ETrue, KValuePhoneTest13 ); + + HBufC* text = phone->CurrentValueTextLC(); + AssertTrueL( ETrue, KValuePhoneTest14 ); + + phone->CreateEditorL(); + AssertTrueL( ETrue, KValuePhoneTest15 ); + + CleanupStack::PopAndDestroy( text ); + CleanupStack::PopAndDestroy( phone ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( textArray ); + } + +// --------------------------------------------------------------------------- +// Test CAknQueryValueText +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::TestQueryValueTextL() + { + CDesCArray* textArray = new( ELeave ) CDesCArrayFlat( 2 ); + CleanupStack::PushL( textArray ); + _LIT( KTextValue1, "Text Value 1" ); + _LIT( KTextValue2, "Text Value 2" ); + textArray->AppendL( KTextValue1 ); + textArray->AppendL( KTextValue2 ); + + CAknQueryValueTextArray* array = CAknQueryValueTextArray::NewL(); + CleanupStack::PushL( array ); + AssertNotNullL( array, KValueTextTest1 ); + + array->SetArray( *textArray ); + AssertTrueL( ETrue, KValueTextTest2 ); + + const TInt stringSize = array->FormattedStringSize(); + AssertTrueL( ETrue, KValueTextTest4 ); + + TInt mdcaCount = array->MdcaCount(); + AssertTrueL( ETrue, KValueTextTest5 ); + for ( TInt i = 0; i < mdcaCount; i++ ) + { + TPtrC text = array->MdcaPoint( i ); + } + AssertTrueL( ETrue, KValueTextTest6 ); + + CAknQueryValueText* queryText = CAknQueryValueText::NewL(); + CleanupStack::PushL( queryText ); + AssertNotNullL( queryText, KValueTextTest7 ); + + queryText->SetQueryCaption( R_BCTESTQUERY_CAPTION ); + AssertTrueL( ETrue, KValueTextTest8 ); + + queryText->SetArrayL( array ); + AssertTrueL( ETrue, KValueTextTest9 ); + + const MDesCArray* mdcArray = queryText->MdcArray(); + AssertTrueL( ETrue, KValueTextTest10 ); + + queryText->SetCurrentValueIndex( 0 ); + AssertTrueL( ETrue, KValueTextTest11 ); + + TInt index = queryText->CurrentValueIndex(); + AssertTrueL( ETrue, KValueTextTest12 ); + + HBufC* textValue = queryText->Value(); + AssertTrueL( ETrue, KValueTextTest13 ); + + HBufC* text = queryText->CurrentValueTextLC(); + AssertTrueL( ETrue, KValueTextTest14 ); + + queryText->CreateEditorL(); + AssertTrueL( ETrue, KValueTextTest15 ); + + CleanupStack::PopAndDestroy( text ); + CleanupStack::PopAndDestroy( queryText ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( textArray ); + } + +// --------------------------------------------------------------------------- +// Test CAknQueryValueTime +// --------------------------------------------------------------------------- +// +void CBCTestQueryValue::TestQueryValueTimeL() + { + _LIT( KValueTimeTest1, "CAknQueryValueTimeArray::NewL" ); + _LIT( KValueTimeTest2, "CAknQueryValueTimeArray::SetArray" ); + _LIT( KValueTimeTest3, "CAknQueryValueTimeArray::FormatString" ); + _LIT( KValueTimeTest4, "CAknQueryValueTimeArray::FormattedStringSize" ); + _LIT( KValueTimeTest5, "CAknQueryValueTimeArray::MdcaCount" ); + _LIT( KValueTimeTest6, "CAknQueryValueTimeArray::MdcaPoint" ); + _LIT( KValueTimeTest7, "CAknQueryValueTime::NewL" ); + _LIT( KValueTimeTest8, "CAknQueryValueTime::SetQueryCaption" ); + _LIT( KValueTimeTest9, "CAknQueryValueTime::SetArrayL" ); + _LIT( KValueTimeTest10, "CAknQueryValueTime::MdcArray" ); + _LIT( KValueTimeTest11, "CAknQueryValueTime::SetCurrentValueIndex" ); + _LIT( KValueTimeTest12, "CAknQueryValueTime::CurrentValueIndex" ); + _LIT( KValueTimeTest13, "CAknQueryValueTime::Value" ); + _LIT( KValueTimeTest14, "CAknQueryValueTime::CurrentValueTextLC" ); + _LIT( KValueTimeTest15, "CAknQueryValueTime::CreateEditorL" ); + CArrayFix* timeArray = new( ELeave ) CArrayFixFlat( 4 ); + CleanupStack::PushL( timeArray ); + TTime time1; + time1.HomeTime(); + TTime time2; + time2 = time1 + TTimeIntervalDays( 3 ); + timeArray->AppendL( time1 ); + timeArray->AppendL( time2 ); + + CAknQueryValueTimeArray* array = CAknQueryValueTimeArray::NewL( + R_BCTESTQUERY_TIME_FORMAT ); + CleanupStack::PushL( array ); + AssertNotNullL( array, KValueTimeTest1 ); + + array->SetArray( *timeArray ); + AssertTrueL( ETrue, KValueTimeTest2 ); + + const HBufC* formatString = array->FormatString(); + AssertTrueL( ETrue, KValueTimeTest3 ); + + const TInt stringSize = array->FormattedStringSize(); + AssertTrueL( ETrue, KValueTimeTest4 ); + + TInt mdcaCount = array->MdcaCount(); + AssertTrueL( ETrue, KValueTimeTest5 ); + for ( TInt i = 0; i < mdcaCount; i++ ) + { + TPtrC text = array->MdcaPoint( i ); + } + AssertTrueL( ETrue, KValueTimeTest6 ); + + CAknQueryValueTime* queryTime = CAknQueryValueTime::NewL(); + CleanupStack::PushL( queryTime ); + AssertNotNullL( queryTime, KValueTimeTest7 ); + + queryTime->SetQueryCaption( R_BCTESTQUERY_CAPTION ); + AssertTrueL( ETrue, KValueTimeTest8 ); + + queryTime->SetArrayL( array ); + AssertTrueL( ETrue, KValueTimeTest9 ); + + const MDesCArray* mdcArray = queryTime->MdcArray(); + AssertTrueL( ETrue, KValueTimeTest10 ); + + queryTime->SetCurrentValueIndex( 0 ); + AssertTrueL( ETrue, KValueTimeTest11 ); + + TInt index = queryTime->CurrentValueIndex(); + AssertTrueL( ETrue, KValueTimeTest12 ); + + TTime timeValue = queryTime->Value(); + AssertTrueL( ETrue, KValueTimeTest13 ); + + HBufC* text = queryTime->CurrentValueTextLC(); + AssertTrueL( ETrue, KValueTimeTest14 ); + + queryTime->CreateEditorL(); + AssertTrueL( ETrue, KValueTimeTest15 ); + + CleanupStack::PopAndDestroy( text ); + CleanupStack::PopAndDestroy( queryTime ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( timeArray ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestquery/src/bctestqueryview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,138 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include +#include "bctestqueryview.h" +#include "bctestquerycontainer.h" +#include "bctestquery.hrh" +#include "bctestutil.h" +#include "bctestlistquery.h" +#include "bctestquerydialog.h" +#include "bctestqueryvalue.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryView* CBCTestQueryView::NewL( CBCTestUtil* aUtil ) + { + CBCTestQueryView* self = new( ELeave ) CBCTestQueryView( aUtil ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestQueryView::CBCTestQueryView( CBCTestUtil* aUtil): iTestUtil( aUtil ) + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestQueryView::ConstructL() + { + BaseConstructL( R_BCTESTQUERY_VIEW ); + + iContainer = new( ELeave ) CBCTestQueryContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + CEikonEnv* env = CEikonEnv::Static(); + + _LIT( KListQueryCase, "List Query" ); + _LIT( KQueryDialogCase, "Query Dialog" ); + _LIT( KQueryValueCase, "Query Value" ); + + iTestUtil->AddTestCaseL( CBCTestListQuery::NewL( iContainer, env ), + KListQueryCase ); + iTestUtil->AddTestCaseL( CBCTestQueryDialog::NewL( iContainer, env ), + KQueryDialogCase ); + iTestUtil->AddTestCaseL( CBCTestQueryValue::NewL( iContainer, env ), + KQueryValueCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestQueryView::~CBCTestQueryView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestQueryView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestQueryView::Id() const + { + return KBCTestListViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestQueryView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestQueryView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestQueryView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestQueryView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestQueryView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestQueryView::HandleCommandL( TInt aCommand ) + { + switch( aCommand ) + { + case EProgCmdAutoTest: + AppUi()->HandleCommandL( aCommand ); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EProgSoftkeyNextOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearer_lst.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearer_lst.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearer_lst_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearer_lst_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreencleareraif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreencleareraif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,30 @@ +/* +* 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 "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: RSS for creating the aif file +* +*/ + + +#include + +RESOURCE AIF_DATA + { + app_uid = 0x101F84B0; + groupName="BCTest"; + num_icons = 2; + embeddability=KAppNotEmbeddable; + newfile=KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearersmallicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearersmallicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearersmalliconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/aif/bctestscreenclearersmalliconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bctestscreenclearer.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bctestscreenclearer.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,94 @@ +/* +* 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 "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: project specification file for the BCTestScreenClearer. +* +*/ + + +TARGET bctestscreenclearer.exe +TARGETTYPE exe +UID 0x0 0x2000474A + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestscreenclearer.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctestscreenclearerapp.cpp +SOURCE bctestscreenclearerdocument.cpp +SOURCE bctestscreenclearerappui.cpp +SOURCE bctestscreenclearerview.cpp +SOURCE bctestscreenclearercontainer.cpp +SOURCE bctestscreenclearercase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eikctl.lib + +// Creates Mbm file. +START BITMAP bctestscreenclearer.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../datasrc +SOURCE C8 sampleIcon.bmp +SOURCE C8 sampleIconmask.bmp +END + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestscreenclearer_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. +START BITMAP bctestscreenclearer_aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 bctestscreenclearersmallicon.bmp +source c8 bctestscreenclearersmalliconmask.bmp +source c8 bctestscreenclearer_lst.bmp +source c8 bctestscreenclearer_lst_mask.bmp +end + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bctestscreenclearer.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bctestscreenclearer.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,204 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME SCCR + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestscreenclearer.hrh" +#include "bctestscreenclearer.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTSCREENCLEARER_BMP_FNAME APP_BITMAP_DIR"\ + \\bctestscreenclearer.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctest_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestscreenclearer_menubar_main; + cba = r_bctestscreenclearer_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestscreenclearer_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestscreenclearer_view +// AVKON_VIEW for CBCTestscreenclearerView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestscreenclearer_view + { + menubar = r_bctestscreenclearer_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestscreenclearer_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestscreenclearer_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestscreenclearer_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestscreenclearer_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestscreenclearer_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestscreenclearer_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdTestL; + txt = qtn_bctestscreenclearer_testl; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestscreenclearer_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestscreenclearer_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestscreenclearer_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestscreenclearer_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestscreenclearer_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestscreenclearer_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestScreenClearerCbaCmdNext; + txt = qtn_bctestscreenclearer_cba_next; + } + }; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bctestscreenclearer_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bctestscreenclearer_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ +/* +* 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 "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: resources for the module +* +*/ + + +#include +#include + +#include "bctestscreenclearer.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000474A // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_bctest_app_file; + localisable_resource_file = qtn_bctest_resource; + localisable_resource_id = R_BCTESTSCREENCLEARER_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //newfile = KAppDoesNotSupportNewFile; + //launch = KAppLaunchInForeground; + group_name = qtn_bctest_group; + //default_screen_number = 2; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestscreenclearer.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearer.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearer.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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: BCTestScreenClearer resource header file +* +*/ + + +#ifndef BCTESTSCREENCLEARER_HRH +#define BCTESTSCREENCLEARER_HRH + +enum TBCTestScreenClearerMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdTestL, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestScreenClearerCba + { + EBCTestScreenClearerCbaCmdNext = 0x6300 + }; + +#endif // BCTESTSCREENCLEARER_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearer.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearer.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +/* +* 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 "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: BCTestScreenClearer localise file +* +*/ + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTSCREENCLEARER" +#define qtn_apps_tavl_grid "BCTESTSCREENCLEARER" + +// MenuBar +#define qtn_bctestscreenclearer_menubar "Option" +#define qtn_bctestscreenclearer_cba_next "Next" +#define qtn_bctestscreenclearer_autotest "Autotest" +#define qtn_bctestscreenclearer_menu_exit "Exit" + +//Name +#define qtn_bctest_buf "bctestsc" +#define qtn_bctest_app_file "bctestscreenclearer" +#define qtn_bctest_resource "\\resource\\apps\\bctestscreenclearer" +#define qtn_bctest_group "BCTest" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestscreenclearer_testl "TestL" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 \ + to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,55 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTSCREENCLEARERAPP_H +#define C_CBCTESTSCREENCLEARERAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestScreenClearer = { + 0x2000474A }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestScreenClearerApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestScreenClearerApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestScreenClearerDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestScreenClearer ). + * @return The value of KUidBCTestScreenClearer. + */ + TUid AppDllUid() const; + + }; + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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 BC for ScreenClearer control API. +* +*/ + + +#ifndef C_BCTESTSCREENCLEARERAPPUI_H +#define C_BCTESTSCREENCLEARERAPPUI_H + +#include + +class CBCTestScreenClearerView; + +/** + * Application UI class + */ +class CBCTestScreenClearerAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestScreenClearerAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestScreenClearerAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestScreenClearerView* iView; + }; + +#endif // C_BCTESTSCREENCLEARERAPPUI_H + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTEST_SCREENCLEARERCASE_H +#define C_CBCTEST_SCREENCLEARERCASE_H + +#include "bctestcase.h" + +class CBCTestScreenClearerContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestScreenClearerCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestScreenClearerCase* NewL( + CBCTestScreenClearerContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestScreenClearerCase(); + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestScreenClearerCase( + CBCTestScreenClearerContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + /** + * Pointer to container. + * not own + */ + CBCTestScreenClearerContainer* iContainer; + + }; + +#endif // BCTEST_SCREENCLEARERCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearercontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearercontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef C_CBCTEST_SCREENCLEARERCONTAINER_H +#define C_CBCTEST_SCREENCLEARERCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestScreenClearerContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestScreenClearerContainer(); + + /** + * Destructor + */ + virtual ~CBCTestScreenClearerContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_SCREENCLEARERCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 C_BCTESTSCREENCLEARERDOCUMENT_H +#define C_BCTESTSCREENCLEARERDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** + * CBCTestScreenClearerDocument application class. + */ +class CBCTestScreenClearerDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestScreenClearerDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestScreenClearerDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestScreenClearerDocument( CEikApplication& aApp ); + +private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestScreenClearerAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSCREENCLEARERDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/inc/bctestscreenclearerview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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 BC for ScreenClearer control API. +* +*/ + + +#ifndef C_CBCTEST_SCREENCLEARER_VIEW_H +#define C_CBCTEST_SCREENCLEARER_VIEW_H + +#include + +const TUid KBCTestScreenClearerViewId = { 1 }; + +class CBCTestScreenClearerContainer; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestScreenClearerView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestScreenClearerView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestScreenClearerView(); + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestScreenClearerView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestScreenClearerContainer* iContainer; + + }; + +#endif // BCTEST_SCREENCLEARER_VIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/sis/bctestscreenclearer.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/sis/bctestscreenclearer.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +; +; 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: +; +; BCTestScreenClearer-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestScreenClearer"},(0x2000474A),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestScreenClearer.exe"- +"!:\sys\bin\BCTestScreenClearer.exe" + +"\epoc32\data\z\resource\apps\BCTestScreenClearer.RSC"- +"!:\resource\apps\BCTestScreenClearer.RSC" + +"\epoc32\data\z\resource\apps\BCTestScreenClearer_aif.mbm"- +"!:\resource\apps\BCTestScreenClearer_aif.mbm" + +"\epoc32\data\z\resource\apps\BCTestScreenClearer.mbm"- +"!:\resource\apps\BCTestScreenClearer.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestScreenClearer_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestScreenClearer_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Avkon ScreenClearer test app +* +*/ + + +// INCLUDE FILES +#include + +#include "bctestscreenclearerapp.h" +#include "bctestscreenclearerdocument.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestScreenClearerApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestScreenClearerApp::AppDllUid() const + { + return KUidBCTestScreenClearer; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestScreenClearerApp::CreateDocumentL() +// Creates CBCTestScreenClearerDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestScreenClearerApp::CreateDocumentL() + { + return CBCTestScreenClearerDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestScreenClearerApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestScreenClearerApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for screenclearer control api(s) +* +*/ + +#include +#include + +#include "bctestscreenclearerappui.h" +#include "bctestscreenclearer.hrh" +#include "bctestscreenclearerview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerAppUi::CBCTestScreenClearerAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestScreenClearerView* view = CBCTestScreenClearerView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestScreenClearerAppUi::~CBCTestScreenClearerAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestScreenClearerAppUi::~CBCTestScreenClearerAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestScreenClearerAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,181 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include "bctestscreenclearercase.h" +#include "bctestscreenclearercontainer.h" +#include "bctestscreenclearer.hrh" + +const TInt KLength = 200; +const TInt KNum = 500; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerCase* CBCTestScreenClearerCase::NewL( + CBCTestScreenClearerContainer* aContainer ) + { + CBCTestScreenClearerCase* self = new( ELeave ) CBCTestScreenClearerCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerCase::CBCTestScreenClearerCase( + CBCTestScreenClearerContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerCase::~CBCTestScreenClearerCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdTestL || aCmd > EBCTestCmdTestL ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdTestL: + TestL(); + break; + default: + break; + } + } + +// ---------------------------------------------------------------------------- +// test ScreenClearer API +// ---------------------------------------------------------------------------- +// +void CBCTestScreenClearerCase::TestL() + { + TBool blankAppStatusPane = ETrue; + TPointerEvent pointerEvent; + + CAknLocalScreenClearer* screenclearernew1 = + CAknLocalScreenClearer::NewLC(); + _LIT( KScreenClearerNew11, "~CAknScreenClearerBase() test" ); + AssertNotNullL( screenclearernew1, KScreenClearerNew11 ); + _LIT( KScreenClearerNew12, "NewLC test" ); + AssertNotNullL( screenclearernew1, KScreenClearerNew12 ); + _LIT( KScreenClearerNew13, "ConstructL( 3 ) test for screenclearer:" ); + AssertNotNullL( screenclearernew1, KScreenClearerNew13 ); + screenclearernew1->HandleStatusPaneSizeChangeL(); + _LIT( KScreenClearerNew14, "HandleStatusPaneSizeChangeL test" ); + AssertNotNullL( screenclearernew1, KScreenClearerNew14 ); + screenclearernew1->HandlePointerEventL( pointerEvent ); + _LIT( KScreenClearerNew15, "HandlePointerEventL test" ); + AssertNotNullL( screenclearernew1, KScreenClearerNew15 ); + CleanupStack::PopAndDestroy( screenclearernew1 ); + + CAknLocalScreenClearer* screenclearernew2; + screenclearernew2 = CAknLocalScreenClearer::NewLC( blankAppStatusPane ); + _LIT( KScreenClearerNew21, "NewLC( TBool aBlankAppStatusPane) test" ); + AssertNotNullL( screenclearernew2, KScreenClearerNew21 ); + CleanupStack::PopAndDestroy( screenclearernew2 ); + + CAknLocalScreenClearer* screenclearernew3; + screenclearernew3 = CAknLocalScreenClearer::NewL( blankAppStatusPane ); + CleanupStack::PushL( screenclearernew3 ); + _LIT( KScreenClearerNew22, "NewL( TBool aBlankAppStatusPane ) test" ); + AssertNotNullL( screenclearernew3, KScreenClearerNew22 ); + CleanupStack::PopAndDestroy( screenclearernew3 ); + + CEikSpacer* eikspacer1 = new( ELeave ) CEikSpacer; + CleanupStack::PushL( eikspacer1 ); + _LIT( KEikSpacer11, "CEikSpacer test for screenclearer:" ); + AssertNotNullL( eikspacer1, KEikSpacer11 ); + eikspacer1->SetWidth( KLength ); + _LIT( KEikSpacer12, "SetWidth( TInt aWidth ) test" ); + AssertNotNullL( eikspacer1, KEikSpacer12 ); + eikspacer1->SetHeight( KLength ); + _LIT( KEikSpacer13, "SetHeight( TInt aHeight ) test" ); + AssertNotNullL( eikspacer1, KEikSpacer13 ); + + eikspacer1->SetColor( KRgbBlack ); + _LIT( KEikSpacer14, "SetColor( TRgb aColor ) test" ); + AssertNotNullL( eikspacer1, KEikSpacer14 ); + + eikspacer1->SetClear( ETrue ); + _LIT( KEikSpacer15, "SetClear( TBool aClear ) test" ); + AssertNotNullL( eikspacer1, KEikSpacer15 ); + + TPointerEvent pointerEvent2 = { TPointerEvent::EButton1Up, + EModifierAutorepeatable, TPoint( 20, 20 ), TPoint( 0, 0 ) }; + eikspacer1->HandlePointerEventL( pointerEvent2 ); + _LIT( KHandlePointerEventL2, "HandlePointerEventL test" ); + AssertNotNullL( eikspacer1, KHandlePointerEventL2 ); + + CleanupStack::PopAndDestroy( eikspacer1 ); + + CEikSpacer* eikspacer2; + eikspacer2 = new( ELeave )CEikSpacer( KNum, KNum, KRgbBlack ); + CleanupStack::PushL( eikspacer2 ); + _LIT( KEikSpacer21, "CEikSpacer( 3 ) test" ); + AssertNotNullL( eikspacer2, KEikSpacer21 ); + _LIT( KEikSpacer22, "~CEikSpacer() test" ); + AssertNotNullL( eikspacer2, KEikSpacer22 ); + CleanupStack::PopAndDestroy( eikspacer2 ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearercontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearercontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,119 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestscreenclearercontainer.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerContainer::CBCTestScreenClearerContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerContainer::~CBCTestScreenClearerContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestScreenClearerContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestScreenClearerContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestScreenClearerContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestScreenClearerContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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: Avkon ScreenClearer test application +* +*/ + + +// INCLUDE FILES +#include "bctestscreenclearerdocument.h" +#include "bctestscreenclearerappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestScreenClearerDocument* CBCTestScreenClearerDocument::NewL( +// CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestScreenClearerDocument* CBCTestScreenClearerDocument::NewL( + CEikApplication& aApp ) + { + CBCTestScreenClearerDocument* self = + new( ELeave ) CBCTestScreenClearerDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestScreenClearerDocument::~CBCTestScreenClearerDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestScreenClearerDocument::~CBCTestScreenClearerDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestScreenClearerDocument::CBCTestScreenClearerDocument( +// CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestScreenClearerDocument::CBCTestScreenClearerDocument( + CEikApplication& aApp ): CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestScreenClearerDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestScreenClearerDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestScreenClearerAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscreenclearer/src/bctestscreenclearerview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,137 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestscreenclearer.hrh" +#include "bctestscreenclearerview.h" +#include "bctestscreenclearercontainer.h" +#include "bctestutil.h" +#include "bctestscreenclearercase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerView* CBCTestScreenClearerView::NewL() + { + CBCTestScreenClearerView* self = new( ELeave ) CBCTestScreenClearerView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerView::CBCTestScreenClearerView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerView::ConstructL() + { + BaseConstructL( R_BCTESTSCREENCLEARER_VIEW ); + + iContainer = new( ELeave ) CBCTestScreenClearerContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT( KTestcase, "ScreenClearer test case" ); + iTestUtil->AddTestCaseL( CBCTestScreenClearerCase::NewL( iContainer ), + KTestcase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestScreenClearerView::~CBCTestScreenClearerView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestScreenClearerView::Id() const + { + return KBCTestScreenClearerViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerView::DoActivateL( const TVwsViewId&, TUid, + const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestScreenClearerView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestScreenClearerView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bctestscroller.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bctestscroller.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,74 @@ +/* +* 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 "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: project specification file for the BCTestScroller. +* +*/ + + +TARGET BCTestScroller.exe +TARGETTYPE exe +UID 0x0 0x20004767 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestScroller.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestScrollerapp.cpp +SOURCE bctestScrollerdocument.cpp +SOURCE bctestScrollerappui.cpp +SOURCE bctestScrollerview.cpp +SOURCE bctestScrollercontainer.cpp +SOURCE bctestScrollercase.cpp +SOURCE bctestMedi.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY avkon.lib +LIBRARY eikcoctl.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +LIBRARY eikctl.lib +LIBRARY form.lib +LIBRARY uiklaf.lib + +START RESOURCE ../group/BCTestScroller_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bctestscroller.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bctestscroller.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,207 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "BCTestscroller.hrh" +#include "BCTestscroller.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestScroller"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestscroller_menubar_main; + cba = r_bctestscroller_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestscroller_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestScroller_view +// AVKON_VIEW for CBCTestScrollerView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestscroller_view + { + menubar = r_bctestscroller_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestScroller_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestscroller_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestscroller_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestscroller_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestScroller_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestscroller_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestscroller_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestscroller_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestscroller_outline3; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestScroller_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestscroller_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestscroller_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestscroller_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestScroller_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestscroller_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestScrollerCbaCmdNext; + txt = qtn_bctestscroller_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bctestscroller_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bctestscroller_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004767 // application UID + + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestScroller"; + localisable_resource_file = "\\resource\\apps\\BCTestScroller"; + localisable_resource_id = R_BCTESTSCROLLER_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestScroller.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestmedi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestmedi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_MEDI_H +#define BCTEST_MEDI_H + +#include + + +/** +* test case for various list classes +*/ + +class CBCTestMedi: public CEikScrollBar + { +public: // constructor and destructor + friend class CBCTestScrollerCase; + + /** + * C++ default constructor + */ + CBCTestMedi(); + + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * Destructor + */ + virtual ~CBCTestMedi(); +private: + void SizeChanged(); + + }; + +#endif // BCTEST_MISCELLCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscroller.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscroller.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: BCTestScroller resource header file +* +*/ + + +#ifndef BCTESTScroller_HRH +#define BCTESTScroller_HRH + +enum TBCTestScrollerMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestScrollerCba + { + EBCTestScrollerCbaCmdNext = 0x6300 + }; + +#endif // BCTESTScroller_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscroller.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscroller.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,45 @@ +/* +* 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 "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: BCTestscroller localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTscroller" +#define qtn_apps_tavl_grid "BCTESTscroller" + +// MenuBar +#define qtn_bctestscroller_menubar "Option" +#define qtn_bctestscroller_cba_next "Next" +#define qtn_bctestscroller_autotest "Autotest" +#define qtn_bctestscroller_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestscroller_outline1 " TestScroBar " +#define qtn_bctestscroller_outline2 " TestScroBarFrame " +#define qtn_bctestscroller_outline3 " TestScrollButton " + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestScrollerAPP_H +#define BCTestScrollerAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestScroller = { 0x20004767 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestScrollerApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestScrollerApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestScrollerDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestScroller ). + * @return The value of KUidBCTestScroller. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Scroller control API. +* +*/ + + +#ifndef C_BCTESTScrollerAPPUI_H +#define C_BCTESTScrollerAPPUI_H + +#include + +class CBCTestScrollerView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestScrollerAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestScrollerAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestScrollerAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestScrollerView* iView; + }; + +#endif // C_BCTESTScrollerAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,112 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_ScrollerCASE_H +#define BCTEST_ScrollerCASE_H + +#include "bctestcase.h" + +class CBCTestScrollerContainer; +class CCoeControl; +class CBCTestScrollerView; + +/** +* test case for various list classes +*/ +class CBCTestScrollerCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestScrollerCase* NewL( CBCTestScrollerContainer* aContainer , + CBCTestScrollerView* aView ); + + /** + * Destructor + */ + virtual ~CBCTestScrollerCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestScroBarL(); + + void TestScroBarFrameL(); + + void TestScrollButtonL(); +private: // constructor + + /** + * C++ default constructor + */ + CBCTestScrollerCase( CBCTestScrollerContainer* aContainer, + CBCTestScrollerView* aView ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestScrollerContainer* iContainer; + + CBCTestScrollerView* iView; + + }; + +#endif // BCTEST_ScrollerCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollercontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollercontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_ScrollerCONTAINER_H +#define BCTEST_ScrollerCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestScrollerContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestScrollerContainer(); + + /** + * Destructor + */ + virtual ~CBCTestScrollerContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_ScrollerCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTScrollerDOCUMENT_H +#define C_BCTESTScrollerDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestScrollerDocument application class. +*/ +class CBCTestScrollerDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestScrollerDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestScrollerDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestScrollerDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestScrollerAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTScrollerDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/inc/bctestscrollerview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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 BC for Scroller control API. +* +*/ + + +#ifndef BCTEST_Scroller_VIEW_H +#define BCTEST_Scroller_VIEW_H + +#include + +const TUid KBCTestScrollerViewId = { 1 }; + +class CBCTestScrollerContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestScrollerView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestScrollerView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestScrollerView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + + CBCTestScrollerView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestScrollerContainer* iContainer; + + }; + +#endif // BCTEST_Scroller_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/sis/bctestscrollerbar.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/sis/bctestscrollerbar.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestScroller.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestScroller"},(0x20004767),1,0,0,TYPE=SA + +;Supports Series 60 v 2.0 +;This line indicates that this installation is for the Series 60 platform v2.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v2.0 platforms +(0x101f7961), 0, 0, 0, {"Series60ProductID"} + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +; Target +"\epoc32\release\armv5\urel\bctestscroller.exe"- +"!:\sys\bin\bctestscroller.exe" + +"\epoc32\data\z\resource\apps\bctestscroller.RSC"- +"!:\resource\apps\bctestscroller.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestscroller_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestscroller_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestmedi.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestmedi.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include "bctestmedi.h" +#include "bctestScroller.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMedi::CBCTestMedi() + { + } + +//--------------------------------------------------------------------------- +// CBCTestMiscellCase::ConstructL() +//---------------------------------------------------------------------------- + +void CBCTestMedi::ConstructL() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMedi::~CBCTestMedi() + { + } + +void CBCTestMedi::SizeChanged() + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Scroller test app +* +*/ + + +// INCLUDE FILES +#include "BCTestScrollerApp.h" +#include "BCTestScrollerDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestScrollerApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestScrollerApp::AppDllUid() const + { + return KUidBCTestScroller; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestScrollerApp::CreateDocumentL() +// Creates CBCTestScrollerDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestScrollerApp::CreateDocumentL() + { + return CBCTestScrollerDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestScrollerApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- + +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestScrollerApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for Scroller control api(s) +* +*/ + +#include +#include + +#include "bctestScrollerAppUi.h" +#include "bctestScroller.hrh" +#include "bctestScrollerview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestScrollerAppUi::CBCTestScrollerAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestScrollerAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestScrollerView* view = CBCTestScrollerView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestScrollerAppUi::~CBCTestScrollerAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestScrollerAppUi::~CBCTestScrollerAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestScrollerAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,414 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestmedi.h" +#include "bctestScrollercase.h" +#include "bctestScrollercontainer.h" +#include "bctestScroller.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerCase* CBCTestScrollerCase::NewL( + CBCTestScrollerContainer* aContainer , CBCTestScrollerView* aView ) + { + CBCTestScrollerCase* self = new( ELeave ) CBCTestScrollerCase( + aContainer ,aView); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerCase::CBCTestScrollerCase( + CBCTestScrollerContainer* aContainer ,CBCTestScrollerView* aView ) + : iContainer( aContainer ),iView( aView ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerCase::~CBCTestScrollerCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestScrollerCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestScrollerCase::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK,LeftCBA,Down,KeyOK,LeftCBA,Down,Down,KeyOK,TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestScrollerCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline3 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestScroBarL(); + break; + case EBCTestCmdOutline2: + TestScroBarFrameL(); + break; + case EBCTestCmdOutline3: + TestScrollButtonL();; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestScrollerCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + case EBCTestCmdOutline2: + case EBCTestCmdOutline3: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestScrollerCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestScrollerCase::TestScroBarL() + { + + // Test some API here + CEikScrollBar *sBar = new ( ELeave ) CEikScrollBar(); + CleanupStack::PushL(sBar); + + sBar->DefaultScrollBarBreadth(); + _LIT( defScroBread," Test DefaultScrollBarBreadth() " );; + AssertTrueL( ETrue,defScroBread ); + + TPointerEvent ptEvnt; + ptEvnt.iType = TPointerEvent::EButton1Down; + sBar->HandlePointerEventL(ptEvnt); + _LIT( handPtEvnt,"Test HandlePointEventL()" ); + AssertTrueL( ETrue,handPtEvnt); + + sBar->MinVisibleLength( TInt( 1 ) ); + _LIT( minVisible," Test MinVisibleLength() " ); + AssertTrueL( ETrue,minVisible); + + sBar->SetAllButtonsDimmed( ETrue ); + _LIT( stButnDim," Test SetAllButtonsDimmed() " ); + AssertTrueL( ETrue,stButnDim ); + + sBar->SetDecreaseButtonsDimmed( ETrue ); + _LIT(stDeButtonDim," Test SetDecreaseButtonsDimmed() " ); + AssertTrueL( ETrue,stDeButtonDim ); + + sBar->SetIncreaseButtonsDimmed( ETrue ); + _LIT( stInBtnDim," Test SetIncreaseButtonDimmed() "); + AssertTrueL( ETrue,stInBtnDim ); + + TEikScrollBarModel* model = new ( ELeave ) TEikScrollBarModel(); + CleanupStack::PushL( model ); + sBar->SetLengthAndModelL( TInt(3),model ); + CleanupStack::Pop(); + _LIT( stLenAndModel," Test SetLengthAndModelL() " ); + AssertTrueL( ETrue,stLenAndModel); + + sBar->SetLengthL(TInt( 5 ) ); + _LIT( stLength," Test SetLengthL() " ); + AssertTrueL( ETrue,stLength ); + + sBar->SetModelThumbPosition( TInt( 2 ) ); + _LIT( stModelThumPsition," Test SetModelThumbPosition() " ); + AssertTrueL( ETrue,stModelThumPsition); + + sBar->ThumbPosition(); + _LIT( thumPosition," Test thumPosition() "); + AssertTrueL( ETrue,thumPosition ); + + sBar->SetFocusPosToThumbPos( TInt( 9 )); + _LIT( stFocPosToPos," Test SetFocusPosToThumbPos() " ); + AssertTrueL( ETrue,stFocPosToPos ); + + sBar->SetModelL( model ); + _LIT( stMod," Test SetModelL() " ); + AssertTrueL( ETrue,stMod ); + + delete model; + CleanupStack::PopAndDestroy(); + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::TestScroBarFrameL +// --------------------------------------------------------------------------- + +void CBCTestScrollerCase::TestScroBarFrameL() + { + CCoeControl* container = new (ELeave) CCoeControl; + CEikScrollBarFrame * sBarFrame = new ( ELeave ) + CEikScrollBarFrame(container, NULL); + CleanupStack::PushL( sBarFrame ); + + sBarFrame->VerticalScrollBar(); + _LIT(vtScrollBar," Test VerticalScrollBar() " ); + AssertTrueL( ETrue, vtScrollBar); + + sBarFrame->CreateDoubleSpanScrollBarsL( EFalse,EFalse ); + _LIT( crtDoubleSpanScrBar," Test CreateDoubleSpanScrollBarsL()" ); + AssertTrueL( ETrue,crtDoubleSpanScrBar ); + + sBarFrame->DrawScrollBarsNow(); + _LIT( drwScrBar," Test DrawScrollBarsNow() " ); + AssertTrueL( ETrue,drwScrBar ); + + sBarFrame->IsArrowHeadScrollBar( TInt( 1 ) ); + _LIT( isArwHedScrBar," Test IsArrowHeadScrollBar()" ) ; + AssertTrueL( ETrue,isArwHedScrBar ); + + sBarFrame->MoveThumbsBy( TInt( 1 ),TInt( 1 ) ); + _LIT( mvThumBy," Test MoveThumbsBy() " ); + AssertTrueL( ETrue,mvThumBy ); + + sBarFrame->SetTypeOfHScrollBar( sBarFrame->TypeOfHScrollBar() ); + _LIT( stTypeHScrBar," Test SetTypeOfHscrollBar() " ); + AssertTrueL( ETrue,stTypeHScrBar ); + + sBarFrame->SetTypeOfVScrollBar( sBarFrame->TypeOfVScrollBar() ); + _LIT( stTypeVScrBar," Test SetTypeOfVscrollBar() " ); + AssertTrueL( ETrue,stTypeVScrBar ); + + TEikScrollBarModel *scrBarModel = new ( ELeave ) + TEikScrollBarModel(); + sBarFrame->Tile( scrBarModel ); + _LIT( tile," Test Tile(onePara) " ); + AssertTrueL( ETrue,tile); + + TEikScrollBarModel *hModel = new ( ELeave ) TEikScrollBarModel(); + TEikScrollBarModel *vModel = new ( ELeave ) TEikScrollBarModel(); + TRect rect; + TRect rect1; + TEikScrollBarFrameLayout aLayout; + sBarFrame->TileL(hModel, vModel,rect,rect1,aLayout); + + sBarFrame->Tile(hModel,vModel); + + delete hModel; + delete vModel; + delete scrBarModel; + AssertTrueL( ETrue,tile ); + + sBarFrame->SetAdjustsHorizontalModel( EFalse ); + _LIT( stAdjHModel," Test SetAdjustsHorizontalModel() "); + AssertTrueL( ETrue,stAdjHModel ); + + sBarFrame->SetAdjustsVerticalModel( EFalse ); + _LIT( stAdjVModel," Test SetAdjustVerticalModel() " ); + AssertTrueL( ETrue,stAdjVModel ); + + CleanupStack::PopAndDestroy(); + delete container; + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerCase::TestScrollButtonL +// --------------------------------------------------------------------------- + +void CBCTestScrollerCase::TestScrollButtonL() + { + CEikScrollButton *scrButton = new CEikScrollButton( + CEikScrollButton::ENudgeLeft ); + + TPointerEvent ptEvnt; + ptEvnt.iType = TPointerEvent::EButton1Down; + scrButton->HandlePointerEventL(ptEvnt); + _LIT( handPtEvnt,"Test HandlePointEventL()" ); + AssertTrueL( ETrue,handPtEvnt); + + scrButton->Type(); + _LIT( tp," Test Type() " ); + AssertTrueL( ETrue,tp ); + delete scrButton; + + CEikArrowHeadScrollButton *hButton = CEikArrowHeadScrollButton::NewL( + iContainer , CEikScrollButton::ENudgeLeft); + delete hButton; + + CEikArrowHeadScrollBar *hBar = new ( ELeave ) + CEikArrowHeadScrollBar( iContainer ); + + //---------- head button construct -----------------------------// + CEikCba* mopCba = 0; + + hBar->ConstructL(mopCba,iContainer,CEikScrollBar::EVertical,TInt( 9 )); + _LIT( cstrct," Test ConstructL() " ); + AssertTrueL( ETrue,cstrct ); + + hBar->HandlePointerEventL( ptEvnt ); + AssertTrueL( ETrue,handPtEvnt); + + delete hBar; + //**** end of head button + + TEikScrollBarModel * sBarMod = new ( ELeave ) TEikScrollBarModel(); + + sBarMod->CheckBounds(); + _LIT( chkBound," Test CheckBounds() " ); + AssertTrueL( ETrue,chkBound ); + + sBarMod->MaxThumbPos(); + _LIT( mxThumPos," Test MaxThumbPos() " ); + AssertTrueL( ETrue,mxThumPos ); + delete sBarMod; + + CAknDoubleSpanScrollBar *dSpanScrBar = new + ( ELeave ) CAknDoubleSpanScrollBar( iContainer ); + _LIT( newSpanBar," Test CAknDoubleSpanScrollBar "); + AssertNotNullL( dSpanScrBar,newSpanBar ); + + dSpanScrBar->ConstructL(EFalse,NULL,iContainer, + CEikScrollBar::EVertical,TInt( 9 ) ); + _LIT(constr," Test ConstructL() " ); + AssertTrueL( ETrue,constr ); + + TPointerEvent pEvnt; + pEvnt.iType = TPointerEvent::EButton1Up; + dSpanScrBar->HandlePointerEventL(pEvnt); + _LIT( hPtEvnt,"Test HandlePointEventL()" ); + AssertTrueL( ETrue,hPtEvnt); + delete dSpanScrBar; + + TAknDoubleSpanScrollBarModel *dSpaScrBarMod = new ( ELeave ) + TAknDoubleSpanScrollBarModel(); + + dSpaScrBarMod->SetFieldPosition( TInt( 9 ) ); + _LIT( stFldPos," Test SetFieldPosition() " ); + AssertTrueL( ETrue,stFldPos); + + dSpaScrBarMod->SetFieldSize( TInt( 8 ) ); + _LIT( stFldSiz," Test SetFieldSize() " ); + AssertTrueL( ETrue,stFldSiz ); + delete dSpaScrBarMod; + + CAknScrollButton *aknScrBut =CAknScrollButton::NewL( + CAknScrollButton::ENudgeLeft, CAknScrollButton::ENormal ); + + aknScrBut->IsNormalScrollBarUsingButton(); + _LIT(isNorBar," Test IsNormalScrollBarUsingButton()" ); + AssertTrueL( ETrue,isNorBar); + + aknScrBut->SetPosition( TInt( 3 ), TInt( 14 ) ); + _LIT(stPos," Test SetPosition()" ); + AssertTrueL( ETrue,stPos ); + + aknScrBut->CreateWindowOnlyForArrowsL( iContainer ); + _LIT(crtWinForArrow," Test CreateWindowOnlyForArrowsL() " ); + AssertTrueL( ETrue,crtWinForArrow ); + delete aknScrBut; + + CAknScrollButton *aknScrBut1 =CAknScrollButton::NewL( + CAknScrollButton::ENudgeLeft); + + aknScrBut1->SetTypeOfScrollBarUsingButton(CAknScrollButton::ENormal); + _LIT( stTypeBarUseBut," Test SetTypeOfScrollBarUsingButton() " ); + AssertTrueL( ETrue,stTypeBarUseBut ); + + CBCTestMedi * medi = new ( ELeave ) CBCTestMedi(); + medi->SetButtonPositionL( aknScrBut1 ); + _LIT(stButPos," Test SetButtonPositionL() " ); + AssertTrueL( ETrue,stButPos ); + + medi->ComponentControl( TInt( 1 ) ); + _LIT( cmpntControl," Test ComponentControl() " ); + AssertTrueL( ETrue,cmpntControl ); + + delete medi; + delete aknScrBut1; + + CEikScrollBarFrame * sBarFrame = new ( ELeave ) + CEikScrollBarFrame(iContainer, NULL); + + sBarFrame->ScrollBarExists( CEikScrollBar::EVertical ); + _LIT( sBarExist," Test ScrollBarExists() " ); + AssertTrueL( ETrue,sBarExist ); + + delete sBarFrame; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollercontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollercontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestScrollercontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerContainer::CBCTestScrollerContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerContainer::~CBCTestScrollerContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestScrollerContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestScrollerContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestScrollerContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestScrollerContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestScrollerContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestScrollerContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestScrollerContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Scroller test application +* +*/ + + +// INCLUDE FILES +#include "BCTestScrollerDocument.h" +#include "BCTestScrollerAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestScrollerDocument* CBCTestScrollerDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestScrollerDocument* CBCTestScrollerDocument::NewL( CEikApplication& aApp ) + { + CBCTestScrollerDocument* self = new( ELeave ) CBCTestScrollerDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestScrollerDocument::~CBCTestScrollerDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestScrollerDocument::~CBCTestScrollerDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestScrollerDocument::CBCTestScrollerDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestScrollerDocument::CBCTestScrollerDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestScrollerDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestScrollerDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestScrollerAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestscrollerbar/src/bctestscrollerview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,132 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestscroller.hrh" +#include "bctestscrollerview.h" +#include "bctestscrollercontainer.h" +#include "bctestutil.h" +#include "bctestscrollercase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerView* CBCTestScrollerView::NewL() + { + CBCTestScrollerView* self = new( ELeave ) CBCTestScrollerView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerView::CBCTestScrollerView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestScrollerView::ConstructL() + { + BaseConstructL( R_BCTESTSCROLLER_VIEW ); + + iContainer = new( ELeave ) CBCTestScrollerContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT(addCase,"Scroller test case " ); + iTestUtil->AddTestCaseL( CBCTestScrollerCase::NewL( iContainer,this ), + addCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestScrollerView::~CBCTestScrollerView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestScrollerView::Id() const + { + return KBCTestScrollerViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestScrollerView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestScrollerView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestScrollerView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestScrollerView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bctestsearchfield.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bctestsearchfield.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: project specification file for the bctestsearchfield. +* +*/ + + +TARGET bctestsearchfield.exe +TARGETTYPE exe +UID 0x0 0x2000474B + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestsearchfield.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestsearchfieldapp.cpp +SOURCE bctestsearchfielddocument.cpp +SOURCE bctestsearchfieldappui.cpp +SOURCE bctestsearchfieldview.cpp +SOURCE bctestsearchfieldcontainer.cpp +SOURCE bctestsearchfieldcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +START RESOURCE ../group/bctestsearchfield_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bctestsearchfield.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bctestsearchfield.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,185 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME SEAR + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestsearchfield.hrh" +#include "bctestsearchfield.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTSEARCHFIELD_BMP_FNAME APP_BITMAP_DIR"\\bctestsearchfield.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "SearchField"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestsearchfield_menubar_main; + cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestsearchfield_localisable_app_info + { + short_caption = qtn_bctestsearchfield_short_caption; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_bctestsearchfield_long_caption; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsearchfield_view +// AVKON_VIEW for CbctestsearchfieldView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestsearchfield_view + { + menubar = r_bctestsearchfield_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsearchfield_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestsearchfield_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestsearchfield_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestsearchfield_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsearchfield_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestsearchfield_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline01; + txt = qtn_bctestsearchfield_outline01; + }, + MENU_ITEM + { + command = EBCTestCmdOutline02; + txt = qtn_bctestsearchfield_outline02; + }, + MENU_ITEM + { + command = EBCTestCmdOutline03; + txt = qtn_bctestsearchfield_outline03; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsearchfield_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestsearchfield_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdAutoTest; + txt = qtn_bctestsearchfield_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestsearchfield_menu_exit; + } + }; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bctestsearchfield_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bctestsearchfield_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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 bctestsearchfield +* +*/ + + +#include +#include + +#include "bctestsearchfield.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000474B // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_apps_name; + localisable_resource_file = qtn_localization_filename; + localisable_resource_id = R_BCTESTSEARCHFIELD_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestSearchfield.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfield.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfield.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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 headers for project bctestsearchfield +* +*/ + + +#ifndef BCTESTSEARCHFIELD_HRH +#define BCTESTSEARCHFIELD_HRH + +enum TBCTestSearchFieldIds + { + EBCTestCmdEmptyOutline = 0x6000, + + EBCTestCmdOutline01, + EBCTestCmdOutline02, + EBCTestCmdOutline03, + EBCTestCmdMaxOutline, + + EBCTestCmdAutoTest + }; + +#endif // BCTESTSEARCHFIELD_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfield.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfield.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,40 @@ +/* +* 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 "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: Localization strings for project bctestsearchfield +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_bctestsearchfield_short_caption "BCTESTSEARCHFIELD" +#define qtn_bctestsearchfield_long_caption "BCTESTSEARCHFIELD" + +// MenuBar +#define qtn_bctestsearchfield_menubar "Option" +#define qtn_bctestsearchfield_autotest "Autotest" +#define qtn_bctestsearchfield_menu_exit "Exit" + +#define qtn_bctestsearchfield_outline01 "OUTLINE01" +#define qtn_bctestsearchfield_outline02 "OUTLINE02" +#define qtn_bctestsearchfield_outline03 "OUTLINE03" + +// softkey +#define text_softkey_option "Options" + +// registraton string +#define qtn_apps_name "bctestsearchfield" +#define qtn_localization_filename "\\resource\\apps\\bctestsearchfield" +#define qtn_group_name "BCTest" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +/* +* 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 "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: Declares application UI class. +* +*/ + + +#ifndef C_BCTESTSEARCHFIELDAPP_H +#define C_BCTESTSEARCHFIELDAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestSearchField = { 0x2000474B }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestTemplateApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestSearchFieldApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTemplateDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTemplate ). + * @return The value of KUidBCTestTemplate. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTSEARCHFIELDAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,74 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTSEARCHFIELDAPPUI_H +#define C_BCTESTSEARCHFIELDAPPUI_H + +#include + +class CBCTestSearchFieldView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSearchFieldAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestSearchFieldAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestSearchFieldAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestSearchFieldView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + }; + +#endif // C_BCTESTSEARCHFIELDAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,100 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTSEARCHFIELDCASE_H +#define C_BCTESTSEARCHFIELDCASE_H + +#include "bctestcase.h" + +class CAknSearchField; +class CBCTestSearchFieldContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestSearchFieldCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestSearchFieldCase* NewL( CBCTestSearchFieldContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestSearchFieldCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** test searchfield control creation API(s).*/ + void TestCreateL(); + + /** try to create the searchfield control. */ + void TryCreateL(); + + /** test searchfield control about text APIs.*/ + void TestTextL(); + + /** test searchfield control about other APIs.*/ + void TestOthersL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSearchFieldCase( CBCTestSearchFieldContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to SearchField. + * own + */ + CAknSearchField* iSearchField; + + /** + * Pointer to container. + * not own + */ + CBCTestSearchFieldContainer* iContainer; + + }; + +#endif // C_BCTESTSEARCHFIELDCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,95 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTESTSEARCHFIELDCONTAINER_H +#define C_BCTESTSEARCHFIELDCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestSearchFieldContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestSearchFieldContainer(); + + /** + * Destructor + */ + virtual ~CBCTestSearchFieldContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * get iCoeEnv + */ + CCoeEnv* GetCoeEnv(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTSEARCHFIELDCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfielddocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfielddocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTSEARCHFIELDDOCUMENT_H +#define C_BCTESTSEARCHFIELDDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestSearchFieldDocument application class. +*/ +class CBCTestSearchFieldDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestSearchFieldDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestSearchFieldDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestSearchFieldDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestSearchFieldAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSEARCHFIELDDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/inc/bctestsearchfieldview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,101 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTSEARCHFIELDVIEW_H +#define C_BCTESTSEARCHFIELDVIEW_H + +#include + +const TUid KBCTestSearchFieldViewId = { 1 }; + +class CBCTestSearchFieldContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSearchFieldView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestSearchFieldView* NewL( CBCTestUtil* aUtil ); + + /** + * dtor + */ + virtual ~CBCTestSearchFieldView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSearchFieldView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestSearchFieldContainer* iContainer; + + }; + +#endif // C_BCTESTSEARCHFIELDVIEW_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/sis/bctestsearchfield.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/sis/bctestsearchfield.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestsearchfield.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestsearchfield"},(0x2000474B),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestsearchfield.exe"- +"!:\sys\bin\bctestsearchfield.exe" + +"\epoc32\data\z\resource\apps\bctestsearchfield.RSC"- +"!:\resource\apps\bctestsearchfield.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestsearchfield_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestsearchfield_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implement BC test searchfield application +* +*/ + + +#include + +#include "bctestsearchfieldapp.h" +#include "bctestsearchfielddocument.h" + + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestSearchFieldApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestSearchFieldApp::AppDllUid() const + { + return KUidBCTestSearchField; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestSearchFieldApp::CreateDocumentL() +// Creates CBCTestSearchFieldDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestSearchFieldApp::CreateDocumentL() + { + return CBCTestSearchFieldDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestSearchFieldApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestSearchFieldApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,84 @@ +/* +* 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 "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: Implement BC test searchfield appui +* +*/ + +#include +#include + +#include "bctestsearchfieldAppUi.h" +#include "bctestsearchfield.hrh" +#include "bctestsearchfieldview.h" +#include "bctestutil.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldAppUi::CBCTestSearchFieldAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestSearchFieldView* view = CBCTestSearchFieldView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestSearchFieldAppUi::~CBCTestSearchFieldAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSearchFieldAppUi::~CBCTestSearchFieldAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestSearchFieldAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,255 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + +#include +#include +#include +#include +#include +#include // CAknSearchField + +#include "bctestsearchfieldcase.h" +#include "bctestsearchfieldcontainer.h" +#include "bctestsearchfield.hrh" + +const TInt KOne = 1; +const TInt KTwo = 2; +const TInt KThree = 3; +const TInt KFifteen = 15; +const TInt KTwenty = 20; +const TInt KSearchFieldMaxLength = 256; + +_LIT( KCreateComment, "iSearchField created" ); +_LIT( KSetSkinEnabledLComment, "SetSkinEnabledL() invoked" ); +_LIT( KText, "TestSearchField" ); +_LIT( KSetSearchTextLComment, "SetSearchTextL() invoked" ); +_LIT( KTextLengthComment, "SearchFieldLength = 15" ); +_LIT( KSelectSearchTextLComment, "SelectSearchTextL() invoked" ); +_LIT( KGetSearchTextLComment, "GetSearchTextL() invoked" ); +_LIT( KResetLComment, "ResetL() invoked" ); +_LIT( KTextLengthOverComment, "SearchFieldLength = 0" ); +_LIT( KInfoText, "This is my searchfield."); +_LIT( KSetInfoTextLComment, "SetInfoTextL() invoked" ); +_LIT( KMinimumSizeComment, "MinimumSize() invoked" ); +_LIT( KSetLinePosComment, "SetLinePos() invoked" ); +_LIT( KEditorComment, "Editor() invoked" ); +_LIT( KClipboardLComment, "ClipboardL() invoked" ); +_LIT( KOfferKeyEventLComment, "OfferKeyEventL() invoked" ); +_LIT( KHandleControlEventL, "HandleControlEventL() invoked" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldCase* CBCTestSearchFieldCase::NewL( + CBCTestSearchFieldContainer* aContainer ) + { + CBCTestSearchFieldCase* self = new( ELeave ) CBCTestSearchFieldCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldCase::CBCTestSearchFieldCase( + CBCTestSearchFieldContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldCase::~CBCTestSearchFieldCase() + { + delete iSearchField; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline1 + DELAY( KTwo ),// delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA, + + //outline2 + LeftCBA, + REP( Down, KOne ), + LeftCBA, + + //outline3 + LeftCBA, + REP( Down, KTwo ), + LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline01 || + aCmd > EBCTestCmdOutline03 ) + { + return; + } + switch ( aCmd ) + { + case EBCTestCmdOutline01: + TestCreateL(); + break; + case EBCTestCmdOutline02: + TestTextL(); + break; + case EBCTestCmdOutline03: + TestOthersL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// try to test creation of the searchfield control. +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldCase::TestCreateL() + { + if ( !iSearchField ) + { + iSearchField = CAknSearchField::NewL( *iContainer, + CAknSearchField::ESearch, NULL, KSearchFieldMaxLength ); + AssertNotNullL( iSearchField, KCreateComment ); + + iSearchField->SetSkinEnabledL( ETrue ); + iSearchField->SetSkinEnabledL( EFalse ); + + AssertTrueL( ETrue, KSetSkinEnabledLComment ); + } + } + +// --------------------------------------------------------------------------- +// test searchfield control about text APIs. +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldCase::TestTextL() + { + if ( !iSearchField ) + { + TestCreateL(); + } + + iSearchField->SetSearchTextL( KText ); + AssertTrueL( ETrue, KSetSearchTextLComment ); + iContainer->DrawNow(); + + AssertIntL( KFifteen, iSearchField->TextLength(), KTextLengthComment ); + + iSearchField->SelectSearchTextL(); + AssertTrueL( ETrue, KSelectSearchTextLComment ); + + TBuf rSearchTxt; + iSearchField->GetSearchText( rSearchTxt ); + AssertTrueL( ETrue, KGetSearchTextLComment ); + + iSearchField->ResetL(); + AssertTrueL( ETrue, KResetLComment ); + AssertIntL( 0, iSearchField->TextLength(), KTextLengthOverComment ); + + iSearchField->SetInfoTextL( KInfoText ); + AssertTrueL( ETrue, KSetInfoTextLComment ); + + } + +// --------------------------------------------------------------------------- +// test searchfield control about other APIs. +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldCase::TestOthersL() + { + if ( !iSearchField ) + { + TestCreateL(); + } + + TSize minisize; + minisize = iSearchField->MinimumSize(); + AssertTrueL( ETrue, KMinimumSizeComment ); + + iSearchField->SetLinePos( KOne ); + iSearchField->SetLinePos( KThree ); + AssertTrueL( ETrue, KSetLinePosComment ); + + iSearchField->Editor(); + AssertTrueL( ETrue, KEditorComment ); + + iSearchField->ClipboardL( CEikEdwin::ECopy ); + AssertTrueL( ETrue, KClipboardLComment ); + + CCoeControl* control = new( ELeave ) CCoeControl(); + CleanupStack::PushL( control ); + iSearchField->HandleControlEventL( control, + MCoeControlObserver::EEventRequestFocus ); + AssertTrueL( ETrue, KHandleControlEventL ); + CleanupStack::PopAndDestroy( control ); + + TKeyEvent keyevent; + keyevent.iCode = EKeyOK; + iSearchField->OfferKeyEventL( keyevent, EEventKey ); + + keyevent.iCode = EKeyRightArrow; + iSearchField->OfferKeyEventL( keyevent, EEventKey ); + + keyevent.iCode = EKeyLeftArrow; + iSearchField->OfferKeyEventL( keyevent, EEventKey ); + + keyevent.iCode = EKeyUpArrow; + iSearchField->OfferKeyEventL( keyevent, EEventKey ); + + keyevent.iCode = EKeyDownArrow; + iSearchField->OfferKeyEventL( keyevent, EEventKey ); + + AssertTrueL( ETrue, KOfferKeyEventLComment ); + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,122 @@ +/* +* 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 "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: container +* +*/ + +#include "bctestsearchfieldcontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldContainer::CBCTestSearchFieldContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldContainer::~CBCTestSearchFieldContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestSearchFieldContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestSearchFieldContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestSearchFieldContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestSearchFieldContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPopupsContainer::GetCoeEnv +// --------------------------------------------------------------------------- +// +CCoeEnv* CBCTestSearchFieldContainer::GetCoeEnv() + { + return iCoeEnv; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfielddocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfielddocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: view class +* +*/ + +#include "bctestsearchfielddocument.h" +#include "bctestsearchfieldappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestSearchFieldDocument* CBCTestSearchFieldDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSearchFieldDocument* CBCTestSearchFieldDocument::NewL( + CEikApplication& aApp ) + { + CBCTestSearchFieldDocument* self = new( ELeave ) + CBCTestSearchFieldDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestSearchFieldDocument::~CBCTestSearchFieldDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSearchFieldDocument::~CBCTestSearchFieldDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestSearchFieldDocument::CBCTestSearchFieldDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSearchFieldDocument::CBCTestSearchFieldDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestSearchFieldDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestSearchFieldDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestSearchFieldAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsearchfield/src/bctestsearchfieldview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestsearchfield.hrh" +#include +#include "bctestsearchfieldview.h" +#include "bctestsearchfieldcontainer.h" +#include "bctestutil.h" +#include "bctestsearchfieldcase.h" + +_LIT( KTestCaseComment, "CBCTestSearchField" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldView* CBCTestSearchFieldView::NewL(CBCTestUtil* aUtil) + { + CBCTestSearchFieldView* self = new( ELeave ) CBCTestSearchFieldView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldView::CBCTestSearchFieldView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldView::ConstructL( CBCTestUtil* aUtil ) + { + BaseConstructL( R_BCTESTSEARCHFIELD_VIEW ); + + iContainer = new( ELeave ) CBCTestSearchFieldContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + iTestUtil->AddTestCaseL( CBCTestSearchFieldCase::NewL( iContainer ), + KTestCaseComment ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSearchFieldView::~CBCTestSearchFieldView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestSearchFieldView::Id() const + { + return KBCTestSearchFieldViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestSearchFieldView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestSearchFieldView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EBCTestCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bctestserverapp.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bctestserverapp.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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: project specification file for the BCTestServerapp. +* +*/ + + +TARGET BCTestServerapp.exe +TARGETTYPE exe +UID 0x0 0x2000475E + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestserverapp.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestserverappapp.cpp +SOURCE bctestserverappdocument.cpp +SOURCE bctestserverappappui.cpp +SOURCE bctestserverappview.cpp +SOURCE bctestserverappcontainer.cpp +SOURCE bctestserverappcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY AknSkinSrv.lib + +START RESOURCE ../group/bctestserverapp_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bctestserverapp.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bctestserverapp.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,249 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestserverapp.hrh" +#include "BCTestserverapp.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestserverapp_BMP_FNAME APP_BITMAP_DIR"\\BCTestServerapp.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestServerapp"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestserverapp_menubar_main; + cba = r_bctestserverapp_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestserverapp_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestserverapp_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestserverapp_view +// AVKON_VIEW for CBCTestServerappView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestserverapp_view + { + menubar = r_bctestserverapp_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestserverapp_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestserverapp_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestserverapp_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestserverapp_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestserverapp_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestserverapp_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestserverapp_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestserverapp_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestserverapp_outline3; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestserverapp_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestserverapp_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestserverapp_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestserverapp_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestserverapp_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestserverapp_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestServerappCbaCmdNext; + txt = qtn_bctestserverapp_cba_next; + } + }; + } + +//=============================================================================== +// user defined +// +//=============================================================================== +RESOURCE BMPANIM_DATA r_bctest_bmpanim_data_org + { + //identifier = 0; + frameinterval = 300; // ms + playmode = EAknBitmapAnimationPlayModePlay; + flash = 0; + bmpfile = AVKON_BITMAP_FILE; + frames = r_bctest_note_error_anim_frames; + backgroundframe = R_QGN_NOTE_QUERY_ANIM_FRAMES; + } + +RESOURCE ARRAY r_bctest_note_error_anim_frames + { + items= + { + BMPANIM_FRAME {time=300; bmpid=EMbmAvkonQgn_note_error_2; maskid=EMbmAvkonQgn_note_error_2_mask;}, + BMPANIM_FRAME {time=300; bmpid=EMbmAvkonQgn_note_error; maskid=EMbmAvkonQgn_note_error_mask;}, + BMPANIM_FRAME {time=300; bmpid=EMbmAvkonQgn_note_error_2; maskid=EMbmAvkonQgn_note_error_2_mask;}, + BMPANIM_FRAME {time=300; bmpid=EMbmAvkonQgn_note_error; maskid=EMbmAvkonQgn_note_error_mask;} + }; + } + +RESOURCE BMPANIM_DATA r_bctest_bmpanim_data + { + //identifier = 0; + frameinterval = 300; // ms + playmode = EAknBitmapAnimationPlayModePlay; + bmpfile = AVKON_BITMAP_FILE; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bctestserverapp_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bctestserverapp_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475E // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestServerapp"; + localisable_resource_file = "\\resource\\apps\\BCTestServerapp"; + localisable_resource_id = R_BCTESTSERVERAPP_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestServerapp.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverapp.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverapp.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: BCTestServerapp resource header file +* +*/ + + +#ifndef BCTESTSERVERAPP_HRH +#define BCTESTSERVERAPP_HRH + +enum TBCTestServerappMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestServerappCba + { + EBCTestServerappCbaCmdNext = 0x6300 + }; + +#endif // BCTESTSERVERAPP_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverapp.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverapp.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,45 @@ +/* +* 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 "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: BCTestServerapp localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTSERVERAPP" +#define qtn_apps_tavl_grid "BCTESTSERVERAPP" + +// MenuBar +#define qtn_bctestserverapp_menubar "Option" +#define qtn_bctestserverapp_cba_next "Next" +#define qtn_bctestserverapp_autotest "Autotest" +#define qtn_bctestserverapp_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestserverapp_outline1 "Outline01" +#define qtn_bctestserverapp_outline2 "Outline02" +#define qtn_bctestserverapp_outline3 "Outline03" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,58 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTSERVERAPPAPP_H +#define BCTESTSERVERAPPAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestServerapp = { 0x2000475E }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestServerappApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestServerappApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestServerappDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestServerapp ). + * @return The value of KUidBCTestServerapp. + */ + TUid AppDllUid() const; + /*public: + void NewAppServerL(CApaAppServer*& aAppServer);*/ + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTSERVERAPPAPPUI_H +#define C_BCTESTSERVERAPPAPPUI_H + +#include + +class CBCTestServerappView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestServerappAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestServerappAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestServerappAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestServerappView* iView; + }; + +#endif // C_BCTESTSERVERAPPAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,175 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_SERVERAPPCASE_H +#define BCTEST_SERVERAPPCASE_H + +#include "bctestcase.h" +#include +#include + +//TUid Kmysimpleserver = { 0x06C22C0C }; + +class CBCTestServerappContainer; +class CCoeControl; +class MAknWsEventObserver; + +class CSubMonitor: public CBase, + public MAknWsEventObserver + { + public: + static CSubMonitor* NewL(); + + ~CSubMonitor(); + + /** + * Two-phased constructor. + */ + void ConstructL(); + + IMPORT_C void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination); + }; + +/** +* test case for various list classes +*/ +class CBCTestServerappCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestServerappCase* NewL( CBCTestServerappContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestServerappCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunctionL(); + void TestFunctionOneL(); + void TestFunctionTwoL(); + void TestFunctionThreeL(); + void TestFunctionFourL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestServerappCase( CBCTestServerappContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestServerappContainer* iContainer; + + }; + +class CAknAppServiceDrv:public CAknAppServiceBase, MAknServerAppExitObserver + { +public: + CAknAppServiceDrv() + { + + } + ~CAknAppServiceDrv() + { + + } + void CreateL(); + void ServiceL(const RMessage2& aMessage); + void ServiceError(const RMessage2& aMessage,TInt aError); + void HandleServerAppExit(TInt aReason); + }; + +/*class CMySimpleServer:public CAknAppServer +{ +public: + CApaAppServiceBase* CreateServiceL(TUid aServiceType) const + { + if (aServiceType == Kmysimpleserver ) + { + return new(ELeave)CAknAppServiceDrv(); + } + else + { + return CAknAppServer::CreateServiceL(aServiceType); + } + } +}; + +class REmbedderClient:public RAknAppServiceBase +{ +public: + TUid ServiceUid() const + { + return Kmysimpleserver; + } + virtual ~REmbedderClient() + { + Close(); + } +};*/ + +#endif // BCTEST_SERVERAPPCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_SERVERAPPCONTAINER_H +#define BCTEST_SERVERAPPCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestServerappContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestServerappContainer(); + + /** + * Destructor + */ + virtual ~CBCTestServerappContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_SERVERAPPCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTSERVERAPPDOCUMENT_H +#define C_BCTESTSERVERAPPDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestServerappDocument application class. +*/ +class CBCTestServerappDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestServerappDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestServerappDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestServerappDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestServerappAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSERVERAPPDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/inc/bctestserverappview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_SERVERAPP_VIEW_H +#define BCTEST_SERVERAPP_VIEW_H + +#include + +const TUid KBCTestServerappViewId = { 1 }; + +class CBCTestServerappContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestServerappView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestServerappView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestServerappView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestServerappView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestServerappContainer* iContainer; + + }; + +#endif // BCTEST_SERVERAPP_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/sis/bctestserverapp.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/sis/bctestserverapp.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestserverapp.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestserverapp"},(0x2000475E),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestserverapp.exe"- +"!:\sys\bin\bctestserverapp.exe" + +"\epoc32\data\z\resource\apps\bctestserverapp.RSC"- +"!:\resource\apps\bctestserverapp.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestserverapp_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestserverapp_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestServerappApp.h" +#include "BCTestServerappDocument.h" +#include "BCTestServerappcase.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestServerappApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestServerappApp::AppDllUid() const + { + return KUidBCTestServerapp; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestServerappApp::CreateDocumentL() +// Creates CBCTestServerappDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestServerappApp::CreateDocumentL() + { + return CBCTestServerappDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestServerappApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestServerappApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +/*void CBCTestServerappApp::NewAppServerL(CApaAppServer*& aAppServer) + { + aAppServer = new (ELeave) CMySimpleServer; + }*/ + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestserverappAppUi.h" +#include "bctestserverapp.hrh" +#include "bctestserverappview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestServerappAppUi::CBCTestServerappAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestServerappAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestServerappView* view = CBCTestServerappView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestServerappAppUi::~CBCTestServerappAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestServerappAppUi::~CBCTestServerappAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestServerappAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,277 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestserverappcase.h" +#include "bctestserverappcontainer.h" +#include "bctestserverapp.hrh" +#include "bctestserverappappui.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestServerappCase* CBCTestServerappCase::NewL( + CBCTestServerappContainer* aContainer ) + { + CBCTestServerappCase* self = new( ELeave ) CBCTestServerappCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestServerappCase::CBCTestServerappCase( + CBCTestServerappContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestServerappCase::~CBCTestServerappCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestServerappCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestServerappCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestServerappCase::BuildScriptL() + { + AddTestL( LeftCBA, KeyOK, TEND ); + AddTestL( LeftCBA, Down, KeyOK, TEND ); + AddTestL( LeftCBA, Down, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestServerappCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestServerappCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline3 ) + { + return; + } + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + case EBCTestCmdOutline2: + TestFunctionOneL(); + break; + case EBCTestCmdOutline3: + TestFunctionTwoL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestServerappCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestServerappCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + + default: + break; + } + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestServerappCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestServerappCase::ReleaseCaseL() + { + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestServerappCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestServerappCase::TestFunctionL() + { + _LIT( strAddObserverL,"Class CAknWsEventMonitor Function AddObserverL tested" ); + _LIT( strHandleWsEventL,"Class CAknWsEventMonitor Function HandleWsEventL tested" ); + _LIT( strRemoveObserver,"Class CAknWsEventMonitor Function RemoveObserver tested" ); + + CAknAppUi* base = static_cast(CEikonEnv::Static()->EikAppUi()); + CAknWsEventMonitor* monitor = base->EventMonitor(); + CSubMonitor* wsevent = CSubMonitor::NewL(); + + CleanupStack::PushL(monitor); + + TWsEvent event; + monitor->AddObserverL(wsevent); + AssertTrueL( ETrue, strAddObserverL); + + monitor->HandleWsEventL(event, iContainer); + AssertTrueL( ETrue, strHandleWsEventL); + + monitor->RemoveObserver(wsevent); + AssertTrueL( ETrue, strRemoveObserver); + + CleanupStack::Pop(monitor); + delete wsevent; + monitor = NULL; + base = NULL; + + } + +void CBCTestServerappCase::TestFunctionOneL() + { + _LIT( strConstructL,"Class CAknAppServer Function ConstructL tested" ); + _LIT( strdelCAknAppServer,"Class CAknAppServer Function ~CAknAppServer tested" ); + + + CAknAppServer *appserver = new ( ELeave ) CAknAppServer(); + CleanupStack::PushL( appserver ); + + _LIT( serverName, "my server app"); + appserver->ConstructL(serverName); + AssertTrueL( ETrue, strConstructL); + + CleanupStack::PopAndDestroy(appserver); + AssertTrueL( ETrue, strdelCAknAppServer); + + } + +void CBCTestServerappCase::TestFunctionTwoL() + { + + _LIT( strAnimation,"Class CAknBitmapAnimation Function Animation tested" ); + _LIT( strBitmapAnimData,"Class CAknBitmapAnimation Function BitmapAnimData tested" ); + _LIT( strCancelAnimation,"Class CAknBitmapAnimation Function CancelAnimation tested" ); + _LIT( strConstructFromResourceL,"Class CAknBitmapAnimation Function ConstructFromResourceL tested" ); + _LIT( strConstructFromSkinL,"Class CAknBitmapAnimation Function ConstructFromSkinL tested" ); + _LIT( strMinimumSize,"Class CAknBitmapAnimation Function MinimumSize tested" ); + _LIT( strNewL,"Class CAknBitmapAnimation Function NewL tested" ); + _LIT( strSetFrameIndexL,"Class CAknBitmapAnimation Function SetFrameIndexL tested" ); + _LIT( strSetFrameIntervalL,"Class CAknBitmapAnimation Function SetFrameIntervalL tested" ); + _LIT( strStartAnimationL,"Class CAknBitmapAnimation Function StartAnimationL tested" ); + _LIT( strdelCAknBitmapAnimation,"Class CAknBitmapAnimation Function ~CAknBitmapAnimation tested" ); + + CAknBitmapAnimation *ani= CAknBitmapAnimation::NewL(); + AssertTrueL( ETrue, strNewL); + CleanupStack::PushL(ani); + + ani->SetContainerWindowL(*iContainer); + + TBool flag = ani->ConstructFromSkinL(KAknsIIDQsnBgScreen); + AssertTrueL( ETrue, strConstructFromSkinL); + + TResourceReader reader; + CCoeEnv::Static()->CreateResourceReaderLC(reader, + R_BCTEST_BMPANIM_DATA_ORG); + ani->ConstructFromResourceL(reader); + AssertTrueL( ETrue, strConstructFromResourceL); + CleanupStack::PopAndDestroy(); + + TRAP_IGNORE( ani->SetFrameIndexL( 1 ) ); + AssertTrueL( ETrue, strSetFrameIndexL ); + + ani->MinimumSize(); + AssertTrueL( ETrue, strMinimumSize); + + RBitmapAnim rani = ani->Animation(); + AssertTrueL( ETrue, strAnimation); + + CBitmapAnimClientData* clientData = ani->BitmapAnimData(); + AssertTrueL(ETrue, strBitmapAnimData); + + TInt i = 1500; + ani->SetFrameIntervalL(i); + AssertTrueL( ETrue, strSetFrameIntervalL); + + ani->StartAnimationL(); + AssertTrueL(ETrue, strStartAnimationL); + + CleanupStack::PopAndDestroy(ani); + AssertTrueL(ETrue, strCancelAnimation); + AssertTrueL( ETrue, strdelCAknBitmapAnimation); + } +CSubMonitor *CSubMonitor::NewL() + { + CSubMonitor * self=new(ELeave) CSubMonitor(); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +CSubMonitor::~CSubMonitor() + { + } + +void CSubMonitor::ConstructL() + { + } + +EXPORT_C void CSubMonitor::HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestserverappcontainer.h" + +#define KAKNATLISTGRAY TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestServerappContainer::CBCTestServerappContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestServerappContainer::~CBCTestServerappContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestServerappContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestServerappContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestServerappContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAKNATLISTGRAY ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestServerappContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestServerappContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestServerappContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestServerappContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestServerappContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestServerappContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestServerappContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestServerappContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestServerappDocument.h" +#include "BCTestServerappAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestServerappDocument* CBCTestServerappDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestServerappDocument* CBCTestServerappDocument::NewL( CEikApplication& aApp ) + { + CBCTestServerappDocument* self = new( ELeave ) CBCTestServerappDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestServerappDocument::~CBCTestServerappDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestServerappDocument::~CBCTestServerappDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestServerappDocument::CBCTestServerappDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestServerappDocument::CBCTestServerappDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestServerappDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestServerappDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestServerappAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestserverapp/src/bctestserverappview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,133 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestserverapp.hrh" +#include +#include "bctestserverappview.h" +#include "bctestserverappcontainer.h" +#include "bctestutil.h" +#include "bctestserverappcase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestServerappView* CBCTestServerappView::NewL() + { + CBCTestServerappView* self = new( ELeave ) CBCTestServerappView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestServerappView::CBCTestServerappView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestServerappView::ConstructL() + { + BaseConstructL( R_BCTESTSERVERAPP_VIEW ); + + iContainer = new( ELeave ) CBCTestServerappContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + _LIT(Ktest, "Template test case"); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestServerappCase::NewL( iContainer ), + Ktest ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestServerappView::~CBCTestServerappView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestServerappView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestServerappView::Id() const + { + return KBCTestServerappViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestServerappView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestServerappView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestServerappView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestServerappView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestServerappView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestServerappView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpage_lst.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpage_lst.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpage_lst_mask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpage_lst_mask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpageaif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpageaif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,30 @@ +/* +* 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 "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: RSS for creating the aif file +* +*/ + + +#include + +RESOURCE AIF_DATA + { + app_uid = 0x101F84B0; + groupName="BCTest"; + num_icons = 2; + embeddability=KAppNotEmbeddable; + newfile=KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpagesmallicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpagesmallicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpagesmalliconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/aif/bctestsettingpagesmalliconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bctestsettingpage.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bctestsettingpage.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "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: project specification file for the BCTestSettingPage. +* +*/ + + +TARGET BCTestSettingPage.exe +TARGETTYPE exe +UID 0x0 0x200045CB + + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestSettingPage.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG SC + +SOURCEPATH ../Src +SOURCE bctestsettingpageapp.cpp +SOURCE bctestsettingpagedocument.cpp +SOURCE bctestsettingpageappui.cpp +SOURCE bctestsettingpageview.cpp +SOURCE bctestsettingpagecontainer.cpp +SOURCE bctestsettingpagecase.cpp +SOURCE bctestchecksettingpage.cpp +SOURCE bctestpasswordsettingpage.cpp +SOURCE bctesttextsettingpage.cpp +SOURCE bctestslidersettingpage.cpp +SOURCE bctestvolumesettingpage.cpp +SOURCE bctestradiobuttonsettingpage.cpp +SOURCE bctestsettingitemlist.cpp +SOURCE bctestmfnesettingpage.cpp +SOURCE bctestbasesettingpage.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY insock.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY estor.lib + + +// Creates Mbm file. +START BITMAP BCTestSettingpage.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../DataSrc +SOURCE C8 SampleIcon.bmp +SOURCE C8 SampleIconMask.bmp +END + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/BCTestSettingpage_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. +START BITMAP BCTestSettingPage_Aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 BCTestSettingPagesmallicon.bmp +source c8 BCTestSettingPagesmalliconmask.bmp +source c8 BCTestSettingPage_lst.bmp +source c8 BCTestSettingPage_lst_mask.bmp +end + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bctestsettingpage.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bctestsettingpage.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,963 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestsettingpage.hrh" +#include "BCTestsettingpage.loc" + +#ifdef LANGUAGE_01 +#include "BCTestsettingpage_01.loc" +#endif + +#ifdef LANGUAGE_31 +#include "BCTestsettingpage_31.loc" +#endif + +#ifdef LANGUAGE_37 +#include "BCTestsettingpage_37.loc" +#endif + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctesttemplate_BMP_FNAME APP_BITMAP_DIR"\\BCTestSettingpage.mbm" + +// for Popup Setting Page +#define POPUP_SETTING_PAGE_NUMBER 1 + +#define CHECKBOX_SETTING_PAGE_NUMBER 1 +#define TEXT_SETTING_PAGE_NUMBER 1 +#define TEXT_SETTING_PAGE_WIDTH 9 +#define TEXT_SETTING_PAGE_LINES 5 +#define TEXT_SETTING_PAGE_MAXLENGTH10 10 +#define TEXT_SETTING_PAGE_MAXLENGTH20 20 +#define TEXT_SETTING_PAGE_MAXLENGTH30 30 + +// for Alpha Password Setting Page +#define ALPHA_PASSWORD_SETTING_PAGE_NUMBER 1 +#define ALPHA_PASSWORD_LENGTH_OF_STRING 8 + +// for Numeric Password Setting Page +#define NUMERIC_PASSWORD_SETTING_PAGE_NUMBER 2 +#define NUMERIC_PASSWORD_OL58_SETTING_PAGE_NUMBER 1 +#define NUMERIC_PASSWORD_LENGTH_OF_STRING 8 + +// for Slider Setting Page +#define SLIDER_SETTING_PAGE_NUMBER 1 +#define SLIDER_SETTING_PAGE_MINVALUE 0 +#define SLIDER_SETTING_PAGE_MAXVALUE 101 +#define SLIDER_SETTING_PAGE_STEP 1 + +// for Volume Setting Page +#define VOLUME_SETTING_PAGE_NUMBER 1 +#define VOLUME_SETTING_PAGE_VALUE 8 + +// for Time Setting Page +#define TIME_SETTING_PAGE_NUMBER 1 +#define TIME_EDITOR_MIN_SECOND 0 +#define TIME_EDITOR_MIN_MINUTE 0 +#define TIME_EDITOR_MIN_HOUR 0 +#define TIME_EDITOR_MAX_SECOND 59 +#define TIME_EDITOR_MAX_MINUTE 59 +#define TIME_EDITOR_MAX_HOUR 23 + +// for Duration Setting Page +#define DURATION_SETTING_PAGE_NUMBER 1 +#define DURATION_EDITOR_MIN_SECOND 0 +#define DURATION_EDITOR_MAX_SECOND 43200 // 12h00m00s + + +//For Ip address editor +#define IPADDRESS_MIN_FIRST_FIELD_VALUE 0 +#define IPADDRESS_MIN_SECOND_FIELD_VALUE 0 +#define IPADDRESS_MIN_THIRD_FIELD_VALUE 0 +#define IPADDRESS_MIN_FOURTH_FIELD_VALUE 0 +#define IPADDRESS_MAX_FIRST_FIELD_VALUE 255 +#define IPADDRESS_MAX_SECOND_FIELD_VALUE 255 +#define IPADDRESS_MAX_THIRD_FIELD_VALUE 255 +#define IPADDRESS_MAX_FOURTH_FIELD_VALUE 255 + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestSPage"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestsettingpage_menubar_main; + cba = r_bctestsettingpage_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestsettingpage_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; +// icon_file = APP_BITMAP_DIR"\\BCTestsettingpage_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsettingpage_view +// AVKON_VIEW for CBCTestSettingpageView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestsettingpage_view + { + menubar = r_bctestsettingpage_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsettingpage_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestsettingpage_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestsettingpage_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestsettingpage_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsettingpage_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestsettingpage_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestsettingpage_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsettingpage_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestsettingpage_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestsettingpage_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestsettingpage_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestsettingpage_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestsettingpage_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestSettingPageCbaCmdNext; + txt = qtn_bctestsettingpage_cba_next; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_checkbox_setting_page +// For outline03,16,17,27,37,40. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctestsetpage_checkbox_setting_page + { + number = CHECKBOX_SETTING_PAGE_NUMBER; + label = qtn_aknatsetpage_multi_title; + type = EAknSetListBox; + editor_resource_id = r_bctestsetpage_listbox; + menubar = r_bctestsetpage_checkbox_menubar; + } + +RESOURCE MENU_BAR r_bctestsetpage_checkbox_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestsetpage_checkbox_menupane; + txt = "test"; + } + }; + } + +RESOURCE MENU_PANE r_bctestsetpage_checkbox_menupane + { + items = + { + MENU_ITEM + { + command = EBCTestMenuItem; + txt = "test"; + } + }; + } + +RESOURCE LISTBOX r_bctestsetpage_listbox + { + flags = EAknListBoxMultipleSelection; + } + +//----------------------------------------------------------------------------- +// +// r_bctest_password_setting_page +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_password_setting_page + { + number = ALPHA_PASSWORD_SETTING_PAGE_NUMBER; + label = qtn_bctestpassword_setpage_title; + type = EEikCtSecretEd; + editor_resource_id = r_bctest_setpage_password; + } + +RESOURCE SECRETED r_bctest_setpage_password + { + num_letters = ALPHA_PASSWORD_LENGTH_OF_STRING; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_numeric_password_setting_page +// For outline73. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_numeric_password_setting_page + { + number = NUMERIC_PASSWORD_SETTING_PAGE_NUMBER; + label = qtn_aknatsetpage_numeric_title; + type = EAknCtNumericSecretEditor; + editor_resource_id = r_aknatsetpage_numeric_password; + } + +RESOURCE NUMSECRETED r_aknatsetpage_numeric_password + { + num_code_chars = NUMERIC_PASSWORD_LENGTH_OF_STRING; + } + +RESOURCE AVKON_PASSWORD_CONFIRMATION r_aknatsetpage_numeric_password_new_confirmation + { + password_query_resource = r_aknatsetpage_alpha_password_new_pw_conf_query; + success_note_resource = r_aknatsetpage_right_confirmation_note; + failure_note_resource = r_aknatsetpage_wrong_confirmation_note; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_alpha_password_new_pw_conf_query +// Alphanumeric Passwords. +// For Outline32. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_aknatsetpage_alpha_password_new_pw_conf_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items= + { + DLG_LINE + { + type = EAknCtQuery; + id = EGeneralQuery; + control= AVKON_DATA_QUERY + { + layout = ECodeLayout; + label = "Please re-enter your new password"; + control = SECRETED + { + num_letters = 10; + }; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_alpha_password_old_confirmation +// Old password confirmation of Alphanumeric Passwords. +// For Outline73. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_aknatsetpage_alpha_password_old_pw_conf_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items= + { + DLG_LINE + { + type = EAknCtQuery; + id = EGeneralQuery; + control= AVKON_DATA_QUERY + { + layout = ECodeLayout; + label = "Please Enter Old Password:"; + control = SECRETED + { + num_letters = 10; + }; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_right_confirmation_note +// Alphanumeric Passwords. +// For Outline73. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_aknatsetpage_right_confirmation_note + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + buttons = R_AVKON_SOFTKEYS_OK_EMPTY; + items= + { + DLG_LINE + { + type = EAknCtNote; + id = EAknAtSetPageConfirmation; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = "Password confirmed"; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_wrong_confirmation_note +// Alphanumeric Passwords. +// For Outline73. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_aknatsetpage_wrong_confirmation_note + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + buttons=R_AVKON_SOFTKEYS_OK_EMPTY; + items= + { + DLG_LINE + { + type = EAknCtNote; + id = EAknAtSetPageConfirmation; + control= AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = "Please try again"; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_alpha_password_old_confirmation +// Alphanumeric passwords +// For Outline73. +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_PASSWORD_CONFIRMATION r_aknatsetpage_alpha_password_old_confirmation + { + password_query_resource = r_aknatsetpage_alpha_password_old_pw_conf_query; + success_note_resource = r_aknatsetpage_right_confirmation_note; + failure_note_resource = r_aknatsetpage_wrong_confirmation_note; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_text_setting_page +// For outline01,06,09,11,12, 25,28, 64. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_text_setting_page + { + number = TEXT_SETTING_PAGE_NUMBER; + label = qtn_aknatsetpage_text_title; + menubar = r_aknatsetpage_radiobtn_setpage_menubar; + type = EEikCtEdwin; + editor_resource_id = r_aknatsetpage_edwin; + } + +RESOURCE EDWIN r_aknatsetpage_edwin + { + width = TEXT_SETTING_PAGE_WIDTH; + lines = TEXT_SETTING_PAGE_LINES; + maxlength = TEXT_SETTING_PAGE_MAXLENGTH20; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_slider_setting_page +// For outline04,18,19. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_slider_setting_page + { + number = SLIDER_SETTING_PAGE_NUMBER; + label = qtn_aknatsetpage_slider_title; + type = EAknCtSlider; + editor_resource_id = r_aknatsetpage_slider; + } + +RESOURCE SLIDER r_aknatsetpage_slider + { + layout = EAknSettingsItemSliderLayout; + minvalue = SLIDER_SETTING_PAGE_MINVALUE; + maxvalue = SLIDER_SETTING_PAGE_MAXVALUE; + step = SLIDER_SETTING_PAGE_STEP; + valuetype = EAknSliderValuePercentage; + minlabel = qtn_slider_minlabel; + maxlabel = qtn_slider_maxlabel; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_volume_setting_page +// For outline05,20,21. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_volume_setting_page + { + number = VOLUME_SETTING_PAGE_NUMBER; + label = qtn_aknatsetpage_volume_title; + type = EAknCtVolumeControl; + editor_resource_id = r_aknatsetpage_volume; + } + +RESOURCE VOLUME r_aknatsetpage_volume + { + flags = ESettingsVolumeControl; + value = VOLUME_SETTING_PAGE_VALUE; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_radiobtn_setpage +// Setting page for radio button. +// It is for outline . +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_radiobtn_setpage + { + label = qtn_aknatsetpage_radiobtn_title; + softkey_resource = R_AVKON_SOFTKEYS_OPTIONS_BACK; + type = EAknSetListBox; + editor_resource_id = r_aknatsetpage_radiobtn_setpage_listbox; + menubar = r_aknatsetpage_radiobtn_setpage_menubar; + } + +RESOURCE LISTBOX r_aknatsetpage_radiobtn_setpage_listbox + { + flags = EEikListBoxMultipleSelection; + } + +RESOURCE MENU_BAR r_aknatsetpage_radiobtn_setpage_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_aknatsetpage_radiobtn_setpage_menupane; + txt = qtn_aknatsetpage_menubar; + } + }; + } + +RESOURCE MENU_PANE r_aknatsetpage_radiobtn_setpage_menupane + { + items = + { + MENU_ITEM + { + command = EAknAtSetPageCmdSetItemArrayAndSelection; + txt = qtn_aknatsetpage_radiobtn_setarray_select_item; + }, + MENU_ITEM + { + command = EAknAtSetPageCmdSelectCurrentItem; + txt = qtn_aknatsetpage_radiobtn_selcur_item; + } + }; + } + +RESOURCE AVKON_POPUP_SETTING_TEXTS r_aknatsetpage_popup_setting_list2 + { + setting_texts_resource = r_aknatsetpage_page_list; + popped_up_texts_resource = r_aknatsetpage_list_item_array; + } + +RESOURCE ARRAY r_aknatsetpage_page_list + { + items = + { + AVKON_ENUMERATED_TEXT + { + value = 0; + text = qtn_aknatsetpage_item_list0; + }, + AVKON_ENUMERATED_TEXT + { + value = 1; + text = qtn_aknatsetpage_item_list1; + }, + AVKON_ENUMERATED_TEXT + { + value = 2; + text = qtn_aknatsetpage_item_list2; + }, + AVKON_ENUMERATED_TEXT + { + value = 3; + text = qtn_aknatsetpage_item_list3; + }, + AVKON_ENUMERATED_TEXT + { + value = 4; + text = qtn_aknatsetpage_item_list4; + }, + AVKON_ENUMERATED_TEXT + { + value = 5; + text = qtn_aknatsetpage_item_list5; + }, + AVKON_ENUMERATED_TEXT + { + value = 6; + text = qtn_aknatsetpage_item_list6; + }, + AVKON_ENUMERATED_TEXT + { + value = 7; + text = qtn_aknatsetpage_item_list7; + }, + AVKON_ENUMERATED_TEXT + { + value = 8; + text = qtn_aknatsetpage_item_list8; + }, + AVKON_ENUMERATED_TEXT + { + value = 9; + text = qtn_aknatsetpage_item_list9; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_list_item_array +// For Popup Setting Page and radio button setting page. +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_aknatsetpage_list_item_array + { + items = + { + LBUF + { + txt = qtn_aknatsetpage_item_list0; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list1; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list2; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list3; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list4; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list5; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list6; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list7; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list8; + }, + LBUF + { + txt = qtn_aknatsetpage_item_list9; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_time_setting_page +// For outline30. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_time_setting_page + { + number = TIME_SETTING_PAGE_NUMBER; + label = "time"; + type = EEikCtTimeEditor; + editor_resource_id = r_aknatsetpage_time_editor; + } + +RESOURCE TIME_EDITOR r_aknatsetpage_time_editor + { + minTime = TIME + { + second = TIME_EDITOR_MIN_SECOND; + minute = TIME_EDITOR_MIN_MINUTE; + hour = TIME_EDITOR_MIN_HOUR; + }; + maxTime = TIME + { + second = TIME_EDITOR_MAX_SECOND; + minute = TIME_EDITOR_MAX_MINUTE; + hour = TIME_EDITOR_MAX_HOUR; + }; + } + + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_time_setting_page +// For outline30. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_timeoffset_setting_page + { + number = TIME_SETTING_PAGE_NUMBER; + label = "time"; + type = EEikCtTimeEditor; + editor_resource_id = r_aknatsetpage_time_editor; + } + + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_duration_setting_page +// For outline31. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_duration_setting_page + { + number = DURATION_SETTING_PAGE_NUMBER; + label = "Duration"; + type = EEikCtDurationEditor; + editor_resource_id = r_aknatsetpage_duration_editor; + } + +RESOURCE DURATION_EDITOR r_aknatsetpage_duration_editor + { + minDuration = DURATION + { + seconds = DURATION_EDITOR_MIN_SECOND; + }; + maxDuration = DURATION + { + seconds = DURATION_EDITOR_MAX_SECOND; + }; + } + +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_ipaddress_setting_page + { + label= "IP"; + type = EAknCtIpFieldEditor; + editor_resource_id = r_aknatsetpage_ipaddress_editor; + } + + +RESOURCE IP_FIELD_EDITOR r_aknatsetpage_ipaddress_editor + { + min_field_values = IP_FIELD + { + first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + } + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_enumtext_setting_page +// Setting page +// For Outline53. +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_enumtext_setting_page + { + number= 1; + label= "Enum"; + type = EAknCtPopupSettingList; + editor_resource_id = r_aknatsetpage_popup_setting_list_new_entry; + } + +RESOURCE POPUP_SETTING_LIST r_aknatsetpage_popup_setting_list_new_entry + { + flags = EAknPopupSettingListFlagAllowsUserDefinedEntry; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_popup_setting_page +// For outline02,13,14,15,26,33,35,36,38,39. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_popup_setting_page + { + number = POPUP_SETTING_PAGE_NUMBER; + label = "popupsetpage"; + type = EAknCtPopupSettingList; + editor_resource_id = r_aknatsetpage_popup_setting_list; + } + +RESOURCE POPUP_SETTING_LIST r_aknatsetpage_popup_setting_list + { + flags = EAknPopupSettingListFlagInitialised; + } + +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_binary_setting_page + { + number= 0; + label= "Binary"; + type = EAknCtPopupSettingList; + //editor_resource_id = r_setting_app_on_off_popup_setting_list; + } + + +//---------------------------------------------------------------------------- +// +// r_aknatsetpage_setting_list_setting_integer +// ListBox( Setting style ) +// +//---------------------------------------------------------------------------- +// + +RESOURCE AVKON_SETTING_ITEM_LIST r_aknatsetpage_setting_list_setting_integer + { + flags= EAknSettingItemNumberedStyle; + title = "Item list"; + initial_number = 1; + items = + { + AVKON_SETTING_ITEM + { + identifier = EAknAtSettingInteger; + setting_page_resource = r_aknatsetpage_number_setting_page; + name = "Integer"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_number_setting_page +// For outline29. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_number_setting_page + { + number = TEXT_SETTING_PAGE_NUMBER; + label = "Number Editor"; + type = EAknCtIntegerEdwin; // EEikCtNumberEditor; + editor_resource_id = r_aknatsetpage_number_editor; + } + +RESOURCE AVKON_INTEGER_EDWIN r_aknatsetpage_number_editor + { + maxlength = 20; + min = 1; + max = 10; + } + +// Its page is also used in outline 73. +RESOURCE AVKON_SETTING_PAGE r_aknatsetpage_date_setting_page + { + label = "Date"; + type = EEikCtDateEditor; + editor_resource_id = r_aknatsetpage_date; + } + +RESOURCE DATE_EDITOR r_aknatsetpage_date + { + minDate = DATE + { + year = TAknAtSetPageDateSettingMinYear; + }; + maxDate = DATE + { + year = TAknAtSetPageDateSettingMaxYear; + }; + flags = 0; + } + RESOURCE MENU_BAR r_aknsettingpage_menu_bar + { + titles = + { + MENU_TITLE + { + txt = ""; + } + }; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bctestsettingpage_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bctestsettingpage_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045CB // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestSettingPage"; + localisable_resource_file = "\\resource\\apps\\BCTestSettingPage"; + localisable_resource_id = R_BCTESTSETTINGPAGE_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //newfile = KAppDoesNotSupportNewFile; + //launch = KAppLaunchInForeground; + group_name = "BCTest"; + //default_screen_number = 2; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestSettingPage.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestbasesettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestbasesettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,78 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_BASE_SETTINGPAGE_H +#define BCTEST_BASE_SETTINGPAGE_H + +#include + +class CBCTestSettingPageCase; + +class CBCTestBaseSettingPage : public CAknSettingPage + { + + friend class CBCTestSettingPageCase; +public: + +/** + * Simple contructor for using a single setting page resource which itself gives all + * the setup + */ + IMPORT_C CBCTestBaseSettingPage( TInt aSettingPageResourceId ); + /** + * Constructor that allows separate setting page and editor resources + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource + * present = 0 Default Avkon SP resource if used + * = 0 = 0 Not permitted + * + * Note: The first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane (not copied; must be owned externally until ExecuteLD is called) + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + */ + IMPORT_C CBCTestBaseSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId = 0 ); +/** +* C++ destructor +*/ + IMPORT_C virtual ~CBCTestBaseSettingPage(); + + IMPORT_C virtual void SetFocusToEditor(); + IMPORT_C TBool PostDisplayCheckL(); + +}; + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestchecksettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestchecksettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,114 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTCHECKSETTINGPAGE_H +#define C_BCTESTCHECKSETTINGPAGE_H + +// INCLUDES +#include + +class CBCTestSettingPageCase; + + +// CLASS DECLARATION + +/** +* CBCTestCheckSettingPageApp application class. +* Derived class from CAknCheckBoxSettingPage +*/ +class CBCTestCheckSettingPage : public CAknCheckBoxSettingPage + { + +friend class CBCTestSettingPageCase; + +public: + IMPORT_C CBCTestCheckSettingPage(TInt aResourceID, CSelectionItemList* aItemArray ); + + /** + * Constructor that allows separate setting page and editor resources + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource + * present = 0 Default Avkon SP resource if used (to no effect?) + * = 0 = 0 Not permitted + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aItemArray List of option texts and their selection states + */ + IMPORT_C CBCTestCheckSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + CSelectionItemList* aItemArray ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestCheckSettingPage(); + + /** + * Called when the setting is updated + * + */ + IMPORT_C virtual void BCUpdateSettingL(); + + /** + * Called when the setting page is about to be displayed + * + */ + IMPORT_C void BCDynamicInitL(); + + // From MEikCommandObserver + IMPORT_C virtual void ProcessCommandL(TInt aCommandId); + /* + * This method is called upon Select command id. It should change the setting but not exit in + * this case. + */ + IMPORT_C virtual void BCSelectCurrentItemL(); + + /** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void BCWriteInternalStateL(RWriteStream& aWriteStream) const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestmfnesettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestmfnesettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,453 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_MFNESETTINGPAGE_H +#define BCTEST_MFNESETTINGPAGE_H + +#include + + +// FORWARD DECLARATIONS +class CBCTestSettingPageCase; + +/** + * + * This class is used as the base for the date, time, duration and Ip editor + * setting page types. It performs all the layout. + * + */ +class CBCTestMfneSettingPage : public CAknMfneSettingPage +{ + friend class CBCTestSettingPageCase; +public: + /** + * Constructor using purely Setting page resource + * + * @param aResourceId Setting page resource Id + */ + IMPORT_C CBCTestMfneSettingPage(TInt ResourceId ); + /** + * Constructor that allows separate setting page and editor resources + * + * @param aSettingTitleText Text at top of setting pane ; Externally owned + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its + * resource is read + * @param aEditorResourceId Editor resource to use in the setting page + * (if present) + */ + IMPORT_C CBCTestMfneSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ); +}; + + +/** +* +* This class is used for entering Dates in a "Code" setting page +* +*/ +class CBCTestDateSettingPage : public CAknDateSettingPage +{ + friend class CBCTestSettingPageCase; +public: + + /** + * Constructor using purely Setting page resource + * + * @param aResourceId Setting page resource Id + * @param aDateValue Reference to a date value set to the initial + * date + */ + IMPORT_C CBCTestDateSettingPage( + TInt aResourceID, + TTime& aDateValue); + + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor + * resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used + * (but text + * & number overridden) + * = 0 present Editor resource is used + * via SP resource + * (Effectively like the + * other constructor) + * present = 0 Default Avkon SP + * resource if used + this + * editor resource + * = 0 = 0 uses default resource + * for both SP and editor. + * This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, + * duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the + * other constructor cannot initialize such a member without allocation or + * having an internal dummy buffer. + * Note that this descriptor must be owned by the client at least until the + * ExecuteLD(). + * + * Rules for text and numbers: The rules are the same for both: + * (non-zero length) text or number other than + * EAknSettingPageNoOrdinalDisplayed if given in this constructor will not + * override resource (unless that is zero length or + * EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number + * given via the specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is + * somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; OWNED EXTERNALLY + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its + * resource is read + * @param aEditorResourceId Editor resource to use in the setting page + * (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aDateValue reference to date + */ + IMPORT_C CBCTestDateSettingPage( + const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTime& aDateValue ); +}; + +/** + * + * This class is used for entering Times in a "Code" setting page + * + */ +class CBCTestTimeSettingPage : public CAknTimeSettingPage +{ + friend class CBCTestSettingPageCase; +public: + /** + * Constructor using purely Setting page resource + * + * @param aResourceId Setting page resource Id + * @param aTimeValue Reference to a time value for the initial time + */ + IMPORT_C CBCTestTimeSettingPage( + TInt aResourceID, + TTime& aTimeValue); + + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor + * resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text + * & number overridden) + * = 0 present Editor resource is used + * via SP resource + * (Effectively like the + * other constructor) + * present = 0 Default Avkon SP + * resource if used + this + * editor resource + * = 0 = 0 uses default resource + * for both SP and editor. + * This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, + * date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the + * other constructor cannot initialize such a member without allocation or + * having an internal dummy buffer. + * Note that this descriptor must be owned by the client at least until the + * ExecuteLD(). + * + * Rules for text and numbers: The rules are the same for both: + * (non-zero length) text or number other than + * EAknSettingPageNoOrdinalDisplayed if given in this constructor will not + * override resource (unless that is zero length or + * EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number + * given via the specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is + * somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its + * resource is read + * @param aEditorResourceId Editor resource to use in the setting page + * (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aTimeValue reference to a time + */ + IMPORT_C CBCTestTimeSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTime& aTimeValue ); + + +}; + +/** + * + * This class is used for entering duration in a "Code" setting page + * + */ +class CBCTestDurationSettingPage : public CAknDurationSettingPage +{ + friend class CBCTestSettingPageCase; +public: + /** + * Constructor using purely Setting page resource + * + * @param aResourceId Setting page resource Id + * @param aDurationValue Reference to the maintained duration value + */ + IMPORT_C CBCTestDurationSettingPage( + TInt aResourceID, + TTimeIntervalSeconds& aDurationValue); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor + * resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used + * (but text & number + * overridden) + * = 0 present Editor resource is used + * via SP resource + * (Effectively like the + * other constructor) + * present = 0 Default Avkon SP + * resource if used + this + * editor resource + * = 0 = 0 uses default resource + * for both SP and editor. + * This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, + * date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the + * other constructor cannot initialize such a member without allocation or + * having an internal dummy buffer. + * Note that this descriptor must be owned by the client at least until the + * ExecuteLD(). + * + * Rules for text and numbers: The rules are the same for both: + * (non-zero length) text or number other than + * EAknSettingPageNoOrdinalDisplayed if given in this constructor will not + * override resource (unless that is zero length or + * EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number + * given via the specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is + * somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; OWNED EXTERNALLY + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its + * resource is read + * @param aEditorResourceId Editor resource to use in the setting page + * (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aDurationValue reference to a duration + */ + IMPORT_C CBCTestDurationSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTimeIntervalSeconds& aDurationValue); +}; + + +/** +* Time offset setting page. +* +* @lib avkon +* @since 2.0 +*/ + +class CBCTestTimeOffsetSettingPage : public CAknTimeOffsetSettingPage +{ + friend class CBCTestSettingPageCase; +public: + /** + * Constructor using purely Setting page resource + * + * @since 2.0 + * @param aResourceId Setting page resource Id + * @param aTimeOffsetValue Reference to the maintained + * offset value + */ + IMPORT_C CBCTestTimeOffsetSettingPage( + TInt aResourceID, + TTimeIntervalSeconds& aTimeOffsetValue); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor + * resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used + * (but text & number + * overridden) + * = 0 present Editor resource is + * used via SP resource + * (Effectively like the + * other constructor) + * present = 0 Default Avkon SP + * resource if used + + * this editor resource + * = 0 = 0 uses default resource + * for both SP and editor. + * This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, + * date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because + * the other constructor cannot initialize such a member without allocation + * or having an internal dummy buffer. + * Note that this descriptor must be owned by the client at least until the + * ExecuteLD(). + * + * Rules for text and numbers: The rules are the same for both: + * (non-zero length) text or number other than + * EAknSettingPageNoOrdinalDisplayed if given in this constructor will not + * override resource (unless that is zero length or + * EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number + * given via the specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is + * somewhat more likely. + * + * @since 2.0 + * @param aSettingTitleText Text at top of setting pane; OWNED EXTERNALLY + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed + * and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page + * (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aTimeOffsetValue reference to time offset + */ + IMPORT_C CBCTestTimeOffsetSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTimeIntervalSeconds& aTimeOffsetValue); + + }; +/** + * + * Setting page class for entering an IP Address + * + */ +class CBCTestIpFieldSettingPage : public CAknIpFieldSettingPage +{ + friend class CBCTestSettingPageCase; +public: + /** + * Constructor using purely Setting page resource + * + * @param aResourceId Setting page resource Id + * @param aIpAddress Reference to the maintained IP address + */ + IMPORT_C CBCTestIpFieldSettingPage( + TInt aResourceID, + TInetAddr& aIpAddress); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor + * resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text + * & number overridden) + * = 0 present Editor resource is + * used via SP resource + * (Effectively like the + * other constructor) + * present = 0 Default Avkon SP + * resource if used + this + * editor resource + * = 0 = 0 uses default resource + * for both SP and editor. + * This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, + * date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the + * other constructor cannot initialize such a member without allocation + * or having an internal dummy buffer. + * Note that this descriptor must be owned by the client at least until + * the ExecuteLD(). + * + * Rules for text and numbers: The rules are the same for both: + * (non-zero length) text or number other than + * EAknSettingPageNoOrdinalDisplayed if given in this constructor will not + * override resource (unless that is zero length or + * EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number + * given via the specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is + * somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; OWNED EXTERNALLY + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its + * resource is read + * @param aEditorResourceId Editor resource to use in the setting page + * (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aIpAddress reference to a duration + */ + IMPORT_C CBCTestIpFieldSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInetAddr& aIpAddress); + + }; +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestpasswordsettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestpasswordsettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,405 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTEST_PASSWORDSETTINGPAGE_H +#define C_BCTEST_PASSWORDSETTINGPAGE_H + +#include + +class CBCTestPasswordSettingPage : public CAknPasswordSettingPage + { +public: + /** + * Simple constructor depending only on a single resource Id and the new and old password. + * Editor resource is given via the link in the setting page resource. + * + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aNewPassword + * @param aOldPassword password to be checked against + */ + IMPORT_C CBCTestPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword); + + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * This descriptor must be owned by the client since not copy is taken until ExecuteLD() + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; EXTERNALLY OWNED + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aNewPassword Descriptor for the new password + * @param aOldPassword Descriptor for the old password + */ + + IMPORT_C CBCTestPasswordSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ); + + +public: + + /** + * Implementation of CAknSettingPage framework method + * Called when the client's value is updated. Frequency of calling depends + * upon the flag passed to ExecuteLD() + * + */ + IMPORT_C virtual void UpdateSettingL(); + + + /** + * Implementation of CAknSettingPage framework method + * Perform necessary operations when the user accepts. + * Default implementation has password checking + */ + IMPORT_C virtual void AcceptSettingL(); + + + /** + * Acts upon changes in the hosted control's state. + * + * @param aControl The control changing its state (not used) + * @param aEventType The type of control event + */ + IMPORT_C virtual void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType ); + + + /** + * Implementation of CAknSettingPage framework method + * + * Method called after full construction and activation of the setting page + */ + IMPORT_C virtual void PostDisplayInitL(); + + /** + * Implementation of CAknSettingPage framework method + * Called after display of the setting page, but before the start of the + * setting page "waiting". + * + * If overidden, would normally hold a query. + * + * @return ETrue if OK to carry on; EFalse if setting it to be abandoned + * + */ + IMPORT_C virtual TBool PostDisplayCheckL(); + + + /** + * Implementation of CAknSettingPage framework method + * + */ + IMPORT_C virtual TBool OkToExitL(TBool aAccept); + + /** + * Implementation of CCoeControl framework method + * Called when the control has its size changed + */ + IMPORT_C virtual void SizeChanged(); + + void UpdateTextL(); + + /** + * Framework for password handling + * Called when the old password is to be confirmed + * @param aPassword old password + * @param aResourceId AVKON_PASSWORD_CONFIRMATION id to use + */ + IMPORT_C virtual TBool ExecuteOldPasswordConfirmationL(const TDesC& aPassword, TInt aPasswordConfirmationResourceId ); + + /** + * Framework for password handling + * Called when the new password is to be confirmed + * @param aPassword new password + * @param aResourceId AVKON_PASSWORD_CONFIRMATION id to use + */ + IMPORT_C virtual TBool ExecuteNewPasswordConfirmationL(const TDesC& aPassword, TInt aPasswordConfirmationResourceId ); + + /** + * Framework for password handling + * Called to compare the two passwords + * @param reference (old) password + * @param candidate password; password just entered + */ + IMPORT_C virtual TInt ComparePasswords( const TDesC& aRefPassword, const TDesC& aCandidatePassword, TAknPasswordMatchingMode ) const; + + /** + * Utility method + * Access to the old password confirmation resource + * @return id for AVKON_PASSWORD_CONFIRMATION structure + */ + IMPORT_C TInt BCOldPasswordConfirmationResourceId() const; + + /** + * Utility method + * Access to the new password confirmation resource + * @return id for AVKON_PASSWORD_CONFIRMATION structure + */ + IMPORT_C TInt BCNewPasswordConfirmationResourceId() const; + + /** + * Utility method + * Read in the confirmation resource structure + * @param aPasswordResourceId id to use + * @param aResourceGroup structure to fill + */ + IMPORT_C void BCReadConfirmationResourceL( TInt aPasswordResourceId, SAknConfirmationResource& aResourceGroup ); + + /** + * Utility method + * Run the password confirmation + */ + IMPORT_C TBool BCDoPasswordConfirmationL(const TDesC& aPassword, TInt aPasswordConfirmationResourceId, TAknPasswordMatchingMode aMatchMode, TInt& aTries ); + + /** + * Utility method + * Access to new password candidate + */ + + IMPORT_C TDes& BCNewPassword() const; + + /** + * Utility method + * Access to old password + */ + IMPORT_C const TDesC& BCOldPassword() const; + + + /** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + + +}; + + +/** + * + * This class is used for alphanumeric passwords + * + */ + +class CBCTestAlphaPasswordSettingPage : public CAknAlphaPasswordSettingPage +{ +public: + /** + * Simple constructor depending only on a single resource Id and the new and old password. + * Editor resource is given via the link in the setting page resource. + * + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aNewPassword + * @param aOldPassword password to be checked against + */ + IMPORT_C CBCTestAlphaPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * This descriptor must be owned by the client since not copy is taken until ExecuteLD() + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; EXTERNALLY OWNED + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aNewPassword Descriptor for the new password + * @param aOldPassword Descriptor for the old password + */ + IMPORT_C CBCTestAlphaPasswordSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestAlphaPasswordSettingPage(); + + /** + * From CAknPasswordSettingPage - Implemented in this class + * Copy text from the editor to the client's descriptor + */ + IMPORT_C virtual void UpdateTextL(); + + /** + * Framework for password handling + * Called to compare the two passwords + * @param reference (old) password + * @param candidate password; password just entered + */ + IMPORT_C virtual TInt ComparePasswords( const TDesC& aRefPassword, const TDesC& aCandidatePassword, TAknPasswordMatchingMode ) const; + + /** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + +}; + + +/** + * + * This class is used for numeric passwords. The API uses text descriptors rather than + * integers for the PIN numbers as this is the usage + * + */ + +#include + +class CBCTestNumericPasswordSettingPage : public CAknNumericPasswordSettingPage +{ +public: + /** + * Simple constructor depending only on a single resource Id and the new and old password. + * Editor resource is given via the link in the setting page resource. + * + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aNewPassword + * @param aOldPassword password to be checked against + */ + IMPORT_C CBCTestNumericPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * This descriptor must be owned by the client since not copy is taken until ExecuteLD() + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; EXTERNALLY OWNED + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aNewPassword Descriptor for the new password + * @param aOldPassword Descriptor for the old password + */ + IMPORT_C CBCTestNumericPasswordSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestNumericPasswordSettingPage(); + + /** + * From CAknPasswordSettingPage - Implemented in this class + * Copy text from the editor to the client's descriptor + */ + IMPORT_C virtual void UpdateTextL(); + + /** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + +}; + + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestradiobuttonsettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestradiobuttonsettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,114 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef BCTEST_RADIOBUTTONSETTINGPAGE_H +#define BCTEST_RADIOBUTTONSETTINGPAGE_H + +#include + +class CBCTestSettingPageCase; + +/** +* This class sets out a radio button listbox within a setting page. +* +*/ +class CBCTestRadioButtonSettingPage : public CAknRadioButtonSettingPage +{ + +friend class CBCTestSettingPageCase; + +public: + IMPORT_C CBCTestRadioButtonSettingPage( + TInt aResourceID, + TInt& aCurrentSelectionIndex, + const MDesCArray* aItemArray ); + /** + * Constructor that allows separate setting page and editor resources + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource + * present = 0 Default Avkon SP resource if used + * = 0 = 0 Not permitted + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * Note that the setting title provided here must be owned by the client. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; EXTERNALLY OWNED + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aCurrentSelectionIndex THe currently selected index + * @param aItemArray List of option texts and their selection states + */ + IMPORT_C CBCTestRadioButtonSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aCurrentSelectionIndex, + const MDesCArray* aItemArray ); + +/** +* C++ destructor +*/ + IMPORT_C virtual ~CBCTestRadioButtonSettingPage(); + +/** +* Called when the external setting is to be updated +*/ + IMPORT_C virtual void UpdateSettingL(); + +/** +* Called immediately prior to activation, but after all construction +*/ + IMPORT_C void DynamicInitL(); + +/** + * This method overrides the default implementation in order to do the special + * processing of selecting an item + * + */ + IMPORT_C virtual void SelectCurrentItemL(); + +// +// CoeControl Framework and reserved methods +// + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + +}; + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingitemlist.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingitemlist.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,315 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_SETTINGITEMLIST_H +#define BCTEST_SETTINGITEMLIST_H + +#include + +class CBCTestSettingPageCase; + +class CBCTestSettingItem : public CAknSettingItem + { + +friend class CBCTestSettingPageCase; + +public: + /** + * Constructor + * + * @param the unique identifier fo the setting item (not its number) + */ + IMPORT_C CBCTestSettingItem( TInt identifier ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestSettingItem(); + + }; + +/** +* Support for abstact text setting type. Corresponds to CAknTextSettingPage +* +*/ +class CBCTestTextSettingItem : public CAknTextSettingItem +{ + +friend class CBCTestSettingPageCase; + +public: + /* + * Constructor + * + * @param resource identifier for this setting item + * @param Setting text + * + */ + IMPORT_C CBCTestTextSettingItem( TInt aIdentifier, TDes& aText ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestTextSettingItem(); +}; + + +/** +* +* Abstract setting item for integer editing. +* +* This class is not disposed toward any particular type of setting page +* +*/ +class CBCTestIntegerSettingItem : public CAknIntegerSettingItem + { + + friend class CBCTestSettingPageCase; + + public: + /* + * Constructor + * + * @param resource identifier for this setting item + * @param integer value to edit. + * + */ + IMPORT_C CBCTestIntegerSettingItem( TInt aIdentifier, TInt& aValue ); + IMPORT_C virtual ~CBCTestIntegerSettingItem(); + + /** + * + * Pure virtual editItemL + * + * @param aCalledFromMenu - ignored in this class + * + */ + void EditItemL( TBool aCalledFromMenu ); + + }; + +/** +* +* Class for holding a password setting item +* +*/ +class CBCTestPasswordSettingItem : public CAknPasswordSettingItem +{ + +friend class CBCTestSettingPageCase; + +public: + /* + * Constructor + * + * @param resource identifier for this setting item + * @param password mode; text or numeric + * @param password to change + */ + IMPORT_C CBCTestPasswordSettingItem( TInt aIdentifier, enum TAknPasswordSettingItemMode aMode, TDes& aPassword ); + +}; + + +/** +* An abstrct integer setting that uses the volume control as its editor +* +*/ +class CBCTestVolumeSettingItem : public CAknVolumeSettingItem + { + + friend class CBCTestSettingPageCase; +public: + /* + * Constructor + * + * @param resource identifier for this setting item + * @param volume value. Must be in range 0 to 10, inclusive + * + */ + IMPORT_C CBCTestVolumeSettingItem( TInt aIdentifier, TInt& aExternalVolume ); + + }; + +/** +* Slider control setting item +* +* +*/ + +class CBCTestSliderSettingItem : public CAknSliderSettingItem + { + + friend class CBCTestSettingPageCase; +public: + /* + * Constructor + * + * @param resource identifier for this setting item + * @param Slider value; must be within the minimum and maximum values in resource + * + */ + IMPORT_C CBCTestSliderSettingItem( TInt aIdentifier, TInt& aExternalSliderValue ); + + }; + + +/** +* CAknEnumeratedTextSettingItem +* +* Abstract Base class for deriving listbox setting page related setting items +* +* The class provides standard array support for these setting items and their +* listboxes. Then approach is centred upon the CAknEnumeratedText type. +* +* The texts are exposed to the user, and appear in two versions, if desired - the text shown +* in the setting list when not being edited, and the "popped-up" version of the texts. +* +*/ +class CBCTestEnumeratedTextSettingItem : public CAknEnumeratedTextSettingItem + { + + friend class CBCTestSettingPageCase; +public: + /** + * Constructor. Resource Id for the setting item + * + */ + IMPORT_C CBCTestEnumeratedTextSettingItem( TInt aResourceId ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestEnumeratedTextSettingItem(); + + }; + + + +/** +* Setting item type for CAknEnumeratedItems. +* +* The main use case for this is for list of texts that are being manipulated in the +* client source code as a set of enumerations, while the texts, read from resource, +* are not strongly exposed to the client. +* +* They are exposed to the user, and appear in two versions, if desired - the text shown +* in the setting list when not being edited, and the "popped-up" version of the texts. +* +*/ +class CBCTestEnumeratedTextPopupSettingItem : public CAknEnumeratedTextPopupSettingItem + { + + friend class CBCTestSettingPageCase; +public: + /** + * Construct a list, storing in it a resource (to be read at 2nd stage construction) + * and a reference to na externally owned integer - the value to be manipulated + * + */ + IMPORT_C CBCTestEnumeratedTextPopupSettingItem( TInt aResourceId, TInt& aValue ); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestEnumeratedTextPopupSettingItem(); + + }; + + +class CBCTestBinaryPopupSettingItem : public CAknBinaryPopupSettingItem + { + + friend class CBCTestSettingPageCase; + +public: + /** + * Constructs a binary setting value, given a resource id and a reference to + * an externally owned external boolen setting item. + * Resource supplied is just as for CAknEnumeratedTextPopupSettingItem + * + * @param aIdentifier Resource id for the associated values and texts; + * + */ + IMPORT_C CBCTestBinaryPopupSettingItem( TInt aIdentifier, TBool& aBinaryValue ); + + }; + + +/** + * This class can be used as a base class for "Big Settings". The additional + * functionality is small - merely to ensure that there is an empty string + * in the list box text. + * + * To derive from this class, the client code is usually expected to add a new constructor, + * re-implement StoreL, LoadL() and EditItemL(). + * + */ +class CBCTestBigSettingItemBase : public CAknBigSettingItemBase + { + + friend class CBCTestSettingPageCase; +public: + /** + * Contruct the "Big" setting item. The passed resource identifier all that is needed + * There is no external value to reference. + */ + IMPORT_C CBCTestBigSettingItemBase( TInt aIdentifier ); + + }; + + +/** + * This class holds the setting items themselves and also manages the bitmap array + */ +class CBCTestSettingItemArray : public CAknSettingItemArray + { + + friend class CBCTestSettingPageCase; +public: + /** + * CAknSettingItemArray is constructed as a numbered or unnumbered array. + * @param aGranularity - number of items to extend when the aarray needs extention + * @param aIsNumbered - flags the array as numbered or not + * @param aInitialOrdinal - value to start the numbering at + */ + IMPORT_C CBCTestSettingItemArray( TInt aGranularity, TBool aIsNumbered, TInt aInitialOrdinal ); + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestSettingItemArray(); + + }; + + +class CBCTestSettingItemList : public CAknSettingItemList + { + friend class CBCTestSettingPageCase; +public: + /** + * Constructs the setting item list + */ + IMPORT_C CBCTestSettingItemList(); + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestSettingItemList(); + + }; + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +/* +* 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 "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: BCTestSettingPage resource header file +* +*/ + + +#ifndef BCTESTSETTINGPAGE_HRH +#define BCTESTSETTINGPAGE_HRH + +enum TBCTestSettingPageMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest, + EBCTestMenuItem, + EAknAtSetPageConfirmation, + EAknAtSetPageCmdSetItemArrayAndSelection, + EAknAtSetPageCmdSelectCurrentItem, + EAknAtSettingInteger + }; + +enum TBCTestSettingPageCba + { + EBCTestSettingPageCbaCmdNext = 0x6300 + }; + +enum TAknAtSetPageDateSettingPage + { + TAknAtSetPageDateSettingMinYear = 1980, + TAknAtSetPageDateSettingMaxYear = 2060 + }; + +#endif // BCTESTSETTINGPAGE_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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: BCTestSettingPage localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTSETTINGPAGE" +#define qtn_apps_tavl_grid "BCTESTSETTINGPAGE" + +//Title for slider settingpage +#define qtn_aknatsetpage_slider_title "Slider" +//Title for volume settingpage +#define qtn_aknatsetpage_volume_title "Volume" + +//Title for radio button settingpage +#define qtn_aknatsetpage_radiobtn_title "Radio buttons" +#define qtn_aknatsetpage_menubar "Option" +#define qtn_aknatsetpage_radiobtn_setarray_select_item "SetArray & Select" +#define qtn_aknatsetpage_radiobtn_selcur_item "SelectCurrentItem" + +// List style Setting Page +#define qtn_aknatsetpage_item_list0 "aaaaaa" +#define qtn_aknatsetpage_item_list1 "bbbbbb" +#define qtn_aknatsetpage_item_list2 "cccccc" +#define qtn_aknatsetpage_item_list3 "dddddd" +#define qtn_aknatsetpage_item_list4 "eeeeee" +#define qtn_aknatsetpage_item_list5 "ffffff" +#define qtn_aknatsetpage_item_list6 "gggggg" +#define qtn_aknatsetpage_item_list7 "hhhhhh" +#define qtn_aknatsetpage_item_list8 "iiiiii" +#define qtn_aknatsetpage_item_list9 "jjjjjj" + +// Slider Setting Page +#define qtn_slider_minlabel "darker" +#define qtn_slider_maxlabel "lighter" + +//Title for password settingpage +#define qtn_bctestpassword_setpage_title "Password SettingPage" +#define qtn_aknatsetpage_text_title "Text SettingPage" + +// MenuBar +#define qtn_aknatsetpage_multi_title "Multiselection" +#define qtn_bctestsettingpage_menubar "Option" +#define qtn_bctestsettingpage_cba_next "Next" +#define qtn_bctestsettingpage_autotest "Autotest" +#define qtn_bctestsettingpage_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestsettingpage_outline1 "Outline01" + + +#define qtn_bctestsettingpage_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestsettingpage_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestSettingPage localise file +* +*/ + + +#include "bctestsettingpage.loc" + +// LOCALISATION STRINGS + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage_31.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage_31.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: BCTestSettingPage localise file +* +*/ + + +#include "bctestsettingpage.loc" +#include "ChineseStrings.loc" + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage_37.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpage_37.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: BCTestSettingPage localise file +* +*/ + + +#include "bctestsettingpage.loc" +#include "ArabicStrings.loc" + + +// LOCALISATION STRINGS + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpageapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpageapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTSETTINGPAGEAPP_H +#define C_BCTESTSETTINGPAGEAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestSettingPage = { 0x200045CB }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestSettingPageApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestSettingPageApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTemplateDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTemplate ). + * @return The value of KUidBCTestTemplate. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpageappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpageappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTSETTINGPAGEAPPUI_H +#define C_BCTESTSETTINGPAGEAPPUI_H + +#include + +class CBCTestSettingPageView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSettingPageAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestSettingPageAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestSettingPageAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestSettingPageView* iView; + }; + +#endif // C_BCTESTSETTINGPAGEAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpagecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpagecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTEST_SETTINGPAGECASE_H +#define C_BCTEST_SETTINGPAGECASE_H + +#include "bctestcase.h" + +class CBCTestSettingPageContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestSettingPageCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestSettingPageCase* NewL( CBCTestSettingPageContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestSettingPageCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestCheckBoxSettingPageL(); + + void TestPasswordSettingPageL(); + void TestTextSettingPageL(); + void TestSliderSettingPageL(); + void TestVolumeSettingPageL(); + void TestRadioButtonSettingPageL(); + void TestSettingItemListL(); + void TestMFneSettingPageL(); + void TestSettingPageL(); + void TestDescArrayL(); + void TestAllL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSettingPageCase( CBCTestSettingPageContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestSettingPageContainer* iContainer; + + }; + +#endif // C_BCTEST_SETTINGPAGECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpagecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpagecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTEST_SETTINGPAGECONTAINER_H +#define C_BCTEST_SETTINGPAGECONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestSettingPageContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestSettingPageContainer(); + + /** + * Destructor + */ + virtual ~CBCTestSettingPageContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTEST_SETTINGPAGECONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpagedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpagedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTSETTINGPAGEDOCUMENT_H +#define C_BCTESTSETTINGPAGEDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestSettingPageDocument application class. +*/ +class CBCTestSettingPageDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestSettingPageDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestSettingPageDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestSettingPageDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestTemplateAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSETTINGPAGEDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpageview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestsettingpageview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTEST_SETTINGPAGE_VIEW_H +#define C_BCTEST_SETTINGPAGE_VIEW_H + +#include + +const TUid KBCTestSettingPageViewId = { 1 }; + +class CBCTestSettingPageContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSettingPageView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestSettingPageView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestSettingPageView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSettingPageView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestSettingPageContainer* iContainer; + + }; + +#endif // BCTEST_SETTINGPAGE_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestslidersettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestslidersettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,120 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_SLIDERSETTINGPAGE_H +#define BCTEST_SLIDERSETTINGPAGE_H + +#include + +class CBCTestSliderSettingPage : public CAknSliderSettingPage +{ +public: + /** + * Simple constructor depending only on a single resource Id. Editor resource is given via + * the link in the setting page resource. + * + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aSliderValue ref. to external slider value + */ + IMPORT_C CBCTestSliderSettingPage(TInt aResourceID, TInt& aSliderValue); + + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * + * @param aSettingTitleText Text at top of setting pane (not copied to object until ExecuteLD is called) + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aSliderValue Reference to integer holding the slider value + */ + + IMPORT_C CBCTestSliderSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aSliderValue ); + + + IMPORT_C virtual void SizeChanged(); + IMPORT_C virtual void Draw(const TRect &aRect) const; + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + +// +// Framework methods derived from CAknSettingPage +// +/** + * C++ destructor + * + */ + IMPORT_C virtual ~CBCTestSliderSettingPage(); + +/** + * Called when something has changed and the client's object needs to have its value updated + * + */ + IMPORT_C virtual void UpdateSettingL(); + +/** + * Called when the user accepts a setting and the setting page is about to be dismissed. The latest value of the + * setting is written to the client's object + */ + IMPORT_C virtual void AcceptSettingL(); + +/** + * Called when the user rejects the setting. A backup copy may need to be restored if UpdateWhenChanged flag was set + * + */ + IMPORT_C virtual void RestoreOriginalSettingL(); + +}; + +#endif + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctesttextsettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctesttextsettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,400 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTEST_TEXTSETTINGPAGE_H +#define C_BCTEST_TEXTSETTINGPAGE_H + +#include + +class CBCTestSettingPageCase; + +/** +* This class is an intermediate pure virtual class for all setting page classes that host +* Edwins. +* +* It implements type-specific access to the hosted editor and common drawing code +*/ +class CBCTestEdwinSettingPage : public CAknEdwinSettingPage +{ + +public: + + /** + * Simple constructor depending only on a single resource Id. + * + * @param aSettingPageResourceId Setting Page resource id to use + */ + IMPORT_C CBCTestEdwinSettingPage( TInt ResourceId ); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * Note that this buffer must be owned by the client until ExecuteLD has been called. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; EXTERNALLY OWNED + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + */ + + IMPORT_C CBCTestEdwinSettingPage( + const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ); + + IMPORT_C void ConstructL(); + +// +// From CCoeControl +// + /** + * No implementation of SizeChanged is delivered with this class + * + */ + virtual void SizeChanged(); + + /** + * Common draw function for laid-out descendent setting pages. + * This should not need to be re-implemented as long as the rectangle members are + * all that is needed + * + * @param aRect rectangle within which to perform the draw + */ + IMPORT_C void Draw(const TRect& aRect) const; + +}; + +/** +* Implementation of the 6 line textual setting page. +* A multi-line edwin is displayed when the setting page is executing. +* An externally held text descriptor is altered by user input +*/ +class CBCTestTextSettingPage : public CAknTextSettingPage +{ + +friend class CBCTestSettingPageCase; + +public: + /** + * Simple constructor depending only on a single resource Id. Editor resource is given via + * the link in the setting page resource. + * + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aText Reference to text for editing + * @param aTextSettingPageFlags option flags for miscellaneous things + */ + IMPORT_C CBCTestTextSettingPage(TInt aResourceID, TDes& aText, TInt aTextSettingPageFlags = 0 ); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * Note that this buffer must be owned by the client until ExecuteLD has been called. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; OWNED EXTERNALLY + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aText Reference to text for editing + * @param aTextSettingPageFlags option flags for miscellaneous things + */ + IMPORT_C CBCTestTextSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aText, + TInt aTextSettingPageFlags = 0); + + /** + * C++ destructor + * + */ + IMPORT_C virtual ~CBCTestTextSettingPage(); + + +/** +* Called immediately prior to activation of the dialog. Framework routine for derived +* classes. +* +*/ + IMPORT_C virtual void DynamicInitL(); + +/** +* Called when something has changed and the client's object needs to have its text updated +* +*/ + IMPORT_C virtual void UpdateSettingL(); + +/** +* Called when the user accepts the text and the setting page is about to be dismissed. The latest value of the +* text is written to the client's object +*/ + IMPORT_C virtual void AcceptSettingL(); + +/** +* Called when the user rejects the setting. +* A backed up copy is used to restore the initial value +* +*/ + IMPORT_C virtual void RestoreOriginalSettingL(); + +/** + * From MCoeControlObserver: + * Acts upon changes in the hosted control's state. If the EUpdateWhenChanged + * flag is set, this updates the setting text. + * + * @param aControl The control changing its state (not used) + * @param aEventType The type of control event + */ + IMPORT_C virtual void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType ); + + +/** + * Framework method to set the validity of the data + * This is called when the data changes. + * + */ + IMPORT_C virtual void CheckAndSetDataValidity(); + +/** +* This method copies out the text from the editor into the client's descriptor +* +*/ + IMPORT_C virtual void UpdateTextL(); + +/** +* Update the CBA. This should be called after a control state change in case +* there has been a change in data validity. +* +*/ + IMPORT_C virtual void UpdateCbaL(); + +/** +* Framework method to determine if it OK to exit the setting page. +* Derived classes may check for valid data before allowing the dismissal of the +* setting page. +* +* +* +* @param aAccept ETrue if the user has indicated to accept the setting page; EFalse otherwise +* @return TBool a value indicating whether the setting page should be dismissed +*/ + IMPORT_C virtual TBool OkToExitL(TBool aAccept); + +/** +* This routine routes the keys to the editor. +* However, if the menu is showing, then events are sent to the menu. +* +* @param aKeyEvent event information +* @param aType type of event being handled +* +*/ + IMPORT_C TKeyResponse BCOfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType); + + +/** +* From CCoeControl +* This routine is called as part of the set-up of the control. It is the place to put +* layout code. +* +*/ + IMPORT_C virtual void SizeChanged(); + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + + }; + + +/** + * Setting page specialized for display of CAknIntegerEdwin + * + */ +class CBCTestIntegerSettingPage : public CAknIntegerSettingPage +{ +public: + IMPORT_C CBCTestIntegerSettingPage(TInt aResourceID, TInt& aValue, TInt aTextSettingPageFlags = 0 ); + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane; OWNED EXTERNALLY + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aValue Reference to integer value for editing + * @param aIntegerSettingPageFlags option flags for miscellaneous things + */ + IMPORT_C CBCTestIntegerSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aValue, + TInt aIntegerSettingPageFlags = 0); + + +/** +* Called immediately prior to activation of the dialog. Framework routine for derived +* classes. +* +*/ + IMPORT_C virtual void DynamicInitL(); + +/** +* Called when something has changed and the client's object needs to have its value updated +* +*/ + IMPORT_C virtual void UpdateSettingL(); + + +/** +* Called when the user rejects the setting. A backup copy may need to be restored if UpdateWhenChanged flag was set +* +*/ + IMPORT_C virtual void RestoreOriginalSettingL(); + +/** + * Framework method to set the validity of the data + * This is called when the data changes. + * May be over-ridden to change the validation rules. + * + */ + IMPORT_C virtual void CheckAndSetDataValidity(); + +/** + * This framework method is used to update the contents of the CBA in a custom way. + * Some setting page classes implement a degree of validation and will implement this. + * Derived classes should ensure that this is being called frequently enough for their + * purposes. + */ + IMPORT_C virtual void UpdateCbaL(); + + +// +// From MEikControlObserver +// + +/** + * From MCoeControlObserver: + * Acts upon changes in the hosted control's state. + * + * This class's implementation is trivial and should be able to be + * safely re-implemented in directly client-derived classes. + * For non-base setting page classes, a call to the base class should be made + * + * @param aControl The control changing its state (not used) + * @param aEventType The type of control event + */ + IMPORT_C virtual void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType ); + +// +// From CCoeControl +// + +/** +* From CCoeControl +* This routine is called as part of the set-up of the control. It is the place to put +* layout code. +* +*/ + IMPORT_C virtual void SizeChanged(); + + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + +}; + + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestvolumesettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/inc/bctestvolumesettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef BCTEST_VOLUMESETTINGPAGE_H +#define BCTEST_VOLUMESETTINGPAGE_H + +#include + +class CBCTestVolumeSettingPage : public CAknVolumeSettingPage +{ +public: + /** + * Simple constructor depending only on a single resource Id and a scalar reference + * + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aVolume Reference to external integer volume + */ + IMPORT_C CBCTestVolumeSettingPage(TInt aResourceID, TInt& aVolume); + + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * Note: THe first argument is a TDesC* (rather than TDesC&) because the other constructor + * cannot initialize such a member without allocation or having an internal dummy buffer. + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * + * @param aSettingTitleText Text at top of setting pane + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aVolume Reference to integer holding the volume + */ + + IMPORT_C CBCTestVolumeSettingPage( const TDesC* aSettingTitleText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aVolume ); + + /** + * C++ destructor + */ + IMPORT_C virtual ~CBCTestVolumeSettingPage(); + + /** + * Normal 2-nd stage construction. Internally calls + * CAknSettingPage::ConstructFromResourceL and + * CAknSettingPage::BaseConstructL() + * + */ + IMPORT_C virtual void ConstructL(); + /** + * + * Type-specific access to the editor. Returns 0 until BaseConstructL() has been called, + * usually from within ExecuteLD() + * + */ + IMPORT_C CAknVolumeControl* VolumeControl(); + +// +// CoeControl Framework methods +// + IMPORT_C virtual void SizeChanged(); + IMPORT_C virtual void Draw(const TRect &aRect) const; +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + * + * @param aWriteSteam A connected write stream + */ + IMPORT_C virtual void WriteInternalStateL(RWriteStream& aWriteStream) const; + +/** + * Called when something has changed and the client's object needs to have its value updated + * + */ + IMPORT_C virtual void UpdateSettingL(); + +/** + * Called when the user accepts a setting and the setting page is about to be dismissed. The latest value of the + * setting is written to the client's object + */ + IMPORT_C virtual void AcceptSettingL(); + +/** + * Called when the user rejects the setting. A backup copy may need to be restored if UpdateWhenChanged flag was set + * + */ + IMPORT_C virtual void RestoreOriginalSettingL(); + +}; + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/sis/bctestsettingpage.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/sis/bctestsettingpage.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,52 @@ +; +; 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: +; +; BCTestSettingPage-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestSettingPage"},(0x200045CB),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestSettingPage.exe"- +"!:\sys\bin\BCTestSettingPage.exe" + +"\epoc32\data\z\resource\apps\BCTestSettingPage.rsc"- +"!:\resource\apps\BCTestSettingPage.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestSettingPage_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestSettingPage_reg.rsc" + +"\epoc32\data\z\resource\apps\BCTestSettingPage.mbm"- +"!:\resource\apps\BCTestSettingPage.mbm" + + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestbasesettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestbasesettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include "bctestbasesettingpage.h" + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// +/** + * Constructor + * + * @param aResourceId Setting Page resource ID + */ +EXPORT_C CBCTestBaseSettingPage::CBCTestBaseSettingPage( TInt aResourceId ) + : CAknSettingPage( aResourceId ) + { + } + + +EXPORT_C CBCTestBaseSettingPage::CBCTestBaseSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ) + : CAknSettingPage( aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId ) + { + } + +/** + * Destructor + * + */ +EXPORT_C CBCTestBaseSettingPage::~CBCTestBaseSettingPage() + { + } +EXPORT_C void CBCTestBaseSettingPage::SetFocusToEditor() + { + //You can do some work here, or the base class's function will get panic. + } + +EXPORT_C TBool CBCTestBaseSettingPage::PostDisplayCheckL() + { + DisplayMenuL(); + return CAknSettingPage::PostDisplayCheckL(); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestchecksettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestchecksettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#include "bctestchecksettingpage.h" +#include "bctestsettingpage.hrh" + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + + +/** + * Destructor + * + */ +EXPORT_C CBCTestCheckSettingPage::~CBCTestCheckSettingPage() + { + + } + + +EXPORT_C CBCTestCheckSettingPage::CBCTestCheckSettingPage( TInt aResourceId, CSelectionItemList* aItemArray): + CAknCheckBoxSettingPage( aResourceId, aItemArray ) + { + } + + +EXPORT_C CBCTestCheckSettingPage::CBCTestCheckSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + CSelectionItemList* aItemArray ) + : CAknCheckBoxSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aItemArray ) + { + } + +EXPORT_C void CBCTestCheckSettingPage::BCUpdateSettingL() + { + UpdateSettingL(); + } + +EXPORT_C void CBCTestCheckSettingPage::BCDynamicInitL() + { + DynamicInitL(); + } + +/** + * Processes events from the softkeys. (Or tranlated from key events) + * + * + * @param aCommandId Event Id from the soft-key + */ +EXPORT_C void CBCTestCheckSettingPage::ProcessCommandL(TInt aCommandId) + { + if ( aCommandId != EBCTestMenuItem ) + { + CAknCheckBoxSettingPage::ProcessCommandL( aCommandId ); + } + } + +EXPORT_C void CBCTestCheckSettingPage::BCSelectCurrentItemL() + { + SelectCurrentItemL(); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestCheckSettingPage::BCWriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestCheckSettingPage::BCWriteInternalStateL(RWriteStream& aWriteStream) const + { + WriteInternalStateL(aWriteStream); + } +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestmfnesettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestmfnesettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,347 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include "bctestmfnesettingpage.h" + +////////////////////////////////////////////////////////////////////// +// +// MFNE SETTING PAGE - virtual class +// +////////////////////////////////////////////////////////////////////// + + + +/** + * Simple pass-through constructor for this interim class + * + */ +EXPORT_C CBCTestMfneSettingPage::CBCTestMfneSettingPage( TInt aResourceId ) : CAknMfneSettingPage( aResourceId ) + {} + +/** + * Constructor that allows separate setting page and editor resources + * + */ +EXPORT_C CBCTestMfneSettingPage::CBCTestMfneSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ) + : CAknMfneSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId) + {} + + + +////////////////////////////////////////////////////////////////////// +// +// DATE SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + +/** + * Constructor using Setting page resource + * + * + * @param aResourceId Setting page resource Id + * @param aDateValue Reference to a Time value set to the initial date + */ +EXPORT_C CBCTestDateSettingPage::CBCTestDateSettingPage( TInt aResourceId, TTime& aDateValue ): + CAknDateSettingPage( aResourceId , aDateValue ) + { + } + +/** + * Constructor that allows separate setting page and editor resources + * + */ +EXPORT_C CBCTestDateSettingPage::CBCTestDateSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTime& aDateValue ) + : CAknDateSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aDateValue) + { + } + +////////////////////////////////////////////////////////////////////// +// +// TIME SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + +/** + * Constructor using Setting page resource + * + * + * @param aResourceId Setting page resource Id + * @param aTimeValue Reference to a Time value set to the initial date + */ +EXPORT_C CBCTestTimeSettingPage::CBCTestTimeSettingPage( TInt aResourceId, TTime& aTimeValue ): + CAknTimeSettingPage( aResourceId, aTimeValue ) + { + } +/** + * Constructor that allows separate setting page and editor resources + * + */ +EXPORT_C CBCTestTimeSettingPage::CBCTestTimeSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTime& aTimeValue ) + : CAknTimeSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aTimeValue) + { + } + +////////////////////////////////////////////////////////////////////// +// +// DURATION SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + + +/** + * Constructor using Setting page resource + * + * + * @param aResourceId Setting page resource Id + * @param aDurationValue Reference to a Time value set to the initial date + */ +EXPORT_C CBCTestDurationSettingPage::CBCTestDurationSettingPage( TInt aResourceId, TTimeIntervalSeconds& aDurationValue ): + CAknDurationSettingPage( aResourceId, aDurationValue ) + { + } + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aDurationValue reference to a duration + */ + +EXPORT_C CBCTestDurationSettingPage::CBCTestDurationSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTimeIntervalSeconds& aDurationValue ) + : CAknDurationSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aDurationValue) + { + } + +////////////////////////////////////////////////////////////////////// +// +// TIME OFFSET SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + + +/** + * Constructor using Setting page resource + * + * + * @param aResourceId Setting page resource Id + * @param aDurationValue Reference to a Time value set to the initial date + */ +EXPORT_C CBCTestTimeOffsetSettingPage::CBCTestTimeOffsetSettingPage( TInt aResourceId, TTimeIntervalSeconds& aTimeOffsetValue ): + CAknTimeOffsetSettingPage( aResourceId, aTimeOffsetValue ) + { + } + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, duration ) + * + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aDurationValue reference to a duration + */ + +EXPORT_C CBCTestTimeOffsetSettingPage::CBCTestTimeOffsetSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TTimeIntervalSeconds& aTimeOffsetValue ) + : CAknTimeOffsetSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aTimeOffsetValue ) + { + } + +////////////////////////////////////////////////////////////////////// +// +// IP ADDRESS FIELD SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + +/** + * Constructor using Setting page resource + * + * + * @param aResourceId Setting page resource Id + * @param aIpFieldValue Reference to a Time value set to the initial date + */ +EXPORT_C CBCTestIpFieldSettingPage::CBCTestIpFieldSettingPage( TInt aResourceId, TInetAddr& aIpAddress ) +: CAknIpFieldSettingPage( aResourceId, aIpAddress ) + { + } + /** + * Constructor that allows separate setting page and editor resources + * + * This constructor allows the use of setting page using only the editor resource. Other combinations are also possible + * + * In all cases the number (if supplied i.e. <> 0 ) is used. + * + * Editor Resource Setting Page Resource + * present present Both are used (but text & number overridden) + * = 0 present Editor resource is used via SP resource (Effectively like the other constructor) + * present = 0 Default Avkon SP resource if used + this editor resource + * = 0 = 0 uses default resource for both SP and editor. This is OK if: + * i) control type is present, + * ii) a default resource exists ( OK for text, integer, date, time, IpField ) + * + * + * Rules for text and numbers: The rules are the same for both: (non-zero length) text or number other + * than EAknSettingPageNoOrdinalDisplayed if given in this constructor will not override resource + * (unless that is zero length or EAknSettingPageNoOrdinalDisplayed). Note, however, that text or number given via the + * specific API for setting them, WILL override resource. + * It is assumed that number from resource is very rare. Special text is somewhat more likely. + * + * @param aSettingTitleText Text at top of setting pane + * @param aSettingNumber Number at top left (if present) + * @param aControlType Determines the type constructed and how its resource is read + * @param aEditorResourceId Editor resource to use in the setting page (if present) + * @param aSettingPageResourceId Setting Page to use (if present) + * @param aIpAddress reference to a IP address + */ + +EXPORT_C CBCTestIpFieldSettingPage::CBCTestIpFieldSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInetAddr& aIpAddress ) + : CAknIpFieldSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aIpAddress ) + { + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestpasswordsettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestpasswordsettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,399 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + + +#include "bctestpasswordsettingpage.h" + + +////////////////////////////////////////////////////////////////////// +// +// PASSWORD SETTING PAGE BASE CLASS +// +// This class holds the main data model for the password setting pages. +// It also does the drawing and other functions. +// +////////////////////////////////////////////////////////////////////// + +/** + * + * Constructor from setting page resource id: Pass through to base class + * + */ +EXPORT_C CBCTestPasswordSettingPage::CBCTestPasswordSettingPage( + TInt aResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ) + : CAknPasswordSettingPage( aResourceId, + aNewPassword, aOldPassword ) + { + + } + + +EXPORT_C CBCTestPasswordSettingPage::CBCTestPasswordSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ) + : CAknPasswordSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aNewPassword, + aOldPassword) + { + } + +/** + * Acts upon changes in the hosted control's state. + * + * @param aControl The control changing its state (not used) + * @param aEventType The type of control event + */ +EXPORT_C void CBCTestPasswordSettingPage::HandleControlEventL(CCoeControl* aControl, + MCoeControlObserver::TCoeEvent aEventType) + { + CAknPasswordSettingPage::HandleControlEventL( aControl, aEventType ); + } + +/** + * + * Access routine for the confirmation resource structure + * + */ +EXPORT_C TInt CBCTestPasswordSettingPage::BCOldPasswordConfirmationResourceId() const + { + return OldPasswordConfirmationResourceId(); + } +/** + * + * Access routine for the confirmation resource structure + * + */ +EXPORT_C TInt CBCTestPasswordSettingPage::BCNewPasswordConfirmationResourceId() const + { + return NewPasswordConfirmationResourceId(); + } + +/** + * Access method for the new password + * + */ +EXPORT_C TDes& CBCTestPasswordSettingPage::BCNewPassword() const + { + return NewPassword(); + } + +/** + * Access method for the old password + * + */ +EXPORT_C const TDesC& CBCTestPasswordSettingPage::BCOldPassword() const + { + return OldPassword(); + } + +/** + * + * This routine is called when the a change is detected in the editor. + * The text is copied out to the referenced descriptor using a utility routine. + * + */ +EXPORT_C void CBCTestPasswordSettingPage::UpdateSettingL() + { + CAknPasswordSettingPage::UpdateSettingL(); + } + + +/** + * Checks if it OK to exit. This implementation performs a new password confirmation if the resource is defined + * If there is no confirmation resource defined, then we exit. + * If there is, then a confirmation query is put up. Upon exit, if the match is OK, then we exit + * + * Returns ETrue if the dialog is ready to exit. Returns ETrue by default. + */ +EXPORT_C TBool CBCTestPasswordSettingPage::OkToExitL(TBool aAccept ) + { + return CAknPasswordSettingPage::OkToExitL( aAccept ); + } + + +/** + * + * The value is copied out and the call back called if there is an observer + * + */ +EXPORT_C void CBCTestPasswordSettingPage::AcceptSettingL() + { + CAknPasswordSettingPage::AcceptSettingL(); + } + +/** + * Reads in the resource structure associated with a password confirmation (old or new) + * + */ +EXPORT_C void CBCTestPasswordSettingPage::BCReadConfirmationResourceL( TInt aResourceId, SAknConfirmationResource& resources ) + { + ReadConfirmationResourceL( aResourceId, resources ); + } + + +/** +* Implementation of CAknSettingPage framework method +* +* Method called after full construction and activation of the setting page +*/ +EXPORT_C void CBCTestPasswordSettingPage::PostDisplayInitL() + { + CAknPasswordSettingPage::PostDisplayInitL(); + } + +/** +* Implementation of CAknSettingPage framework method +* Called after display of the setting page, but before the start of the +* setting page "waiting". +* +* If overidden, would normally hold a query. +* +* @return ETrue if OK to carry on; EFalse if setting it to be abandoned +* +*/ +EXPORT_C TBool CBCTestPasswordSettingPage::PostDisplayCheckL() + { + return CAknPasswordSettingPage::PostDisplayCheckL(); + } + +/** + * Base implementation of this framework method. Just call the generic Do.. routine + * This implementation does not use "tries" but this may be a useful piece of information + */ +EXPORT_C TBool CBCTestPasswordSettingPage::ExecuteOldPasswordConfirmationL(const TDesC& aPassword, TInt aPasswordConfirmationResourceId ) + { + return CAknPasswordSettingPage::ExecuteOldPasswordConfirmationL( aPassword, aPasswordConfirmationResourceId ); + } + +/** + * Base implementation of this framework method. Just call the generic Do.. routine + * + */ +EXPORT_C TBool CBCTestPasswordSettingPage::ExecuteNewPasswordConfirmationL(const TDesC& aPassword, TInt aPasswordConfirmationResourceId ) + { + return CAknPasswordSettingPage::ExecuteNewPasswordConfirmationL( aPassword, aPasswordConfirmationResourceId ); + } + +/** + * Default implementation of a password confirmation procedure + * + */ +EXPORT_C TBool CBCTestPasswordSettingPage::BCDoPasswordConfirmationL(const TDesC& aPassword, TInt aPasswordConfirmationResourceId, TAknPasswordMatchingMode aMatchMode, TInt& aTries ) + { + return DoPasswordConfirmationL( aPassword, aPasswordConfirmationResourceId, aMatchMode, aTries ); + } + +EXPORT_C TInt CBCTestPasswordSettingPage::ComparePasswords( const TDesC& aRefPassword, const TDesC& aCandidatePassword, enum CAknPasswordSettingPage::TAknPasswordMatchingMode aMode) const + { + return CAknPasswordSettingPage::ComparePasswords( aRefPassword, aCandidatePassword, aMode ); + } + +EXPORT_C void CBCTestPasswordSettingPage::SizeChanged() + { + CAknPasswordSettingPage::SizeChanged(); + } + +void CBCTestPasswordSettingPage::UpdateTextL() + { + + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestPasswordSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestPasswordSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknPasswordSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + + +////////////////////////////////////////////////////////////////////// +// +// ALPHA PASSWORD SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + +/** + * + * Constructor from setting page resource id + referenced passwords. + * + */ +EXPORT_C CBCTestAlphaPasswordSettingPage::CBCTestAlphaPasswordSettingPage( + TInt aResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ): + CAknAlphaPasswordSettingPage( aResourceId, aNewPassword, aOldPassword ) + { + } + +EXPORT_C CBCTestAlphaPasswordSettingPage::CBCTestAlphaPasswordSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ) + : CAknAlphaPasswordSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aNewPassword, + aOldPassword ) + { + } + +/** + * Destructor + * + */ +EXPORT_C CBCTestAlphaPasswordSettingPage::~CBCTestAlphaPasswordSettingPage() + { + } + + + +/** + * Soak up function to do the safe copying of the editor to the referenced value + * + */ +EXPORT_C void CBCTestAlphaPasswordSettingPage::UpdateTextL() + { + CAknAlphaPasswordSettingPage::UpdateTextL(); + } + +/** + * Compares the given passwords. + * Supports folding matching. + */ +EXPORT_C TInt CBCTestAlphaPasswordSettingPage::ComparePasswords( const TDesC& aRefPassword, const TDesC& aCandidatePassword, enum CAknPasswordSettingPage::TAknPasswordMatchingMode aMode) const + { + return CAknAlphaPasswordSettingPage::ComparePasswords( aRefPassword, aCandidatePassword, aMode ); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestAlphaPasswordSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestAlphaPasswordSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknAlphaPasswordSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + +////////////////////////////////////////////////////////////////////// +// +// NUMERIC PASSWORD SETTING PAGE +// +////////////////////////////////////////////////////////////////////// + + + +/** + * + * Constructor from setting page resource id + referenced passwords. + * + */ +EXPORT_C CBCTestNumericPasswordSettingPage::CBCTestNumericPasswordSettingPage( + TInt aResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ): + CAknNumericPasswordSettingPage(aResourceId, aNewPassword, aOldPassword) + { + } + + +EXPORT_C CBCTestNumericPasswordSettingPage::CBCTestNumericPasswordSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ) + : CAknNumericPasswordSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aNewPassword, + aOldPassword ) + { + } + +/** + * Destructor + * + */ +EXPORT_C CBCTestNumericPasswordSettingPage::~CBCTestNumericPasswordSettingPage() + { + } + +/** + * Soak up function to do the safe copying of the editor to the referenced value + * + */ +EXPORT_C void CBCTestNumericPasswordSettingPage::UpdateTextL() + { + CAknNumericPasswordSettingPage::UpdateTextL(); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestNumericPasswordSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestNumericPasswordSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknNumericPasswordSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestradiobuttonsettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestradiobuttonsettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,94 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestradiobuttonsettingpage.h" + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + + +EXPORT_C CBCTestRadioButtonSettingPage::CBCTestRadioButtonSettingPage( TInt aResourceId, + TInt& aCurrentSelectionItem, const MDesCArray* aItemArray): + CAknRadioButtonSettingPage( aResourceId, aCurrentSelectionItem, aItemArray ) + { + } + + +EXPORT_C CBCTestRadioButtonSettingPage::CBCTestRadioButtonSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aCurrentSelectionIndex, + const MDesCArray* aItemArray ) + : CAknRadioButtonSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aCurrentSelectionIndex, + aItemArray ) + { + } + + +/** + * Destructor + * + */ +EXPORT_C CBCTestRadioButtonSettingPage::~CBCTestRadioButtonSettingPage() + { + } + + +EXPORT_C void CBCTestRadioButtonSettingPage::UpdateSettingL() + { + CAknRadioButtonSettingPage::UpdateSettingL(); + } + + +EXPORT_C void CBCTestRadioButtonSettingPage::DynamicInitL() + { + CAknRadioButtonSettingPage::DynamicInitL(); + } + + +EXPORT_C void CBCTestRadioButtonSettingPage::SelectCurrentItemL() + { + CAknRadioButtonSettingPage::SelectCurrentItemL(); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestRadioButtonSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestRadioButtonSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknRadioButtonSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingitemlist.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingitemlist.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,184 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include "bctestsettingitemlist.h" + +// ------------------------------- +// CAknSettingItem +// ------------------------------- +// +// public: + +/** +* Default constructor. +*/ +EXPORT_C CBCTestSettingItem::CBCTestSettingItem( TInt aIdentifier) + : CAknSettingItem( aIdentifier ) + { + } + +EXPORT_C CBCTestSettingItem::~CBCTestSettingItem() + { + } + +// --------------------------------------- +// CAknTextSettingItem +// +//---------------------------------------- + +EXPORT_C CBCTestTextSettingItem::CBCTestTextSettingItem( TInt aIdentifier, TDes& aText ): + CAknTextSettingItem( aIdentifier, aText ) + { + // iInternalTextPtr points to no buffer, so no allocation is done here + } + +EXPORT_C CBCTestTextSettingItem::~CBCTestTextSettingItem() + { + } + + + +// --------------------------------------- +// CAknIntegerSettingItem +// +//---------------------------------------- + +EXPORT_C CBCTestIntegerSettingItem::CBCTestIntegerSettingItem( TInt aIdentifier, TInt& aValue ): + CAknIntegerSettingItem(aIdentifier, aValue ) + { + } + +EXPORT_C CBCTestIntegerSettingItem::~CBCTestIntegerSettingItem() + { + } + +void CBCTestIntegerSettingItem::EditItemL( TBool /*aCalledFromMenu */) +{ +} + +// --------------------------------------- +// CAknPasswordSettingItem +// +//---------------------------------------- + +EXPORT_C CBCTestPasswordSettingItem::CBCTestPasswordSettingItem( TInt aIdentifier, enum CAknPasswordSettingItem::TAknPasswordSettingItemMode aPasswordMode, TDes& aPassword ): + CAknPasswordSettingItem( aIdentifier, aPasswordMode, aPassword ) + { + } + +// --------------------------------------- +// CAknVolumeSettingItem +// +//---------------------------------------- + +EXPORT_C CBCTestVolumeSettingItem::CBCTestVolumeSettingItem( TInt aIdentifier, TInt& aVolume ): + CAknVolumeSettingItem(aIdentifier, aVolume ) + { + } + +// --------------------------------------- +// CAknSliderSettingItem +// +//---------------------------------------- + +EXPORT_C CBCTestSliderSettingItem::CBCTestSliderSettingItem( TInt aIdentifier, TInt& aSliderValue ): + CAknSliderSettingItem( aIdentifier, aSliderValue ) + { + } + +// +// Implementation of CAknEnumeratedTextSettingItem +// +// + + +EXPORT_C CBCTestEnumeratedTextSettingItem::CBCTestEnumeratedTextSettingItem( + TInt aIdentifier ): + CAknEnumeratedTextSettingItem(aIdentifier) + { + } + +EXPORT_C CBCTestEnumeratedTextSettingItem::~CBCTestEnumeratedTextSettingItem() + { + } + +// +// Implementation of CAknEnumeratedTextPopupSettingItem +// + + +EXPORT_C CBCTestEnumeratedTextPopupSettingItem::CBCTestEnumeratedTextPopupSettingItem( + TInt aIdentifier, + TInt& aValue ): + CAknEnumeratedTextPopupSettingItem( aIdentifier, aValue ) + { + } + +EXPORT_C CBCTestEnumeratedTextPopupSettingItem::~CBCTestEnumeratedTextPopupSettingItem() + { + } + +// ============================================================================== +// CAknBinaryPopupSettingItem +// ============================================================================== + + +EXPORT_C CBCTestBinaryPopupSettingItem::CBCTestBinaryPopupSettingItem( + TInt aIdentifier, + TBool& aBinaryValue ): + CAknBinaryPopupSettingItem(aIdentifier, aBinaryValue ) + { + } + + +/** +* This constructor merely initializes the empty string descriptor required for formatting the +* listbox text +* +*/ +EXPORT_C CBCTestBigSettingItemBase::CBCTestBigSettingItemBase( TInt aIdentifier ): CAknBigSettingItemBase( aIdentifier ) + { + } + +//======================================== + + +EXPORT_C CBCTestSettingItemArray::CBCTestSettingItemArray(TInt aGranularity, TBool aIsNumbered, TInt aInitialOrdinal ) : + CAknSettingItemArray( aGranularity, aIsNumbered, aInitialOrdinal ) + { + } + +EXPORT_C CBCTestSettingItemArray::~CBCTestSettingItemArray() + { + } + +// ------------------------------- +// CAknSettingItemList +// ------------------------------- + +EXPORT_C CBCTestSettingItemList::CBCTestSettingItemList() + { + } + +EXPORT_C CBCTestSettingItemList::~CBCTestSettingItemList() + { + + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpageapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpageapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon SettingPage test app +* +*/ + + +// INCLUDE FILES +#include "BCTestSettingPageApp.h" +#include "BCTestSettingPageDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestSettingPageApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestSettingPageApp::AppDllUid() const + { + return KUidBCTestSettingPage; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestSettingPageApp::CreateDocumentL() +// Creates CBCTestTemplateDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestSettingPageApp::CreateDocumentL() + { + return CBCTestSettingPageDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestSettingPageApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestSettingPageApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpageappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpageappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for settingpage control api(s) +* +*/ + +#include +#include + +#include "bctestsettingpageAppUi.h" +#include "bctestsettingpage.hrh" +#include "bctestsettingpageview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestSettingPageAppUi::CBCTestSettingPageAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestSettingPageView* view = CBCTestSettingPageView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageAppUi::~CBCTestSettingPageAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSettingPageAppUi::~CBCTestSettingPageAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestSettingPageAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpagecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpagecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1781 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestsettingpagecase.h" +#include "bctestsettingpagecontainer.h" +#include "bctestsettingpage.hrh" +#include "bctestchecksettingpage.h" +#include "bctestpasswordsettingpage.h" +#include "bctesttextsettingpage.h" +#include "bctestslidersettingpage.h" +#include "bctestvolumesettingpage.h" +#include "bctestradiobuttonsettingpage.h" +#include "bctestsettingitemlist.h" +#include "bctestmfnesettingpage.h" +#include "bctestbasesettingpage.h" +#include + +const TInt KAknBCTestSetPageCheckBoxSetPageNumber(1); +_LIT(KOldPassword, "TESTOLD"); +_LIT( KTimeFormat, "%:0%J%:1%T%:2%S%:3%+B" ); +_LIT(KTitle, "Title"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageCase* CBCTestSettingPageCase::NewL( + CBCTestSettingPageContainer* aContainer ) + { + CBCTestSettingPageCase* self = new( ELeave ) CBCTestSettingPageCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageCase::CBCTestSettingPageCase( + CBCTestSettingPageContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageCase::~CBCTestSettingPageCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::BuildScriptL() + { + // Add script as your need. + //For TestCheckBoxSettingPage + //AddTestL( LeftCBA, KeyOK, KeyOK, RightCBA, TEND ); + //For TestPasswordSettingPage + AddTestL( LeftCBA, KeyOK, WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, + WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), LeftCBA, WAIT(2), RightCBA, WAIT(2), + RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, + WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, WAIT(2), RightCBA, RightCBA, RightCBA, RightCBA,RightCBA, TEND ); + + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestAllL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::TestCheckBoxSettingPage +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::TestCheckBoxSettingPageL() + { + // Test some API here + TBuf<20> temp; + _LIT(KItem1, "Item1"); + temp.Append( KItem1 ); + CSelectableItem* item = new( ELeave ) CSelectableItem( temp, EFalse ); + CleanupStack::PushL( item ); + _LIT( KCheckBoxLog1, "CSelectableItem instance created" ); + AssertNotNullL( item, KCheckBoxLog1 ); + item->ConstructL(); + _LIT( KCheckBoxLog2, "CSelectableItem instance construct" ); + AssertTrueL( ETrue, KCheckBoxLog2 ); + item->SetSelectionStatus( ETrue ); + _LIT( KCheckBoxLog3, "Set item status to ETrue" ); + AssertTrueL( ETrue, KCheckBoxLog3 ); + _LIT( KCheckBoxLog4, "The selection status should be true" ); + AssertTrueL( item->SelectionStatus(), KCheckBoxLog4 ); + _LIT( KCheckBoxLog5, "Compare the item text" ); + AssertTrueL( ( item->ItemText().CompareC( KItem1 ) == 0 ), KCheckBoxLog5 ); + + CSelectionItemList* itemList = new( ELeave ) CSelectionItemList( 1 ); + CleanupStack::PushL( itemList ); + _LIT( KCheckBoxLog6, "CSelectableItemList instance created" ); + AssertNotNullL( itemList, KCheckBoxLog6 ); + itemList->AppendL( item ); + _LIT( KCheckBoxLog7, "The count should be 1" ); + AssertIntL( 1, itemList->MdcaCount(), KCheckBoxLog7 ); + _LIT( KCheckBoxLog8, "The item text should be Item1" ); + AssertTrueL( ( itemList->MdcaPoint( 0 ).CompareC( KItem1 ) == 0 ), KCheckBoxLog8 ); + CBCTestCheckSettingPage* checkSettingPage = new( ELeave ) + CBCTestCheckSettingPage( R_BCTESTSETPAGE_CHECKBOX_SETTING_PAGE, itemList ); + CleanupStack::PushL( checkSettingPage ); + _LIT( KCheckBoxLog9, "CBCTestCheckSettingPage instance created" ); + AssertNotNullL( checkSettingPage, KCheckBoxLog9 ); + checkSettingPage->ConstructL(); + _LIT( KCheckBoxLog10, "CSelectableItem ConstructL called" ); + AssertTrueL( ETrue, KCheckBoxLog10 ); + _LIT( KCheckBoxLog11, "Get Listbox Control!" ); + AssertNotNullL( checkSettingPage->ListBoxControl(), KCheckBoxLog11 ); + checkSettingPage->SetSelectionItemArrayL( itemList ); + _LIT( KCheckBoxLog12, "Set itemlist" ); + AssertTrueL( ETrue, KCheckBoxLog12 ); + checkSettingPage->BCUpdateSettingL(); + _LIT( KCheckBoxLog13, "UpdateSettingL called" ); + AssertTrueL( ETrue, KCheckBoxLog13 ); + + checkSettingPage->BCDynamicInitL(); + _LIT( KCheckBoxLog14, "DynamicInitL called" ); + AssertTrueL( ETrue, KCheckBoxLog14 ); + checkSettingPage->BCSelectCurrentItemL(); + _LIT( KCheckBoxLog15, "SelectCurrentItemL called" ); + AssertTrueL( ETrue, KCheckBoxLog15 ); + + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + checkSettingPage->HandlePointerEventL( pointEvent ); + _LIT( KCheckBoxLog16, "HandlePointerEventL called" ); + AssertTrueL( ETrue, KCheckBoxLog16 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + checkSettingPage->BCWriteInternalStateL( stream ); + _LIT( KCheckBoxLog17, "WriteInternalStateL called" ); + AssertTrueL( ETrue, KCheckBoxLog17 ); + stream.Close(); + delete buf; + + CleanupStack::Pop( checkSettingPage ); + checkSettingPage->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ); + _LIT( KCheckBoxLog18, "Function called" ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + AssertTrueL( ETrue, KCheckBoxLog18 ); + + TBuf<20> titleText; + _LIT( KCheckBoxLog19, "Six Args" ); + titleText.Append( KCheckBoxLog19 ); + CBCTestCheckSettingPage* settingPage = new (ELeave) + CBCTestCheckSettingPage( + &titleText, + KAknBCTestSetPageCheckBoxSetPageNumber, + EAknSetListBox, + R_BCTESTSETPAGE_CHECKBOX_SETTING_PAGE, + 0, + itemList); + _LIT( KCheckBoxLog20, "CBCTestCheckSettingPage instance created using six args" ); + AssertNotNullL( settingPage, KCheckBoxLog20 ); + + delete settingPage; + CleanupStack::PopAndDestroy( 2 ); + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::TestPasswordSettingPage +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::TestPasswordSettingPageL() + { + TBuf<10> temp; + _LIT(KPASSWORDLOG1, "TEST" ); + temp.Append( KPASSWORDLOG1 ); + CBCTestPasswordSettingPage* pwdSettingPage = new (ELeave) + CBCTestPasswordSettingPage( R_BCTEST_PASSWORD_SETTING_PAGE, temp, + KOldPassword ); + + CleanupStack::PushL( pwdSettingPage ); + _LIT(KPASSWORDLOG2, "CBCTestPasswordSettingPage instance created" ); + AssertNotNullL( pwdSettingPage, KPASSWORDLOG2 ); + + pwdSettingPage->UpdateSettingL(); + _LIT(KPASSWORDLOG3, "UpdateSettingL called" ); + AssertTrueL( ETrue, KPASSWORDLOG3 ); + pwdSettingPage->AcceptSettingL(); + _LIT(KPASSWORDLOG4, "AcceptSettingL called" ); + AssertTrueL( ETrue, KPASSWORDLOG4 ); + pwdSettingPage->PostDisplayInitL(); + _LIT(KPASSWORDLOG5, "Function called" ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertTrueL( pwdSettingPage->PostDisplayCheckL(), KPASSWORDLOG5 ); + + AssertTrueL( ( EFalse == pwdSettingPage->ExecuteOldPasswordConfirmationL( + KOldPassword, R_AKNATSETPAGE_ALPHA_PASSWORD_OLD_CONFIRMATION ) ), + KPASSWORDLOG5 ); + AssertTrueL( ( EFalse == pwdSettingPage->ExecuteOldPasswordConfirmationL( + temp, R_AKNATSETPAGE_NUMERIC_PASSWORD_NEW_CONFIRMATION ) ), + KPASSWORDLOG5 ); + + AssertTrueL( ( ( pwdSettingPage->BCNewPassword() ).CompareC( KPASSWORDLOG1 ) == 0 ), + KPASSWORDLOG5 ); + AssertTrueL( ( ( pwdSettingPage->BCOldPassword() ).CompareC( KOldPassword ) == 0 ), + KPASSWORDLOG5 ); + + pwdSettingPage->SetOldPasswordConfirmationResourceId( + R_AKNATSETPAGE_ALPHA_PASSWORD_OLD_CONFIRMATION ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + pwdSettingPage->SetNewPasswordConfirmationResourceId( + R_AKNATSETPAGE_NUMERIC_PASSWORD_NEW_CONFIRMATION ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + pwdSettingPage->SetMatchingMode( CAknPasswordSettingPage::ECaseInsensitive ) ; + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertTrueL( ( CAknPasswordSettingPage::ECaseInsensitive + == pwdSettingPage->MatchingMode() ), + KPASSWORDLOG5 ); + pwdSettingPage->SetMaxPasswordLength( 50 ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertIntL( 50, pwdSettingPage->MaxPasswordLength(), + KPASSWORDLOG5 ); + _LIT(KPASSWORDLOG6, "NewPasswordConfirmationResourceId called" ); + AssertIntL( R_AKNATSETPAGE_NUMERIC_PASSWORD_NEW_CONFIRMATION, + pwdSettingPage->BCNewPasswordConfirmationResourceId(), + KPASSWORDLOG6 ); + _LIT(KPASSWORDLOG7, "OldPasswordConfirmationResourceId called" ); + AssertIntL( R_AKNATSETPAGE_ALPHA_PASSWORD_OLD_CONFIRMATION, + pwdSettingPage->BCOldPasswordConfirmationResourceId(), + KPASSWORDLOG7 ); + + TBuf<15> candidatePwd; + candidatePwd.Append( KOldPassword ); + AssertIntL( 0, pwdSettingPage->ComparePasswords( KOldPassword , candidatePwd, + CAknPasswordSettingPage::ECaseInsensitive ), + KPASSWORDLOG5 ); + + SAknConfirmationResource confirmationResource; + pwdSettingPage->BCReadConfirmationResourceL( R_AKNATSETPAGE_NUMERIC_PASSWORD_NEW_CONFIRMATION, + confirmationResource ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + TInt tries = 1; + AssertTrueL( ( EFalse == pwdSettingPage->BCDoPasswordConfirmationL( KOldPassword, + R_AKNATSETPAGE_ALPHA_PASSWORD_OLD_CONFIRMATION, + CAknPasswordSettingPage::ECaseInsensitive, + tries ) ), + KPASSWORDLOG5 ); + + CleanupStack::Pop( pwdSettingPage ); + pwdSettingPage->ExecuteLD(); + pwdSettingPage = NULL; + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + TBuf<20> titleText; + _LIT(KPASSWORDLOG8, "Six Args" ); + titleText.Append( KPASSWORDLOG8 ); + pwdSettingPage = new (ELeave) + CBCTestPasswordSettingPage( &titleText, KAknBCTestSetPageCheckBoxSetPageNumber, + EAknCtNumericSecretEditor, R_AKNATSETPAGE_NUMERIC_PASSWORD, + R_BCTEST_PASSWORD_SETTING_PAGE, temp, KOldPassword ); + _LIT(KPASSWORDLOG9, "CBCTestPasswordSettingPage's six arg constructor called" ); + AssertTrueL( ETrue, KPASSWORDLOG9 ); + + CleanupStack::PushL( pwdSettingPage ); + pwdSettingPage->HandleControlEventL( NULL, MCoeControlObserver::EEventRequestCancel ); + _LIT( KPASSWORDLOG10, "CBCTestPasswordSettingPage HandleControlEventL called" ); + AssertTrueL( ETrue, KPASSWORDLOG10 ); + CleanupStack::PopAndDestroy(); + + //For AlphaPasswordSettingPage + CBCTestAlphaPasswordSettingPage* alphaPwdSettingPage = new CBCTestAlphaPasswordSettingPage( + R_BCTEST_PASSWORD_SETTING_PAGE, temp, KOldPassword); + _LIT( KPASSWORDLOG11, "Constructor called" ); + AssertNotNullL( alphaPwdSettingPage, KPASSWORDLOG11 ); + + CleanupStack::PushL( alphaPwdSettingPage ); + alphaPwdSettingPage->ConstructL(); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertNotNullL( alphaPwdSettingPage->AlphaPasswordEditor(), KPASSWORDLOG5 ); + alphaPwdSettingPage->UpdateTextL(); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertIntL( 0, alphaPwdSettingPage->ComparePasswords( KOldPassword , candidatePwd, + CAknPasswordSettingPage::ECaseInsensitive ), + KPASSWORDLOG5 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + alphaPwdSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + stream.Close(); + delete buf; + + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + alphaPwdSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + CleanupStack::PopAndDestroy(); + alphaPwdSettingPage = NULL; + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + alphaPwdSettingPage = new (ELeave) + CBCTestAlphaPasswordSettingPage( &titleText, KAknBCTestSetPageCheckBoxSetPageNumber, + EAknCtNumericSecretEditor, R_AKNATSETPAGE_NUMERIC_PASSWORD, + R_BCTEST_PASSWORD_SETTING_PAGE, temp, KOldPassword ); + _LIT( KPASSWORDLOG12, "Constructor with six args called" ); + AssertNotNullL( alphaPwdSettingPage, KPASSWORDLOG12 ); + CleanupStack::PushL( alphaPwdSettingPage ); + CleanupStack::PopAndDestroy(); + + //For CAknNumericPasswordSettingPage + CBCTestNumericPasswordSettingPage* numericPwdSettingPage = new CBCTestNumericPasswordSettingPage( + R_BCTEST_PASSWORD_SETTING_PAGE, temp, KOldPassword); + _LIT( KPASSWORDLOG13, "CBCTestNumericPasswordSettingPage Constructor called" ); + AssertNotNullL( numericPwdSettingPage, KPASSWORDLOG13 ); + + CleanupStack::PushL( numericPwdSettingPage ); + numericPwdSettingPage->ConstructL(); + _LIT( KPASSWORDLOG14, "CBCTestNumericPasswordSettingPage ConstructL called" ); + AssertTrueL( ETrue, KPASSWORDLOG14 ); + AssertNotNullL( numericPwdSettingPage->NumericPasswordEditor(), KPASSWORDLOG5 ); + numericPwdSettingPage->UpdateTextL(); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + buf = CBufFlat::NewL( 200 ); + stream.Open( *buf ); + numericPwdSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + stream.Close(); + delete buf; + + numericPwdSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + CleanupStack::PopAndDestroy(); + numericPwdSettingPage = NULL; + AssertTrueL( ETrue, KPASSWORDLOG5 ); + + numericPwdSettingPage = new (ELeave) + CBCTestNumericPasswordSettingPage( &titleText, KAknBCTestSetPageCheckBoxSetPageNumber, + EAknCtNumericSecretEditor, R_AKNATSETPAGE_NUMERIC_PASSWORD, + R_BCTEST_PASSWORD_SETTING_PAGE, temp, KOldPassword ); + AssertNotNullL( numericPwdSettingPage, KPASSWORDLOG5 ); + CleanupStack::PushL( numericPwdSettingPage ); + CleanupStack::PopAndDestroy(); + + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::TestTextSettingPage +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::TestTextSettingPageL() + { + TBuf<10> temp; + _LIT( KTEXSETTINGPAGELOG1, "TEST" ); + temp.Append( KTEXSETTINGPAGELOG1 ); + //For CAknEdwinSettingPage + CBCTestEdwinSettingPage* edwinSettingPage = new (ELeave) CBCTestEdwinSettingPage( + R_AKNATSETPAGE_TEXT_SETTING_PAGE ); + CleanupStack::PushL( edwinSettingPage ); + edwinSettingPage->ConstructL(); + _LIT( KTEXSETTINGPAGELOG2, "CBCTestEdwinSettingPage construct called" ); + AssertNotNullL( edwinSettingPage, KTEXSETTINGPAGELOG2 ); + _LIT( KTEXSETTINGPAGELOG3, "TextControl called" ); + AssertNotNullL( edwinSettingPage->TextControl(), KTEXSETTINGPAGELOG3 ); + + CleanupStack::PopAndDestroy( edwinSettingPage ); + edwinSettingPage = NULL; + edwinSettingPage = new (ELeave) CBCTestEdwinSettingPage( + &temp, + KAknBCTestSetPageCheckBoxSetPageNumber, + EEikCtEdwin, + R_AKNATSETPAGE_EDWIN, + R_AKNATSETPAGE_TEXT_SETTING_PAGE ); + _LIT( KTEXSETTINGPAGELOG4, "CBCTestEdwinSettingPage construct with args called" ); + AssertNotNullL( edwinSettingPage, KTEXSETTINGPAGELOG4 ); + + delete edwinSettingPage; + + //For CAknTextSettingPage + CBCTestTextSettingPage* textSettingPage = new ( ELeave ) CBCTestTextSettingPage( + R_AKNATSETPAGE_TEXT_SETTING_PAGE, temp ); + _LIT( KTEXSETTINGPAGELOG5, "CBCTestTextSettingPage constructor called" ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG5 ); + + CleanupStack::PushL( textSettingPage ); + + textSettingPage->ConstructL(); + _LIT( KTEXSETTINGPAGELOG6, "Function called" ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->DynamicInitL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->AcceptSettingL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->CheckAndSetDataValidity(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->UpdateTextL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->UpdateCbaL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + textSettingPage->SizeChanged(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + textSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + stream.Close(); + delete buf; + + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + textSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + + CleanupStack::PopAndDestroy(); + + textSettingPage = new (ELeave) CBCTestTextSettingPage( + &temp, + KAknBCTestSetPageCheckBoxSetPageNumber, + EEikCtEdwin, + R_AKNATSETPAGE_EDWIN, + R_AKNATSETPAGE_TEXT_SETTING_PAGE, temp ); + _LIT( KTEXSETTINGPAGELOG7, "CBCTestTextSettingPage construct with args called" ); + AssertNotNullL( textSettingPage, KTEXSETTINGPAGELOG7 ); + textSettingPage->ConstructL(); + delete textSettingPage; + _LIT( KTEXSETTINGPAGELOG8, "CBCTestTextSettingPage destructor called" ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG8 ); + + + //For CAknIntegerSettingPage + TInt test = 10; + CBCTestIntegerSettingPage* integerSettingPage = new (ELeave) + CBCTestIntegerSettingPage( R_AKNATSETPAGE_TEXT_SETTING_PAGE, test ); + _LIT( KTEXSETTINGPAGELOG9, "CBCTestIntegerSettingPage constructor called" ); + AssertNotNullL( integerSettingPage, KTEXSETTINGPAGELOG9 ); + CleanupStack::PushL( integerSettingPage ); + + integerSettingPage->ConstructL(); + _LIT( KTEXSETTINGPAGELOG10, "ConstructL called" ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG10 ); + _LIT( KTEXSETTINGPAGELOG11, "CBCTestIntegerSettingPage IntegerEditorControl called" ); + AssertNotNullL( integerSettingPage->IntegerEditorControl(), KTEXSETTINGPAGELOG11 ); + + integerSettingPage->DynamicInitL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + integerSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + integerSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + integerSettingPage->CheckAndSetDataValidity(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + integerSettingPage->UpdateCbaL(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + integerSettingPage->SizeChanged(); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + + buf = CBufFlat::NewL( 200 ); + stream.Open( *buf ); + integerSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + stream.Close(); + delete buf; + + integerSettingPage->HandleControlEventL( integerSettingPage->IntegerEditorControl(), + MCoeControlObserver::EEventRequestFocus ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + + integerSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + + CleanupStack::PopAndDestroy(); + + integerSettingPage = new (ELeave) CBCTestIntegerSettingPage( + &temp, + KAknBCTestSetPageCheckBoxSetPageNumber, + EEikCtEdwin, + R_AKNATSETPAGE_EDWIN, + R_AKNATSETPAGE_TEXT_SETTING_PAGE, test ); + AssertNotNullL( integerSettingPage, KTEXSETTINGPAGELOG6 ); + + delete integerSettingPage; + AssertTrueL( ETrue, KTEXSETTINGPAGELOG6 ); + + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageCase::TestSliderSettingPage +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageCase::TestSliderSettingPageL() + { + TInt value = 10; + TBuf<10> temp; + _LIT( KSLIDERSETTINGPAGELOG1, "Slider" ); + temp.Append( KSLIDERSETTINGPAGELOG1 ); + CBCTestSliderSettingPage* sliderSettingPage = new (ELeave) + CBCTestSliderSettingPage( R_AKNATSETPAGE_SLIDER_SETTING_PAGE, value ); + _LIT( KSLIDERSETTINGPAGELOG2, "CBCTestSliderSettingPage constructor called" ); + AssertNotNullL( sliderSettingPage, KSLIDERSETTINGPAGELOG2 ); + CleanupStack::PushL( sliderSettingPage ); + sliderSettingPage->ConstructL(); + _LIT( KSLIDERSETTINGPAGELOG3, "ConstructL called" ); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG3 ); + _LIT( KSLIDERSETTINGPAGELOG4, "CBCTestSliderSettingPage constructor called" ); + AssertNotNullL( sliderSettingPage->SliderControl(), KSLIDERSETTINGPAGELOG4 ); + sliderSettingPage->UpdateSettingL(); + _LIT( KSLIDERSETTINGPAGELOG5, "CBCTestSliderSettingPage UpdateSettingL called" ); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG5 ); + sliderSettingPage->AcceptSettingL(); + _LIT( KSLIDERSETTINGPAGELOG6, "Function called" ); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + sliderSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + sliderSettingPage->SizeChanged(); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + sliderSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + stream.Close(); + delete buf; + + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + sliderSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + + sliderSettingPage = new (ELeave) + CBCTestSliderSettingPage( &temp, + KAknBCTestSetPageCheckBoxSetPageNumber, + EAknCtSlider, + R_AKNATSETPAGE_SLIDER, + R_AKNATSETPAGE_SLIDER_SETTING_PAGE, + value ); + + AssertNotNullL( sliderSettingPage, KSLIDERSETTINGPAGELOG6 ); + sliderSettingPage->ExecuteLD(); + AssertTrueL( ETrue, KSLIDERSETTINGPAGELOG6 ); + } + + +void CBCTestSettingPageCase::TestVolumeSettingPageL() + { + _LIT( KVOLUMESETTINGPAGELOG1, "Volume" ); + TInt volumevalue = 3; + TBuf<10> temp; + temp.Append( KVOLUMESETTINGPAGELOG1 ); + CBCTestVolumeSettingPage* volumeSettingPage = new (ELeave) + CBCTestVolumeSettingPage( R_AKNATSETPAGE_VOLUME_SETTING_PAGE, volumevalue ); + _LIT( KVOLUMESETTINGPAGELOG2, "CBCTestVolumeSettingPage constructor called" ); + AssertNotNullL( volumeSettingPage, KVOLUMESETTINGPAGELOG2 ); + CleanupStack::PushL( volumeSettingPage ); + volumeSettingPage->ConstructL(); + _LIT( KVOLUMESETTINGPAGELOG3, "ConstructL called" ); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG3 ); + _LIT( KVOLUMESETTINGPAGELOG4, "CBCTestVolumeSettingPage constructor called" ); + AssertNotNullL( volumeSettingPage->VolumeControl(), KVOLUMESETTINGPAGELOG4 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + volumeSettingPage->WriteInternalStateL( stream ); + _LIT( KVOLUMESETTINGPAGELOG5, "CBCTestSliderSettingPage WriteInternalStateL called" ); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG5 ); + stream.Close(); + delete buf; + + volumeSettingPage->UpdateSettingL(); + _LIT( KVOLUMESETTINGPAGELOG6, "Function called" ); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG6 ); + volumeSettingPage->AcceptSettingL(); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG6 ); + volumeSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG6 ); + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + volumeSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG6 ); + CleanupStack::PopAndDestroy(); + + volumeSettingPage = new (ELeave) + CBCTestVolumeSettingPage( &temp, + KAknBCTestSetPageCheckBoxSetPageNumber, + EAknCtVolumeControl, + R_AKNATSETPAGE_VOLUME, + R_AKNATSETPAGE_VOLUME_SETTING_PAGE, + volumevalue ); + AssertNotNullL( volumeSettingPage, KVOLUMESETTINGPAGELOG6 ); + volumeSettingPage->ExecuteLD(); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG6 ); + AssertTrueL( ETrue, KVOLUMESETTINGPAGELOG6 ); + } + +void CBCTestSettingPageCase::TestRadioButtonSettingPageL() + { + TBuf<10> title; + _LIT( KRADIOBUTTONSETTINGPAGELOG1, "Radio" ); + title.Append( KRADIOBUTTONSETTINGPAGELOG1 ); + CDesCArrayFlat* array = CCoeEnv::Static()->ReadDesCArrayResourceL( + R_AKNATSETPAGE_LIST_ITEM_ARRAY ); + CleanupStack::PushL( array ); + TInt currentItem(0); + + CBCTestRadioButtonSettingPage* radioButtonSettingPage = new (ELeave) + CBCTestRadioButtonSettingPage( R_AKNATSETPAGE_RADIOBTN_SETPAGE, + currentItem, array ); + _LIT( KRADIOBUTTONSETTINGPAGELOG2, "CBCTestVolumeSettingPage constructor called" ); + AssertNotNullL( radioButtonSettingPage, KRADIOBUTTONSETTINGPAGELOG2 ); + CleanupStack::PushL( radioButtonSettingPage ); + radioButtonSettingPage->ConstructL(); + _LIT( KRADIOBUTTONSETTINGPAGELOG3, "ConstructL called!" ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG3 ); + _LIT( KRADIOBUTTONSETTINGPAGELOG4, "Radiobuttonsettingpage ListBoxControl called" ); + AssertNotNullL( radioButtonSettingPage->ListBoxControl(), KRADIOBUTTONSETTINGPAGELOG4 ); + radioButtonSettingPage->SetItemArrayAndSelectionL( + array, currentItem ); + _LIT( KRADIOBUTTONSETTINGPAGELOG5, "SetItemArrayAndSelectionL called!" ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG5 ); + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + radioButtonSettingPage->HandlePointerEventL( pointEvent ); + _LIT( KRADIOBUTTONSETTINGPAGELOG6, "Radiobuttonsettingpage HandlePointerEventL called" ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG6 ); + + _LIT( KRADIOBUTTONSETTINGPAGELOG7, "Function called" ); + radioButtonSettingPage->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + radioButtonSettingPage->HandleListBoxEventL( radioButtonSettingPage->ListBoxControl(), + MEikListBoxObserver::EEventEnterKeyPressed ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + + radioButtonSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + radioButtonSettingPage->DynamicInitL(); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + radioButtonSettingPage->SelectCurrentItemL(); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + radioButtonSettingPage->UpdateCbaL(); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + radioButtonSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + stream.Close(); + delete buf; + + CleanupStack::Pop( radioButtonSettingPage ); + radioButtonSettingPage->ExecuteLD(); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + AssertTrueL( ETrue, KRADIOBUTTONSETTINGPAGELOG7 ); + + + CleanupStack::PopAndDestroy(); + + radioButtonSettingPage = new CBCTestRadioButtonSettingPage( &title, + KAknBCTestSetPageCheckBoxSetPageNumber, + EAknSetListBox, + R_AKNATSETPAGE_RADIOBTN_SETPAGE_LISTBOX, + R_AKNATSETPAGE_RADIOBTN_SETPAGE, + currentItem, + array ); + _LIT( KRADIOBUTTONSETTINGPAGELOG8, "CBCTestVolumeSettingPage with args constructor called" ); + AssertNotNullL( radioButtonSettingPage, KRADIOBUTTONSETTINGPAGELOG8 ); + + delete radioButtonSettingPage; + + } + +void CBCTestSettingPageCase::TestSettingItemListL() + { + TBuf<10> settingTitle; + _LIT( KSETTINGITEMLISTLOG1, "Setting" ); + settingTitle.Append( KSETTINGITEMLISTLOG1 ); + TInt identifier = 1000; + + CBCTestSettingItem* settingItem = new (ELeave) CBCTestSettingItem( R_AKNATSETPAGE_TEXT_SETTING_PAGE ); + _LIT( KSETTINGITEMLISTLOG2, "CBCTestSettingItem constructor called!" ); + AssertNotNullL( settingItem, KSETTINGITEMLISTLOG2 ); + CleanupStack::PushL( settingItem ); + + settingItem->StoreL(); + _LIT( KSETTINGITEMLISTLOG3, "CBCTestSettingItem StoreL called" ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG3 ); + settingItem->EditItemL( ETrue ); + _LIT( KSETTINGITEMLISTLOG4, "CBCTestSettingItem EditItemL called" ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG4 ); + + settingItem->IsHidden(); + _LIT( KSETTINGITEMLISTLOG5, "CBCTestSettingItem IsHidden called" ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG5 ); + settingItem->IsNumberedStyle(); + _LIT( KSETTINGITEMLISTLOG6, "Function called" ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SetHidden( ETrue ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->ListBoxText(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->Identifier(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->HasIcon(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SetEmptyItemTextL( settingTitle ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SetCompulsoryIndTextL( settingTitle ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->VisibleIndex(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SetSettingPageFlags( EFalse ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SettingPageFlags(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->CreateBitmapL(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SetSettingPage( NULL ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SettingPage(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->EmptyItemText(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SettingPageResourceId(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SettingEditorResourceId(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->AssociatedResourceId(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + settingItem->SetIconMask( NULL ); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KSETTINGITEMLISTLOG6 ); + + + //For CAknTextSettingItem + CBCTestTextSettingItem* textSettingItem = new (ELeave) CBCTestTextSettingItem( + identifier, settingTitle ); + _LIT( KTEXTSETTINGITEMLOG1, "CBCTestTextSettingItem constructor called!" ); + AssertNotNullL( textSettingItem, KTEXTSETTINGITEMLOG1 ); + CleanupStack::PushL( textSettingItem ); + CArrayPtr* iconArray = new (ELeave) CAknIconArray(3); + textSettingItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_TEXT_SETTING_PAGE, EEikCtEdwin ); + _LIT( KTEXTSETTINGITEMLOG2, "CBCTestSettingItem ConstructL called" ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG2 ); + _LIT( KTEXTSETTINGITEMLOG3, "CBCTestSettingItem CompleteConstructL called" ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG3 ); + _LIT( KTEXTSETTINGITEMLOG4, "CBCTestSettingItem LoadL called" ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG4 ); + _LIT( KTEXTSETTINGITEMLOG5, "CBCTestSettingItem CreateBitmapL called"); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG5 ); + _LIT( KTEXTSETTINGITEMLOG6, "CBCTestSettingItem UpdateListBoxTextL called" ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG6 ); + _LIT( KTEXTSETTINGITEMLOG7, "CBCTestSettingItem UpdateBitmapL called" ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG7 ); + _LIT( KTEXTSETTINGITEMLOG8, "Function called" ); + textSettingItem->StoreL(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->LoadL(); + + textSettingItem->SettingName(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->SettingNumber(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + settingItem->SettingTextL(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->SettingTextL(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->EditItemL( ETrue ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->InternalTextPtr(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->SetExternalText( settingTitle ); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + textSettingItem->ExternalText(); + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + + CleanupStack::PopAndDestroy( textSettingItem ); + delete iconArray; + AssertTrueL( ETrue, KTEXTSETTINGITEMLOG8 ); + + //For CAknIntegerSettingItem + TInt value = 10; + CBCTestIntegerSettingItem* integerSettingItem = new (ELeave) + CBCTestIntegerSettingItem( identifier, value ); + _LIT( KINTEGERSETTINGITEMLOG1, "CBCTestIntegerSettingItem constructor called!" ); + AssertNotNullL( integerSettingItem, KINTEGERSETTINGITEMLOG1 ); + CleanupStack::PushL( integerSettingItem ); + iconArray = new (ELeave) CAknIconArray(3); + integerSettingItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_TEXT_SETTING_PAGE, EEikCtEdwin ); + _LIT( KINTEGERSETTINGITEMLOG2, "CBCTestIntegerSettingItem CompleteConstructionL called" ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG2 ); + + integerSettingItem->StoreL(); + _LIT( KINTEGERSETTINGITEMLOG3, "Function called" ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + integerSettingItem->LoadL(); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + integerSettingItem->SettingTextL(); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + integerSettingItem->EditItemL( ETrue ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + CAknSettingPage* dlg = new( ELeave )CAknIntegerSettingPage( + &settingTitle, + integerSettingItem->SettingNumber(), + EEikCtEdwin, + integerSettingItem->SettingEditorResourceId(), + integerSettingItem->SettingPageResourceId(), + integerSettingItem->InternalValueRef(), + integerSettingItem->SettingPageFlags() ); // Flags + integerSettingItem->SetSettingPage( dlg ); + integerSettingItem->SetUpStandardSettingPageL(); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + integerSettingItem->HandleSettingPageEventL(integerSettingItem->SettingPage(), + MAknSettingPageObserver::EEventSettingCancelled ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + //adding on 21 June by zho.////////////////////////////////////////////////// + CCoeControl *coe = dynamic_cast< CCoeControl* > ( dlg ); + coe->DrawNow(); + _LIT( drw,"test setPageSet::Draw()" ); + AssertTrueL( ETrue, drw ); + /////////////////////////////////////////////////////////////////////////// + + delete dlg; + integerSettingItem->SetSettingPage( NULL ); + + integerSettingItem->InternalValueRef(); + AssertTrueL( ETrue, + KINTEGERSETTINGITEMLOG3 ); + integerSettingItem->ExternalValueRef(); + AssertTrueL( ETrue, + KINTEGERSETTINGITEMLOG3 ); + integerSettingItem->SetExternalValue( value ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + CleanupStack::Pop( integerSettingItem ); + delete integerSettingItem; + delete iconArray; + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + //For CAknIntegerEdwinSettingItem + CAknIntegerEdwinSettingItem* integerEdSettingItem = new (ELeave) + CAknIntegerEdwinSettingItem( identifier, value ); + AssertNotNullL( integerEdSettingItem, KINTEGERSETTINGITEMLOG3 ); + CleanupStack::PushL( integerEdSettingItem ); + iconArray = new (ELeave) CAknIconArray(3); + integerEdSettingItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_TEXT_SETTING_PAGE, EEikCtEdwin ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + integerEdSettingItem->StoreL(); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + integerEdSettingItem->LoadL(); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + integerEdSettingItem->EditItemL( EFalse ); + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + CleanupStack::Pop( integerEdSettingItem ); + delete integerEdSettingItem; + delete iconArray; + AssertTrueL( ETrue, KINTEGERSETTINGITEMLOG3 ); + + + //For CAknPasswordSettingItem + TBuf<10> temp; + _LIT( KPASSWORDSETTINGITEMLOG1, "1234" ); + temp.Append( KPASSWORDSETTINGITEMLOG1 ); + CBCTestPasswordSettingItem* pwdSettingItem = new (ELeave) + CBCTestPasswordSettingItem( identifier, CAknPasswordSettingItem::ENumeric, temp ); + _LIT( KPASSWORDSETTINGITEMLOG2, "CAknPasswordSettingItem constructor called!" ); + AssertNotNullL( pwdSettingItem, KPASSWORDSETTINGITEMLOG2 ); + CleanupStack::PushL( pwdSettingItem ); + iconArray = new (ELeave) CAknIconArray(3); + pwdSettingItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_BCTEST_PASSWORD_SETTING_PAGE, EEikCtEdwin ); + _LIT( KPASSWORDSETTINGITEMLOG3, "Function called!" ); + AssertTrueL( ETrue, KPASSWORDSETTINGITEMLOG3 ); + pwdSettingItem->SettingTextL(); + AssertTrueL( ETrue, KPASSWORDSETTINGITEMLOG3 ); + pwdSettingItem->EditItemL( EFalse ); + AssertTrueL( ETrue, KPASSWORDSETTINGITEMLOG3 ); + CleanupStack::Pop( pwdSettingItem ); + delete pwdSettingItem; + AssertTrueL( ETrue, KPASSWORDSETTINGITEMLOG3 ); + delete iconArray; + + //For CAknVolumeSettingItem + TInt volume = 2; + CBCTestVolumeSettingItem* volumeSettingItem = new (ELeave) + CBCTestVolumeSettingItem( identifier, volume ); + _LIT( KVOLUMESETTINGITEMLOG1, "CAknVolumeSettingItem constructor called!" ); + AssertNotNullL( volumeSettingItem, KVOLUMESETTINGITEMLOG1 ); + CleanupStack::PushL( volumeSettingItem ); + iconArray = new (ELeave) CAknIconArray(3); + volumeSettingItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_VOLUME_SETTING_PAGE, EAknCtVolumeControl ); + _LIT( KVOLUMESETTINGITEMLOG2, "Function called" ); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + volumeSettingItem->StoreL(); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + volumeSettingItem->LoadL(); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + volumeSettingItem->SettingTextL(); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + volumeSettingItem->EditItemL( EFalse ); + AssertTrueL( ETrue,KVOLUMESETTINGITEMLOG2 ); + volumeSettingItem->InternalVolumeValue(); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KVOLUMESETTINGITEMLOG2 ); + delete iconArray; + + //For CAknSliderSettingItem + TInt slideValue = 3; + CBCTestSliderSettingItem* sliderSettingItem = new (ELeave) + CBCTestSliderSettingItem( identifier, slideValue ); + _LIT( KSLIDERSETTINGITEMLOG1, "CAknSliderSettingItem constructor called!" ); + AssertNotNullL( sliderSettingItem, KSLIDERSETTINGITEMLOG1 ); + CleanupStack::PushL( sliderSettingItem ); + iconArray = new (ELeave) CAknIconArray(3); + sliderSettingItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_SLIDER_SETTING_PAGE, EAknCtSlider ); + _LIT( KSLIDERSETTINGITEMLOG2, "Function called!" ); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + + sliderSettingItem->StoreL(); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + sliderSettingItem->LoadL(); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + sliderSettingItem->SettingTextL(); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + sliderSettingItem->EditItemL( EFalse ); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + sliderSettingItem->InternalSliderValue(); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + sliderSettingItem->CreateAndExecuteSettingPageL(); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KSLIDERSETTINGITEMLOG2 ); + delete iconArray; + + //For CAknTimeOrDateSettingItem + TTime time; + time.HomeTime(); + CAknTimeOrDateSettingItem* timeDateItem = new (ELeave) CAknTimeOrDateSettingItem + ( identifier, CAknTimeOrDateSettingItem::ETime, time ); + _LIT( KTIMEORDATESETTINGITEMLOG1, "CAknTimeOrDateSettingItem constructor called!" ); + AssertNotNullL( timeDateItem, KTIMEORDATESETTINGITEMLOG1 ); + CleanupStack::PushL( timeDateItem ); + iconArray = new (ELeave) CAknIconArray(3); + timeDateItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_TIME_SETTING_PAGE, EEikCtTimeEditor ); + _LIT( KTIMEORDATESETTINGITEMLOG2, "Function called!" ); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + timeDateItem->StoreL(); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + timeDateItem->LoadL(); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + timeDateItem->SettingTextL(); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + timeDateItem->EditItemL( EFalse ); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + timeDateItem->SetTimeFormatStringL( KTimeFormat ); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + timeDateItem->TimeFormatString(); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KTIMEORDATESETTINGITEMLOG2 ); + delete iconArray; + + //For CAknTimeOffsetSettingItem + TTimeIntervalSeconds seconds(60); + + CAknTimeOffsetSettingItem* timeOffsetItem = new (ELeave) + CAknTimeOffsetSettingItem( identifier, seconds ); + _LIT( KTIMEOFFSETSETTINGITEMLOG1, "CAknTimeOffsetSettingItem constructor called!" ); + AssertNotNullL( timeOffsetItem, KTIMEOFFSETSETTINGITEMLOG1 ); + CleanupStack::PushL( timeOffsetItem ); + iconArray = new (ELeave) CAknIconArray(3); + timeOffsetItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_DURATION_SETTING_PAGE, EEikCtDurationEditor ); + _LIT( KTIMEOFFSETSETTINGITEMLOG2, "Function called!" ); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + timeOffsetItem->StoreL(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + timeOffsetItem->LoadL(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + timeOffsetItem->SettingTextL(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + timeOffsetItem->SetTimeFormatStringL( KTimeFormat ); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + timeOffsetItem->TimeFormatString(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + +// timeOffsetItem->EditItemL( ETrue ); +// AssertTrueL( ETrue, _L( "CAknTimeOffsetSettingItem EditItemL called" ) ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGITEMLOG2 ); + delete iconArray; + + //For CAknIpFieldSettingItem + TInetAddr ipAddr(10); + CAknIpFieldSettingItem* ipFieldItem = new (ELeave) CAknIpFieldSettingItem ( + identifier, ipAddr ); + _LIT( KIPFIELDSETTINGITEMLOG1, "CAknIpFieldSettingItem constructor called!" ); + AssertNotNullL( ipFieldItem, KIPFIELDSETTINGITEMLOG1 ); + CleanupStack::PushL( ipFieldItem ); + iconArray = new (ELeave) CAknIconArray(3); + ipFieldItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_IPADDRESS_SETTING_PAGE, EAknCtIpFieldEditor ); + _LIT( KIPFIELDSETTINGITEMLOG2, "Function called!" ); + AssertTrueL( ETrue, KIPFIELDSETTINGITEMLOG2 ); + ipFieldItem->StoreL(); + AssertTrueL( ETrue, KIPFIELDSETTINGITEMLOG2 ); + ipFieldItem->LoadL(); + AssertTrueL( ETrue, KIPFIELDSETTINGITEMLOG2 ); + ipFieldItem->SettingTextL(); + AssertTrueL( ETrue, KIPFIELDSETTINGITEMLOG2 ); + ipFieldItem->EditItemL( EFalse ); + AssertTrueL( ETrue, KIPFIELDSETTINGITEMLOG2 ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KIPFIELDSETTINGITEMLOG2 ); + delete iconArray; + + //For CAknEnumeratedItemBase + TInt enumValue = 10; + TInt enumPtr = 11; + CAknEnumeratedItemBase* enumItemBase = new (ELeave) CAknEnumeratedItemBase( + enumValue, &enumPtr ); + _LIT( KENUMERATEDITEMBASELOG1, "CAknEnumeratedItemBase constructor called!" ); + AssertNotNullL( enumItemBase, KENUMERATEDITEMBASELOG1 ); + _LIT( KENUMERATEDITEMBASELOG2, "Function called!" ); + enumItemBase->EnumerationValue(); + AssertTrueL( ETrue, KENUMERATEDITEMBASELOG2 ); + enumItemBase->SetEnumerationValue( enumValue ); + AssertTrueL( ETrue, KENUMERATEDITEMBASELOG2 ); + enumItemBase->Value(); + AssertTrueL( ETrue, KENUMERATEDITEMBASELOG2 ); + enumItemBase->SetValue( &enumPtr ); + AssertTrueL( ETrue, KENUMERATEDITEMBASELOG2 ); + delete enumItemBase; + AssertTrueL( ETrue, KENUMERATEDITEMBASELOG2 ); + + + //For CAknEnumeratedTextSettingItem + CBCTestEnumeratedTextSettingItem* enumTextItem = new (ELeave) + CBCTestEnumeratedTextSettingItem( R_AKNATSETPAGE_ENUMTEXT_SETTING_PAGE ); + _LIT( KENUMERATEDTEXTSETTINGITEMLOG1, "CAknEnumeratedTextSettingItem CompleteConstructionL called" ); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG1 ); + _LIT( KENUMERATEDTEXTSETTINGITEMLOG2, "Function called" ); + AssertNotNullL( enumTextItem, KENUMERATEDTEXTSETTINGITEMLOG2 ); + CleanupStack::PushL( enumTextItem ); + + enumTextItem->EnumeratedTextArray(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + enumTextItem->PoppedUpTextArray(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + CArrayPtr* enumeratedTextArray = + new (ELeave) CArrayPtrFlat(1); + CArrayPtr* poppedUpTextArray = new (ELeave) CArrayPtrFlat(1); + enumTextItem->SetEnumeratedTextArrays( enumeratedTextArray, poppedUpTextArray ); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + enumTextItem->HandleTextArrayUpdateL(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + enumTextItem->NumberOfItems(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + enumTextItem->IndexFromValue( 0 ); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + enumTextItem->SetSettingPageTextL(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + enumTextItem->SettingPageTextArray(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KENUMERATEDTEXTSETTINGITEMLOG2 ); + + //For CAknEnumeratedTextPopupSettingItem + + TInt popItemValue = 2; + CBCTestEnumeratedTextPopupSettingItem* enumTextPopupitem = new (ELeave) + CBCTestEnumeratedTextPopupSettingItem( R_AKNATSETPAGE_POPUP_SETTING_PAGE, popItemValue ); + _LIT( KENUMERATEDTEXTPOPUPSETTINGITEMLOG1, "CAknEnumeratedTextPopupSettingItem constructor called!" ); + AssertNotNullL( enumTextPopupitem, KENUMERATEDTEXTPOPUPSETTINGITEMLOG1 ); + _LIT( KENUMERATEDTEXTPOPUPSETTINGITEMLOG2, "Function called!" ); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + CleanupStack::PushL( enumTextPopupitem ); + + enumeratedTextArray = new (ELeave) CArrayPtrFlat(10); + poppedUpTextArray = new (ELeave) CArrayPtrFlat(10); + enumTextPopupitem->SetEnumeratedTextArrays( enumeratedTextArray, poppedUpTextArray ); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->LoadL(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->StoreL(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); +// enumTextPopupitem->EditItemL( EFalse ); +// AssertTrueL( ETrue, _L( "CAknEnumeratedTextPopupSettingItem EditItemL called" ) ); + enumTextPopupitem->EnumeratedTextArray(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->PoppedUpTextArray(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); +// enumTextPopupitem->CreateAndExecuteSettingPageL(); +// AssertTrueL( ETrue, _L( "CAknEnumeratedTextPopupSettingItem CreateSettingPageL called" ) ); +// AssertTrueL( ETrue, _L( "CAknEnumeratedTextPopupSettingItem CreateAndExecuteSettingPageL called" ) ); + enumTextPopupitem->SetExternalValue( 0 ); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->SetInternalValue( 0 ); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + + enumTextPopupitem->SetSelectedIndex( 0 ); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + +// enumTextPopupitem->SettingTextL(); +// AssertTrueL( ETrue, _L( "CAknEnumeratedTextPopupSettingItem SettingTextL called" ) ); + enumTextPopupitem->IndexFromValue( 2 ); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->ExternalValue(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->InternalValue(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + enumTextPopupitem->QueryValue(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KENUMERATEDTEXTPOPUPSETTINGITEMLOG2 ); + + //For CAknBinaryPopupSettingItem + + TBool binaryValue = EFalse; + CBCTestBinaryPopupSettingItem* binaryItem = new (ELeave) CBCTestBinaryPopupSettingItem + ( R_AKNATSETPAGE_POPUP_SETTING_PAGE, binaryValue ); + _LIT( KBINARYPOPUPSETTINGITEMLOG1, "CAknBinaryPopupSettingItem constructor called!" ); + AssertNotNullL( binaryItem, KBINARYPOPUPSETTINGITEMLOG1 ); + CleanupStack::PushL( binaryItem ); + +/* iconArray = new (ELeave) CAknIconArray(3); + binaryItem->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_POPUP_SETTING_PAGE, EAknCtPopupSettingList ); + AssertTrueL( ETrue, _L( "CAknBinaryPopupSettingItem CompleteConstructionL called" ) ); +*/ + binaryItem->StoreL(); + _LIT( KBINARYPOPUPSETTINGITEMLOG2, "CAknBinaryPopupSettingItem StoreL called" ); + AssertTrueL( ETrue, KBINARYPOPUPSETTINGITEMLOG2 ); +// binaryItem->LoadL(); +// AssertTrueL( ETrue, _L( "CAknBinaryPopupSettingItem LoadL called" ) ); +// binaryItem->EditItemL( EFalse ); +// AssertTrueL( ETrue, _L( "CAknBinaryPopupSettingItem EditItemL called" ) ); + CleanupStack::PopAndDestroy(); +// delete iconArray; + + //For CAknBigSettingItemBase + CBCTestBigSettingItemBase* bigItemBase = new (ELeave) CBCTestBigSettingItemBase( identifier ); + _LIT( KBIGSETTINGITEMLOG1, "CAknBigSettingItemBase constructor called!" ); + AssertNotNullL( bigItemBase, KBIGSETTINGITEMLOG1 ); + CleanupStack::PushL( bigItemBase ); + iconArray = new (ELeave) CAknIconArray(3); + bigItemBase->ConstructL( EFalse, 50, settingTitle, iconArray, + R_AKNATSETPAGE_TEXT_SETTING_PAGE, EEikCtEdwin ); + bigItemBase->SettingTextL(); + _LIT( KBIGSETTINGITEMLOG2, "CAknBigSettingItemBase SettingTextL called" ); + AssertTrueL( ETrue, KBIGSETTINGITEMLOG2 ); + CleanupStack::PopAndDestroy(); + delete iconArray; + + //For CAknSettingItemArray + + CBCTestSettingItemArray* itemArray = new (ELeave) CBCTestSettingItemArray( + 1, EFalse, 0 ); + _LIT( KSETTINGITEMARRAYLOG1, "CAknSettingItemArray constructor called!" ); + AssertNotNullL( itemArray, KBIGSETTINGITEMLOG1 ); + + CleanupStack::PushL( itemArray ); + itemArray->MdcaCount(); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + itemArray->RecalculateVisibleIndicesL(); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + itemArray->SetInitialOrdinal( 0 ); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + itemArray->SetFlags( 0 ); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + itemArray->SetVisibleCount( 1 ); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + itemArray->VisibleCount(); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + itemArray->ItemIndexFromVisibleIndex( 1 ); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); +// itemArray->MdcaPoint( ); +// AssertTrueL( ETrue, _L( "CBCTestSettingItemArray MdcaPoint called" ) ); + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KSETTINGITEMARRAYLOG1 ); + + //For CAknSettingItemList + CBCTestSettingItemList* itemList = new (ELeave)CBCTestSettingItemList(); + _LIT( KSETTINGITEMLISTITEMLOG1, "CAknSettingItemList constructor called!" ); + AssertNotNullL( itemList, KSETTINGITEMLISTITEMLOG1 ); + CleanupStack::PushL( itemList ); + itemList->ConstructFromResourceL( R_AKNATSETPAGE_SETTING_LIST_SETTING_INTEGER ); + _LIT( KSETTINGITEMLISTITEMLOG2, "Function called!" ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->CountComponentControls(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->ComponentControl(0); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + TKeyEvent keyEvent; + keyEvent.iCode = 0; + itemList->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->FocusChanged( EDrawNow ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->HandleListBoxEventL( itemList->ListBox(), MEikListBoxObserver::EEventEnterKeyPressed ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->EditItemL( 0, EFalse ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->LoadSettingsL(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->StoreSettingsL(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->SetIncludeHiddenInOrdinal( EFalse ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->IsNumberedStyle(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->ListBox(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->SettingItemArray(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + itemList->HandleChangeInItemArrayOrVisibilityL(); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + itemList->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + CAknSettingItem* tempitem = itemList->CreateSettingItemL( 1 ); + AssertTrueL( ETrue, KSETTINGITEMLISTITEMLOG2 ); + delete tempitem; + CleanupStack::PopAndDestroy( itemList ); + + } + +void CBCTestSettingPageCase::TestSettingPageL() + { + //For AknSettingPage + TBuf<10> text; + _LIT( KSETTINGPAGELOG1, "Test" ); + text.Append( KSETTINGPAGELOG1 ); + CBCTestBaseSettingPage* settingPage = new (ELeave) CBCTestBaseSettingPage( + R_AKNATSETPAGE_TEXT_SETTING_PAGE ); + _LIT( KSETTINGPAGELOG2, "AknSettingPage constructor called" ); + AssertTrueL( ETrue, KSETTINGPAGELOG2 ); + CleanupStack::PushL( settingPage ); + settingPage->ConstructL(); + _LIT( KSETTINGPAGELOG3, "Function called" ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->EditorControl(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SettingId(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetSettingId( R_AKNATSETPAGE_TEXT_SETTING_PAGE ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetSettingNumberL( 1 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetSettingTextL( text ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetSettingPageObserver( NULL ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SettingNumber(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->IsNumbered(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetNumbered( EFalse ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + TInt controlType; + TInt editorResourceId; + CAknSettingPage::GetEditorResourceInfoL( R_AKNATSETPAGE_TEXT_SETTING_PAGE, + controlType, editorResourceId ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + + settingPage->SizeChanged(); + AssertTrueL( ETrue,KSETTINGPAGELOG3 ); + settingPage->FocusChanged( EDrawNow ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->HandleControlEventL( NULL, MCoeControlObserver::EEventRequestCancel ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->DynamicInitL(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->UpdateSettingL(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->AcceptSettingL(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetFocusToEditor(); //Only Panic in this function + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SelectCurrentItemL(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->DismissL( EFalse ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->MenuShowing(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->Waiting(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->Cba(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->DefaultCbaResourceId(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + TKeyEvent keyEvent; + keyEvent.iCode = 0; + settingPage->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + + settingPage->StandardSettingPageLayout(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->IsBaseConstructed(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SettingPageResourceId(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->ResetFlags(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->DataValidity(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->SetDataValidity( EFalse ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->CheckAndSetDataValidity(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + settingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + stream.Close(); + delete buf; + settingPage->InvalidDataCbaResourceId(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->MopSupplyObject( 1 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + settingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->ComponentControl( 0 ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->CountComponentControls(); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + settingPage->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + CleanupStack::Pop(); + delete settingPage; + AssertTrueL( ETrue, KSETTINGPAGELOG3 ); + + settingPage = new (ELeave) CBCTestBaseSettingPage( + R_AKNATSETPAGE_TEXT_SETTING_PAGE ); + settingPage->ExecuteLD(); + + AssertTrueL( ETrue, _L("DisplayMenuL() function invoked") ); + AssertTrueL( ETrue, _L("PostDisplayCheckL() function invoked") ); + + + } + +void CBCTestSettingPageCase::TestAllL() + { + TestCheckBoxSettingPageL(); + TestPasswordSettingPageL(); + TestTextSettingPageL(); + TestSliderSettingPageL(); + TestVolumeSettingPageL(); + TestRadioButtonSettingPageL(); + TestSettingItemListL(); + TestMFneSettingPageL(); + TestSettingPageL(); + TestDescArrayL(); + } + +void CBCTestSettingPageCase::TestMFneSettingPageL() + { + //For CAknMfneSettingPage + CBCTestMfneSettingPage* mfneSettingPage = new (ELeave) CBCTestMfneSettingPage( + R_BCTEST_PASSWORD_SETTING_PAGE ); + _LIT( KMFNESETTINGPAGELOG1, "CAknMfneSettingPage constructor called" ); + AssertTrueL( ETrue, KMFNESETTINGPAGELOG1 ); + CleanupStack::PushL( mfneSettingPage ); + // CBCTestMfneSettingPage not use two-phase constructor. + //mfneSettingPage->ConstructL(); + _LIT( KMFNESETTINGPAGELOG2, "Function called" ); + AssertTrueL( ETrue, KMFNESETTINGPAGELOG2 ); + AssertTrueL( ETrue, KMFNESETTINGPAGELOG2 ); + + mfneSettingPage->Mfne(); + AssertTrueL( ETrue, KMFNESETTINGPAGELOG2 ); + + CleanupStack::PopAndDestroy(); + + mfneSettingPage = new (ELeave) CBCTestMfneSettingPage(&KTitle, 1, + EEikCtSecretEd, R_BCTEST_SETPAGE_PASSWORD, + R_BCTEST_PASSWORD_SETTING_PAGE ); + delete mfneSettingPage; + AssertTrueL( ETrue, KMFNESETTINGPAGELOG2 ); + + //For CBCTestDateSettingPage + TTime time; + time.HomeTime(); + CBCTestDateSettingPage* dateSettingPage = new (ELeave)CBCTestDateSettingPage( + R_AKNATSETPAGE_DATE_SETTING_PAGE, time ); + _LIT( KDATESETTINGPAGELOG1, "CBCTestDateSettingPage constructor called" ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG1 ); + CleanupStack::PushL( dateSettingPage ); + dateSettingPage->ConstructL(); + _LIT( KDATESETTINGPAGELOG2, "Function called" ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->DateEditor(); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + + TPointerEvent pointEvent; + pointEvent.iType = TPointerEvent::EButton1Down; + dateSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->AcceptSettingL(); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + RBufWriteStream stream; + stream.Open( *buf ); + dateSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + stream.Close(); + delete buf; + + dateSettingPage->CheckAndSetDataValidity(); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->CountComponentControls(); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->ComponentControl( 0 ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + dateSettingPage->HandleControlEventL( NULL, MCoeControlObserver::EEventRequestCancel ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + + CleanupStack::PopAndDestroy( dateSettingPage ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + + dateSettingPage = new (ELeave)CBCTestDateSettingPage( + &KTitle, 1, EEikCtDateEditor, R_AKNATSETPAGE_DATE, + R_AKNATSETPAGE_DATE_SETTING_PAGE, time ); + AssertTrueL( ETrue, KDATESETTINGPAGELOG2 ); + delete dateSettingPage; + + //For CBCTestTimeSettingPage + time.HomeTime(); + CBCTestTimeSettingPage* timeSettingPage = new (ELeave)CBCTestTimeSettingPage( + R_AKNATSETPAGE_TIME_SETTING_PAGE, time ); + _LIT( KTIMESETTINGPAGELOG1, "CBCTestTimeSettingPage constructor called" ); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG1 ); + CleanupStack::PushL( timeSettingPage ); + timeSettingPage->ConstructL(); + _LIT( KTIMESETTINGPAGELOG2, "Function called" ); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + timeSettingPage->TimeEditor(); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + timeSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + timeSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + timeSettingPage->AcceptSettingL(); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + timeSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + + buf = CBufFlat::NewL( 200 ); + stream.Open( *buf ); + timeSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + stream.Close(); + delete buf; + + CleanupStack::PopAndDestroy( timeSettingPage ); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + timeSettingPage = new (ELeave) CBCTestTimeSettingPage( &KTitle, + 1, + EEikCtTimeEditor, + R_AKNATSETPAGE_TIME_EDITOR, + R_AKNATSETPAGE_TIME_SETTING_PAGE, + time ); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + CleanupStack::PushL( timeSettingPage ); + timeSettingPage->ConstructL(); + CleanupStack::Pop( timeSettingPage ); + timeSettingPage->ExecuteLD(); + AssertTrueL( ETrue, KTIMESETTINGPAGELOG2 ); + + //For duration setting page + TTimeIntervalSeconds tempsecond( 60 ); + CBCTestDurationSettingPage* durationSettingPage = new (ELeave) + CBCTestDurationSettingPage( R_AKNATSETPAGE_DURATION_SETTING_PAGE, tempsecond ); + _LIT( KDURATIONSETTINGPAGELOG1, "Duration settingPage constructor called" ); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG1 ); + CleanupStack::PushL( durationSettingPage ); + durationSettingPage->ConstructL(); + _LIT( KDURATIONSETTINGPAGELOG2, "Function called" ); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + TPointerEvent event; + event.iType = TPointerEvent::EDrag; + event.iPosition = TPoint( 0, 0 ); + event.iModifiers = 0; + _LIT( KHandlePointerEvent, "HandlePointerEventL invoked" ); + durationSettingPage->HandlePointerEventL( event ); + AssertTrueL( ETrue, KHandlePointerEvent ); + durationSettingPage->DurationEditor(); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + durationSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + durationSettingPage->AcceptSettingL(); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + durationSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + + buf = CBufFlat::NewL( 200 ); + stream.Open( *buf ); + durationSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + stream.Close(); + delete buf; + + CleanupStack::PopAndDestroy(); + durationSettingPage = new (ELeave) CBCTestDurationSettingPage( &KTitle, + 1, + EEikCtDurationEditor, + R_AKNATSETPAGE_DURATION_EDITOR, + R_AKNATSETPAGE_DURATION_SETTING_PAGE, + tempsecond ); + AssertTrueL( ETrue, KDURATIONSETTINGPAGELOG2 ); + delete durationSettingPage; + + + //For Time offset settingpage + tempsecond = 10; + CBCTestTimeOffsetSettingPage* timeoffsetSettingPage = new (ELeave) + CBCTestTimeOffsetSettingPage( R_AKNATSETPAGE_TIME_SETTING_PAGE, tempsecond ); + _LIT( KTIMEOFFSETSETTINGPAGELOG1, "TimeOffset settingPage constructor called" ); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGPAGELOG1 ); + CleanupStack::PushL( timeoffsetSettingPage ); + _LIT( KTIMEOFFSETSETTINGPAGELOG2, "Function called" ); + timeoffsetSettingPage->TimeOffsetEditor(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGPAGELOG2 ); + timeoffsetSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGPAGELOG2 ); + + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGPAGELOG2 ); + + timeoffsetSettingPage = new (ELeave)CBCTestTimeOffsetSettingPage( + &KTitle, + 1, + EEikCtDurationEditor, + R_AKNATSETPAGE_DURATION_EDITOR, + R_AKNATSETPAGE_DURATION_SETTING_PAGE, + tempsecond ); + timeoffsetSettingPage->BaseConstructL(); + + timeoffsetSettingPage->HandlePointerEventL( event ); + AssertTrueL( ETrue, KTIMEOFFSETSETTINGPAGELOG2 ); + delete timeoffsetSettingPage; + + //For IPField settingpage + TInetAddr ipAddr(10); + CBCTestIpFieldSettingPage* ipFieldSettingPage = new (ELeave) CBCTestIpFieldSettingPage( + R_AKNATSETPAGE_IPADDRESS_SETTING_PAGE, ipAddr ); + _LIT( KIPFIELDSETTINGPAGELOG1, "IPField settingpage constructor called" ); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG1 ); + _LIT( KIPFIELDSETTINGPAGELOG2, "Function called" ); + CleanupStack::PushL( ipFieldSettingPage ); + ipFieldSettingPage->ConstructL(); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + ipFieldSettingPage->IpFieldEditor(); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + + ipFieldSettingPage->HandlePointerEventL( pointEvent ); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + + ipFieldSettingPage->UpdateSettingL(); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + ipFieldSettingPage->AcceptSettingL(); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + ipFieldSettingPage->RestoreOriginalSettingL(); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + + buf = CBufFlat::NewL( 200 ); + stream.Open( *buf ); + ipFieldSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + stream.Close(); + delete buf; + CleanupStack::PopAndDestroy(); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + ipFieldSettingPage = new (ELeave) CBCTestIpFieldSettingPage( + &KTitle, + 1, + EAknCtIpFieldEditor, + R_AKNATSETPAGE_IPADDRESS_EDITOR, + R_AKNATSETPAGE_IPADDRESS_SETTING_PAGE, + ipAddr ); + AssertTrueL( ETrue, KIPFIELDSETTINGPAGELOG2 ); + delete ipFieldSettingPage; + + } + +void CBCTestSettingPageCase::TestDescArrayL() + { + TBuf<10> title; + _LIT( KDESCARRAYLOG1, "test" ); + title.Append( KDESCARRAYLOG1 ); + TAknDesCArrayDecorator descArray; + CBCTestSettingItemArray* itemArray = new (ELeave) CBCTestSettingItemArray( + 1, EFalse, 0 ); + _LIT( KDESCARRAYLOG2, "Function called" ); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + descArray.SetArray( itemArray ); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + descArray.MdcaCount(); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + descArray.SetActive( ETrue ); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + descArray.SetDecorationText( title ); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + TInt index = 0; + descArray.DecoratedIndex( index ); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + descArray.MdcaPoint( itemArray->MdcaCount() ); + AssertTrueL( ETrue, KDESCARRAYLOG2 ); + + delete itemArray; + + } + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpagecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpagecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,119 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestsettingpagecontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageContainer::CBCTestSettingPageContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageContainer::~CBCTestSettingPageContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestSettingPageContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestSettingPageContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestSettingPageContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageContainer::ResetControl() + { + if ( iControl ) + { + delete iControl; + iControl = NULL; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpagedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpagedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon SettingPage test application +* +*/ + + +// INCLUDE FILES +#include "BCTestSettingPageDocument.h" +#include "BCTestSettingPageAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageDocument* CBCTestSettingPageDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSettingPageDocument* CBCTestSettingPageDocument::NewL( CEikApplication& aApp ) + { + CBCTestSettingPageDocument* self = new( ELeave ) CBCTestSettingPageDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageDocument::~CBCTestSettingPageDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSettingPageDocument::~CBCTestSettingPageDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestSettingPageDocument::CBCTestSettingPageDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSettingPageDocument::CBCTestSettingPageDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestSettingPageDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestSettingPageDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestSettingPageAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpageview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestsettingpageview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestsettingpage.hrh" +#include "bctestsettingpageview.h" +#include "bctestsettingpagecontainer.h" +#include "bctestutil.h" +#include "bctestsettingpagecase.h" +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageView* CBCTestSettingPageView::NewL() + { + CBCTestSettingPageView* self = new( ELeave ) CBCTestSettingPageView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageView::CBCTestSettingPageView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageView::ConstructL() + { + BaseConstructL( R_BCTESTSETTINGPAGE_VIEW ); + + iContainer = new( ELeave ) CBCTestSettingPageContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT( KADDCASELOG1, "SettingPage test case" ); + iTestUtil->AddTestCaseL( CBCTestSettingPageCase::NewL( iContainer ), + KADDCASELOG1 ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSettingPageView::~CBCTestSettingPageView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestSettingPageView::Id() const + { + return KBCTestSettingPageViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestSettingPageView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestSettingPageView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestslidersettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestslidersettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,100 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include "bctestslidersettingpage.h" + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + + +EXPORT_C CBCTestSliderSettingPage::CBCTestSliderSettingPage( TInt aResourceId, TInt& aSliderValue ): + CAknSliderSettingPage( aResourceId, aSliderValue ) + { + } + +EXPORT_C CBCTestSliderSettingPage::CBCTestSliderSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aSliderValue) + : CAknSliderSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aSliderValue ) + { + } + +/** + * Destructor + * + */ +EXPORT_C CBCTestSliderSettingPage::~CBCTestSliderSettingPage() + { + } + + +EXPORT_C void CBCTestSliderSettingPage::UpdateSettingL() + { + CAknSliderSettingPage::UpdateSettingL(); + } + +EXPORT_C void CBCTestSliderSettingPage::AcceptSettingL() + { + CAknSliderSettingPage::AcceptSettingL(); + } + +EXPORT_C void CBCTestSliderSettingPage::RestoreOriginalSettingL() + { + CAknSliderSettingPage::RestoreOriginalSettingL(); + } + + +EXPORT_C void CBCTestSliderSettingPage::SizeChanged() + { + CAknSliderSettingPage::SizeChanged(); + } + +EXPORT_C void CBCTestSliderSettingPage::Draw(const TRect &aRect) const + { + CAknSliderSettingPage::Draw( aRect ); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestSliderSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestSliderSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknSliderSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctesttextsettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctesttextsettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,357 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include "BCTestTextSettingPage.h" +#include "AknSettingPage.h" + + +// Number of lines in Text Setting Page; Same in APAC and ELAF: +//const TInt KTextSettingPageLines = 6; + +class CAknTextSettingPageExtension : public CBase + { + public: + static CAknTextSettingPageExtension* NewL() + { + CAknTextSettingPageExtension* extension = + new (ELeave) CAknTextSettingPageExtension(); + CleanupStack::PushL(extension); + extension->ConstructL(); + CleanupStack::Pop(extension); + return extension; + } + + ~CAknTextSettingPageExtension() + { + } + + private: + void ConstructL() + { + } + CAknTextSettingPageExtension() + { + } + }; + +/** + * Exported in case others want to derive from this class + * + */ +EXPORT_C CBCTestEdwinSettingPage::CBCTestEdwinSettingPage( TInt aResourceId ) + : CAknEdwinSettingPage(aResourceId) + { + } + + +EXPORT_C CBCTestEdwinSettingPage::CBCTestEdwinSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ) + : CAknEdwinSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId ) + { + } + +/** + * All setting pages containing edwins will have the same draw code + * + */ +EXPORT_C void CBCTestEdwinSettingPage::Draw(const TRect& aRect) const + { + CAknEdwinSettingPage::Draw( aRect ); + } + + +void CBCTestEdwinSettingPage::SizeChanged() + { + } + +void CBCTestEdwinSettingPage::ConstructL() + { + BaseConstructL(); + } + + +/////////////////////////////////////////////////////////////////////// +// +// CAknTextSettingPage +// +/////////////////////////////////////////////////////////////////////// + +/** + * + * Constructor from setting page resource id + referenced text + flags + * + */ +EXPORT_C CBCTestTextSettingPage::CBCTestTextSettingPage( TInt aResourceId, TDes& aText, TInt aFlags ): + CAknTextSettingPage( aResourceId, aText, aFlags ) + { + } + +EXPORT_C CBCTestTextSettingPage::CBCTestTextSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TDes& aText, + TInt aTextSettingPageFlags) + : CAknTextSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aText, + aTextSettingPageFlags ) + { + } + +/** + * Destructor + * + */ +EXPORT_C CBCTestTextSettingPage::~CBCTestTextSettingPage() + { + } + +/** + * + * This routine is called before the editor when the editor is first displayed. This routine + * puts in altered softkey bindings if there is zero-length text. + * + */ +EXPORT_C void CBCTestTextSettingPage::DynamicInitL() + { + CAknTextSettingPage::DynamicInitL(); + } +/** + * + * This routine is called when the a change is detected in the editor. + * The text is copied out to the referenced descriptor using a utility routine. + * + */ +EXPORT_C void CBCTestTextSettingPage::UpdateSettingL() + { + CAknTextSettingPage::UpdateSettingL(); + } +/** + * Soak up function to do the safe copying of the editor to the referenced value + * + */ +EXPORT_C void CBCTestTextSettingPage::UpdateTextL() + { + CAknTextSettingPage::UpdateTextL(); + } +/** + * + * The value is copied out and the call back called if there is an observer + * + */ +EXPORT_C void CBCTestTextSettingPage::AcceptSettingL() + { + CAknTextSettingPage::AcceptSettingL(); + } + +/** + * + * If the setting page is cancelled, this is called to restore the backed up copy of the + * input text + * + */ +EXPORT_C void CBCTestTextSettingPage::RestoreOriginalSettingL() + { + CAknTextSettingPage::RestoreOriginalSettingL(); + } + +EXPORT_C void CBCTestTextSettingPage::UpdateCbaL() + { + CAknTextSettingPage::UpdateCbaL(); + } + +EXPORT_C void CBCTestTextSettingPage::SizeChanged() + { + CAknTextSettingPage::SizeChanged(); + } + +/** +* Validity is alway ETrue unless the flag asking for some non-whitespace data is set. +* If set, and if there is an edwin, then check to see that there is a valid character +* somewhere in the text +*/ +EXPORT_C void CBCTestTextSettingPage::CheckAndSetDataValidity() + { + CAknTextSettingPage::CheckAndSetDataValidity(); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestTextSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestTextSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknTextSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + +/** +* +* This routes the keys to the editor. +* However, if the menu is showing, then events have to be forwarded manually to it. +* +*/ +EXPORT_C TKeyResponse CBCTestTextSettingPage::BCOfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType) + { + return CAknTextSettingPage::OfferKeyEventL(aKeyEvent, aType); + } + +/** +* Framework method to determine if it OK to exit the setting page. +* Derived classes may check for valid data before allowing the dismissal of the +* setting page. +*/ +EXPORT_C TBool CBCTestTextSettingPage::OkToExitL(TBool aAccept) + { + return CAknTextSettingPage::OkToExitL( aAccept ); + } + +EXPORT_C void CBCTestTextSettingPage::HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType ) + { + CAknTextSettingPage::HandleControlEventL( aControl, aEventType ); + } + + +///////////////////////////////////////////////////////////////////////// +// +// Integer Edwin +// +///////////////////////////////////////////////////////////////////////// + +/** + * + * Constructor from setting page resource id + referenced text + flags + * + */ +EXPORT_C CBCTestIntegerSettingPage::CBCTestIntegerSettingPage( TInt aResourceId, TInt& aValue, TInt aFlags ): + CAknIntegerSettingPage( aResourceId, aValue, aFlags ) + { + } + +EXPORT_C CBCTestIntegerSettingPage::CBCTestIntegerSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aValue, + TInt aIntegerSettingPageFlags) + : CAknIntegerSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aValue, + aIntegerSettingPageFlags ) + { + } + + +/** + * + * This routine is called before the editor when the editor is first displayed. This routine + * puts in altered softkey bindings if there is zero-length text. + * + */ +EXPORT_C void CBCTestIntegerSettingPage::DynamicInitL() + { + CAknIntegerSettingPage::DynamicInitL(); + } +/** + * + * This routine may be called when the a change is detected in the editor. + * The text is copied out to the referenced descriptor using a utility routine. + * + */ +EXPORT_C void CBCTestIntegerSettingPage::UpdateSettingL() + { + CAknIntegerSettingPage::UpdateSettingL(); + } + +/** + * + * If the setting page is cancelled, this is called to restore the backed up copy of the + * input text + * + */ +EXPORT_C void CBCTestIntegerSettingPage::RestoreOriginalSettingL() + { + CAknIntegerSettingPage::RestoreOriginalSettingL(); + } + + +EXPORT_C void CBCTestIntegerSettingPage::UpdateCbaL() + { + CAknIntegerSettingPage::UpdateCbaL(); + } + +EXPORT_C void CBCTestIntegerSettingPage::SizeChanged() + { + CAknIntegerSettingPage::SizeChanged(); + } + + +EXPORT_C void CBCTestIntegerSettingPage::CheckAndSetDataValidity() + { + CAknIntegerSettingPage::CheckAndSetDataValidity(); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestIntegerSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestIntegerSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknIntegerSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + +EXPORT_C void CBCTestIntegerSettingPage::HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType ) + { + CAknIntegerSettingPage::HandleControlEventL( aControl, aEventType ); + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestvolumesettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsettingpage/src/bctestvolumesettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,109 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestvolumesettingpage.h" + +////////////////////////////////////////////////////////////////////// +// Construction/Destruction +////////////////////////////////////////////////////////////////////// + + + +EXPORT_C CBCTestVolumeSettingPage::CBCTestVolumeSettingPage( TInt aResourceId, TInt& aVolume ): + CAknVolumeSettingPage( aResourceId, aVolume) + { + } + +EXPORT_C CBCTestVolumeSettingPage::CBCTestVolumeSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId, + TInt& aVolume) + : CAknVolumeSettingPage( + aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId, + aVolume ) + { + } + +/** + * Destructor + * + */ +EXPORT_C CBCTestVolumeSettingPage::~CBCTestVolumeSettingPage() + { + } + +EXPORT_C void CBCTestVolumeSettingPage::ConstructL() + { + CAknVolumeSettingPage::ConstructL(); + } + +EXPORT_C void CBCTestVolumeSettingPage::UpdateSettingL() + { + CAknVolumeSettingPage::UpdateSettingL(); + } + +EXPORT_C void CBCTestVolumeSettingPage::AcceptSettingL() + { + CAknVolumeSettingPage::AcceptSettingL(); + } + +EXPORT_C void CBCTestVolumeSettingPage::RestoreOriginalSettingL() + { + CAknVolumeSettingPage::RestoreOriginalSettingL(); + } + + +EXPORT_C CAknVolumeControl* CBCTestVolumeSettingPage::VolumeControl() + { + return CAknVolumeSettingPage::VolumeControl(); + } + +EXPORT_C void CBCTestVolumeSettingPage::SizeChanged() + { + CAknVolumeSettingPage::SizeChanged(); + } + +EXPORT_C void CBCTestVolumeSettingPage::Draw(const TRect &aRect) const + { + CAknVolumeSettingPage::Draw( aRect ); + } + +/** + * Writes the internal state of the control and its components to aStream. + * Does nothing in release mode. + * Designed to be overidden and base called by subclasses. + */ +#ifndef _DEBUG +EXPORT_C void CBCTestVolumeSettingPage::WriteInternalStateL(RWriteStream& /*aWriteStream*/) const + {} +#else +EXPORT_C void CBCTestVolumeSettingPage::WriteInternalStateL(RWriteStream& aWriteStream) const + { + CAknVolumeSettingPage::WriteInternalStateL(aWriteStream); + } +#endif + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bctestskins.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bctestskins.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,78 @@ +/* +* 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 "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: project specification file for the BCTestSkins. +* +*/ + + +TARGET BCTestSkins.exe +TARGETTYPE exe +UID 0x0 0x200045CE + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestSkins.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG SC + +SOURCEPATH ../Src +SOURCE bctestskinsapp.cpp +SOURCE bctestskinsdocument.cpp +SOURCE bctestskinsappui.cpp +SOURCE bctestskinsview.cpp +SOURCE bctestskinscontainer.cpp +SOURCE bctestdrawutilscase.cpp +SOURCE bctestbmpanimcase.cpp +SOURCE bctestutilscase.cpp +SOURCE bctesteffectcmdcase.cpp +SOURCE bctesteffectqueuecase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY aknswallpaperutils.lib +LIBRARY fbscli.lib + + + + + + +START RESOURCE ../group/bctestskins_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bctestskins.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bctestskins.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,228 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestskins.hrh" +#include "bctestskins.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestskins_BMP_FNAME APP_BITMAP_DIR"\\BCTestSkins.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestSkins"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestskins_menubar_main; + cba = r_bctestskins_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestskins_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestskins_view +// AVKON_VIEW for CBCTestSkinsView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestskins_view + { + menubar = r_bctestskins_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestskins_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestskins_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestskins_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestskins_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestskins_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestskins_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestskins_outline(1); + }, + + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestskins_outline(2); + }, + + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestskins_outline(3); + }, + + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestskins_outline(4); + }, + + MENU_ITEM + { + command = EBCTestCmdOutline5; + txt = qtn_bctestskins_outline(5); + } + + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestskins_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestskins_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestskins_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestskins_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestskins_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestskins_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestSkinsCbaCmdNext; + txt = qtn_bctestskins_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bctestskins_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bctestskins_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045CE // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestSkins"; + localisable_resource_file = "\\resource\\apps\\BCTestSkins"; + localisable_resource_id = R_BCTESTSKINS_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestSkins.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestbmpanimcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestbmpanimcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_BMPANIMCASE_H +#define BCTEST_BMPANIMCASE_H + +#include "bctestcase.h" + +class CBCTestSkinsContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestBmpAnimCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestBmpAnimCase* NewL( CBCTestSkinsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestBmpAnimCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestBmpAnimCase( CBCTestSkinsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestSkinsContainer* iContainer; + + }; + +#endif // BCTEST_BMPANIMCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestdrawutilscase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestdrawutilscase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_DRAWUTILSCASE_H +#define BCTEST_DRAWUTILSCASE_H + +#include "bctestcase.h" + +class CBCTestSkinsContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestDrawUtilsCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestDrawUtilsCase* NewL( CBCTestSkinsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestDrawUtilsCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestDrawUtilsCase( CBCTestSkinsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestSkinsContainer* iContainer; + + }; + +#endif // BCTEST_DRAWUTILSCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctesteffectcmdcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctesteffectcmdcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_EFFECTCMDCASE_H +#define BCTEST_EFFECTCMDCASE_H + +#include "bctestcase.h" + +class CBCTestSkinsContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestEffectCmdCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEffectCmdCase* NewL( CBCTestSkinsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEffectCmdCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEffectCmdCase( CBCTestSkinsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestSkinsContainer* iContainer; + + }; + +#endif // BCTEST_EFFECTCMDCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctesteffectqueuecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctesteffectqueuecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_EFFECTQUEUECASE_H +#define BCTEST_EFFECTQUEUECASE_H + +#include "bctestcase.h" + +class CBCTestSkinsContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestEffectQueueCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestEffectQueueCase* NewL( CBCTestSkinsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestEffectQueueCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestEffectQueueCase( CBCTestSkinsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestSkinsContainer* iContainer; + + }; + +#endif // BCTEST_EFFECTQUEUECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskins.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskins.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ +/* +* 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 "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: BCTestSkins resource header file +* +*/ + + +#ifndef BCTESTSKINS_HRH +#define BCTESTSKINS_HRH + +enum TBCTestSkinsMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdOutline5, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestSkinsCba + { + EBCTestSkinsCbaCmdNext = 0x6300 + }; + +#endif // BCTESTSKINS_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskins.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskins.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +/* +* 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 "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: BCTestSkins localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTSKINS" +#define qtn_apps_tavl_grid "BCTESTSKINS" + +// MenuBar +#define qtn_bctestskins_menubar "Option" +#define qtn_bctestskins_cba_next "Next" +#define qtn_bctestskins_autotest "Autotest" +#define qtn_bctestskins_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestskins_outline(x) "Outline"#x + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTSKINSAPP_H +#define BCTESTSKINSAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestSkins = { 0x200045CE }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestSkinsApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestSkinsApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestSkinsDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestSkins ). + * @return The value of KUidBCTestSkins. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTSKINSAPPUI_H +#define C_BCTESTSKINSAPPUI_H + +#include + +class CBCTestSkinsView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSkinsAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestSkinsAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestSkinsAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestSkinsView* iView; + }; + +#endif // C_BCTESTSKINSAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinscontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinscontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,95 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_SKINSCONTAINER_H +#define BCTEST_SKINSCONTAINER_H + +#include +#include "bctestdrawutilscase.h" + + +/** +* container class +*/ +class CBCTestSkinsContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestSkinsContainer(); + + /** + * Destructor + */ + virtual ~CBCTestSkinsContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + + void DrawTest(); + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + TBool iDrawFlag; + }; + +#endif // BCTEST_SKINSCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTSKINSDOCUMENT_H +#define C_BCTESTSKINSDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestSkinsDocument application class. +*/ +class CBCTestSkinsDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestSkinsDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestSkinsDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestSkinsDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestSkinsAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSKINSDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestskinsview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_SKINS_VIEW_H +#define BCTEST_SKINS_VIEW_H + +#include + +const TUid KBCTestSkinsViewId = { 1 }; + +class CBCTestSkinsContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSkinsView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestSkinsView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestSkinsView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSkinsView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestSkinsContainer* iContainer; + + }; + +#endif // BCTEST_SKINS_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestutilscase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/inc/bctestutilscase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_UTILSCASE_H +#define BCTEST_UTILSCASE_H + +#include +#include "bctestcase.h" + +class CBCTestSkinsContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestUtilsCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestUtilsCase* NewL( CBCTestSkinsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestUtilsCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestUtilsCase( CBCTestSkinsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestSkinsContainer* iContainer; + + /** + * Pointer to a AknsUtils. + * own + */ + MAknsSkinInstance *iSkinInstance; + }; + +#endif // BCTEST_UTILSCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/sis/bctestskins.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/sis/bctestskins.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,52 @@ +; +; 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: +; +; bctestskins.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestskins"},(0x200045CE),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestskins.exe"- +"!:\sys\bin\bctestskins.exe" + +"\epoc32\data\z\resource\apps\bctestskins.rsc"- +"!:\resource\apps\bctestskins.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestskins_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestskins_reg.rsc" + + + + + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestbmpanimcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestbmpanimcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,210 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctestbmpanimcase.h" +#include "bctestskinscontainer.h" +#include "bctestskins.hrh" + + +struct TAknsBmpAnimFrameInfo + { + /** + * Frame time in milliseconds or -1 if not defined. + */ + TInt16 iTime; + + /** + * Frame position X-coordinate. + */ + TInt16 iPosX; + + /** + * Frame position Y-coordinate. + */ + TInt16 iPosY; + }; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestBmpAnimCase* CBCTestBmpAnimCase::NewL( + CBCTestSkinsContainer* aContainer ) + { + CBCTestBmpAnimCase* self = new( ELeave ) CBCTestBmpAnimCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestBmpAnimCase::CBCTestBmpAnimCase( + CBCTestSkinsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestBmpAnimCase::~CBCTestBmpAnimCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestBmpAnimCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestBmpAnimCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestBmpAnimCase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 2), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestBmpAnimCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestBmpAnimCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline3 || aCmd > EBCTestCmdOutline3 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline3: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestBmpAnimCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestBmpAnimCase::TestFunctionL() + { + // Test CAknsBmpAnimItemData APIs + CAknsBmpAnimItemData* itemData = CAknsBmpAnimItemData::NewL(); + CleanupStack::PushL(itemData); + _LIT( KItemData, "CAknsBmpAnimItemData::NewL" ); + AssertNotNullL( itemData, KItemData ); + + // set images then set its frame info + const TInt n = 5; + TAknsItemID ids[n]; + TAknsBmpAnimFrameInfo infos[n]; + for(int i=0; iSetImagesL(n, ids); + itemData->SetFrameInfosL(infos); + _LIT( KSetFrameInfos, "CAknsBmpAnimItemData::SetFrameInfosL() invoked"); + AssertTrueL(ETrue, KSetFrameInfos); + + + itemData->SetFlash( ETrue ); + _LIT( KFlash, "CBCTestBmpAnimCase::Flash" ); + AssertTrueL( itemData->Flash(), KFlash ); + + itemData->SetPlayMode( 20 ); + _LIT( KPlayMode, "CBCTestBmpAnimCase::PlayMode" ); + AssertIntL( 20, itemData->PlayMode(), KPlayMode ); + + itemData->SetFrameInterval( 1000*3 ); + _LIT( KFrmIntvl, "CBCTestBmpAnimCase::FrameInterval" ); + AssertIntL( 1000*3, itemData->FrameInterval(), KFrmIntvl ); + + itemData->SetLastFrameBackground( ETrue ); + _LIT( KBkgrd, "CBCTestBmpAnimCase::LastFrameBackground" ); + AssertTrueL( itemData->LastFrameBackground(), KBkgrd ); + + TAny* frameInfo = itemData->FrameInfos(); + _LIT( KFrameInfos, "CBCTestBmpAnimCase::FrameInfos" ); + AssertTrueL( ETrue, KFrameInfos ); + //delete frameInfo; //can not delete, becuase it is owned by itemData + + CleanupStack::PopAndDestroy( itemData ); + + // Test CAknsStringItemData APIs + CAknsStringItemData* strItemData = CAknsStringItemData::NewL(); + CleanupStack::PushL( strItemData ); + _LIT( KStrItemData, "CAknsStringItemData::NewL"); + AssertNotNullL( strItemData, KStrItemData ); + + _LIT( KStr, "A String"); + TBuf<16> str( KStr ); + strItemData->SetStringL( str ); + _LIT( KSetString, "CAknsStringItemData::SetStringL"); + AssertNotNullL( strItemData, KSetString); + + _LIT( KString, "CAknsStringItemData::String"); + AssertTrueL( ( strItemData->String() == str ), KString ); + CleanupStack::PopAndDestroy( strItemData ); + + // Test CAknsImageTableItemData APIs + CAknsImageTableItemData* tableItemData = CAknsImageTableItemData::NewL(); + CleanupStack::PushL( tableItemData ); + _LIT( KTableItemData, "CAknsImageTableItemData::NewL" ); + AssertNotNullL( tableItemData, KTableItemData ); + + TAknsItemID* imageArray; + imageArray = tableItemData->Images(); + delete [] imageArray; + imageArray = NULL; + + CleanupStack::PopAndDestroy( tableItemData ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestdrawutilscase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestdrawutilscase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include "bctestdrawutilscase.h" +#include "bctestskinscontainer.h" +#include "bctestskins.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestDrawUtilsCase* CBCTestDrawUtilsCase::NewL( + CBCTestSkinsContainer* aContainer ) + { + CBCTestDrawUtilsCase* self = new( ELeave ) CBCTestDrawUtilsCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestDrawUtilsCase::CBCTestDrawUtilsCase( + CBCTestSkinsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestDrawUtilsCase::~CBCTestDrawUtilsCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestDrawUtilsCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestDrawUtilsCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestDrawUtilsCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 1 ), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestDrawUtilsCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestDrawUtilsCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestDrawUtilsCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestDrawUtilsCase::TestFunctionL() + { + iContainer->DrawTest(); + _LIT( KMsg, "Test AknsDrawUtils API"); + AssertNotNullL( iContainer, KMsg ); + + // Test CAknsFrameBackgroundControlContext API + TAknsItemID frameId; + TRect outerRect( 0, 0, 100, 100 ); + TRect innerRect( 10, 10, 90, 90 ); + TBool absolute = ETrue; + CAknsFrameBackgroundControlContext* ctrlContext = + CAknsFrameBackgroundControlContext::NewL ( frameId, outerRect, + innerRect, absolute ); + CleanupStack::PushL( ctrlContext ); + ctrlContext->SetFramePartRect( outerRect, EAknsFrameIndexTl ); + _LIT( KSetFramePartRect, "CAknsFrameBackgroundControlContext::SetFramePartRect" ); + AssertNotNullL( ctrlContext, KSetFramePartRect ); + CleanupStack::PopAndDestroy( ctrlContext ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctesteffectcmdcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctesteffectcmdcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,161 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctesteffectcmdcase.h" +#include "bctestskinscontainer.h" +#include "bctestskins.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEffectCmdCase* CBCTestEffectCmdCase::NewL( + CBCTestSkinsContainer* aContainer ) + { + CBCTestEffectCmdCase* self = new( ELeave ) CBCTestEffectCmdCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEffectCmdCase::CBCTestEffectCmdCase( + CBCTestSkinsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEffectCmdCase::~CBCTestEffectCmdCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEffectCmdCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEffectCmdCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEffectCmdCase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 4), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestEffectCmdCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEffectCmdCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline5 || aCmd > EBCTestCmdOutline5 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline5: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEffectCmdCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestEffectCmdCase::TestFunctionL() + { + // Test CAknsEffectCommand APIs + CAknsEffectCommand* eftCmd = CAknsEffectCommand::NewL(); + CleanupStack::PushL( eftCmd ); + _LIT( KNew, "CAknsEffectCommand::NewL" ); + AssertNotNullL( eftCmd, KNew ); + + eftCmd->SetEffectUid( TUid::Uid(0x101F84AF) ); + _LIT( KSetEffectUid, "CAknsEffectCommand::SetEffectUid" ); + AssertNotNullL( eftCmd, KSetEffectUid ); + + TUid eftUid = eftCmd->EffectUid(); + _LIT( KEffectUid, "CAknsEffectCommand::EffectUid" ); + AssertTrueL( (eftUid==TUid::Uid(0x101F84AF)), KEffectUid ); + + TAknsRlRenderOpParam para; + para.iInputLayerAStatus = KAknsRlLayerNone; + para.iInputLayerAIndex = KAknsRlLayerRGBA; + para.iInputLayerBStatus = KAknsRlLayerNone; + para.iInputLayerBIndex = KAknsRlLayerAlphaOnly; + para.iOutputLayerStatus = KAknsRlLayerNone; + para.iOutputLayerIndex = KAknsRlLayerRGBA; + eftCmd->SetLayerConf( para ); + _LIT( KParam, "CAknsEffectCommand::SetLayerConf" ); + AssertNotNullL( eftCmd, KParam ); + + para = eftCmd->LayerConf(); + _LIT( KLayerConf, "CAknsEffectCommand::LayerConf" ); + AssertNotNullL( ¶, KLayerConf ); + + MAknsRlParameterIterator* iterator = eftCmd->CreateParameterIteratorL(); + _LIT( KParaIterator, "CAknsEffectCommand::CreateParameterIteratorL" ); + AssertNotNullL( iterator, KParaIterator ); + delete iterator; + iterator = NULL; + + TAknsRlParameterData paraData; + _LIT( KName, "EffectName" ); + TDesC16 paraName ( KName ); + paraData.iName = ¶Name; + eftCmd->AppendParameterL( paraData ); + _LIT( KParaData, "CAknsEffectCommand::AppendParameterL" ); + AssertNotNullL( eftCmd, KParaData); + + CleanupStack::PopAndDestroy( eftCmd ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctesteffectqueuecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctesteffectqueuecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,157 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctesteffectqueuecase.h" +#include "bctestskinscontainer.h" +#include "bctestskins.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestEffectQueueCase* CBCTestEffectQueueCase::NewL( + CBCTestSkinsContainer* aContainer ) + { + CBCTestEffectQueueCase* self = new( ELeave ) CBCTestEffectQueueCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestEffectQueueCase::CBCTestEffectQueueCase( + CBCTestSkinsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEffectQueueCase::~CBCTestEffectQueueCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestEffectQueueCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestEffectQueueCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEffectQueueCase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 1), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestEffectQueueCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestEffectQueueCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline2 || aCmd > EBCTestCmdOutline2 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline2: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestEffectQueueCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestEffectQueueCase::TestFunctionL() + { + // Test CAknsEffectQueueItemData APIs + CAknsEffectQueueItemData* queueData = CAknsEffectQueueItemData::NewL(); + CleanupStack::PushL( queueData ); + _LIT( KQueue, "CAknsEffectQueueItemData::NewL" ); + AssertNotNullL( queueData, KQueue ); + + queueData->SetInputLayer(2); + TInt input = queueData->InputLayer(); + _LIT( KInputLayer, "CAknsEffectQueueItemData::InputLayer" ); + AssertIntL( 2, input, KInputLayer ); + + queueData->SetInputLayerMode(3); + TInt mode = queueData->InputLayerMode(); + _LIT( KInputMode, "CAknsEffectQueueItemData::InputLayerMode" ); + AssertIntL( 3, mode, KInputMode ); + + queueData->SetOutputLayer(4); + TInt output = queueData->OutputLayer(); + _LIT( KOutputLayer, "CAknsEffectQueueItemData::OutputLayer" ); + AssertIntL( 4, output, KOutputLayer ); + + queueData->SetOutputLayerMode(5); + TInt outMode = queueData->OutputLayerMode(); + _LIT( KOutputMode, "CAknsEffectQueueItemData::OutputLayerMode" ); + AssertIntL( 5, outMode, KOutputMode ); + + CAknsEffectCommand* eftCmd = CAknsEffectCommand::NewL(); + CleanupStack::PushL( eftCmd ); + queueData->AppendCommandL(eftCmd); + CleanupStack::Pop( eftCmd ); + + // The class returned is not defined in public SDK, panic. + /*TAny* cmdItr = queueData->CreateCommandIteratorL(); + CleanupStack::PushL( cmdItr ); + _LIT( KCmdIterator, "CAknsEffectQueueItemData::CreateCommandIteratorL" ); + AssertNotNullL( cmdItr, KCmdIterator ); + CleanupStack::Pop( cmdItr ); + delete cmdItr;*/ + + CleanupStack::PopAndDestroy( queueData ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestSkinsApp.h" +#include "BCTestSkinsDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestSkinsApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestSkinsApp::AppDllUid() const + { + return KUidBCTestSkins; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestSkinsApp::CreateDocumentL() +// Creates CBCTestSkinsDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestSkinsApp::CreateDocumentL() + { + return CBCTestSkinsDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestSkinsApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestSkinsApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestskinsAppUi.h" +#include "bctestskins.hrh" +#include "bctestskinsview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestSkinsAppUi::CBCTestSkinsAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestSkinsAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestSkinsView* view = CBCTestSkinsView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestSkinsAppUi::~CBCTestSkinsAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSkinsAppUi::~CBCTestSkinsAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestSkinsAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinscontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinscontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,172 @@ +/* +* 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 "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: container +* +*/ + + +#include +#include + +#include "bctestskinscontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSkinsContainer::CBCTestSkinsContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSkinsContainer::~CBCTestSkinsContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSkinsContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + iDrawFlag = false; + } + +// ---------------------------------------------------------------------------- +// CBCTestSkinsContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestSkinsContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + + if( !iDrawFlag ) + { + return; + } + + // AknsDrawUtils::Background + TBool boolflag = ETrue; + _LIT( KMsg, "Great"); + TBuf<16> info( KMsg ); + + _LIT( KErr, "Error"); + TBuf<16> errInfo( KErr ); + + MAknsSkinInstance* skin = AknsUtils::SkinInstance(); + MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); + if( skin != NULL ) + { + CEikonEnv::Static()->InfoMsg( KMsg ); + } + + boolflag = AknsDrawUtils::Background( skin, cc, gc, aRect ); + if (boolflag) + { + CEikonEnv::Static()->InfoMsg( info ); + } + else + { + CEikonEnv::Static()->InfoMsg( errInfo ); + } + + // AknsDrawUtils::BackgroundBetweenRects + TRect innerRect( 5, 5, 100, 100); + boolflag = AknsDrawUtils::BackgroundBetweenRects( skin, cc, gc, aRect, innerRect); + if (boolflag) + { + CEikonEnv::Static()->InfoMsg( info ); + } + else + { + CEikonEnv::Static()->InfoMsg( errInfo ); + } + + boolflag = AknsDrawUtils::DrawFramePart(skin, gc, aRect, KAknsIIDQsnFrSetOptCornerTl, + EAknsFrameIndexCenter ); + } + +void CBCTestSkinsContainer::DrawTest() + { + iDrawFlag = true; + DrawNow(); + iDrawFlag = false; + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestSkinsContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestSkinsContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestSkinsContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestSkinsContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestSkinsDocument.h" +#include "BCTestSkinsAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestSkinsDocument* CBCTestSkinsDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSkinsDocument* CBCTestSkinsDocument::NewL( CEikApplication& aApp ) + { + CBCTestSkinsDocument* self = new( ELeave ) CBCTestSkinsDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestSkinsDocument::~CBCTestSkinsDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSkinsDocument::~CBCTestSkinsDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestSkinsDocument::CBCTestSkinsDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSkinsDocument::CBCTestSkinsDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestSkinsDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestSkinsDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestSkinsAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestskinsview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,143 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestskins.hrh" +#include +#include "bctestskinsview.h" +#include "bctestskinscontainer.h" +#include "bctestutil.h" +#include "bctestdrawutilscase.h" +#include "bctestutilscase.h" +#include "bctestbmpanimcase.h" +#include "bctesteffectcmdcase.h" +#include "bctesteffectqueuecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSkinsView* CBCTestSkinsView::NewL() + { + CBCTestSkinsView* self = new( ELeave ) CBCTestSkinsView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSkinsView::CBCTestSkinsView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSkinsView::ConstructL() + { + BaseConstructL( R_BCTESTSKINS_VIEW ); + + iContainer = new( ELeave ) CBCTestSkinsContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestDrawUtilsCase::NewL( iContainer ), + _L("Test CBCTestDrawUtilsCase") ); + iTestUtil->AddTestCaseL( CBCTestEffectQueueCase::NewL( iContainer ), + _L("Test CBCTestEffectQueueCase") ); + iTestUtil->AddTestCaseL( CBCTestBmpAnimCase::NewL( iContainer ), + _L("Test CBCTestBmpAnimCase") ); + iTestUtil->AddTestCaseL( CBCTestUtilsCase::NewL( iContainer ), + _L("Test CBCTestUtilsCase") ); + iTestUtil->AddTestCaseL( CBCTestEffectCmdCase::NewL( iContainer ), + _L("Test CBCTestEffectCmdCase") ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSkinsView::~CBCTestSkinsView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestSkinsView::Id() const + { + return KBCTestSkinsViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestSkinsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestSkinsView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestSkinsView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestSkinsView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestutilscase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestskins/src/bctestutilscase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,273 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include + +#include "bctestutilscase.h" +#include "bctestskinscontainer.h" +#include "bctestskins.hrh" +#include "bctestskinsapp.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilsCase* CBCTestUtilsCase::NewL( + CBCTestSkinsContainer* aContainer ) + { + CBCTestUtilsCase* self = new( ELeave ) CBCTestUtilsCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilsCase::CBCTestUtilsCase( + CBCTestSkinsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUtilsCase::~CBCTestUtilsCase() + { + iSkinInstance = NULL; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUtilsCase::ConstructL() + { + BuildScriptL(); + iSkinInstance = AknsUtils::SkinInstance(); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilsCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestUtilsCase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + REP(Down, 3), + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilsCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestUtilsCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline4 || aCmd > EBCTestCmdOutline4 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline4: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestUtilsCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestUtilsCase::TestFunctionL() + { + // Test AknsUtils APIs + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + _LIT( KSetSkinEnabled, "AknsUtils::SetAvkonSkinEnabledL" ); + AssertNotNullL( iContainer, KSetSkinEnabled ); + + AknsUtils::InitSkinSupportL(); + _LIT( KInitSkin, "AknsUtils::InitSkinSupportL" ); + AssertNotNullL( iContainer, KInitSkin ); + + AknsUtils::SetAvkonHighlightAnimationEnabledL( ETrue ); + _LIT( KSetHlAnimEnabled, "AknsUtils::SetAvkonHighlightAnimationEnabledL" ); + AssertNotNullL( iContainer, KSetHlAnimEnabled ); + + _LIT( KPath, "z:\\wallpaper.bmp" ); + TBuf<32> path( KPath ); + AknsWallpaperUtils::SetIdleWallpaper( KPath, NULL ); + AssertNotNullL( iContainer, KPath ); + + TAknsItemID itemID; + _LIT( KMBMFileName, "\\resource\\apps\\bctestskins.mbm" ); + TBuf<32> filename( KMBMFileName ); + TAny* def = AknsUtils::CreateBitmapItemDefL( itemID, filename, 1 ); + _LIT( KCreateBitmapItemDefL, "AknsUtils::CreateBitmapItemDefL" ); + AssertNotNullL( def, KCreateBitmapItemDefL ); + delete def; + def = NULL; + + TAny* mDef = + AknsUtils::CreateMaskedBitmapItemDefL( itemID, filename, 1, 2 ); + _LIT( KCreateMaskedBitmapItemDefL, "AknsUtils::CreateMaskedBitmapItemDefL" ); + AssertNotNullL( mDef, KCreateMaskedBitmapItemDefL ); + delete mDef; + mDef = NULL; + + MAknsDataContext* context = AknsUtils::DataContext( iContainer ); + _LIT( KDataContext, "AknsUtils::DataContext" ); + AssertNotNullL( context, KDataContext ); + context = NULL; + + MAknsDataContext* dataContext = AknsUtils::CreateDataContextForContainerL(); + _LIT( KDataContextContn, "AknsUtils::CreateDataContextForContainerL" ); + AssertNotNullL( dataContext, KDataContextContn ); + // Test MAknsDataContext::SupplyMopObject + TTypeUid::Ptr ptr = MAknsDataContext::SupplyMopObject ( + 0x10005a28, dataContext ); + _LIT( KSupplyMopObject, "MAknsDataContext::SupplyMopObject" ); + AssertNotNullL( dataContext, KSupplyMopObject ); + delete dataContext; + dataContext = NULL; + + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + AknsUtils::CreateAppIconLC( iSkinInstance, KUidBCTestSkins, + EAknsAppIconTypeContext, bitmap, mask ); + CleanupStack::PopAndDestroy( 2 ); // bitmap, mask + _LIT( KAknsUtils1, "AknsUtils::CreateAppIconLC" ); + AssertTrueL( ETrue, KAknsUtils1 ); + + TSize size( 6, 6 ); + CApaMaskedBitmap* icon = CApaMaskedBitmap::NewLC(); + _LIT( KIcon, "CApaMaskedBitmap::NewLC invoked in AknsUtils case" ); + AssertNotNullL( icon, KIcon ); + AknsUtils::GetAppIcon( iSkinInstance, KUidBCTestSkins, size, *icon ); + _LIT( KGetAppIcon, "AknsUtils::GetAppIcon" ); + AssertNotNullL( icon, KGetAppIcon ); + CleanupStack::PopAndDestroy( icon ); + + // The following will leave without panic + _LIT( KCreateBitmapL, "AknsUtils::CreateBitmapL() invoked" ); + CFbsBitmap* newBitmap(NULL); + TRAPD(err, newBitmap = AknsUtils::CreateBitmapL( iSkinInstance, itemID )); + if(err == KErrNone) + { + AssertNotNullL( newBitmap, KCreateBitmapL ); + delete newBitmap; + newBitmap = NULL; + } + else + { + AssertTrueL(ETrue, KCreateBitmapL); + } + + _LIT( KCreateMaskedBitmapL, "AknsUtils::CreateMaskedBitmapL() invoked" ); + CApaMaskedBitmap* maskedBmp(NULL); + TRAP(err, maskedBmp = AknsUtils::CreateMaskedBitmapL( iSkinInstance, itemID )); + if( err == KErrNone ) + { + AssertNotNullL( maskedBmp, KCreateMaskedBitmapL ); + delete maskedBmp; + maskedBmp = NULL; + } + else + { + AssertTrueL(ETrue, KCreateMaskedBitmapL); + } + + _LIT( KCreateMaskedBitmapL2, "AknsUtils::CreateMaskedBitmapL 2" ); + CApaMaskedBitmap* bmp(NULL); + TRAP( err, bmp = AknsUtils::CreateMaskedBitmapL( iSkinInstance, itemID, filename, 1, 2 )); + if( err == KErrNone ) + { + AssertNotNullL( bmp, KCreateMaskedBitmapL2 ); + delete bmp; + bmp = NULL; + } + else + { + AssertTrueL(ETrue, KCreateMaskedBitmapL2); + } + + _LIT( KCreateGulIconL, "AknsUtils::CreateGulIconL() invoked" ); + CGulIcon* gulIcon(NULL); + TRAP( err, gulIcon = AknsUtils::CreateGulIconL( iSkinInstance, itemID, ETrue )); + if( err == KErrNone ) + { + AssertNotNullL( gulIcon, KCreateGulIconL ); + delete gulIcon; + gulIcon = NULL; + } + else + { + AssertTrueL(ETrue, KCreateGulIconL ); + } + + _LIT( KCreateGulIconL2, "AknsUtils::CreateGulIconL() invoked with ETrue arg" ); + CGulIcon* maskGulIcon(NULL); + TRAP( err, maskGulIcon = AknsUtils::CreateGulIconL( iSkinInstance, itemID, ETrue )); + if( err == KErrNone ) + { + AssertNotNullL( maskGulIcon, KCreateGulIconL2 ); + delete maskGulIcon; + maskGulIcon = NULL; + } + else + { + AssertTrueL(ETrue, KCreateGulIconL2); + } + + _LIT( KCreateGulIconL3, "AknsUtils::CreateGulIconL() invoked with arg 3" ); + gulIcon=NULL; + TRAP( err, gulIcon = AknsUtils::CreateGulIconL( iSkinInstance, itemID, filename, 3, 4 )); + if( err == KErrNone ) + { + AssertNotNullL( gulIcon, KCreateGulIconL3 ); + delete gulIcon; + gulIcon = NULL; + } + else + { + AssertTrueL(ETrue, KCreateGulIconL3); + } + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bctestsliderandicons.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bctestsliderandicons.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,84 @@ +/* +* 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 "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: project specification file for the BCTestSliderAndIcons. +* +*/ + + +TARGET BCTestSliderAndIcons.exe +TARGETTYPE exe +UID 0x0 0x2000475C + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestSliderAndIcons.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestsliderandiconsapp.cpp +SOURCE bctestsliderandiconsdocument.cpp +SOURCE bctestsliderandiconsappui.cpp +SOURCE bctestsliderandiconsview.cpp +SOURCE bctestsliderandiconscontainer.cpp +SOURCE bctestforslider.cpp +SOURCE bctestforicons.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY aknicon.lib +LIBRARY fbscli.lib + +START RESOURCE ../group/bctestsliderandicons_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bctestsliderandicons.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bctestsliderandicons.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,235 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestsliderandicons.hrh" +#include "BCTestsliderandicons.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestsliderandicons_BMP_FNAME APP_BITMAP_DIR"\\BCTestSliderAndIcons.mbm" + +#define AKNATSLIDER_MINIMUM_VALUE 0 +#define AKNATSLIDER_MAXIMUM_VALUE 100 +#define AKNATSLIDER_STEP_SIZE 2 + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "SliderAndIcons"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestsliderandicons_menubar_main; + cba = r_bctestsliderandicons_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestsliderandicons_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestsliderandicons_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsliderandicons_view +// AVKON_VIEW for CBCTestSliderAndIconsView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestsliderandicons_view + { + menubar = r_bctestsliderandicons_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsliderandicons_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestsliderandicons_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestsliderandicons_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestsliderandicons_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsliderandicons_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestsliderandicons_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestSlider; + txt = qtn_bctestslider; + }, + MENU_ITEM + { + command = EBCTestIcons; + txt = qtn_bctesticons; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestsliderandicons_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestsliderandicons_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestsliderandicons_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestsliderandicons_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestsliderandicons_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE CBA r_bctestsliderandicons_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestSliderAndIconsCbaCmdNext; + txt = qtn_bctestsliderandicons_cba_next; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestsliderandicons_slider +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE SLIDER r_bctestsliderandicons_slider + { + layout = EAknFormSliderLayout1; + minvalue = AKNATSLIDER_MINIMUM_VALUE; + maxvalue = AKNATSLIDER_MAXIMUM_VALUE; + step = AKNATSLIDER_STEP_SIZE; + valuetype=EAknSliderValueBareFigure; + decimalplaces=0; + singular_valuelabel = ""; + minlabel=""; + maxlabel=""; + valuelabel=""; + graphical_image=0; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bctestsliderandicons_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bctestsliderandicons_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475C // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestSliderAndIcons"; + localisable_resource_file = "\\resource\\apps\\BCTestSliderAndIcons"; + localisable_resource_id = R_BCTESTSLIDERANDICONS_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestSliderAndIcons.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestforicons.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestforicons.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,138 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_FORICONSCASE_H +#define BCTEST_FORICONSCASE_H + +#include +#include + +#include "bctestcase.h" + +class CBCTestSliderAndIconsContainer; +class CCoeControl; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestForIcons: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestForIcons* NewL( CBCTestSliderAndIconsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestForIcons(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test TestIconsL + */ + void TestIconsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestForIcons( CBCTestSliderAndIconsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * TestAknIconUtilsL + */ + void TestAknIconUtilsL(); + + /** + * TestCAknIconL + */ + void TestCAknIconL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestSliderAndIconsContainer* iContainer; + + }; + +/** +* test case for MAknIconObserver +*/ +class CBCTestIconObserver: public MAknIconObserver, public CBase + { + void BitmapChanged( CFbsBitmap *aBitmap ); + }; + + +/** +* test case for MAknIconFileProvider +*/ +class CBCTestFileProvider: public CBase, public MAknIconFileProvider + { +public: + +// constructor and destructor + + CBCTestFileProvider(); + + ~CBCTestFileProvider(); + +// from MAknIconFileProvider + + void RetrieveIconFileHandleL( + RFile& aFile, const TIconFileType aType ); + + void Finished(); + +private: // data + + /** + * Not Own + */ + CEikonEnv* iEnv; + + }; + +#endif // BCTEST_FORICONS_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestforslider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestforslider.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_FORSLIDER_H +#define BCTEST_FORSLIDER_H + +#include "bctestcase.h" + +class CBCTestSliderAndIconsContainer; +class CCoeControl; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestForSlider: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestForSlider* NewL( CBCTestSliderAndIconsContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestForSlider(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test TestSliderL + */ + void TestSliderL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestForSlider( CBCTestSliderAndIconsContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to CEikonEnv + * own + */ + CEikonEnv* iEnv; + + /** + * Pointer to container. + * not own + */ + CBCTestSliderAndIconsContainer* iContainer; + + }; + +#endif // BCTEST_FORSLIDER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandicons.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandicons.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ +/* +* 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 "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: BCTestSliderAndIcons resource header file +* +*/ + + +#ifndef BCTESTSLIDERANDICONS_HRH +#define BCTESTSLIDERANDICONS_HRH + +enum TBCTestSliderAndIconsMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestSlider, + EBCTestIcons, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestSliderAndIconsCba + { + EBCTestSliderAndIconsCbaCmdNext = 0x6300 + }; + +#endif // BCTESTSLIDERANDICONS_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandicons.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandicons.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 "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: BCTestSliderAndIcons localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTSLIDERANDICONS" +#define qtn_apps_tavl_grid "BCTESTSLIDERANDICONS" + +// MenuBar +#define qtn_bctestsliderandicons_menubar "Option" +#define qtn_bctestsliderandicons_cba_next "Next" +#define qtn_bctestsliderandicons_autotest "Autotest" +#define qtn_bctestsliderandicons_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestslider "TestForSlider" +#define qtn_bctesticons "TestForIcons" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestSLIDERANDICONSAPP_H +#define BCTestSLIDERANDICONSAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestSliderAndIcons = { 0x2000475C }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestSliderAndIconsApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestSliderAndIconsApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestSliderAndIconsDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestSliderAndIcons ). + * @return The value of KUidBCTestSliderAndIcons. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for SliderAndIcons control API. +* +*/ + + +#ifndef C_BCTESTSLIDERANDICONSAPPUI_H +#define C_BCTESTSLIDERANDICONSAPPUI_H + +#include + +class CBCTestSliderAndIconsView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSliderAndIconsAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestSliderAndIconsAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestSliderAndIconsAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestSliderAndIconsView* iView; + }; + +#endif // C_BCTESTSLIDERANDICONSAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconscontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconscontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_SLIDERANDICONSCONTAINER_H +#define BCTEST_SLIDERANDICONSCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestSliderAndIconsContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestSliderAndIconsContainer(); + + /** + * Destructor + */ + virtual ~CBCTestSliderAndIconsContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_SLIDERANDICONSCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTSLIDERANDICONSDOCUMENT_H +#define C_BCTESTSLIDERANDICONSDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestSliderAndIconsDocument application class. +*/ +class CBCTestSliderAndIconsDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestSliderAndIconsDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestSliderAndIconsDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestSliderAndIconsDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestSliderAndIconsAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSLIDERANDICONSDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/inc/bctestsliderandiconsview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for SliderAndIcons control API. +* +*/ + + +#ifndef BCTEST_SLIDERANDICONS_VIEW_H +#define BCTEST_SLIDERANDICONS_VIEW_H + +#include + +const TUid KBCTestSliderAndIconsViewId = { 1 }; + +class CBCTestSliderAndIconsContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestSliderAndIconsView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestSliderAndIconsView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestSliderAndIconsView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestSliderAndIconsView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestSliderAndIconsContainer* iContainer; + + }; + +#endif // BCTEST_SLIDERANDICONS_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/sis/bctestsliderandicons.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/sis/bctestsliderandicons.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestsliderandicons.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestsliderandicons"},(0x2000475C),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestsliderandicons.exe"- +"!:\sys\bin\bctestsliderandicons.exe" + +"\epoc32\data\z\resource\apps\bctestsliderandicons.RSC"- +"!:\resource\apps\bctestsliderandicons.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestsliderandicons_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestsliderandicons_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestforicons.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestforicons.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,366 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestforicons.h" +#include "bctestsliderandiconscontainer.h" +#include "bctestsliderandicons.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestForIcons* CBCTestForIcons::NewL( + CBCTestSliderAndIconsContainer* aContainer ) + { + CBCTestForIcons* self = new( ELeave ) CBCTestForIcons( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestForIcons::CBCTestForIcons( + CBCTestSliderAndIconsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestForIcons::~CBCTestForIcons() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestForIcons::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestForIcons::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestForIcons::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestForIcons::RunL +// --------------------------------------------------------------------------- +// +void CBCTestForIcons::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdEmptyOutline || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + switch ( aCmd ) + { + case EBCTestIcons: + TestIconsL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestForIcons::TestAknIconUtils +// --------------------------------------------------------------------------- +// +void CBCTestForIcons::TestAknIconUtilsL() + { + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + AknIconUtils::CreateIconL( bitmap, mask, + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_graf_tab_21, + EMbmAvkonQgn_graf_tab_21_mask ); + _LIT( KCreateIconL1, "CreateIconL 5 test" ); + AssertTrueL( ETrue, KCreateIconL1 ); + delete bitmap; + delete mask; + + AknIconUtils::CreateIconLC( bitmap, mask, + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_graf_tab_21, + EMbmAvkonQgn_graf_tab_21_mask ); + _LIT( KCreateIconLC, "CreateIconLC test" ); + AssertTrueL( ETrue, KCreateIconLC ); + CleanupStack::PopAndDestroy( 2 ); + + CFbsBitmap* fbsBitmap = AknIconUtils::CreateIconL( + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_graf_tab_21 ); + _LIT( KCreateIconL2, "CreateIconL 2 test" ); + AssertTrueL( ETrue, KCreateIconL2 ); + delete fbsBitmap; + + CBCTestFileProvider* provider = new( ELeave ) CBCTestFileProvider(); + CleanupStack::PushL( provider ); + + AknIconUtils::CreateIconL( bitmap, mask, *provider, + EMbmAvkonQgn_graf_tab_21, EMbmAvkonQgn_graf_tab_21_mask ); + _LIT( KCreateIconL3, "CreateIconL with provider test" ); + AssertTrueL( ETrue, KCreateIconL3 ); + delete bitmap; + delete mask; + + AknIconUtils::CreateIconLC( bitmap, mask, *provider, + EMbmAvkonQgn_graf_tab_21, EMbmAvkonQgn_graf_tab_21_mask ); + _LIT( KCreateIconLC2, "CreateIconLC with provider test" ); + AssertTrueL( ETrue, KCreateIconLC2 ); + //CleanupStack::PopAndDestroy( 2 ); + + CFbsBitmap* createIcon4 = AknIconUtils::CreateIconL( *provider, + EMbmAvkonQgn_graf_tab_21 ); + _LIT( KCreateIconL4, "CreateIconL4 with provider test" ); + AssertTrueL( ETrue, KCreateIconL4 ); + delete createIcon4; + + + + AknIconUtils::PreserveIconData( bitmap ); + _LIT( KPreserveIconData, "PreserveIconData test" ); + AssertTrueL( ETrue, KPreserveIconData ); + + AknIconUtils::DestroyIconData( bitmap ); + _LIT( KDestroyIconData, "DestroyIconData test" ); + AssertTrueL( ETrue, KDestroyIconData ); + + TSize size = iContainer->Rect().Size(); + TInt setSize = AknIconUtils::SetSize( bitmap, size, + EAspectRatioPreserved ); + _LIT( KSetSize, "SetSize test" ); + AssertTrueL( ETrue, KSetSize ); + + TInt angle = 30; + TInt setSizeAndRotation = AknIconUtils::SetSizeAndRotation( bitmap, + size, EAspectRatioPreserved, angle ); + _LIT( KSetSizeAndRotation, "SetSizeAndRotation test" ); + AssertTrueL( ETrue, KSetSizeAndRotation ); + + CBCTestIconObserver* iconObserver = + new( ELeave )CBCTestIconObserver(); + CleanupStack::PushL( iconObserver ); + AknIconUtils::SetObserver( bitmap, iconObserver ); + _LIT( KSetObserver, "SetObserver test" ); + AssertTrueL( ETrue, KSetObserver ); + CleanupStack::PopAndDestroy( iconObserver ); + + TDesC fileName = AknIconUtils::AvkonIconFileName(); + _LIT( KAvkonIconFileName, "AvkonIconFileName test" ); + AssertTrueL( ETrue, KAvkonIconFileName ); + + TInt bitmapId = EMbmAvkonQgn_graf_tab_21; + TInt maskId = EMbmAvkonQgn_graf_tab_21_mask; + AknIconUtils::ValidateLogicalAppIconId( fileName, bitmapId, maskId ); + _LIT( KValidateLogicalAppIconId, "ValidateLogicalAppIconId test" ); + AssertTrueL( ETrue, KValidateLogicalAppIconId ); + + TBool isMifFile = AknIconUtils::IsMifFile( fileName ); + _LIT( KIsMifFile, "IsMifFile test" ); + AssertTrueL( ETrue, KIsMifFile ); + + TBool isMifIcon = AknIconUtils::IsMifIcon( bitmap ); + _LIT( KIsMifIcon, "IsMifIcon test" ); + AssertTrueL( ETrue, KIsMifIcon ); + + CFbsBitmap *bitmapForDms = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bitmapForDms ); + bitmapForDms->Create( size, ENone ); + + TInt dimensions1 = AknIconUtils::GetContentDimensions( + bitmapForDms, size ); + _LIT( KGetContentDimensions1, "GetContentDimensions1 test" ); + AssertTrueL( ETrue, KGetContentDimensions1 ); + + TAknContentDimensions contentDimensions; + TInt dimensions2 = AknIconUtils::GetContentDimensions( + bitmapForDms, contentDimensions ); + _LIT( KGetContentDimensions2, "GetContentDimensions2 test" ); + AssertTrueL( ETrue, KGetContentDimensions2 ); + CleanupStack::PopAndDestroy( bitmapForDms ); + + CAknIcon* sourceIcon = CAknIcon::NewL(); + CleanupStack::PushL( sourceIcon ); + + CFbsBitmap* fbsBitmap2 = NULL; + CFbsBitmap* fbsBitmapMask2 = NULL; + AknIconUtils::CreateIconL( fbsBitmap2, fbsBitmapMask2, + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_graf_tab_21, + EMbmAvkonQgn_graf_tab_21_mask ); + sourceIcon->SetBitmap( fbsBitmap2 ); + sourceIcon->SetMask( fbsBitmapMask2 ); + + CAknIcon* createIcon5 = AknIconUtils::CreateIconL( sourceIcon ); + _LIT( KCreateIconL5, "CreateIconL with SourceIcon test" ); + AssertTrueL( ETrue, KCreateIconL5 ); + delete createIcon5; + CleanupStack::Pop( sourceIcon ); + + CFbsBitmap* sourceBitmap = NULL; + CFbsBitmap* maskBitmap = NULL; + AknIconUtils::CreateIconLC( sourceBitmap, maskBitmap, + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_graf_tab_21, + EMbmAvkonQgn_graf_tab_21_mask ); + + CFbsBitmap* createIcon6 = AknIconUtils::CreateIconL( sourceBitmap ); + _LIT( KCreateIconL6, "CreateIconL with SourceBitmap test" ); + AssertTrueL( ETrue, KCreateIconL6 ); + CleanupStack::Pop( 2 ); + delete maskBitmap; + delete createIcon6; + + TRgb color = ( KRgbBlack, KRgbRed, KRgbGreen ); + AknIconUtils::SetIconColor( bitmap, color ); + _LIT( KSetIconColor, "SetIconColor test" ); + AssertTrueL( ETrue, KSetIconColor ); + CleanupStack::PopAndDestroy( 3 ); + } + +// --------------------------------------------------------------------------- +// CBCTestForIcons::TestCAknIcon +// --------------------------------------------------------------------------- +// +void CBCTestForIcons::TestCAknIconL() + { + CAknIcon* icon = CAknIcon::NewL(); + _LIT( KNewL, "NewL For CAknIcon test" ); + AssertTrueL( ETrue, KNewL ); + + CFbsBitmap* fbsBitmap = icon->Bitmap(); + _LIT( KBitmap, "Bitmap For CAknIcon test" ); + AssertTrueL( ETrue, KBitmap ); + + CFbsBitmap* fbsBitmapMask = icon->Mask(); + _LIT( KMask, "Mask For CAknIcon test" ); + AssertTrueL( ETrue, KMask ); + + icon->SetBitmap( fbsBitmap ); + _LIT( KSetBitmap, "SetBitmap test" ); + AssertTrueL( ETrue, KSetBitmap ); + + icon->SetMask( fbsBitmapMask ); + _LIT( KSetMask, "SetMask test" ); + AssertTrueL( ETrue, KSetMask ); + + delete icon; + } +// --------------------------------------------------------------------------- +// CBCTestForIcons::TestIcons +// --------------------------------------------------------------------------- +// +void CBCTestForIcons::TestIconsL() + { + //Test for akniconsrvclient.h + + TInt connect = RAknIconSrvClient::Connect(); + _LIT( KConnect, "RAknIconSrvClient::Connect test" ); + AssertTrueL( ETrue, KConnect ); + + RAknIconSrvClient::Disconnect(); + _LIT( KDisconnect, "RAknIconSrvClient::Disconnect test" ); + AssertTrueL( ETrue, KDisconnect ); + + TestAknIconUtilsL(); + + TestCAknIconL(); + } + +// --------------------------------------------------------------------------- +// CBCTestIconObserver::BitmapChanged +// --------------------------------------------------------------------------- +// +void CBCTestIconObserver::BitmapChanged( CFbsBitmap* ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestFileProvider::CBCTestFileProvider() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestFileProvider::~CBCTestFileProvider() + { + } + +// --------------------------------------------------------------------------- +// implementation of RetrieveIconFileHandleL +// --------------------------------------------------------------------------- +// +void CBCTestFileProvider::RetrieveIconFileHandleL( RFile& aFile, + const TIconFileType aType ) + { + if ( !iEnv ) + { + iEnv = CEikonEnv::Static(); + } + RFs tempFs = iEnv->FsSession(); + if ( aType == EMbmFile ) + { + TInt result = aFile.Open( tempFs, AknIconUtils::AvkonIconFileName(), + EFileShareReadersOnly ); + + result = result; + } + else + { + _LIT( KMifFileName, "z:\\resource\\apps\\avkon2.mif" ); + TInt result = aFile.Open( tempFs, KMifFileName, EFileShareReadersOnly ); + result = result; + } + } + +// --------------------------------------------------------------------------- +// implementation of Finished +// --------------------------------------------------------------------------- +// +void CBCTestFileProvider::Finished() + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestforslider.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestforslider.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,276 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + + +#include "bctestforslider.h" +#include "bctestsliderandiconscontainer.h" +#include "bctestsliderandicons.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestForSlider* CBCTestForSlider::NewL( + CBCTestSliderAndIconsContainer* aContainer ) + { + CBCTestForSlider* self = new( ELeave ) CBCTestForSlider( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestForSlider::CBCTestForSlider( + CBCTestSliderAndIconsContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestForSlider::~CBCTestForSlider() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestForSlider::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestForSlider::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestForSlider::BuildScriptL() + { + // Add script as your need. + AddTestL( LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestForSlider::RunL +// --------------------------------------------------------------------------- +// +void CBCTestForSlider::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdEmptyOutline || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + switch ( aCmd ) + { + case EBCTestSlider: + TestSliderL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestForSlider::TestSlider +// --------------------------------------------------------------------------- +// +void CBCTestForSlider::TestSliderL() + { + CAknSlider* slider1 = new( ELeave ) CAknSlider(); + CleanupStack::PushL( slider1 ); + _LIT( KCAknSlider, "CAknSlider test" ); + AssertTrueL( ETrue, KCAknSlider ); + + TResourceReader reader1; + iEnv->CreateResourceReaderLC( reader1, R_BCTESTSLIDERANDICONS_SLIDER ); + slider1->ConstructFromResourceL( reader1 ); + _LIT( KConstructFromResourceL, "ConstructFromResourceL test" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + CleanupStack::PopAndDestroy(); //reader + + TInt value = slider1->Value(); + _LIT( KValue, "Value test" ); + AssertTrueL( ETrue, KValue ); + + slider1->SetValueL( value ); + _LIT( KSetValueL, "SetValueL test" ); + AssertTrueL( ETrue, KSetValueL ); + + CleanupStack::PopAndDestroy( slider1 ); + slider1 = NULL; + + CAknSlider* slider = new( ELeave ) CAknSlider(); + CleanupStack::PushL( slider ); + + TResourceReader reader2; + iEnv->CreateResourceReaderLC( reader2, R_BCTESTSLIDERANDICONS_SLIDER ); + slider->ConstructFromResourceL( iContainer, value, reader2 ); + _LIT( KConstructFromResourceL2, + "ConstructFromResourceL For Control test" ); + AssertTrueL( ETrue, KConstructFromResourceL2 ); + CleanupStack::PopAndDestroy(); //reader + + TInt minimumValue = 0; + TInt maximumValue =100; + slider->SetRange( minimumValue, maximumValue ); + _LIT( KSetRange, "SetRange test" ); + AssertTrueL( ETrue, KSetRange ); + + TInt stepSize = 2; + slider->SetStepSize( stepSize ); + _LIT( KSetStepSize, "SetStepSizetest" ); + AssertTrueL( ETrue, KSetStepSize ); + + _LIT( KText, "xxxxxxxxx" ); + slider->SetMinimumTextL( KText ); + _LIT( KSetMinimumTextL, "SetMinimumTextL test" ); + AssertTrueL( ETrue, KSetMinimumTextL ); + + slider->SetMaximumTextL( KText ); + _LIT( KSetMaximumTextL, "SetMaximumTextL test" ); + AssertTrueL( ETrue, KSetMaximumTextL ); + + TInt decimalPlaces = 0; + slider->SetDecimalPlaces( decimalPlaces ); + _LIT( KSetDecimalPlaces, "SetDecimalPlaces test" ); + AssertTrueL( ETrue, KSetDecimalPlaces ); + + decimalPlaces = slider->DecimalPlaces(); + _LIT( KDecimalPlaces, "DecimalPlaces test" ); + AssertTrueL( ETrue, KDecimalPlaces ); + + CFbsBitmap* bitmap = slider->CreateBitmapL( + value, R_BCTESTSLIDERANDICONS_SLIDER ); + _LIT( KCreateBitmapL, "CreateBitmapL test" ); + AssertTrueL( ETrue, KCreateBitmapL ); + delete bitmap; + + CFbsBitmap* bitmap2 = slider->CreateBitmapL( + value, minimumValue, maximumValue ); + _LIT( KCreateBitmapL2, "CreateBitmapL with Min and Max test" ); + AssertTrueL( ETrue, KCreateBitmapL2 ); + delete bitmap2; + + CGulIcon* gulIcon = slider->CreateSetStyleListBoxIconL( + value, R_BCTESTSLIDERANDICONS_SLIDER ); + _LIT( KCreateSetStyleListBoxIconL, "CreateSetStyleListBoxIconL test" ); + AssertTrueL( ETrue, KCreateSetStyleListBoxIconL ); + delete gulIcon; + + CGulIcon* gulIcon2 = slider->CreateSetStyleListBoxIconL( + value, minimumValue, maximumValue ); + _LIT( KCreateSetStyleListBoxIconL2, + "CreateSetStyleListBoxIconL with maxmumValue test" ); + AssertTrueL( ETrue, KCreateSetStyleListBoxIconL2 ); + delete gulIcon2; + + slider->HandleResourceChange( R_BCTESTSLIDERANDICONS_SLIDER ); + _LIT( KHandleResourceChange, "HandleResourceChange test" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + TInt numberOfLines = slider->NumberOfLines(); + _LIT( KNumberOfLines, "NumberOfLines test" ); + AssertTrueL( ETrue, KNumberOfLines ); + + HBufC* bufC = slider->CreateValueTextInHBufCL( + value, R_BCTESTSLIDERANDICONS_SLIDER ); + _LIT( KCreateValueTextInHBufCL, "CreateValueTextInHBufCL test" ); + AssertTrueL( ETrue, KCreateValueTextInHBufCL ); + delete bufC; + + TPointerEvent pointerEvent = { TPointerEvent::EButton1Up, + EModifierAutorepeatable, TPoint( 20,20 ), TPoint( 0,0 ) }; + slider->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, "HandlePointerEventL test" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + +#ifdef __S60_32__ + + + TUint slTickInterval = slider->TickInterval(); + _LIT( KTickInterval, "TickInterval test" ); + AssertTrueL( ETrue, KTickInterval ); + + slider->SetTickInterval(slTickInterval+1); + slider->SetTickInterval(slTickInterval); + _LIT( KSetTickInterval, "SetTickInterval test" ); + AssertTrueL( ETrue, KSetTickInterval ); + + + TBool slTicksEnabled = slider->TicksEnabled(); + _LIT( KTicksEnabled, "TicksEnabled test" ); + AssertTrueL( ETrue, KTicksEnabled ); + + slider->SetTicksEnabled(!slTicksEnabled); + slider->SetTicksEnabled(slTickInterval); + _LIT( KSetTicksEnabled, "SetTicksEnabled test" ); + AssertTrueL( ETrue, KSetTicksEnabled ); + + + TUint32 slPositionIndicators = slider->PositionIndicators(); + _LIT( KPositionIndicators, "PositionIndicators test" ); + AssertTrueL( ETrue, KPositionIndicators ); + + slider->SetPositionIndicators(slPositionIndicators+1); + slider->SetPositionIndicators(slPositionIndicators); + _LIT( KSetPositionIndicators, "SetPositionIndicators test" ); + AssertTrueL( ETrue, KSetPositionIndicators ); + + + + TBool slUsesDefaultGraphics = slider->UsesDefaultGraphics(0); + _LIT( KUsesDefaultGraphics, "UsesDefaultGraphics test" ); + AssertTrueL( ETrue, KUsesDefaultGraphics ); + + + slider->UseDefaultGraphics(0); + _LIT( KUseDefaultGraphics, "UseDefaultGraphics test" ); + AssertTrueL( ETrue, KUseDefaultGraphics ); + +#endif /* __S60_32__ */ + + + + + + CleanupStack::PopAndDestroy( slider ); + _LIT( KDesCAknSlider, "~CAknSlider test" ); + AssertTrueL( ETrue, KDesCAknSlider ); + slider = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon SliderAndIcons test app +* +*/ + + +// INCLUDE FILES +#include "BCTestSliderAndIconsApp.h" +#include "BCTestSliderAndIconsDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestSliderAndIconsApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestSliderAndIconsApp::AppDllUid() const + { + return KUidBCTestSliderAndIcons; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestSliderAndIconsApp::CreateDocumentL() +// Creates CBCTestSliderAndIconsDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestSliderAndIconsApp::CreateDocumentL() + { + return CBCTestSliderAndIconsDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestSliderAndIconsApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestSliderAndIconsApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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 bc for sliderandicons control api(s) +* +*/ + +#include +#include + +#include "bctestsliderandiconsAppUi.h" +#include "bctestsliderandicons.hrh" +#include "bctestsliderandiconsview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestSliderAndIconsAppUi::CBCTestSliderAndIconsAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestSliderAndIconsView* view = CBCTestSliderAndIconsView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestSliderAndIconsAppUi::~CBCTestSliderAndIconsAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSliderAndIconsAppUi::~CBCTestSliderAndIconsAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconscontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconscontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestsliderandiconscontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSliderAndIconsContainer::CBCTestSliderAndIconsContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSliderAndIconsContainer::~CBCTestSliderAndIconsContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestSliderAndIconsContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestSliderAndIconsContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestSliderAndIconsContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon SliderAndIcons test application +* +*/ + + +// INCLUDE FILES +#include "BCTestSliderAndIconsDocument.h" +#include "BCTestSliderAndIconsAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestSliderAndIconsDocument* CBCTestSliderAndIconsDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSliderAndIconsDocument* CBCTestSliderAndIconsDocument::NewL( CEikApplication& aApp ) + { + CBCTestSliderAndIconsDocument* self = new( ELeave ) CBCTestSliderAndIconsDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestSliderAndIconsDocument::~CBCTestSliderAndIconsDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestSliderAndIconsDocument::~CBCTestSliderAndIconsDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestSliderAndIconsDocument::CBCTestSliderAndIconsDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestSliderAndIconsDocument::CBCTestSliderAndIconsDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestSliderAndIconsDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestSliderAndIconsDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestSliderAndIconsAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestsliderandicons/src/bctestsliderandiconsview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestsliderandicons.hrh" +#include +#include "bctestsliderandiconsview.h" +#include "bctestsliderandiconscontainer.h" +#include "bctestutil.h" +#include "bctestforslider.h" +#include "bctestforicons.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestSliderAndIconsView* CBCTestSliderAndIconsView::NewL() + { + CBCTestSliderAndIconsView* self = new( ELeave ) CBCTestSliderAndIconsView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSliderAndIconsView::CBCTestSliderAndIconsView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsView::ConstructL() + { + BaseConstructL( R_BCTESTSLIDERANDICONS_VIEW ); + + iContainer = new( ELeave ) CBCTestSliderAndIconsContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestForSlider::NewL( iContainer ), + _L("Slider test case") ); + iTestUtil->AddTestCaseL( CBCTestForIcons::NewL( iContainer ), + _L("Icons test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSliderAndIconsView::~CBCTestSliderAndIconsView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestSliderAndIconsView::Id() const + { + return KBCTestSliderAndIconsViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestSliderAndIconsView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestSliderAndIconsView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bctestutilities.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bctestutilities.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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: project specification file for the BCTestUtilities. +* +*/ + + +TARGET bctestutilities.exe +TARGETTYPE exe +UID 0x0 0x200045C7 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestutilities.rss +HEADER +TARGETPATH /resource/apps +END // RESOURCE + +//LANG SC + +SOURCEPATH ../Src +SOURCE bctestutilitiesapp.cpp +SOURCE bctestutilitiesdocument.cpp +SOURCE bctestutilitiesappui.cpp +SOURCE bctestutilitiesview.cpp +SOURCE bctestutilitiescontainer.cpp +SOURCE bctestutilitiescase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY egul.lib +LIBRARY eikctl.lib +LIBRARY bafl.lib +LIBRARY fontutils.lib +LIBRARY gdi.lib +LIBRARY fbscli.lib + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/bctestutilities_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bctestutilities.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bctestutilities.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,508 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME UTIL + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestutilities.hrh" +#include "bctestutilities.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestUtilities"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestutilities_menubar_main; + cba = r_bctestutilities_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestutilities_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_view +// AVKON_VIEW for CBCTestUtilitiesView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestutilities_view + { + menubar = r_bctestutilities_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestutilities_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestutilities_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestutilities_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestutilities_case_menu + { + items = + { + MENU_ITEM + { + cascade = r_bctestutilities_aknutils_menu; + txt = qtn_bctestutilities_aknutils_menu; + }, + MENU_ITEM + { + command = EBCTestCmdAknBidiTextUtils; + txt = qtn_bctestutilities_aknbiditextutils; + }, + MENU_ITEM + { + command = EBCTestCmdAknEnv; + txt = qtn_bctestutilities_aknenv; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestutilities_aknutils_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdTextUtils; + txt = qtn_bctestutilities_fortextutils; + }, + MENU_ITEM + { + command = EBCTestCmdSelectionService; + txt = qtn_bctestutilities_selection; + }, + MENU_ITEM + { + command = EBCTestCmdAknFind; + txt = qtn_bctestutilities_aknfind; + }, + MENU_ITEM + { + command = EBCTestCmdAknEditUtils; + txt = qtn_bctestutilities_akneditutils; + }, + MENU_ITEM + { + command = EBCTestCmdFilter; + txt = qtn_bctestutilities_filter; + }, + MENU_ITEM + { + command = EBCTestCmdAknLayoutUtils; + txt = qtn_bctestutilities_aknlayoututils; + }, + MENU_ITEM + { + command = EBCTestCmdAknDraw; + txt = qtn_bctestutilities_akndraw; + }, + MENU_ITEM + { + command = EBCTestCmdOtherAknUtils; + txt = qtn_bctestutilities_otheraknutils; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestutilities_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestutilities_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestutilities_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestutilities_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestutilities_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestUtilitiesCbaCmdNext; + txt = qtn_bctestutilities_cba_next; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_aknatlist_double +// ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestutilities_single + { + array_id = r_bctestutilities_item_single; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_item_single +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestutilities_item_single + { + items = + { + LBUF + { + txt = qtn_bctestutilities_item_s1; + }, + LBUF + { + txt = qtn_bctestutilities_item_s2; + }, + LBUF + { + txt = qtn_bctestutilities_item_s3; + }, + LBUF + { + txt = qtn_bctestutilities_item_s4; + }, + LBUF + { + txt = qtn_bctestutilities_item_s5; + }, + LBUF + { + txt = qtn_bctestutilities_item_s6; + }, + LBUF + { + txt = qtn_bctestutilities_item_s7; + }, + LBUF + { + txt = qtn_bctestutilities_item_s8; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_ceik_menu_pane_list +// Menu Pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_ceik_menu_pane_list + { + items = + { + MENU_ITEM + { + command = EAknMarkAll; + flags = EEikMenuItemDimmed; + txt = "item1"; + }, + MENU_ITEM + { + command = EAknUnmarkAll; + flags = EEikMenuItemDimmed; + txt = "item2"; + }, + MENU_ITEM + { + command = EAknCmdEditTextMenu; + flags = EEikMenuItemDimmed | EEikMenuItemSeparatorAfter; + txt = "item3"; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutilities_double +// ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestutilities_double + { + array_id = r_bctestutilities_item_double; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestutil_item_double +// Items array for ListBox( Double ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestutilities_item_double + { + items = + { + LBUF + { + txt = qtn_bctestutilities_item_d1; + }, + LBUF + { + txt = qtn_bctestutilities_item_d2; + }, + LBUF + { + txt = qtn_bctestutilities_item_d3; + }, + LBUF + { + txt = qtn_bctestutilities_item_d4; + }, + LBUF + { + txt = qtn_bctestutilities_item_d5; + }, + LBUF + { + txt = qtn_bctestutilities_item_d6; + }, + LBUF + { + txt = qtn_bctestutilities_item_d7; + }, + LBUF + { + txt = qtn_bctestutilities_item_d8; + } + }; + } + +//---------------------------------------------------- +// r_bctestutil_edwin +//---------------------------------------------------- +// +RESOURCE EDWIN r_bctestutil_edwin + { + flags = EAknEditorFlagDefault; + width = 30; + lines= 1; + maxlength = 50; + } + +//---------------------------------------------------- +// r_bctestutil_label +//---------------------------------------------------- +// +RESOURCE LABEL r_bctestutil_label + { + flags = 0; + horiz_align = EEikLabelAlignHCenter; + vert_align = EEikLabelAlignVTop; + standard_font = EEikLabelFontNormal; + reserve_length = 0; + txt = qtn_bctestutilities_label; + } + +//---------------------------------------------------- +// r_bctestutil_image +//---------------------------------------------------- +// +RESOURCE IMAGE r_bctestutil_image + { + horiz_align = EEikLabelAlignHCenter; + vert_align = EEikLabelAlignVTop; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_marked_add; + bmpmask = EMbmAvkonQgn_indi_marked_add_mask; + } + +//---------------------------------------------------- +// r_bctestutil_seced +//---------------------------------------------------- +// +RESOURCE SECRETED r_bctestutil_seced + { + num_letters = 16; + } + +//---------------------------------------------------- +// r_bctestutil_layout_text +//---------------------------------------------------- +// +RESOURCE AVKON_LAYOUT_TEXT r_bctestutil_layout_text + { + font = ELatinPlain12; + C = 0; + l = 5; + r = 5; + B = 5; + W = 100; + J = ELayoutAlignLeft; + } + +//---------------------------------------------------- +// r_bctestutil_layout_rect +//---------------------------------------------------- +// +RESOURCE AVKON_LAYOUT_RECT r_bctestutil_layout_rect + { + C = 0; + l = 0; + t = 0; + r = 100; + b = 50; + W = 100; + H = 50; + } + +//---------------------------------------------------- +// r_bctestutil_iconarray +//---------------------------------------------------- +// +RESOURCE AKN_ICON_ARRAY r_bctestutil_iconarray + { + bmpfile = AVKON_ICON_FILE; + icons = + { + AKN_ICON + { + iconId = EMbmAvkonQgn_indi_marked_add; + maskId = EMbmAvkonQgn_indi_marked_add_mask; + }, + AKN_ICON + { + iconId = EMbmAvkonQgn_indi_alarm_add; + maskId = EMbmAvkonQgn_indi_alarm_add_mask; + } + }; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bctestutilities_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bctestutilities_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200045C7 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestUtilities"; + localisable_resource_file = "\\resource\\apps\\BCTestUtilities"; + localisable_resource_id = R_BCTESTUTILITIES_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestUtilities.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilities.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilities.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: BCTestUtilities resource header file +* +*/ + + +#ifndef BCTESTUTILITIES_HRH +#define BCTESTUTILITIES_HRH + +enum TBCTestUtilitiesMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdTextUtils, + EBCTestCmdSelectionService, + EBCTestCmdAknFind, + EBCTestCmdAknEditUtils, + EBCTestCmdFilter, + EBCTestCmdAknLayoutUtils, + EBCTestCmdAknDraw, + EBCTestCmdOtherAknUtils, + EBCTestCmdAknBidiTextUtils, + EBCTestCmdAknEnv, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestUtilitiesCba + { + EBCTestUtilitiesCbaCmdNext = 0x6300 + }; + +#endif // BCTESTTEMPLATE_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilities.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilities.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: BCTestUtilities localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTestUtilities" +#define qtn_apps_tavl_grid "BCTestUtilities" + +// MenuBar +#define qtn_bctestutilities_menubar "Option" +#define qtn_bctestutilities_cba_next "Next" +#define qtn_bctestutilities_autotest "Autotest" +#define qtn_bctestutilities_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestutilities_aknutils_menu "Test AknUtils" +#define qtn_bctestutilities_fortextutils "Test AknTextUtils" +#define qtn_bctestutilities_selection "Test AknSelectionService" +#define qtn_bctestutilities_aknfind "Test AknFind" +#define qtn_bctestutilities_akneditutils "Test AknEditUtils" +#define qtn_bctestutilities_filter "Test filter model and item" +#define qtn_bctestutilities_aknlayoututils "Test AknLayoutUtils" +#define qtn_bctestutilities_akndraw "Test AknDraw" +#define qtn_bctestutilities_otheraknutils "Test others" + +#define qtn_bctestutilities_aknbiditextutils "Test AknBidiTextUtils" +#define qtn_bctestutilities_aknenv "Test CAknEnv" + +// label +#define qtn_bctestutilities_label "Test Utilities" + +//----------------------------------------------------------------------------- +// single item +#define qtn_bctestutilities_item_s1 " \taaaaaa" +#define qtn_bctestutilities_item_s2 " \tbbbbbb" +#define qtn_bctestutilities_item_s3 " \tcccccc" +#define qtn_bctestutilities_item_s4 " \tdddddd" +#define qtn_bctestutilities_item_s5 " \teeeeee" +#define qtn_bctestutilities_item_s6 " \tffffff" +#define qtn_bctestutilities_item_s7 " \tgggggg" +#define qtn_bctestutilities_item_s8 " \thhhhhh" + +// double item +#define qtn_bctestutilities_item_d1 " \tAAAAAA\taaaaaa" +#define qtn_bctestutilities_item_d2 " \tBBBBBB\tbbbbbb" +#define qtn_bctestutilities_item_d3 " \tCCCCCC\tcccccc" +#define qtn_bctestutilities_item_d4 " \tThis is a very long item text which will be truncated always\t\ + but this may be even longer item" +#define qtn_bctestutilities_item_d5 " \tEEEEEE\teeeeee" +#define qtn_bctestutilities_item_d6 " \tFFFFFF\tffffff" +#define qtn_bctestutilities_item_d7 " \tGGGGGG\tgggggg" +#define qtn_bctestutilities_item_d8 " \tHHHHHH\thhhhhh" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +/* +* 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 "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: Application +* +*/ + + +#ifndef C_CBCTESRUTILITIESAPP_H +#define C_CBCTESRUTILITIESAPP_H + +#include + +const TUid KUidBCTestUtilities = { 0x200045C7 }; // UID of the application. + +/** +* CBCTestUtilitiesApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestUtilitiesApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestUtilitiesDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestUtilities ). + * @return The value of KUidBCTestUtilities. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESRUTILITIESAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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 BC for Utilities control API. +* +*/ + + +#ifndef C_BCTESRUTILITIESAPPUI_H +#define C_BCTESRUTILITIESAPPUI_H + +#include + +class CBCTestUtilitiesView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestUtilitiesAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * constructor + */ + CBCTestUtilitiesAppUi(); + + /** + * symbian 2nd constructor + */ + void ConstructL(); + + /** + * destructor + */ + virtual ~CBCTestUtilitiesAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestUtilitiesView* iView; + + }; + +#endif // C_BCTESTTEMPLATEAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiescase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiescase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,148 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESRUTILITIESCASE_H +#define C_BCTESRUTILITIESCASE_H + +#include + +#include "bctestcase.h" + +class CBCTestUtilitiesContainer; +class CCoeControl; +class CEikFormattedCellListBox; +class CEikColumnListBox; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestUtilitiesCase: public CBCTestCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestUtilitiesCase* NewL( CBCTestUtilitiesContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestUtilitiesCase(); + +// from CBCTestUtilitiesCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Release resource used in test + */ + void ReleaseCase(); + +// test functions of AknUtils + + void TestTextUtilsL(); + + void TestSelectionServiceL(); + + void TestAknFindL(); + + void TestAknEditUtilsL(); + + void TestOtherAknUtilsL(); + + void TestFilterModelAndItemL(); + + void TestAknLayoutUtilsL(); + + void TestAknDrawL(); + +// test function of AknBidiTextUtils + + void TestAknBidiTextUtilsL(); + +// test functions of CAknEnv + + void TestAknEnvL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestUtilitiesCase( CBCTestUtilitiesContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestUtilitiesContainer* iContainer; + + /** + * Pointer to formatted cell list box. + * Own + */ + CEikFormattedCellListBox* iFormatList; + + /** + * Pointer to column list box. + * Own + */ + CEikColumnListBox* iColumnList; + + /** + * Pointer to CEikonEnv. + * Not own + */ + CEikonEnv* iEnv; + + }; + +/** + * Test class implement MCoeControlObserver + */ +class TBCTestControlObserver: public MCoeControlObserver + { +public: + + void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); + + }; + +#endif // C_BCTESRUTILITIESCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiescontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiescontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef C_BCTESRUTILITIESCONTAINER_H +#define C_BCTESRUTILITIESCONTAINER_H + +#include + +class CEikColumnListBox; +class CBCTestUtilitiesCase; + +/** +* container class +*/ +class CBCTestUtilitiesContainer: public CCoeControl + { + friend class CBCTestUtilitiesCase; + +public: + +// constructor and destructor + + /** + * C++ default constructor + */ + CBCTestUtilitiesContainer(); + + /** + * Destructor + */ + virtual ~CBCTestUtilitiesContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESRUTILITIESCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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: Document +* +*/ + + +#ifndef C_BCTESTBCTESRUTILITIESDOCUMENT_H +#define C_BCTESTBCTESRUTILITIESDOCUMENT_H + +#include + +class CEikAppUi; + +/** + * CBCTestUtilitiesDocument application class. + */ +class CBCTestUtilitiesDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestUtilitiesDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestUtilitiesDocument(); + +private: + +// Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestUtilitiesDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestUtilitiesAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTEMPLATEDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/inc/bctestutilitiesview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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 BC for Utilities control API. +* +*/ + + +#ifndef C_BCTESRUTILITIESVIEW_H +#define C_BCTESRUTILITIESVIEW_H + +#include + +const TUid KBCTestUtilitiesViewId = { 1 }; + +class CBCTestUtilitiesContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestUtilitiesView : public CAknView + { +public: + +// Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestUtilitiesView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestUtilitiesView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestUtilitiesView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestUtilitiesContainer* iContainer; + + }; + +#endif // C_BCTESRUTILITIESVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/sis/bctestutilities.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/sis/bctestutilities.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestUtilities.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestUtilitites"},(0x200045C7),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestUtilities.exe"- +"!:\sys\bin\BCTestUtilities.exe" + +"\epoc32\data\z\resource\apps\BCTestUtilities.rsc"- +"!:\resource\apps\bctestutilities.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestUtilities_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestUtilities_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Application +* +*/ + + +#include + +#include "BCTestUtilitiesApp.h" +#include "BCTestUtilitiesDocument.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestUtilitiesApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestUtilitiesApp::AppDllUid() const + { + return KUidBCTestUtilities; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestUtilitiesApp::CreateDocumentL() +// Creates CBCTestUtilitiesDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestUtilitiesApp::CreateDocumentL() + { + return CBCTestUtilitiesDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestUtilitiesApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestUtilitiesApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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 bc for utilities control api(s) +* +*/ + + +#include +#include + +#include "bctestutilitiesappui.h" +#include "bctestutilities.hrh" +#include "bctestutilitiesview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesAppUi::CBCTestUtilitiesAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestUtilitiesView* view = CBCTestUtilitiesView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestUtilitiesAppUi::~CBCTestUtilitiesAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestUtilitiesAppUi::~CBCTestUtilitiesAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestUtilitiesAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiescase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiescase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1209 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestutilitiescase.h" +#include "bctestutilitiescontainer.h" +#include "bctestutilities.hrh" + +const TInt KShortBuffer = 20; +const TInt KBufferSize = 64; +const TInt KSearchFieldMaxLength = 256; + +_LIT( KShortStr, "Short" ); +_LIT( KLongStr, "A long string buffer to clip" ); +_LIT( KChopText, "Chop Text.\nClip Text for test" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesCase* CBCTestUtilitiesCase::NewL( + CBCTestUtilitiesContainer* aContainer ) + { + CBCTestUtilitiesCase* self = new( ELeave ) + CBCTestUtilitiesCase( aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesCase::CBCTestUtilitiesCase( + CBCTestUtilitiesContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesCase::~CBCTestUtilitiesCase() + { + delete iFormatList; + delete iColumnList; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + + iFormatList = new( ELeave ) CEikFormattedCellListBox(); + iFormatList->SetContainerWindowL( *iContainer ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, + R_BCTESTUTILITIES_DOUBLE ); + iFormatList->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + + iColumnList = new( ELeave ) CAknSingleStyleListBox(); + iColumnList->SetContainerWindowL( *iContainer ); + iEnv->CreateResourceReaderLC( reader, + R_BCTESTUTILITIES_SINGLE ); + iColumnList->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::BuildScriptL() + { + AddTestL( DELAY( 1 ), TEND ); + TInt loop = EBCTestCmdOtherAknUtils - EBCTestCmdTextUtils; + for ( TInt i = 0; i <= loop; i++ ) + { + AddTestL( LeftCBA, KeyOK, REP( Down, i ), KeyOK, TEND ); + } + // for EBCTestCmdAknBidiTextUtils + AddTestL( LeftCBA, Down, KeyOK, TEND ); + + // for EBCTestCmdAknEnv + AddTestL( LeftCBA, REP( Down, 2 ), KeyOK, TEND ); + AddTestL( RightCBA, RightCBA, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::RunL( TInt aCmd ) + { + ReleaseCase(); + switch ( aCmd ) + { + case EBCTestCmdTextUtils: + TestTextUtilsL(); + break; + case EBCTestCmdSelectionService: + TestSelectionServiceL(); + break; + case EBCTestCmdAknFind: + TestAknFindL(); + break; + case EBCTestCmdAknEditUtils: + TestAknEditUtilsL(); + break; + case EBCTestCmdFilter: + TestFilterModelAndItemL(); + break; + case EBCTestCmdAknLayoutUtils: + TestAknLayoutUtilsL(); + break; + case EBCTestCmdAknDraw: + TestAknDrawL(); + break; + case EBCTestCmdOtherAknUtils: + TestOtherAknUtilsL(); + break; + case EBCTestCmdAknBidiTextUtils: + TestAknBidiTextUtilsL(); + break; + case EBCTestCmdAknEnv: + TestAknEnvL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::ReleaseCase() + { + iContainer->ResetControl(); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestTextUtils +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestTextUtilsL() + { + TBool result; + TBuf smallBuffer( KShortStr ); + TBuf longBuffer( KLongStr ); + + const CFont& font = *(iEnv->TitleFont()); + TInt maxWidthInPixels = 20; + result = AknTextUtils::ClipToFit( smallBuffer, font, maxWidthInPixels); + _LIT( KTextUtilTest1, "AknTextUtils::ClipToFit(TDes&,const CFont& TInt, TClipDirection,TInt,const TDesC&)" ); + AssertTrueL( result, KTextUtilTest1 ); + + TInt itemIndex = 0; + TInt columnNumber = 0; + CColumnListBoxData *data = iColumnList->ItemDrawer()->ColumnData(); + data->SetColumnFontL( columnNumber, iEnv->NormalFont() ); + result = AknTextUtils::ClipToFit( + longBuffer, AknTextUtils::EClipFromEnd, iColumnList, + itemIndex, columnNumber ); + _LIT( KTextUtilTest2, "AknTextUtils::ClipToFit with CEikColumnListBox" ); + AssertTrueL( result, KTextUtilTest2 ); + + longBuffer.Copy( KLongStr ); + TInt subCellNumber = 0; + CFormattedCellListBoxData* formatData = + iFormatList->ItemDrawer()->FormattedCellData(); + formatData->SetSubCellFontL( subCellNumber, iEnv->NormalFont() ); + result = AknTextUtils::ClipToFit( + longBuffer, AknTextUtils::EClipFromEnd, iFormatList, itemIndex, + subCellNumber ); + _LIT( KTextUtilTest3, + "AkntextUtils::ClipToFit with CEikFormattedCellListBox" ); + AssertTrueL( result, KTextUtilTest3 ); + + TInt lineWidth = 10; + CArrayFixFlat* arrayPtrC = new( ELeave )CArrayFixFlat( 5 ); + CleanupStack::PushL( arrayPtrC ); + AknTextUtils::WrapToArrayL( longBuffer, lineWidth, font, *arrayPtrC ); + _LIT( KTextUtilTest4, "AkntextUtils::WrapToArrayL with TInt" ); + AssertTrueL( ETrue, KTextUtilTest4 ); + arrayPtrC->Reset(); + + CArrayFixFlat* arrayWidth = new( ELeave )CArrayFixFlat( 1 ); + CleanupStack::PushL( arrayWidth ); + arrayWidth->AppendL(20); + arrayWidth->AppendL(20); + arrayWidth->AppendL(20); + AknTextUtils::WrapToArrayL( longBuffer, *arrayWidth, font, *arrayPtrC ); + _LIT( KTextUtilTest5, "AknTextUtils::WrapToArrayL with CArrayFix" ); + AssertTrueL( ETrue, KTextUtilTest5 ); + arrayPtrC->Reset(); + + AknTextUtils::WrapToArrayAndClipL( longBuffer, *arrayWidth, font, *arrayPtrC ); + _LIT( KTextUtilTest6, "AknTextUtils::WrapToArrayAndClipL with CArryFix" ); + AssertTrueL( ETrue, KTextUtilTest6 ); + arrayPtrC->Reset(); + + longBuffer.Zero(); + longBuffer.Copy( KChopText ); + AknTextUtils::ChopToArrayAndClipL( longBuffer, *arrayWidth, font, *arrayPtrC ); + _LIT( KTextUtilTest7, "AknTextUtils::ChopToArrayAndClipL with width array" ); + AssertTrueL( ETrue, KTextUtilTest7 ); + arrayPtrC->Reset(); + + AknTextUtils::ChopToArrayAndClipL( longBuffer, lineWidth, font, *arrayPtrC ); + _LIT( KTextUtilTest8, "AknTextUtils::ChopToArrayAndClipL with integer width" ); + AssertTrueL( ETrue, KTextUtilTest8 ); + arrayPtrC->Reset(); + + longBuffer.Zero(); + AknTextUtils::WrapToStringL( KLongStr, *arrayWidth, font, longBuffer ); + _LIT( KTextUtilTest9, "AknTextUtils::WrapToStringL" ); + AssertTrueL( ETrue, KTextUtilTest9 ); + + longBuffer.Zero(); + AknTextUtils::WrapToStringAndClipL( KLongStr, *arrayWidth, font, longBuffer ); + _LIT( KTextUtilTest10, "AknTextUtils::WrapToStringAndClipL" ); + AssertTrueL( ETrue, KTextUtilTest10 ); + + CleanupStack::PopAndDestroy(2); // arrayWidth, arrayPtrC + + _LIT( KStripText, "Test\t text\t" ); + longBuffer.Copy( KStripText ); + AknTextUtils::StripCharacters( longBuffer, KAknStripTabs ); + _LIT( KTextUtilTest11, "AknTextUtils::StripCharacters" ); + AssertTrueL( ETrue, KTextUtilTest11 ); + + TChar charReplace = 'F'; + longBuffer.Copy( KStripText ); + AknTextUtils::ReplaceCharacters( longBuffer, KAknReplaceTabs, charReplace ); + _LIT( KTextUtilTest12, "AknTextUtils::ReplaceCharacters" ); + AssertTrueL( ETrue, KTextUtilTest12 ); + + _LIT( KSpace, " " ); + longBuffer.Copy( KStripText ); + AknTextUtils::PackWhiteSpaces( longBuffer, KSpace ); + _LIT( KTextUtilTest13, "AknTextUtils::PackWhiteSpaces" ); + AssertTrueL( ETrue, KTextUtilTest13 ); + + _LIT(KWesternDigits, "12,000,000"); + longBuffer.Copy( KWesternDigits ); + AknTextUtils::LanguageSpecificNumberConversion( longBuffer ); + _LIT( KTextUtilTest14, "AknTextUtils::LanguageSpecificNumberConversion" ); + AssertTrueL( ETrue, KTextUtilTest14 ); + + longBuffer.Copy( KWesternDigits ); + AknTextUtils::ConvertDigitsTo( longBuffer, EDigitTypeArabicIndic ); + _LIT( KTextUtilTest15, "AknTextUtils::ConvertDigitsTo" ); + AssertTrueL( ETrue, KTextUtilTest15 ); + + TBidiText::TDirectionality direct = + AknTextUtils::CurrentScriptDirectionality(); + _LIT( KTextUtilTest16, "AknTextUtils::CurrentScriptDirectionality" ); + AssertTrueL( direct == TBidiText::ELeftToRight, KTextUtilTest16 ); + + TDigitType digitType = AknTextUtils::NumericEditorDigitType(); + _LIT( KTextUtilTest17, "AknTextUtils::NumericEditorDigitType" ); + AssertTrueL( digitType == EDigitTypeWestern, KTextUtilTest17 ); + + longBuffer.Copy( KWesternDigits ); + AknTextUtils::DisplayTextLanguageSpecificNumberConversion( longBuffer ); + _LIT( KTextUtilTest18, + "AknTextUtils::DisplayTextLanguageSpecificNumberConversion" ); + AssertTrueL( ETrue, KTextUtilTest18 ); + + digitType = AknTextUtils::TextEditorDigitType(); + _LIT( KTextUtilTest19, "AknTextUtils::TextEditorDigitType" ); + AssertTrueL( ETrue, KTextUtilTest19 ); + + TBool digitModeQuery = AknTextUtils::DigitModeQuery(); + _LIT( KTextUtilTest20, "AknTextUtils::DigitModeQuery" ); + AssertTrueL( ETrue, KTextUtilTest20 ); + + _LIT( KTestFileName, "import.jpg" ); + longBuffer.Copy( KTestFileName ); + HBufC* buf = AknTextUtils::ConvertFileNameL( longBuffer ); + _LIT( KTextUtilTest21, "AknTextUtils::ConvertFileNameL" ); + AssertNotNullL( buf, KTextUtilTest21 ); + delete buf; + + _LIT( KScalableText, "shorttext\0x0001Long text for test" ); + TPtrC chooseST ( AknTextUtils::ChooseScalableText( KScalableText, font, 60 )); + _LIT( KTextUtilTest22, "AknTextUtils::ChooseScalableText" ); + AssertTrueL( ETrue, KTextUtilTest22 ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestSelectionServiceL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestSelectionServiceL() + { + iContainer->SetControl( iColumnList ); + + TInt command = EAknSoftkeyOk; + AknSelectionService::HandleSelectionListProcessCommandL( + command, iColumnList ); + _LIT( KSelectionTest1, + "AknSelectionService::HandleSelectionListProcessCommandL" ); + AssertTrueL( ETrue, KSelectionTest1 ); + + AknSelectionService::HandleMultiselectionListProcessCommandL( + command, iColumnList ); + _LIT( KSelectionTest2, + "AknSelectionService::HandleMultiselectionListProcessCommandL" ); + AssertTrueL( ETrue, KSelectionTest2 ); + + AknSelectionService::HandleMarkableListProcessCommandL( + EAknCmdMark, iColumnList ); + AknSelectionService::HandleMarkableListProcessCommandL( + EAknCmdUnmark, iColumnList ); + AknSelectionService::HandleMarkableListProcessCommandL( + EAknMarkAll, iColumnList ); + AknSelectionService::HandleMarkableListProcessCommandL( + EAknUnmarkAll, iColumnList ); + _LIT( KSelectionTest3, + "AknSelectionService::HandleMarkableListProcessCommandL" ); + AssertTrueL( ETrue, KSelectionTest3 ); + + TKeyEvent event1 = { '1', '1', 0, 0 }; + TKeyEvent eventLeftShift = { EKeyLeftShift, 0, 0, 0 }; + AknSelectionService::HandleMenuListOfferKeyEventL( + event1, EEventKey, iColumnList ); + AknSelectionService::HandleMenuListOfferKeyEventL( + eventLeftShift, EEventKey, iColumnList ); + _LIT( KSelectionTest4, + "AknSelectionService::HandleMenuListOfferKeyEventL" ); + AssertTrueL( ETrue, KSelectionTest4 ); + + CAknDialog* dlg = new( ELeave ) CAknDialog(); + CleanupStack::PushL( dlg ); + CEikMenuPane* menuPane = new( ELeave ) CEikMenuPane( dlg ); + CleanupStack::PushL( menuPane ); + AknSelectionService::HandleMarkableListDynInitMenuPane( + R_BCTESTUTILITIES_CASE_MENU, menuPane, iColumnList ); + _LIT( KSelectionTest5, + "AknSelectionService::HandleMarkableListDynInitMenuPane" ); + AssertTrueL( ETrue, KSelectionTest5 ); + + _LIT( KMenuItemText, "SelectionService" ); + menuPane->ConstructL( NULL, dlg ); + CEikMenuPaneItem::SData item; + item.iCommandId = EBCTestCmdSelectionService; + item.iCascadeId = 0; + item.iFlags = 0; + item.iText.Copy( KMenuItemText ); + + menuPane->AddMenuItemL( item ); + AknSelectionService::HandleMarkableListDynInitMenuItem( + menuPane, iColumnList, EBCTestCmdSelectionService, ETrue ); + _LIT( KSelectionTest6, + "AknSelectionService::HandleMarkableListDynInitMenuItem" ); + AssertTrueL( ETrue, KSelectionTest6 ); + + AknSelectionService::HandleMarkableListUpdateAfterCommandExecution( + iColumnList ); + _LIT( KSelectionTest7, "AknSelectionService::HandleMarkableListUpdateAfterCommandExecution" ); + AssertTrueL( ETrue, KSelectionTest7 ); + + CDesCArray* textArray = static_cast( + iColumnList->Model()->ItemTextArray() ); + textArray->Delete( 0 ); + AknSelectionService::HandleItemRemovalAndPositionHighlightL( + iColumnList, 0, ETrue ); + _LIT( KSelectionTest8, "AknSelectionService::HandleItemRemovalAndPositionHighlightL" ); + AssertTrueL( ETrue, KSelectionTest8 ); + + textArray->Delete( 0 ); + textArray->Delete( 2 ); + CArrayFixFlat* indexArray = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( indexArray ); + indexArray->AppendL( 0 ); + indexArray->AppendL( 2 ); + AknSelectionService::HandleItemRemovalAndPositionHighlightL( + iColumnList, 3, *indexArray ); + _LIT( KSelectionTest9, "AknSelectionService::HandleItemRemovalAndPositionHighlightL with array" ); + AssertTrueL( ETrue, KSelectionTest9 ); + CleanupStack::PopAndDestroy( indexArray ); + + CleanupStack::PopAndDestroy( 2 ); // menuPane, dlg + + iContainer->SetControl( NULL ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestAknFindL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestAknFindL() + { + CAknSearchField* search = CAknSearchField::NewL( *iContainer, + CAknSearchField::ESearch, NULL, KSearchFieldMaxLength ); + CleanupStack::PushL( search ); + TBCTestControlObserver observer; + search->SetObserver( &observer ); + + AknFind::HandleFindPopupProcessCommandL( EAknSoftkeyOk, iFormatList, + search, iContainer ); + _LIT( KAknFindTest1, "AknFind::HandleFindPopupProcessCommandL" ); + AssertTrueL( ETrue, KAknFindTest1 ); + + CAknFilteredTextListBoxModel* model = + static_cast( iFormatList->Model() ); + model->CreateFilterL( iFormatList, search ); + _LIT( KAknFindTest8, "CAknFilteredTextListBoxModel::CreateFilterL" ); + AssertTrueL( ETrue, KAknFindTest8 ); + + TKeyEvent event4 = { '4', '4', 0 , 0 }; + TBool needRefresh( EFalse ); + AknFind::HandleFindOfferKeyEventL( event4, EEventKey, iContainer, + iFormatList, search, ETrue, needRefresh ); + _LIT( KAknFindTest2, "AknFind::HandleFindOfferKeyEventL" ); + AssertTrueL( ETrue, KAknFindTest2 ); + + AknFind::HandleFindSizeChanged( iContainer, iFormatList, search ); + _LIT( KAknFindTest3, "AknFind::HandleFindSizeChanged" ); + AssertTrueL( ETrue, KAknFindTest3 ); + + CAknColumnListBox* listbox = static_cast( + iColumnList ); + + AknFind::HandleFixedFindSizeChanged( iContainer, listbox, search ); + _LIT( KAknFindTest4, "AknFind::HandleFixedFindSizeChanged" ); + AssertTrueL( ETrue, KAknFindTest4 ); + + AknFind::HandlePopupFindSizeChanged( iContainer, iColumnList, search ); + _LIT( KAknFindTest5, "AknFind::HandlePopupFindSizeChanged" ); + AssertTrueL( ETrue, KAknFindTest5 ); + + _LIT( KSearchText, "Search Text" ); + TBool match = AknFind::IsFindMatch( KSearchText, KSearchText ); + _LIT( KAknFindTest6, "AknFind::IsFindMatch" ); + AssertTrueL( ETrue, KAknFindTest6 ); + + TChar seperateChar = '\t'; + TBool seperator = AknFind::IsFindWordSeparator( seperateChar ); + _LIT( KAknFindTest7, "AknFind::IsFindWordSeparator" ); + AssertTrueL( ETrue, KAknFindTest7 ); + + model->RemoveFilter(); + _LIT( KAknFindTest9, "CAknFilteredTextListBoxModel::RemoveFilter" ); + AssertTrueL( ETrue, KAknFindTest9 ); + + CleanupStack::PopAndDestroy( search ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestAknEditUtilsL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestAknEditUtilsL() + { + CEikEdwin* edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + + AknEditUtils::ConstructEditingL( edwin, R_BCTESTUTIL_EDWIN ); + _LIT( KAknEditTest1, "AknEditUtils::ConstructEditingL with resource Id" ); + AssertTrueL( ETrue, KAknEditTest1 ); + CleanupStack::PopAndDestroy( edwin ); + + edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTUTIL_EDWIN ); + AknEditUtils::ConstructEditingL( edwin, reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KAknEditTest2, + "AknEditUtils::ConstructEditingL with resource reader" ); + AssertTrueL( ETrue, KAknEditTest2 ); + CleanupStack::PopAndDestroy( edwin ); + + edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + AknEditUtils::SAknEditorParameters param; + param.iEditingSpace = 30; + param.iEditingWindow = 1; + param.iCharacterCase = EAknEditorLowerCase; + param.iJustification = EAknEditorAlignLeft; + param.iAllowedToMoveInsertionPoint = ETrue; + param.iCursorYesNo = ETrue; + param.iOverflowYesNo = EFalse; + AknEditUtils::ConstructEditingL( edwin, param ); + _LIT( KAknEditTest3, + "AknEditUtils::ConstructEditingL with SAknEditorParameters" ); + AssertTrueL( ETrue, KAknEditTest3 ); + CleanupStack::PopAndDestroy( edwin ); + + edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + AknEditUtils::ConstructEditingL( edwin, 30, 1, EAknEditorLowerCase, + EAknEditorAlignLeft, ETrue, ETrue, ETrue ); + _LIT( KAknEditTest4, + "AknEditUtils::ConstructEditingL with many parameters" ); + AssertTrueL( ETrue, KAknEditTest4 ); + CleanupStack::PopAndDestroy( edwin ); + + edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + AknEditUtils::ConstructEditingL( edwin, 30, 2, EAknEditorLowerCase, + EAknEditorAlignLeft, ETrue, ETrue, ETrue, ETrue ); + _LIT( KAknEditTest5, + "AknEditUtils::ConstructEditingL with Resizable" ); + AssertTrueL( ETrue, KAknEditTest5 ); + CleanupStack::PopAndDestroy( edwin ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestFilterModelAndItemL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestFilterModelAndItemL() + { + CAknFilteredTextListBoxModel* model = + static_cast( iFormatList->Model() ); + TInt numberOfItems = model->NumberOfItems(); + _LIT( KFilterTest1, "CAknFilteredTextListBoxModel::NumberOfItems" ); + AssertTrueL( ETrue, KFilterTest1 ); + + TPtrC itemText = model->ItemText( 0 ); + _LIT( KFilterTest2, "CAknFilteredTextListBoxModel::ItemText" ); + AssertTrueL( ETrue, KFilterTest2 ); + + const MDesCArray* array = model->MatchableTextArray(); + _LIT( KFilterTest3, "CAknFilteredTextListBoxModel::MatchableTextArray" ); + AssertTrueL( ETrue, KFilterTest3 ); + + CAknSearchField* search = CAknSearchField::NewL( *iContainer, + CAknSearchField::ESearch, NULL, KSearchFieldMaxLength ); + CleanupStack::PushL( search ); + + CAknListBoxFilterItems* item = new( ELeave ) CAknListBoxFilterItems( + iFormatList, search, model, iFormatList->View() ); + CleanupStack::PushL( item ); + _LIT( KFilterTest4, "CAknListBoxFilterItems::CAknListBoxFilterItems" ); + AssertNotNullL( item, KFilterTest4 ); + + item->SetParentControl( iContainer ); + _LIT( KFilterTest21, "CAknListBoxFilterItems::SetParentControl" ); + AssertNotNullL( item, KFilterTest21 ); + + item->ConstructL(); + _LIT( KFilterTest5, "CAknListBoxFilterItems::ConstructL" ); + AssertNotNullL( item, KFilterTest5 ); + + TBCTestControlObserver observer; + item->SetObserver( &observer ); + _LIT( KFilterTest18, "CAknListBoxFilterItems::SetObserver" ); + AssertNotNullL( item, KFilterTest18 ); + + item->ResetFilteringL(); + _LIT( KFilterTest6, "CAknListBoxFilterItems::ResetFilteringL" ); + AssertNotNullL( item, KFilterTest6 ); + + item->UpdateCachedDataL(); + _LIT( KFilterTest7, "CAknListBoxFilterItems::UpdateCachedDataL" ); + AssertNotNullL( item, KFilterTest7 ); + + CArrayFix* indexArray = item->SelectionIndexes(); + _LIT( KFilterTest8, "CAknListBoxFilterItems::SelectionIndexes" ); + AssertNotNullL( item, KFilterTest8 ); + + item->UpdateSelectionIndexesL(); + _LIT( KFilterTest9, "CAknListBoxFilterItems::UpdateSelectionIndexesL" ); + AssertNotNullL( item, KFilterTest9 ); + + item->UpdateSelectionIndexL( 0 ); + _LIT( KFilterTest10, "CAknListBoxFilterItems::UpdateSelectionIndexL" ); + AssertNotNullL( item, KFilterTest10 ); + + TInt number = item->FilteredNumberOfItems(); + _LIT( KFilterTest11, "CAknListBoxFilterItems::FilteredNumberOfItems" ); + AssertNotNullL( item, KFilterTest11 ); + + TInt index = item->FilteredItemIndex( 0 ); + _LIT( KFilterTest12, "CAknListBoxFilterItems::FilteredItemIndex" ); + AssertNotNullL( item, KFilterTest12 ); + + TInt nonIndex = item->NonFilteredNumberOfItems(); + _LIT( KFilterTest13, + "CAknListBoxFilterItems::NonFilteredNumberOfItems" ); + AssertNotNullL( item, KFilterTest13 ); + + TInt visibleIndex = item->VisibleItemIndex( 2 ); + _LIT( KFilterTest14, + "CAknListBoxFilterItems::VisibleItemIndex" ); + AssertNotNullL( item, KFilterTest14 ); + + _LIT( KFilterItemDefaultText, "Default text" ); + TPtrC defaultText( KFilterItemDefaultText ); + TPtrC text = item->DefaultMatchableItemFromItem( defaultText ); + _LIT( KFilterTest15, + "CAknListBoxFilterItems::DefaultMatchableItemFromItem" ); + AssertNotNullL( item, KFilterTest15 ); + + item->HandleOfferkeyEventL(); + _LIT( KFilterTest16, + "CAknListBoxFilterItems::HandleOfferkeyEventL" ); + AssertNotNullL( item, KFilterTest16 ); + + item->HandleItemArrayChangeL(); + _LIT( KFilterTest17, + "CAknListBoxFilterItems::HandleItemArrayChangeL" ); + AssertNotNullL( item, KFilterTest17 ); + + item->HandleControlEventL( iContainer, + MCoeControlObserver::EEventRequestFocus ); + _LIT( KFilterTest19, + "CAknListBoxFilterItems::HandleControlEventL" ); + AssertNotNullL( item, KFilterTest19 ); + + item->DeferredSendKeyEventToFepL( 'c' ); + _LIT( KFilterTest20, + "CAknListBoxFilterItems::DeferredSendKeyEventToFepL" ); + AssertNotNullL( item, KFilterTest20 ); + + item->SetPopup(); + _LIT( KFilterTest22, + "CAknListBoxFilterItems::SetPopup" ); + AssertNotNullL( item, KFilterTest22 ); + + CCoeControl* findBox = item->FindBox(); + _LIT( KFilterTest23, + "CAknListBoxFilterItems::FindBox" ); + AssertNotNullL( item, KFilterTest23 ); + + item->SetListBox( NULL ); + _LIT( KFilterTest24, + "CAknListBoxFilterItems::SetListBox" ); + AssertNotNullL( item, KFilterTest24 ); + + item->SetSearchField( NULL ); + _LIT( KFilterTest25, + "CAknListBoxFilterItems::SetSearchField" ); + AssertNotNullL( item, KFilterTest25 ); + + item->SetModel( NULL ); + _LIT( KFilterTest26, + "CAknListBoxFilterItems::SetModel" ); + AssertNotNullL( item, KFilterTest26 ); + + item->SetView( NULL ); + _LIT( KFilterTest27, + "CAknListBoxFilterItems::SetView" ); + AssertNotNullL( item, KFilterTest27 ); + + CleanupStack::PopAndDestroy( 2 ); // item, search + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestAknLayoutUtilsL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestAknLayoutUtilsL() + { + TRect parentRect = iContainer->Rect(); + + CEikEdwin* edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + edwin->SetContainerWindowL( *iContainer ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTUTIL_EDWIN ); + edwin->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + AknLayoutUtils::SAknLayoutEdwin edwinLayout; + edwinLayout.iC = 0; + edwinLayout.iB = 5; + edwinLayout.iL = 5; + edwinLayout.iR = 5; + edwinLayout.iFont = ELatinPlain12; + edwinLayout.iJ = ELayoutAlignLeft; + edwinLayout.iW = 100; + edwinLayout.iNumberOfLinesShown = 1; + edwinLayout.iNextLineB = 25; + AknLayoutUtils::LayoutEdwin( edwin, parentRect, edwinLayout ); + _LIT( KAknLayoutTest1, "AknLayoutUtils::LayoutEdwin with SAknLayoutEdwin" ); + AssertTrueL( ETrue, KAknLayoutTest1 ); + + AknLayoutUtils::MinimizedEdwinRect( edwin ); + _LIT( KAknLayoutTest2, "AknLayoutUtils::MinimizedEdwinRect" ); + AssertTrueL( ETrue, KAknLayoutTest2 ); + + CleanupStack::PopAndDestroy( edwin ); + + CEikNumberEditor* mfne = new( ELeave ) CEikNumberEditor(); + CleanupStack::PushL( mfne ); + mfne->SetContainerWindowL( *iContainer ); + mfne->ConstructL( 0, 10000, 100 ); + + AknLayoutUtils::SAknLayoutMfne mfneLayout; + mfneLayout.iFont = ELatinPlain12; + mfneLayout.iC = 0; + mfneLayout.iL = 5; + mfneLayout.iR = 5; + mfneLayout.iB = 5; + mfneLayout.iW = 100; + mfneLayout.iJ = ELayoutAlignLeft; + AknLayoutUtils::LayoutMfne( mfne, parentRect, mfneLayout ); + _LIT( KAknLayoutTest3, "AknLayoutUtils::LayoutMfne" ); + AssertTrueL( ETrue, KAknLayoutTest3 ); + + CleanupStack::PopAndDestroy( mfne ); + + CEikImage* image = new( ELeave ) CEikImage(); + CleanupStack::PushL( image ); + image->SetContainerWindowL( *iContainer ); + iEnv->CreateResourceReaderLC( reader, R_BCTESTUTIL_IMAGE ); + image->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + AknLayoutUtils::SAknLayoutControl imageLayout; + imageLayout.iC = 0; + imageLayout.iL = 5; + imageLayout.iT = 5; + imageLayout.iR = 5; + imageLayout.iB = 5; + imageLayout.iW = 100; + imageLayout.iH = 50; + AknLayoutUtils::LayoutImage( image, parentRect, imageLayout ); + _LIT( KAknLayoutTest4, "AknLayoutUtils::LayoutImage" ); + AssertTrueL( ETrue, KAknLayoutTest4 ); + + CleanupStack::PopAndDestroy( image ); + + CEikSecretEditor* seced = new( ELeave ) CEikSecretEditor(); + CleanupStack::PushL( seced ); + seced->SetContainerWindowL( *iContainer ); + iEnv->CreateResourceReaderLC( reader, R_BCTESTUTIL_SECED ); + seced->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + AknLayoutUtils::LayoutSecretEditor( seced, parentRect, mfneLayout ); + _LIT( KAknLayoutTest5, "AknLayoutUtils::LayoutSecretEditor" ); + AssertTrueL( ETrue, KAknLayoutTest5 ); + + CleanupStack::PopAndDestroy( seced ); + + TPoint pt; + TBool result = AknLayoutUtils::LayoutMetricsPosition( + AknLayoutUtils::EMainPane, pt ); + _LIT( KAknLayoutTest6, "AknLayoutUtils::LayoutMetricsPosition" ); + AssertTrueL( ETrue, KAknLayoutTest6 ); + + TSize size; + result = AknLayoutUtils::LayoutMetricsSize( + AknLayoutUtils::EMainPane, size ); + _LIT( KAknLayoutTest7, "AknLayoutUtils::LayoutMetricsSize" ); + AssertTrueL( ETrue, KAknLayoutTest7 ); + + result = AknLayoutUtils::ScalableLayoutInterfaceAvailable(); + _LIT( KAknLayoutTest8, "AknLayoutUtils::ScalableLayoutInterfaceAvailable" ); + AssertTrueL( ETrue, KAknLayoutTest8 ); + + EVariantFlag variant = AknLayoutUtils::Variant(); + _LIT( KAknLayoutTest9, "AknLayoutUtils::Variant" ); + AssertTrueL( ETrue, KAknLayoutTest9 ); + + ESubVariantFlag subVariant = AknLayoutUtils::SubVariant(); + _LIT( KAknLayoutTest10, "AknLayoutUtils::SubVariant" ); + AssertTrueL( ETrue, KAknLayoutTest10 ); + + AknLayoutUtils::TAknCbaLocation cbaLocation = + AknLayoutUtils::CbaLocation(); + _LIT( KAknLayoutTest11, "AknLayoutUtils::CbaLocation" ); + AssertTrueL( ETrue, KAknLayoutTest11 ); + + TAknFontSpecification fontSpec( ELatinPlain12 ); + CAknLayoutFont* layoutFont = AknLayoutUtils:: + CreateLayoutFontFromSpecificationL( fontSpec ); + _LIT( KAknLayoutTest12, "AknLayoutUtils::CreateLayoutFontFromSpecificationL" ); + delete layoutFont; + AssertTrueL( ETrue, KAknLayoutTest12 ); + + TTypeface typeFace; + layoutFont = AknLayoutUtils::CreateLayoutFontFromSpecificationL( + typeFace, fontSpec ); + _LIT( KAknLayoutTest13, "AknLayoutUtils::CreateLayoutFontFromSpecificationL with TTypeFace" ); + delete layoutFont; + AssertTrueL( ETrue, KAknLayoutTest13 ); + + TFontSpec spec; + TInt cursorAscent = AknLayoutUtils::CursorAscentFromFont( spec ); + _LIT( KAknLayoutTest14, "AknLayoutUtils::CursorAscentFromFont" ); + AssertTrueL( ETrue, KAknLayoutTest14 ); + + TInt first; + TInt second; + AknLayoutUtils::CursorExtensionsFromFont( spec, first, second ); + _LIT( KAknLayoutTest15, "AknLayoutUtils::CursorExtensionsFromFont" ); + AssertTrueL( ETrue, KAknLayoutTest15 ); + + TInt height = AknLayoutUtils::CursorHeightFromFont( spec ); + _LIT( KAknLayoutTest16, "AknLayoutUtils::CursorHeightFromFont" ); + AssertTrueL( ETrue, KAknLayoutTest16 ); + + height = AknLayoutUtils::CursorWidthFromFont( spec ); + _LIT( KAknLayoutTest17, "AknLayoutUtils::CursorWidthFromFont" ); + AssertTrueL( ETrue, KAknLayoutTest17 ); + + height = AknLayoutUtils::HighlightLeftPixelsFromFont( spec ); + _LIT( KAknLayoutTest18, "AknLayoutUtils::HighlightLeftPixelsFromFont" ); + AssertTrueL( ETrue, KAknLayoutTest18 ); + + height = AknLayoutUtils::HighlightRightPixelsFromFont( spec ); + _LIT( KAknLayoutTest19, "AknLayoutUtils::HighlightRightPixelsFromFont" ); + AssertTrueL( ETrue, KAknLayoutTest19 ); + + TAknLayoutText layoutText; + + layoutText.LayoutText( parentRect, mfneLayout ); + _LIT( KLayoutTextTest2, "TAknLayoutText::LayoutText with SAknLayoutText" ); + AssertTrueL( ETrue, KLayoutTextTest2 ); + + TAknLayoutRect layoutRect; + + layoutRect.LayoutRect( parentRect, imageLayout ); + _LIT( KLayoutRectTest1, "TAknLayoutText::LayoutRect with SAknLayoutRect" ); + AssertTrueL( ETrue, KLayoutRectTest1 ); + + TRect rect = iContainer->Rect(); + layoutText.LayoutText( rect, R_BCTESTUTIL_LAYOUT_TEXT ); + _LIT( KLayoutTextTest1, "TAknLayoutText::LayoutText with resource Id" ); + AssertTrueL( ETrue, KLayoutTextTest1 ); + + iContainer->ActivateGc(); + CWindowGc& gc = iEnv->SystemGc(); + + _LIT( KDrawText, "DrawText" ); + layoutText.DrawText( gc, KDrawText, ETrue ); + _LIT( KLayoutTextTest4, "TAknLayoutText::DrawText" ); + AssertTrueL( ETrue, KLayoutTextTest4 ); + + layoutText.DrawText( gc, KDrawText, ETrue, KRgbBlack ); + _LIT( KLayoutTextTest5, "TAknLayoutText::DrawText with color" ); + AssertTrueL( ETrue, KLayoutTextTest5 ); + + layoutRect.LayoutRect( rect, R_BCTESTUTIL_LAYOUT_RECT ); + _LIT( KLayoutRectTest2, "TAknLayoutText::LayoutRect with resource Id" ); + AssertTrueL( ETrue, KLayoutRectTest2 ); + + layoutRect.DrawRect( gc ); + _LIT( KLayoutRectTest3, "TAknLayoutText::DrawRect" ); + AssertTrueL( ETrue, KLayoutRectTest3 ); + + layoutRect.DrawOutLineRect( gc ); + _LIT( KLayoutRectTest4, "TAknLayoutText::DrawOutLineRect" ); + AssertTrueL( ETrue, KLayoutRectTest4 ); + + CFbsBitmap* bitmap = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bitmap ); + CFbsBitmap* mask = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( mask ); + + layoutRect.DrawImage( gc, bitmap, mask ); + + CleanupStack::PopAndDestroy( mask ); + CleanupStack::PopAndDestroy( bitmap ); + + iContainer->DeactivateGc(); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestOtherAknUtilsL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestOtherAknUtilsL() + { + // test API of CListBoxNumbers + CListBoxNumbers* numbers = new( ELeave ) CListBoxNumbers( iColumnList ); + CleanupStack::PushL( numbers ); + _LIT( KListBoxNumbersTest1, "CListBoxNumbers constructor" ); + AssertNotNullL( numbers, KListBoxNumbersTest1 ); + + numbers->ConstructL(); + _LIT( KListBoxNumbersTest2, "CListBoxNumbers::ConstructL" ); + AssertNotNullL( numbers, KListBoxNumbersTest2 ); + + numbers->UpdateL(); + _LIT( KListBoxNumbersTest3, "CListBoxNumbers::UpdateL" ); + AssertNotNullL( numbers, KListBoxNumbersTest3 ); + + CleanupStack::PopAndDestroy( numbers ); + + const CFont* font = LatinPlain12(); + _LIT( KFontTest1, "LatinPlain12" ); + AssertNotNullL( numbers, KFontTest1 ); + + font = LatinBold12(); + _LIT( KFontTest2, "LatinBold12" ); + AssertNotNullL( numbers, KFontTest2 ); + + font = LatinBold13(); + _LIT( KFontTest3, "LatinBold13" ); + AssertNotNullL( numbers, KFontTest3 ); + + font = LatinBold16(); + _LIT( KFontTest4, "LatinBold16" ); + AssertNotNullL( numbers, KFontTest4 ); + + font = LatinBold17(); + _LIT( KFontTest5, "LatinBold17" ); + AssertNotNullL( numbers, KFontTest5 ); + + font = LatinBold19(); + _LIT( KFontTest6, "LatinBold19" ); + AssertNotNullL( numbers, KFontTest6 ); + + font = NumberPlain5(); + _LIT( KFontTest7, "NumberPlain5" ); + AssertNotNullL( numbers, KFontTest7 ); + + font = ClockBold30(); + _LIT( KFontTest8, "ClockBold30" ); + AssertNotNullL( numbers, KFontTest8 ); + + font = LatinClock14(); + _LIT( KFontTest9, "LatinClock14" ); + AssertNotNullL( numbers, KFontTest9 ); + + _LIT( KFilePath, "bctestutilities.exe" ); + TBuf filename( KFilePath ); + TInt result = CompleteWithAppPath( filename ); + _LIT( KAknUtilTest1, "CompleteWithAppPath" ); + AssertNotNullL( numbers, KAknUtilTest1 ); + + TInt language = DefaultInputLanguageFromUILanguage( ELangAmerican ); + _LIT( KAknUtilTest2, "DefaultInputLanguageFromUILanguage" ); + AssertNotNullL( numbers, KAknUtilTest2 ); + + CAknIconArray* iconArray = new( ELeave ) CAknIconArray( 2 ); + CleanupStack::PushL( iconArray ); + iconArray->ConstructFromResourceL( R_BCTESTUTIL_ICONARRAY ); + _LIT( KIconArrayTest1, "CAknIconArray::ConstructFromResourceL with resource Id" ); + AssertTrueL( ETrue, KIconArrayTest1 ); + CleanupStack::PopAndDestroy( iconArray ); + + iconArray = new( ELeave ) CAknIconArray( 2 ); + CleanupStack::PushL( iconArray ); + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTUTIL_ICONARRAY ); + iconArray->ConstructFromResourceL( reader ); + _LIT( KIconArrayTest2, "CAknIconArray::ConstructFromResourceL with resource reader" ); + AssertTrueL( ETrue, KIconArrayTest2 ); + CleanupStack::PopAndDestroy(); // reader + CleanupStack::PopAndDestroy( iconArray ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesCase::TestAknDrawL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestAknDrawL() + { + iContainer->ActivateGc(); + CWindowGc& gc = iEnv->SystemGc(); + + TRect rect = iContainer->Rect(); + _LIT( KEmptyListText, "Empty List\nNo Data" ); + TPtrC emptyText( KEmptyListText ); + + AknDraw::DrawEmptyList( rect, gc, emptyText ); + _LIT( KAknDrawTest1, "AknDraw::DrawEmptyList" ); + AssertTrueL( ETrue, KAknDrawTest1 ); + + AknDraw::DrawEmptyListForSettingPage( rect, gc, emptyText ); + _LIT( KAknDrawTest2, "AknDraw::DrawEmptyListForSettingPage" ); + AssertTrueL( ETrue, KAknDrawTest2 ); + + AknDraw::DrawEmptyListWithFind( rect, gc, emptyText ); + _LIT( KAknDrawTest3, "AknDraw::DrawEmptyListWithFind" ); + AssertTrueL( ETrue, KAknDrawTest3 ); + + AknDraw::DrawEmptyListHeading( rect, gc, emptyText ); + _LIT( KAknDrawTest4, "AknDraw::DrawEmptyListHeading" ); + AssertTrueL( ETrue, KAknDrawTest4 ); + + TAknLayoutRect cover; + TAknLayoutRect secondShadow; + TAknLayoutRect firstShadow; + TAknLayoutRect outlineFrame; + TAknLayoutRect insideArea; + + AknLayoutUtils::SAknLayoutRect layoutRect; + layoutRect.iC = 0; + layoutRect.iL = 5; + layoutRect.iT = 5; + layoutRect.iR = 65; + layoutRect.iB = 35; + layoutRect.iW = 60; + layoutRect.iH = 30; + cover.LayoutRect( rect, layoutRect ); + firstShadow.LayoutRect( rect, layoutRect ); + secondShadow.LayoutRect( rect, layoutRect ); + outlineFrame.LayoutRect( rect, layoutRect ); + insideArea.LayoutRect( rect, layoutRect ); + + AknDraw::DrawWindowShadow( gc, cover, secondShadow, firstShadow, + outlineFrame, insideArea ); + _LIT( KAknDrawTest5, "AknDraw::DrawWindowShadow" ); + AssertTrueL( ETrue, KAknDrawTest5 ); + + AknDraw::DrawEmptyListImpl( rect, gc, emptyText, + R_BCTESTUTIL_LAYOUT_TEXT, R_BCTESTUTIL_LAYOUT_TEXT ); + _LIT( KAknDrawTest6, "AknDraw::DrawEmptyListImpl" ); + AssertTrueL( ETrue, KAknDrawTest6 ); + + AknDrawWithSkins::DrawEmptyList( rect, gc, emptyText, iContainer ); + _LIT( KAknDrawSkinTest1, "AknDrawWithSkins::DrawEmptyList" ); + AssertTrueL( ETrue, KAknDrawSkinTest1 ); + + AknDrawWithSkins::DrawEmptyListForSettingPage( rect, gc, emptyText, + iContainer ); + _LIT( KAknDrawSkinTest2, "AknDrawWithSkins::DrawEmptyListForSettingPage" ); + AssertTrueL( ETrue, KAknDrawSkinTest2 ); + + CColumnListBoxItemDrawer *itemDrawer = + static_cast( iColumnList->ItemDrawer() ); + AknDrawWithSkins::DrawEmptyListWithFind( rect, gc, emptyText, + itemDrawer->ColumnData()->Control() ); + _LIT( KAknDrawSkinTest3, "AknDrawWithSkins::DrawEmptyListWithFind" ); + AssertTrueL( ETrue, KAknDrawSkinTest3 ); + + AknDrawWithSkins::DrawEmptyListHeading( rect, gc, emptyText, + iContainer ); + _LIT( KAknDrawSkinTest4, "AknDrawWithSkins::DrawEmptyListHeading" ); + AssertTrueL( ETrue, KAknDrawSkinTest4 ); + + AknDrawWithSkins::DrawWindowShadow( gc, cover, secondShadow, + firstShadow, outlineFrame, insideArea, iContainer ); + _LIT( KAknDrawSkinTest5, "AknDrawWithSkins::DrawWindowShadow" ); + AssertTrueL( ETrue, KAknDrawSkinTest5 ); + + iContainer->DeactivateGc(); + } + +// --------------------------------------------------------------------------- +// Test AknBidiTextUtils +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestAknBidiTextUtilsL() + { + TBuf logicalText( KLongStr ); + const CFont* font = iEnv->NormalFont(); + + TBool bret = AknBidiTextUtils::ConvertToVisualAndClipL( logicalText, + *font, 100, 50 ); + _LIT( KBidiTextTest1, "AknBidiTextUtils::ConvertToVisualAndClipL" ); + AssertTrueL( ETrue, KBidiTextTest1 ); + + AknBidiTextUtils::PrepareRunInfoArray( logicalText ); + _LIT( KBidiTextTest2, "AknBidiTextUtils::PrepareRunInfoArray" ); + AssertTrueL( ETrue, KBidiTextTest2 ); + + CArrayFixFlat* lineArray = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( lineArray ); + lineArray->AppendL( 20 ); + lineArray->AppendL( 30 ); + + CArrayFixFlat* wrapArray = new( ELeave ) + CArrayFixFlat( 2 ); + CleanupStack::PushL( wrapArray ); + + AknBidiTextUtils::ConvertToVisualAndWrapToArrayL( logicalText, + *lineArray, *font, *wrapArray, ETrue ); + _LIT( KBidiTextTest3, "AknBidiTextUtils::ConvertToVisualAndWrapToArrayL with lineWidthArray" ); + AssertTrueL( ETrue, KBidiTextTest3 ); + wrapArray->Reset(); + + TInt lineWidth = 30; + HBufC* buf = AknBidiTextUtils::ConvertToVisualAndWrapToArrayL( logicalText, + lineWidth, *font, *wrapArray ); + delete buf; + _LIT( KBidiTextTest4, "AknBidiTextUtils::ConvertToVisualAndWrapToArrayL" ); + AssertTrueL( ETrue, KBidiTextTest4 ); + wrapArray->Reset(); + + logicalText.Copy( KChopText ); + AknBidiTextUtils::ConvertToVisualAndChopToArrayL( logicalText, + *lineArray, *font, *wrapArray ); + _LIT( KBidiTextTest5, "AknBidiTextUtils::ConvertToVisualAndChopToArrayL with lineWidthArray" ); + AssertTrueL( ETrue, KBidiTextTest5 ); + + buf = AknBidiTextUtils::ConvertToVisualAndChopToArrayL( logicalText, + lineWidth, *font, *wrapArray ); + delete buf; + _LIT( KBidiTextTest6, "AknBidiTextUtils::ConvertToVisualAndChopToArrayL" ); + AssertTrueL( ETrue, KBidiTextTest6 ); + + buf = AknBidiTextUtils::ConvertToVisualAndWrapToArrayWholeTextL( + logicalText, *lineArray, *font, *wrapArray ); + delete buf; + _LIT( KBidiTextTest7, + "AknBidiTextUtils::ConvertToVisualAndWrapToArrayWholeTextL" ); + AssertTrueL( ETrue, KBidiTextTest7 ); + + CleanupStack::PopAndDestroy( wrapArray ); + CleanupStack::PopAndDestroy( lineArray ); + } + +// --------------------------------------------------------------------------- +// Test CAknEnv +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesCase::TestAknEnvL() + { + CAknEnv* aknEnv = CAknEnv::Static(); + + aknEnv->ExecuteEmptyPopupListL(); + _LIT( KAknEnv1, "CAknEnv::ExecuteEmptyPopupListL with one parameter" ); + AssertTrueL( ETrue, KAknEnv1 ); + + _LIT( KEmptyText, "Empty list" ); + aknEnv->ExecuteEmptyPopupListL( &KEmptyText, &KEmptyText ); + _LIT( KAknEnv2, "CAknEnv::ExecuteEmptyPopupListL with three parameter" ); + AssertTrueL( ETrue, KAknEnv2 ); + + aknEnv->EditingStateIndicator(); + _LIT( KAknEnv3, "CAknEnv::EditingStateIndicator" ); + AssertTrueL( ETrue, KAknEnv3 ); + + aknEnv->AknLayout(); + _LIT( KAknEnv4, "CAknEnv::AknLayout" ); + AssertTrueL( ETrue, KAknEnv4 ); + + TBool load = aknEnv->LoadAknLayoutL(); + _LIT( KAknEnv5, "CAknEnv::LoadAknLayoutL" ); + AssertTrueL( ETrue, KAknEnv5 ); + + aknEnv->SplitViewActive(); + _LIT( KAknEnv6, "CAknEnv::SplitViewActive" ); + AssertTrueL( ETrue, KAknEnv6 ); + + aknEnv->CreateCbaObserverL( CEikButtonGroupContainer::Current(), + iColumnList ); + _LIT( KAknEnv7, "CAknEnv::CreateCbaObserverL" ); + AssertTrueL( ETrue, KAknEnv7 ); + aknEnv->RemoveCbaObserver(); + + CAknAppUi* appUi = aknEnv->AppWithShutterRunning(); + _LIT( KAknEnv8, "CAknEnv::AppWithShutterRunning" ); + AssertTrueL( ETrue, KAknEnv8 ); + + TAknUiZoom uiZoom; + aknEnv->GetCurrentGlobalUiZoom( uiZoom ); + _LIT( KAknEnv9, "CAknEnv::GetCurrentGlobalUiZoom" ); + AssertTrueL( ETrue, KAknEnv9 ); + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// HandleControlEventL +// --------------------------------------------------------------------------- +// +void TBCTestControlObserver::HandleControlEventL( CCoeControl*, TCoeEvent ) + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiescontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiescontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,118 @@ +/* +* 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 "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: container +* +*/ + + +#include +#include +#include + +#include "bctestutilitiescontainer.h" +#include "bctestutilitiescase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesContainer::CBCTestUtilitiesContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesContainer::~CBCTestUtilitiesContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestUtilitiesContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestUtilitiesContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestUtilitiesContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestUtilitiesContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Document +* +*/ + + +#include "BCTestUtilitiesDocument.h" +#include "BCTestUtilitiesAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestUtilitiesDocument* CBCTestUtilitiesDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestUtilitiesDocument* CBCTestUtilitiesDocument::NewL( CEikApplication& aApp ) + { + CBCTestUtilitiesDocument* self = new( ELeave ) CBCTestUtilitiesDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestUtilitiesDocument::~CBCTestUtilitiesDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestUtilitiesDocument::~CBCTestUtilitiesDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestUtilitiesDocument::CBCTestUtilitiesDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestUtilitiesDocument::CBCTestUtilitiesDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestUtilitiesDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestUtilitiesDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestUtilitiesAppUi; + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestutilities/src/bctestutilitiesview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestutilities.hrh" +#include +#include "bctestutilitiesview.h" +#include "bctestutilitiescontainer.h" +#include "bctestutil.h" +#include "bctestutilitiescase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesView* CBCTestUtilitiesView::NewL() + { + CBCTestUtilitiesView* self = new( ELeave ) CBCTestUtilitiesView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesView::CBCTestUtilitiesView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesView::ConstructL() + { + BaseConstructL( R_BCTESTUTILITIES_VIEW ); + + iContainer = new( ELeave ) CBCTestUtilitiesContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + _LIT( KUtilitiesCase, "Utilities-AknTextUtils test case" ); + iTestUtil->AddTestCaseL( CBCTestUtilitiesCase::NewL( iContainer ), + KUtilitiesCase ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUtilitiesView::~CBCTestUtilitiesView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestUtilitiesView::Id() const + { + return KBCTestUtilitiesViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestUtilitiesView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestUtilitiesView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/datasrc/sampleicon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/datasrc/sampleicon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/datasrc/sampleiconmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/datasrc/sampleiconmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bctestvolume.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bctestvolume.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ +/* +* 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 "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: project specification file for the BCTestVolume. +* +*/ + + +TARGET BCTestVolume.exe +TARGETTYPE exe +UID 0x0 0x20004768 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestVolume.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE BCTestVolumeApp.cpp +SOURCE BCTestVolumeDocument.cpp +SOURCE BCTestVolumeAppUi.cpp +SOURCE BCTestVolumeView.cpp +SOURCE BCTestVolumeContainer.cpp +SOURCE BCTestVolumePopUpWindow.cpp +SOURCE testVolumeSettingPage.cpp +SOURCE testVolumeNaviPane.cpp +SOURCE bctestothers.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +// Creates Mbm file. +START BITMAP BCTestVolume.mbm +HEADER +TARGETPATH /resource/apps +SOURCEPATH ../DataSrc +SOURCE C8 SampleIcon.bmp +SOURCE C8 SampleIconMask.bmp +END + +// Changes for Scalable UI: +// New registration resource defined. +// else Normal AIF will work. + +START RESOURCE ../group/BCTestVolume_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bctestvolume.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bctestvolume.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,406 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME VOLM + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestvolume.hrh" +#include "BCTestVolume.loc" +#include "BCTestvolume_01.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTVOLUME_BMP_FNAME APP_BITMAP_DIR"\\BCTestVolume.mbm" + +#define BCTESTVOLUME_SETTING_PAGE_NUMBER 1 +#define BCTESTVOLUME_VALUE1 1 +#define BCTESTVOLUME_VALUE4 4 +#define BCTESTVOLUME_VALUE5 5 + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestVolume"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestvolume_menubar; + cba = r_bctestvolume_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestvolume_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestvolume_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestvolume_menu; + txt = qtn_bctestvolume_menubar; + } + }; + } + +//---------------------------------------------------- +// +// r_bctestvolume_view +// +//---------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestvolume_view + { + } + + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestvolume_menu + { + items = + { + MENU_ITEM + { + command = EBCTestVolumeCmdOutline01; + txt = qtn_bctestvolume_menu_outline01; + }, + MENU_ITEM + { + command = EBCTestVolumeCmdOutline02; + txt = qtn_bctestvolume_menu_outline02; + }, + MENU_ITEM + { + command = EBCTestVolumeCmdOutline03; + txt = qtn_bctestvolume_menu_outline03; + }, + MENU_ITEM + { + command = EBCTestVolumeCmdOutline04; + txt = qtn_bctestvolume_menu_outline04; + }, + MENU_ITEM + { + command = EBCTestVolumeCmdOutline05; + txt = qtn_bctestvolume_menu_outline05; + }, + MENU_ITEM + { + command = EBCTestVolumeCmdOutline06; + txt = qtn_bctestvolume_menu_outline06; + }, + MENU_ITEM + { + command = EBCTestVolumeOthers; + txt = "Others"; + flags = EEikMenuItemSeparatorAfter; + }, + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestvolume_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestvolume_menu_exit; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_label_title +// Text which is used by label. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_label_title + { + buf = qtn_bctestvolume_label_title; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_label_operation +// Text which is used by label. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_label_operation + { + buf = qtn_bctestvolume_label_operation; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_label_event1 +// Text which is used by label. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_label_event1 + { + buf = qtn_bctestvolume_label_event1; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_label_event2 +// Text which is used by label. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_label_event2 + { + buf = qtn_bctestvolume_label_event2; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_label_outline06 +// outline 6 instructions +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_label_outline06 + { + buf = qtn_bctestvolume_label_outline06; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_format1 +// Text which is used by label. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_format1 + { + buf = qtn_bctestvolume_text_format1; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_format2 +// Text which is used by label. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_format2 + { + buf = qtn_bctestvolume_text_format2; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_status_pane_title?? +// Text which is used on status pane. +// +// ---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_status_pane_title01 + { + buf = qtn_bctestvolume_menu_outline01; + } + +RESOURCE TBUF256 r_bctestvolume_text_status_pane_title02 + { + buf = qtn_bctestvolume_menu_outline02; + } + +RESOURCE TBUF256 r_bctestvolume_text_status_pane_title03 + { + buf = qtn_bctestvolume_menu_outline03; + } + +RESOURCE TBUF256 r_bctestvolume_text_status_pane_title04 + { + buf = qtn_bctestvolume_menu_outline04; + } + +RESOURCE TBUF256 r_bctestvolume_text_status_pane_title05 + { + buf = qtn_bctestvolume_menu_outline05; + } + +RESOURCE TBUF256 r_bctestvolume_text_status_pane_title06 + { + buf = qtn_bctestvolume_menu_outline06; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_text_other_application_name +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestvolume_text_other_application_name + { + buf = qtn_bctestvolume_text_other_app_name; + } + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_setting_page_volume_indicator +// For Outline1 +// +//----------------------------------------------------------------------------- +// +RESOURCE VOLUME r_bctestvolume_volume_indicator + { + flags = ESettingsVolumeControl; + value = BCTESTVOLUME_VALUE5; + } + +RESOURCE AVKON_SETTING_PAGE r_bctestvolume_setting_page_volume_indicator + { + number = BCTESTVOLUME_SETTING_PAGE_NUMBER; + label = qtn_bctestvolume_setting_title; + softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL; + type = EAknCtVolumeControl; + editor_resource_id = r_bctestvolume_volume_indicator; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestvolume_navi_pane_volume_indicator_icon_set +// For Outline5. +// +//------------------------------------------------------------------------------ +// +RESOURCE VOLUME r_bctestvolume_navi_pane_volume_indicator_icon_set + { + flags = ENaviPaneVolumeControl; + value = BCTESTVOLUME_VALUE4; + bmpfile = BCTESTVOLUME_BMP_FNAME; + bmpid = EMbmBctestvolumeSampleicon; + bmpmask = EMbmBctestvolumeSampleiconmask; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestvolume_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestvolume_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestVolumeCbaCmdNext; + txt = qtn_bctestvolume_cba_next; + } + }; + } + + +RESOURCE VOLUME r_bctestvolume_avkon_volume_control + { +// flags = ESettingsVolumeControl;// ENaviPaneVolumeControl + flags = ENaviPaneVolumeControl; + value = 1; // Has to have a value, otherwise crashes + bmpfile = AVKON_BMP_FILENAME; + bmpid = EMbmAvkonQgn_indi_speaker_active; + bmpmask = EMbmAvkonQgn_indi_speaker_active_mask; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bctestvolume_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bctestvolume_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004768 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestVolume"; + localisable_resource_file = "\\resource\\apps\\BCTestVolume"; + localisable_resource_id = R_BCTESTVOLUME_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestVolume.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestothers.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestothers.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,83 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTOTHERS_H +#define C_TESTOTHERS_H + +#include "bctestcase.h" + +class CBCTestVolumeView; +class CBCTestVolumeContainer; +class CAknVolumeControl; + +/** +* test case for testing volume setting page. +* @lib bctestutil.lib +*/ +class CTestOthers: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CTestOthers* NewL(CBCTestVolumeView* aView); + + /** + * symbian NewLC + * @param aView, pointer to the active view + */ + static CTestOthers* NewLC(CBCTestVolumeView* aView); + + /** dtor */ + virtual ~CTestOthers(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CTestOthers(CBCTestVolumeView* aView); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +protected: // new + /** getter of the container */ + CBCTestVolumeContainer* Container() const; + +private: // Data + void TryCreateL(TInt aResourceID, TInt aLabelID); + CBCTestVolumeView* iView; // not own, just reference + CAknVolumeControl* iVolume; // own + }; + +#endif // C_TESTOTHERS_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolume.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolume.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: BCTestVolume resource header file +* +*/ + + +#ifndef BCTESTVOLUME_HRH +#define BCTESTVOLUME_HRH + +enum TBCTestVolumeMenuCommands + { + EBCTestVolumeCmdEmptyOutline = 0x6000, + + EBCTestVolumeCmdOutline01, + EBCTestVolumeCmdOutline02, + EBCTestVolumeCmdOutline03, + EBCTestVolumeCmdOutline04, + EBCTestVolumeCmdOutline05, + EBCTestVolumeCmdOutline06, + EBCTestVolumeOthers, + + EBCTestVolumeCmdMaxOutline, + + EProgCmdAutoTest + }; + +enum TBCTestVolumeCba + { + EBCTestVolumeCbaCmdNext = 0x6300 + }; + +#endif // BCTESTVOLUME_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolume.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolume.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,46 @@ +/* +* 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 "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: BCTestVolume localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTVOLUME" +#define qtn_apps_tavl_grid "BCTESTVOLUME" + +// MenuBar +#define qtn_bctestvolume_menubar "Option" +#define qtn_bctestvolume_autotest "Autotest" +#define qtn_bctestvolume_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +#define qtn_bctestvolume_menu_outline01 "OUTLINE01" +#define qtn_bctestvolume_menu_outline02 "OUTLINE02" +#define qtn_bctestvolume_menu_outline03 "OUTLINE03" +#define qtn_bctestvolume_menu_outline04 "OUTLINE04" +#define qtn_bctestvolume_menu_outline05 "OUTLINE05" +#define qtn_bctestvolume_menu_outline06 "OUTLINE06" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolume_01.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolume_01.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,40 @@ +/* +* 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 "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: BCTestVolume localise file +* +*/ + + +#include "bctestvolume.loc" + +// LOCALISATION STRINGS + + +// Label text +#define qtn_bctestvolume_label_title "BCTestVolume\nSample Application" +#define qtn_bctestvolume_label_operation "Press right softkey to\ndisplay next outline" +#define qtn_bctestvolume_label_event1 "Press left or right key.\nAnd press OK key.\nReturn current value." +#define qtn_bctestvolume_label_event2 "Press OK key.\nCurrent value is changed." + +// Text format +#define qtn_bctestvolume_text_format1 "Current value : %d" +#define qtn_bctestvolume_text_format2 "Set value : %d" + +// Title of Volume Setting Page +#define qtn_bctestvolume_setting_title "Volume" + +// For Cba +#define qtn_bctestvolume_cba_next "Next" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumeapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumeapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestVOLUMEAPP_H +#define BCTestVOLUMEAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestVolume = { 0x20004768 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestVolumeApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestVolumeApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestVolumeDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestVolume ). + * @return The value of KUidBCTestVolume. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumeappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumeappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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 BC for Volume control API. +* +*/ + + +#ifndef C_BCTESTVOLUMEAPPUI_H +#define C_BCTESTVOLUMEAPPUI_H + +#include + +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestVolumeAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestVolumeAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestVolumeAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTVOLUMEAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,208 @@ +/* +* 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 "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: Declares container control for application. +* +*/ + + +#ifndef C_BCTESTVOLUMECONTAINER_H +#define C_BCTESTVOLUMECONTAINER_H + +// INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class CEikLabel; +class CAknNavigationControlContainer; +class CAknNavigationDecorator; +class CBCTestVolumeView; +class CBCTestVolumePopUpWindow; + +class CAknVolumePopup; +// CLASS DECLARATION + +/** +* CBCTestVolumeContainer container control class. +*/ +class CBCTestVolumeContainer : public CCoeControl + { + + private: // Enumerations + + enum TBCTestVolumeComponentControls + { + EBCTestVolumeComponent1, + EBCTestVolumeComponent2 + }; + + public: // Constructors and destructor + + /** + * Overload constructor. + * @param aView Pointer to view class object. + */ + CBCTestVolumeContainer( CBCTestVolumeView* aView ); + + /** + * Symbian 2nd phase constructor. + * @param aRect Frame rectangle for container. + */ + void ConstructL( const TRect& aRect ); + + /** + * Destructor. + */ + virtual ~CBCTestVolumeContainer(); + + public: // New functions + + /** + * Displays each outline screen. + * @param aOutlineId The ID of outline to display it. + */ + void DisplayOutlineL( const TInt aOutlineId ); + + /** + * Delete all components and set them to NULL. + */ + void ResetComponentsL(); + + /** + * Update components for redraw. + */ + void UpdateComponentsL(); + + /** + * Getter of the navigation pane. + */ + CAknNavigationControlContainer* NaviPane(); + + /** + * Setter of the decorator in the navigation pane. + * @param aDecorator, the decorator you want to set. + */ + void SetDecorator(CAknNavigationDecorator* aDecorator); + + /** + * Creates the label object. + * @param aResourceId The ID of resource to create that. + */ + void CreateLabelL( const TInt aResourceId ); + + private: // New function + + /** + * Release the navigation pane as well as the decorator. + */ + void ResetNaviPane(); + + private: // From CCoeControl + + /** + * From CCoeControl, OfferKeyEventL. + * Handles the key events. + * @return If key-event is consumed, EKeyWasConsumed. + * Else EKeyWasNotConsumed. + * @param aKeyEvent Key event + * @param aType Type of key event(EEventKey, EEventKeyUp or + * EEventKeyDown). + */ + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + + /** + * From CoeControl,SizeChanged. + * Called by framework when the view size is changed. + */ + void SizeChanged(); + + /** + * From CoeControl,CountComponentControls. + * Returns number of component. + * @return Number of controls. + */ + TInt CountComponentControls() const; + + /** + * From CCoeControl,ComponentControl. + * Returns pointer to particular component. + * @return Pointer to Control's component control, identified by index. + * @param aIndex Index of the control. + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + + /** + * From CCoeControl,Draw. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + + /** + * From CCoeControl, HandleResourceChange. + * Make dynamic resolution change smoother. + * @param aType A message UID value. + */ + void HandleResourceChange( TInt aType ); + + private: // Data + + /** + * lable to show the neccessary informations + * own + */ + CEikLabel* iLabel; + + /** + * point to navigation pane + * own + */ + CAknNavigationControlContainer* iNaviPane; + + /** + * point to decorator in the navigation pane. + * own + */ + CAknNavigationDecorator* iDecorator; + + /** + * point to the active view + * not own. + */ + CBCTestVolumeView* iView; + + /** + * record the the current outline ID + */ + TInt iCurrentOutlineId; + + /** + * a popup control for masking clock + * own. + */ + CBCTestVolumePopUpWindow* iPopUpControl; + + TInt iVolume; + TBool iMuted; + TInt32 iKeyHandle1; + TInt32 iKeyHandle2; + TInt32 iKeyHandle3; + TInt32 iKeyHandle4; + + }; + +#endif // C_BCTESTVOLUMECONTAINER_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTVOLUMEDOCUMENT_H +#define C_BCTESTVOLUMEDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestVolumeDocument application class. +*/ +class CBCTestVolumeDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestVolumeDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestVolumeDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestVolumeDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestVolumeAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTVOLUMEDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumepopupwindow.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumepopupwindow.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: Declares popup window for application +* +*/ + + +#ifndef C_BCTESTVOLUMEPOPUPWINDOW_H +#define C_BCTESTVOLUMEPOPUPWINDOW_H + +// INCLUDES +#include + +// CLASS DECLARATION +/** +* Popup window class +*/ +class CBCTestVolumePopUpWindow : public CCoeControl + { + public: // Constructors and destructor + /** + * C++ default constructor. + */ + CBCTestVolumePopUpWindow(); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(const TRect& aRect); + + /** + * Destructor. + */ + virtual ~CBCTestVolumePopUpWindow(); + + public: // Functions from base classes + /** + * From CCoeControl, SetColoe + * @param aColor, aColor is the color set to. + */ + void SetColor(TRgb aColor); + + private: // Functions from base classes + + /** + * From CCoeControl,Draw. + * @param Specified area for drawing + */ + void Draw(const TRect& aRect) const; + + private: // Data + RWindowGroup iMyWindowGroup; + TRgb iColor; + }; + +#endif // C_BCTESTVOLUMEPOPUPWINDOW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumeview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/bctestvolumeview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,127 @@ +/* +* 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 "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: Declares view for application. +* +*/ + + +#ifndef C_BCTESTVOLUMEVIEW_H +#define C_BCTESTVOLUMEVIEW_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CBCTestVolumeContainer; + +// CLASS DECLARATION + +/** +* CBCTestVolumeView view class. +*/ +class CBCTestVolumeView : public CAknView + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CBCTestVolumeView* NewL(); + + /** + * Destructor. + */ + virtual ~CBCTestVolumeView(); + + public: // New function + + /** + * Requests to display next outline. + */ + void DisplayNextOutlineL(); + + /** + * Getter of the container. + */ + CBCTestVolumeContainer* Container() const; + + public: // From CAknView + + /** + * From CAknView, Id. + * Returns the ID of view. + * @return The ID of view. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * Handles the commands. If the command is command which is require to + * display outline-screen, the command is reported to container class. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * From CAknView, HandleStatusPaneSizeChange. + * Changes the rectangle of main pane. + */ + + private: // New functions + + /** + * Default constructor. + */ + CBCTestVolumeView(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + /** + * Sets title text to status-pane. + * @param aCommand Command selected in menu. + */ + void IndicateTitlePaneTextL( const TInt aCommand ); + + private: // From CAknView + + /** + * From AknView, DoActivateL. + * Creates the Container class object. + * @param aPrevViewId aPrevViewId is not used. + * @param aCustomMessageId aCustomMessageId is not used. + * @param aCustomMessage aCustomMessage is not used. + */ + void DoActivateL(const TVwsViewId& aPrevViewId, + TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + /** + * From AknView, DoDeactivate. + * Deletes the Container class object. + */ + void DoDeactivate(); + + private: // Data + TInt iCurrentOutline; + CBCTestVolumeContainer* iContainer; // own + }; + +#endif // C_BCTESTVOLUMEVIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/testvolumenavipane.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/testvolumenavipane.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,120 @@ +/* +* 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 "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 bc of the volume control API(s) +* +*/ + +#ifndef C_TESTVOLUMENAVIPANE_H +#define C_TESTVOLUMENAVIPANE_H + +#include "bctestcase.h" + +class CBCTestVolumeView; +class CBCTestVolumeContainer; +class CAknVolumeControl; + +/** +* test case for testing volume control in navigation pane. +* @lib bctestutil.lib +*/ +class CTestVolumeNaviPane: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view. + */ + static CTestVolumeNaviPane* NewL(CBCTestVolumeView* aView); + + /** + * symbian NewLC + * @param aView, pointer to the active view. + */ + static CTestVolumeNaviPane* NewLC(CBCTestVolumeView* aView); + + /** dtor */ + virtual ~CTestVolumeNaviPane(); + + /** + * from CBCTestCase + * @param aCmd, command ID this test case will response. + */ + virtual void RunL(int aCmd); + +protected: // new + + /** + * do necessary setup things. + */ + virtual void SetupL(); + + /** + * do necessary tear down things. + */ + virtual void TearDownL(); + + /** + * ctor + * @param aView, pointer to the active view. + */ + CTestVolumeNaviPane(CBCTestVolumeView* aView); + + /** + * symbian 2nd phase ctor + */ + void ConstructL(); + +private: //new + /** create the test scripts for this test case */ + void ScriptCreateL(); + + /** test volume control creation API(s) related to navigation pane.*/ + void TestCreateL(); + + /** + * performa a set of normal operation for the volume control + * including volume adjustment + */ + void TestNormalL(); + + /** test create the volume control from IDLE state */ + void TestIdleL(); + + /** test create the volume control from ICON_SET */ + void TestIconL(); + + /** test navigation pane event for the volume API */ + void TestNaviEventL(); + + /** + * try to create the volume control in the navigation pane + * @param aResourceID, a resource ID for the volume control + * @param aLabelID, a label ID for the description label in the main pane. + */ + void TryCreateL(TInt aResourceID, TInt aLabelID); + + /** + * try to adjust the volume value for the volume control. + */ + void TryAdjustL(); + + /** getter for the container */ + CBCTestVolumeContainer* Container() const; + +private: // Data + CBCTestVolumeView* iView; // not own, just reference + CAknVolumeControl* iVolume; // own + }; + +#endif // C_TESTVOLUMENAVIPANE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/testvolumesettingpage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/inc/testvolumesettingpage.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,80 @@ +/* +* 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 "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 bc for the volume control API(s) +* +*/ + +#ifndef C_TESTVOLUMESETTINGPAGE_H +#define C_TESTVOLUMESETTINGPAGE_H + +#include "bctestcase.h" + +class CBCTestVolumeView; +class CBCTestVolumeContainer; + +/** +* test case for testing volume setting page. +* @lib bctestutil.lib +*/ +class CTestVolumeSettingPage: public CBCTestCase + { +public: + /** + * symbian NewL + * @param aView, pointer to the active view + */ + static CTestVolumeSettingPage* NewL(CBCTestVolumeView* aView); + + /** + * symbian NewLC + * @param aView, pointer to the active view + */ + static CTestVolumeSettingPage* NewLC(CBCTestVolumeView* aView); + + /** dtor */ + virtual ~CTestVolumeSettingPage(); + + /** + * from CBCTestCase + */ + virtual void RunL(int aCmd); + +protected: // new + /** do necessary setup things. */ + virtual void SetupL(); + + /** do necessary teardown things. */ + virtual void TearDownL(); + + /** ctor */ + CTestVolumeSettingPage(CBCTestVolumeView* aView); + + /** symbian 2nd phase ctor */ + void ConstructL(); + + /** build the necessary test scripts */ + void BuildScriptL(); + + /** perform test */ + void TestL(); + +protected: // new + /** getter of the container */ + CBCTestVolumeContainer* Container() const; + +private: // Data + CBCTestVolumeView* iView; // not own, just reference + }; + +#endif // C_TESTVOLUMESETTINGPAGE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/sis/bctestvolume.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/sis/bctestvolume.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +; +; 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: +; +; BCTestVolume-3.pkg + +; Languages +&EN + +; Header +#{"UIFW_BCTestVolume"},(0x20004768),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestVolume.exe"- +"!:\sys\bin\BCTestVolume.exe" + +"\epoc32\data\z\resource\apps\BCTestVolume.RSC"- +"!:\resource\apps\BCTestVolume.RSC" + +"\epoc32\data\z\resource\apps\BCTestVolume.mbm"- +"!:\resource\apps\BCTestVolume.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestVolume_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestVolume_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestothers.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestothers.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,195 @@ +/* +* 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: +* +*/ +#include +#include +#include +#include + +#include "bctestothers.h" +#include "BCTestvolume.hrh" +#include "BCTestVolumeView.h" +#include "BCTestVolumeContainer.h" + +//const + +#ifdef __PROTOCOL_CDMA +const TInt KVolumeMinValue=0; +#else +const TInt KVolumeMinValue=1; +#endif //__PROTOCOL_CDMA + +const TInt KVolumeMaxValue=10; + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CTestOthers::CTestOthers(CBCTestVolumeView* aView): + iView(aView), iVolume(0) + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CTestOthers::~CTestOthers() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CTestOthers::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CTestOthers* CTestOthers::NewL(CBCTestVolumeView* aView) + { + CTestOthers* self = CTestOthers::NewLC(aView); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// symbian NewLC +// ---------------------------------------------------------------------------- +// +CTestOthers* CTestOthers::NewLC(CBCTestVolumeView* aView) + { + CTestOthers* self = new ( ELeave ) CTestOthers(aView); + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CTestOthers::RunL(int aCmd) + { + if(aCmd != EBCTestVolumeOthers) + { + return; + } + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CTestOthers::BuildScriptL() + { + AddTestL(LeftCBA, TEND); + AddTestL(REP(Down, 6), TEND); + AddTestL(LeftCBA, TEND); + AddTestL(KeyOK, TEND); + } + +void CTestOthers::TryCreateL(TInt aResourceID, TInt aLabelID) + { + // Creates Navi pane volume glider object. + CAknNavigationDecorator* decorator = Container()->NaviPane()->CreateVolumeIndicatorL( aResourceID ); + AssertNotNullL(decorator, _L("Volume indicator created by NaviPane:")); + + Container()->NaviPane()->PushL( *decorator ); + + CAknVolumeControl* volume = static_cast(decorator->DecoratedControl() ); + AssertNotNullL(volume, _L("Get decorate control:")); + + // Adds volume control to control stack. + // Volume control can get offered key event. + CEikonEnv::Static()->EikAppUi()->AddToStackL( volume ); + + Container()->SetDecorator(decorator); //to be removed later + Container()->CreateLabelL( aLabelID ); + iVolume=volume; + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CTestOthers::TestL() + { + CFbsBitmap* bitmap = CAknVolumeControl::CreateBitmapL(5); + CleanupStack::PushL(bitmap); + AssertNotNullL(bitmap, _L("bitmap created")); + CleanupStack::PopAndDestroy(); //bitmap + + TryCreateL(R_AVKON_NAVI_PANE_VOLUME_INDICATOR, R_BCTESTVOLUME_TEXT_LABEL_OPERATION); + + TPointerEvent event = + { + TPointerEvent::EButton1Up, + EModifierAutorepeatable, + TPoint( 20,20 ), + TPoint( 0,0 ) + }; + iVolume->HandlePointerEventL(event); + AssertTrueL(ETrue, _L("pointer event handled")); + + iVolume->HandleResourceChange(KEikColorResourceChange); + AssertTrueL(ETrue, _L("res change handled")); + + iVolume->HandleResourceChange(-KEikColorResourceChange); + AssertTrueL(ETrue, _L("unknown type res change handled")); + + CGulIcon* icon = iVolume->CreateSetStyleListBoxIconL( + (KVolumeMinValue + KVolumeMaxValue) /2); + delete icon; + } + +// ---------------------------------------------------------------------------- +// getter for the container. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeContainer* CTestOthers::Container() const + { + return iView->Container(); + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CTestOthers::SetupL() + { + Container()->ResetComponentsL(); + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CTestOthers::TearDownL() + { + Container()->UpdateComponentsL(); + } + +//end of file + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumeapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumeapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon volume test app +* +*/ + + +// INCLUDE FILES +#include "BCTestVolumeApp.h" +#include "BCTestVolumeDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestVolumeApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestVolumeApp::AppDllUid() const + { + return KUidBCTestVolume; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestVolumeApp::CreateDocumentL() +// Creates CBCTestVolumeDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestVolumeApp::CreateDocumentL() + { + return CBCTestVolumeDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestVolumeApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestVolumeApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumeappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumeappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,117 @@ +/* +* 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 "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 bc for volume control api(s) +* +*/ + +#include +#include + +#include "BCTestVolumeAppUi.h" +#include "BCTestVolumeView.h" +#include "BCTestvolume.hrh" + +// +// TO DO: +// include the bc test framework header files here +// +#include "bctestutil.h" +#include "bctestsuite.h" + +// +// TO DO: +// add all your concrete test case headers here: +// +#include "testVolumeSettingPage.h" +#include "testVolumeNaviPane.h" +#include "bctestothers.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestVolumeAppUi::CBCTestVolumeAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestVolumeAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // Creates CBCTestVolumeView class object. + CBCTestVolumeView* view = CBCTestVolumeView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); // transfer ownership to CAknViewAppUi. + CleanupStack::Pop(); // view + + ActivateLocalViewL( view->Id() ); + + // init bc test framework + iTestUtil = CBCTestUtil::NewL(); + + // add all test cases.... + iTestUtil->AddTestCaseL( CTestVolumeSettingPage::NewL(view), _L("CTestVolumeSettingPage") ); + iTestUtil->AddTestCaseL( CTestVolumeNaviPane::NewL(view), _L("CTestVolumeNaviPane") ); + iTestUtil->AddTestCaseL( CTestOthers::NewL(view), _L("CTestOthers") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestVolumeAppUi::~CBCTestVolumeAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeAppUi::~CBCTestVolumeAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + if ( iTestUtil ) + { + iTestUtil->RunL(); + } + return; + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + // + // map the UI event to test cases in test suite. + // + if(aCommand > EBCTestVolumeCmdEmptyOutline && aCommand <= EBCTestVolumeCmdMaxOutline) + { + iTestUtil->RunL(aCommand); + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,381 @@ +/* +* 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 "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: Avkon volume test application +* +*/ + + +// INCLUDE FILES +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // For RApaLsSession +#include // For CompleteWithAppPath +#include +#include +#include + +#include "BCTestvolume.hrh" +#include "BCTestVolumeView.h" +#include "BCTestVolumeContainer.h" +#include "BCTestVolumePopupWindow.h" + +// CONSTANTS +// for label +const TInt KBCTestVolumeAdjustX = 5; +const TInt KBCTestVolumeAdjustY = 5; + +const TInt KBCTestVolumeHalf = 2; +// for count +const TInt KBCTestVolumeInitialCount = 0; +// for Text +const TInt KBCTestVolumeMessageBufLength = 256; +// for initializing variable +#define KBCTestVolumeInitialTime TInt64( 0 ) +// for change state +#define BCTestVOLUME_SET_RETURN_VALUE_KEY EKeyEnter +#define BCTestVOLUME_SET_RETURN_VALUE_KEY2 EKeyOK +// for clock masking +#define BCTestSPANE_ZERO_SIZE_AREA TRect(0,0,0,0) + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestVolumeContainer::CBCTestVolumeContainer( CBCTestVolumeView* ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeContainer::CBCTestVolumeContainer( CBCTestVolumeView* aView ) + : iLabel( NULL ), + iNaviPane( NULL ), + iView( aView ), + iCurrentOutlineId( EBCTestVolumeCmdEmptyOutline ) + { + } + +// ---------------------------------------------------------------------------- +// CBCTestVolumeContainer::ConstructL( const TRect& ) +// Symbian 2nd phase constructor. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); // Creates window. + SetRect( aRect ); // Sets rectangle of frame. + + // Capture volume keys + RWindowGroup& windowGroup = ControlEnv()->RootWin(); + iKeyHandle1 = windowGroup.CaptureKey( EKeyDevice8, 0, 0 ); + iKeyHandle2 = windowGroup.CaptureKey( EKeyDevice9, 0, 0 ); + + iKeyHandle3 = windowGroup.CaptureKey( EKeyLeftArrow, 0, 0 ); + iKeyHandle4 = windowGroup.CaptureKey( EKeyRightArrow, 0, 0 ); + + ActivateL(); // Activates the window. (Ready to draw) + } + +// ---------------------------------------------------------------------------- +// CBCTestVolumeContainer::~CBCTestVolumeContainer() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeContainer::~CBCTestVolumeContainer() + { + RWindowGroup& windowGroup = ControlEnv()->Static()->RootWin(); + windowGroup.CancelCaptureKey( iKeyHandle1 ); + windowGroup.CancelCaptureKey( iKeyHandle2 ); + + windowGroup.CancelCaptureKey( iKeyHandle3 ); + windowGroup.CancelCaptureKey( iKeyHandle4 ); + + delete iPopUpControl; + delete iLabel; + ResetNaviPane(); + } + +// ---------------------------------------------------------------------------- +// delete all components and set them to NULL +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::ResetComponentsL() + { + // Deletes each object. + if ( iLabel ) + { + delete iLabel; + iLabel = NULL; + } + + if (!iPopUpControl) + { + iPopUpControl = new(ELeave) CBCTestVolumePopUpWindow; + iPopUpControl->ConstructL(BCTestSPANE_ZERO_SIZE_AREA); + } + + ResetNaviPane(); + } + +// ---------------------------------------------------------------------------- +// delete the decorator inside the navigation pane. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::ResetNaviPane() + { + if ( iNaviPane ) + { + iNaviPane->Pop( NULL ); + if ( iDecorator ) + { + CAknVolumeControl* volume = STATIC_CAST( + CAknVolumeControl*, iDecorator->DecoratedControl() ); + iEikonEnv->EikAppUi()->RemoveFromStack( volume ); + delete iDecorator; + iDecorator = NULL; + } + } + } + +// ---------------------------------------------------------------------------- +// update the controls for redraw. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::UpdateComponentsL() + { + SizeChanged(); + + // if clock is visible, mask it off + if (iEikonEnv->AppUiFactory()->StatusPane()->CurrentLayoutResId() == + R_AVKON_STATUS_PANE_LAYOUT_IDLE) + { + /* Is context or clock pane visible in the status pane */ + CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane(); + TRect paneRect; + if (sp->PaneCapabilities( + TUid::Uid(EEikStatusPaneUidContext)).IsInCurrentLayout() ) + { + paneRect = sp->PaneRectL(TUid::Uid(EEikStatusPaneUidContext)); + } + else + { + paneRect = sp->PaneRectL(TUid::Uid(EEikStatusPaneUidClock)); + } + + iPopUpControl->SetRect(paneRect); + } + else // clear popup rectangle + { + iPopUpControl->SetRect(BCTestSPANE_ZERO_SIZE_AREA); + } + + DrawNow(); + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeContainer::DisplaytOutlineL( const TInt ) +// Displays each outline screen. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::DisplayOutlineL( const TInt aOutlineId ) + { + iCurrentOutlineId = aOutlineId; // Sets current outline ID. + + ResetComponentsL(); + + // Displays each outline screen. + switch ( aOutlineId ) + { + case EBCTestVolumeCmdEmptyOutline: + CreateLabelL( R_BCTESTVOLUME_TEXT_LABEL_TITLE ); + break; + + default: + break; + } + UpdateComponentsL(); + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeContainer::CreateLabelL( const TInt ) +// Creates the label object. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::CreateLabelL( const TInt aResourceId ) + { + TBuf labelText( 0 ); + + iCoeEnv->ReadResourceL( labelText, aResourceId ); + + // Creates the label object. + if ( !iLabel ) + { + iLabel = new( ELeave ) CEikLabel; + iLabel->SetContainerWindowL( *this ); + iLabel->SetTextL( labelText ); + iLabel->SetFont( iEikonEnv->TitleFont() ); + iLabel->SetAlignment( EHCenterVCenter ); + } + } + +// ---------------------------------------------------------------------------- +// TKeyResponse CBCTestVolumeContainer::OfferKeyEventL( const TKeyEvent&, +// TEventCode ) +// Handles the key events. +// ---------------------------------------------------------------------------- +// +TKeyResponse CBCTestVolumeContainer::OfferKeyEventL( const TKeyEvent& aKeyEvent, + TEventCode aType ) + { + if ( aType != EEventKey ) + { + return EKeyWasNotConsumed; + } + + switch ( aKeyEvent.iCode ) + { + case EKeySpace: // Space key. + // Required to display next outline screen. + iView->DisplayNextOutlineL(); + break; + case BCTestVOLUME_SET_RETURN_VALUE_KEY: + case BCTestVOLUME_SET_RETURN_VALUE_KEY2: + { + if ( iCurrentOutlineId != EBCTestVolumeCmdOutline02 ) + { + return EKeyWasNotConsumed; + } + break; + } + default: + break; + } + return EKeyWasConsumed; + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeContainer::SizeChanged() +// Called by framework when the view size is changed. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::SizeChanged() + { + switch ( iCurrentOutlineId ) + { + case EBCTestVolumeCmdOutline02: + // Sets rectangle of top label. + if ( iLabel ) + { + TRect topRect( Rect() ); + topRect.SetHeight( topRect.Height() / KBCTestVolumeHalf ); + topRect.Shrink( KBCTestVolumeAdjustX, KBCTestVolumeAdjustY ); + iLabel->SetRect( topRect ); + } + break; + default: + // Sets rectangle of label. + if ( iLabel ) + { + iLabel->SetRect( Rect() ); + } + break; + } + } + +// ---------------------------------------------------------------------------- +// TInt CBCTestVolumeContainer::CountComponentControls() const +// Returns number of component. +// ---------------------------------------------------------------------------- +// +TInt CBCTestVolumeContainer::CountComponentControls() const + { + TInt count( KBCTestVolumeInitialCount ); + + if ( iLabel ) + { + ++count; + } + return count; // Returns number of component. + } + +// ---------------------------------------------------------------------------- +// CCoeControl* CBCTestVolumeContainer::ComponentControl( TInt ) const +// Returns pointer to particular component. +// ---------------------------------------------------------------------------- +// +CCoeControl* CBCTestVolumeContainer::ComponentControl( TInt aIndex ) const + { + switch ( aIndex ) + { + case EBCTestVolumeComponent1: + return iLabel; // Returns the pointer to label object. + default: + return NULL; // Exception : Returns NULL value. + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeContainer::Draw( const TRect& ) const +// Clears the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::Draw( const TRect& aRect ) const + { + // (Re)draw the rectangle of frame. + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeContainer::HandleResourceChange(TInt) +// Makes dynamic resolution change smoother +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::HandleResourceChange(TInt aType) + { + if (aType == KEikDynamicLayoutVariantSwitch) + { + SetRect( iAvkonAppUi->ClientRect()); + } + CCoeControl::HandleResourceChange( aType ); + } + +// ---------------------------------------------------------------------------- +// getter of the navigation pane. +// ---------------------------------------------------------------------------- +// +CAknNavigationControlContainer* CBCTestVolumeContainer::NaviPane() + { + CEikStatusPane* statusPane = static_cast(iEikonEnv->EikAppUi() )->StatusPane(); + return static_cast(statusPane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) ); + } + +// ---------------------------------------------------------------------------- +// setter for the decorator. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeContainer::SetDecorator(CAknNavigationDecorator* aDecorator) + { + iNaviPane = NaviPane(); + iDecorator= aDecorator; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon volume test application +* +*/ + + +// INCLUDE FILES +#include "BCTestVolumeDocument.h" +#include "BCTestVolumeAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestVolumeDocument* CBCTestVolumeDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeDocument* CBCTestVolumeDocument::NewL( CEikApplication& aApp ) + { + CBCTestVolumeDocument* self = new( ELeave ) CBCTestVolumeDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestVolumeDocument::~CBCTestVolumeDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeDocument::~CBCTestVolumeDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestVolumeDocument::CBCTestVolumeDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeDocument::CBCTestVolumeDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestVolumeDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestVolumeDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestVolumeAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumepopupwindow.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumepopupwindow.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,88 @@ +/* +* 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 "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: Process popup window for application. +* +*/ + + +// INCLUDE FILES +#include +#include +#include +#include + +#include "BCTestVolumePopupWindow.h" + +// ================= MEMBER FUNCTIONS ======================= + +// --------------------------------------------------------- +// ctor do nothing. +// --------------------------------------------------------- +// +CBCTestVolumePopUpWindow::CBCTestVolumePopUpWindow() : iColor(KRgbBlue) + { + } + +// --------------------------------------------------------- +// symbian 2nd ctor +// --------------------------------------------------------- +// +void CBCTestVolumePopUpWindow::ConstructL(const TRect& aRect) + { + iMyWindowGroup=RWindowGroup(iCoeEnv->WsSession()); + + User::LeaveIfError(iMyWindowGroup.Construct((TUint32)&iMyWindowGroup)); + + iMyWindowGroup.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront); + iMyWindowGroup.EnableReceiptOfFocus(EFalse); + + CreateWindowL(&iMyWindowGroup); + SetRect(aRect); + EnableDragEvents(); + ActivateL(); + } + +// --------------------------------------------------------- +// dtor do nothing. +// --------------------------------------------------------- +// +CBCTestVolumePopUpWindow::~CBCTestVolumePopUpWindow() + { + iMyWindowGroup.Close(); + } + +// --------------------------------------------------------- +// CBCTestVolumePopUpWindow +// --------------------------------------------------------- +// +void CBCTestVolumePopUpWindow::SetColor(TRgb aColor) + { + iColor = aColor; + } + +// --------------------------------------------------------- +// CBCTestVolumePopUpWindow::Draw(const TRect& aRect) const +// Draw function. +// --------------------------------------------------------- +// +void CBCTestVolumePopUpWindow::Draw(const TRect& aRect) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle(CGraphicsContext::ENullPen); + gc.SetBrushStyle(CGraphicsContext::ESolidBrush); + gc.SetBrushColor(KRgbBlue); + gc.DrawRect(aRect); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumeview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/bctestvolumeview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,213 @@ +/* +* 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 "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: Avkon volume test application +* +*/ + + +// INCLUDE FILES +#include +#include +#include +#include +#include +#include + +#include "BCTestvolume.hrh" +#include "BCTestVolumeView.h" +#include "BCTestVolumeContainer.h" + +// CONSTANTS +const TUid KViewId = { 1 }; // UID of view +const TInt KBCTestVolumeTitleBufLength = 256; + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestVolumeView::CBCTestVolumeView() +// Default constructor. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeView::CBCTestVolumeView() + : iCurrentOutline(EBCTestVolumeCmdEmptyOutline), iContainer( NULL ) + { + } + +// ----------------------------------------------------------------------------- +// CBCTestVolumeView::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CBCTestVolumeView::ConstructL() + { + BaseConstructL( R_BCTESTVOLUME_VIEW ); + } + +// ----------------------------------------------------------------------------- +// CBCTestVolumeView::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CBCTestVolumeView* CBCTestVolumeView::NewL() + { + CBCTestVolumeView* self = new( ELeave ) CBCTestVolumeView; + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestVolumeView::~CBCTestVolumeView() +// Destructor. +// ---------------------------------------------------------------------------- +CBCTestVolumeView::~CBCTestVolumeView() + { + // Deletes the container class object. + if ( iContainer ) + { + // Removes container from view control stack. + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeView::DisplayNextOutlineL( const TInt ) +// Requires to display next outline screen. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeView::DisplayNextOutlineL() + { + int outlineNumber = EBCTestVolumeCmdMaxOutline-EBCTestVolumeCmdEmptyOutline; + iCurrentOutline = (iCurrentOutline-EBCTestVolumeCmdEmptyOutline+1) % outlineNumber + EBCTestVolumeCmdEmptyOutline; + AppUi()->ProcessCommandL( iCurrentOutline ); + } + +// ---------------------------------------------------------------------------- +// TUid CBCTestVolumeView::Id() +// Returns ID of view. +// ---------------------------------------------------------------------------- +TUid CBCTestVolumeView::Id() const + { + return KViewId; + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeView::HandleCommandL( TInt ) +// Handles the commands. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + AppUi()->ProcessCommandL( EAknCmdExit ); + break; + case EAknCmdExit: + AppUi()->HandleCommandL( EAknCmdExit ); + break; + + case EBCTestVolumeCbaCmdNext: + DisplayNextOutlineL(); + break; + default: + break; + } + if(aCommandEBCTestVolumeCmdEmptyOutline) + IndicateTitlePaneTextL( aCommand); + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeView::IndicateTitlePaneTextL( const TInt ) +// Sets title text to status-pane. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeView::IndicateTitlePaneTextL( const TInt aOutlineId ) + { + iCurrentOutline = aOutlineId; + + CAknTitlePane* titlePane = STATIC_CAST( + CAknTitlePane*, + StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); + + if(aOutlineIdEBCTestVolumeCmdEmptyOutline) + { + _LIT(KTitleFormat, "OUTLINE%d"); + TBuf titleText( 0 ); + titleText.Format(KTitleFormat, (aOutlineId - EBCTestVolumeCmdEmptyOutline) ); + titlePane->SetTextL( titleText ); // Sets title text to status-pane. + } + else + { + titlePane->SetTextToDefaultL(); + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeView::DoActivateL( const TVwsViewId&, TUid, const TDesC& ) +// Creates the container class object. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeView::DoActivateL(const TVwsViewId& /* aPrevViewId */, + TUid /* aCustomMessageId */, + const TDesC8& /* aCustomMessage */ ) + { + // Creates the container class object. + if ( !iContainer ) + { + iContainer = new( ELeave ) CBCTestVolumeContainer( this ); + iContainer->SetMopParent(this); + iContainer->ConstructL( ClientRect() ); + + // Adds container to view control stack. + AppUi()->AddToStackL( *this, iContainer ); + + // Requires to display the default screen. + iContainer->DisplayOutlineL( EBCTestVolumeCmdEmptyOutline ); + iContainer->MakeVisible( ETrue ); + } + } + +// ---------------------------------------------------------------------------- +// void CBCTestVolumeView::DoDeactivate() +// Deletes the container class object. +// ---------------------------------------------------------------------------- +// +void CBCTestVolumeView::DoDeactivate() + { + // Deletes the container class object. + if ( iContainer ) + { + // Removes container from view control stack. + AppUi()->RemoveFromStack( iContainer ); + } + + delete iContainer; + iContainer = NULL; + } + +// ---------------------------------------------------------------------------- +// Getter of the container. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeContainer* CBCTestVolumeView::Container() const + { + return iContainer; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/testvolumenavipane.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/testvolumenavipane.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,297 @@ +/* +* 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: +* +*/ +#include +#include +#include +#include +#include +#include +#include +#include // link against efsrv.lib + +#include "testVolumeNaviPane.h" +#include "BCTestvolume.hrh" +#include "BCTestVolumeView.h" +#include "BCTestVolumeContainer.h" + +//const + +#ifdef __PROTOCOL_CDMA +const TInt KVolumeMinValue=0; +#else +const TInt KVolumeMinValue=1; +#endif //__PROTOCOL_CDMA + +const TInt KVolumeMaxValue=10; + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CTestVolumeNaviPane::CTestVolumeNaviPane(CBCTestVolumeView* aView): + iView(aView), iVolume(0) + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CTestVolumeNaviPane::~CTestVolumeNaviPane() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::ConstructL() + { + ScriptCreateL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL +// ---------------------------------------------------------------------------- +// +CTestVolumeNaviPane* CTestVolumeNaviPane::NewL( CBCTestVolumeView* aView) + { + CTestVolumeNaviPane* self = CTestVolumeNaviPane::NewLC(aView); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// symbian NewLC +// ---------------------------------------------------------------------------- +// +CTestVolumeNaviPane* CTestVolumeNaviPane::NewLC(CBCTestVolumeView* aView) + { + CTestVolumeNaviPane* self = new ( ELeave ) CTestVolumeNaviPane(aView); + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +// ---------------------------------------------------------------------------- +// override from CBCTestCase, response for relative command ID. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::RunL(int aCmd) + { + if(aCmdEBCTestVolumeCmdOutline06) + { + return; + } + + SetupL(); + switch(aCmd) + { + case EBCTestVolumeCmdOutline02: + TestCreateL(); + break; + case EBCTestVolumeCmdOutline03: + TestNormalL(); + break; + case EBCTestVolumeCmdOutline04: + TestIdleL(); + break; + case EBCTestVolumeCmdOutline05: + TestIconL(); + break; + case EBCTestVolumeCmdOutline06: + TestNaviEventL(); + break; + default: + break; + } + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::ScriptCreateL() + { + // + // method 2: add test script dynamically + // + for(int i=2; i<=6; ++i) + { + AddTestL(LeftCBA, TEND); + + // + // select the related menu item + // + for(int j=0; jNaviPane()->CreateVolumeIndicatorL( aResourceID ); + AssertNotNullL(decorator, _L("Volume indicator created by NaviPane:")); + + Container()->NaviPane()->PushL( *decorator ); + + CAknVolumeControl* volume = static_cast(decorator->DecoratedControl() ); + AssertNotNullL(volume, _L("Get decorate control:")); + + // Adds volume control to control stack. + // Volume control can get offered key event. + CEikonEnv::Static()->EikAppUi()->AddToStackL( volume ); + + Container()->SetDecorator(decorator); //to be removed later + Container()->CreateLabelL( aLabelID ); + iVolume=volume; + } + +// ---------------------------------------------------------------------------- +// try to test adjustment of the value for the volume control. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TryAdjustL() + { + // These are for testing hi-res volume which has user defined min and max. + // + // value should range from 1 to 10 + + // Value should range from 1 to 10 in old volume control + iVolume->SetValue(KVolumeMinValue); + AssertIntL(KVolumeMinValue, iVolume->Value(), _L("set value = min")); + + iVolume->SetValue(5); + AssertIntL(5, iVolume->Value(), _L("set value = 5")); + + iVolume->SetValue(KVolumeMaxValue); + AssertIntL(KVolumeMaxValue, iVolume->Value(), _L("set value = max")); + } + +// ---------------------------------------------------------------------------- +// test volume control creating APIs. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TestCreateL() + { + TryCreateL(R_AVKON_NAVI_PANE_VOLUME_INDICATOR, R_BCTESTVOLUME_TEXT_LABEL_OPERATION); + } + +// ---------------------------------------------------------------------------- +// try to test create a volume control and adjust its volume. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TestNormalL() + { + TryCreateL(R_AVKON_NAVI_PANE_VOLUME_INDICATOR, R_BCTESTVOLUME_TEXT_LABEL_EVENT1); + TryAdjustL(); + } + +// ---------------------------------------------------------------------------- +// try to test create a volume control from IDLE state. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TestIdleL() + { + + CEikonEnv::Static()->AppUiFactory()->StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE ); + #ifdef R_AVKON_STATUS_PANE_LAYOUT_IDLE_EXT + { + CEikonEnv::Static()->AppUiFactory()->StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE_EXT ); + } + #endif + + CEikonEnv::Static()->AppUiFactory()->StatusPane()->CurrentLayoutResId(); + + AssertTrueL( ETrue, _L("Set Navi pane to IDLE") ); + + TryCreateL(R_AVKON_NAVI_PANE_VOLUME_INDICATOR, R_BCTESTVOLUME_TEXT_LABEL_OPERATION); + TryAdjustL(); + Container()->UpdateComponentsL(); + CEikonEnv::Static()->AppUiFactory()->StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL ); + + #ifdef R_AVKON_STATUS_PANE_LAYOUT_USUAL_EXT + { + CEikonEnv::Static()->AppUiFactory()->StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL_EXT ); + } + #endif + + AssertTrueL( ETrue, _L("Set Navi pane to Usual") ); + } + +// ---------------------------------------------------------------------------- +// test create the volume control via ICON_SET +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TestIconL() + { + TryCreateL(R_BCTESTVOLUME_NAVI_PANE_VOLUME_INDICATOR_ICON_SET, R_BCTESTVOLUME_TEXT_LABEL_OPERATION); + AssertTrueL(ETrue, _L("create from icon set")); + TryAdjustL(); + } + +// ---------------------------------------------------------------------------- +// test navigation event handler of the volume control. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TestNaviEventL() + { + TryCreateL(R_AVKON_NAVI_PANE_VOLUME_INDICATOR, R_BCTESTVOLUME_TEXT_LABEL_EVENT1); + iVolume->SetValue(5); + + iVolume->HandleNaviDecoratorEventL(MAknNaviDecoratorObserver::EAknNaviDecoratorEventLeftTabArrow); + AssertTrueL(ETrue, _L("HandleNaviDecoratorEventL invoked.")); + } + +// ---------------------------------------------------------------------------- +// getter of the container +// ---------------------------------------------------------------------------- +// +CBCTestVolumeContainer* CTestVolumeNaviPane::Container() const + { + return iView->Container(); + } + +// ---------------------------------------------------------------------------- +// do necessary setup jobs. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::SetupL() + { + Container()->ResetComponentsL(); + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CTestVolumeNaviPane::TearDownL() + { + Container()->UpdateComponentsL(); + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/testvolumesettingpage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/bctestvolume/src/testvolumesettingpage.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,154 @@ +/* +* 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: +* +*/ +#include +#include + +#include "testVolumeSettingPage.h" +#include "BCTestvolume.hrh" +#include "BCTestVolumeView.h" +#include "BCTestVolumeContainer.h" + +//const + +const TInt KBCTestVolumeDefaultVolumeLevel = 7; + +// ---------------------------------------------------------------------------- +// ctor, do nothing. +// ---------------------------------------------------------------------------- +// +CTestVolumeSettingPage::CTestVolumeSettingPage(CBCTestVolumeView* aView): + iView(aView) + { + } + +// ---------------------------------------------------------------------------- +// dtor, do nothing. +// ---------------------------------------------------------------------------- +// +CTestVolumeSettingPage::~CTestVolumeSettingPage() + { + } + +// ---------------------------------------------------------------------------- +// symbian 2nd phase ctor. +// ---------------------------------------------------------------------------- +// +void CTestVolumeSettingPage::ConstructL() + { + BuildScriptL(); + } + +// ---------------------------------------------------------------------------- +// symbian NewL. +// ---------------------------------------------------------------------------- +// +CTestVolumeSettingPage* CTestVolumeSettingPage::NewL(CBCTestVolumeView* aView) + { + CTestVolumeSettingPage* self = CTestVolumeSettingPage::NewLC(aView); + CleanupStack::Pop(self); + return self; + } + +// ---------------------------------------------------------------------------- +// symbian NewLC +// ---------------------------------------------------------------------------- +// +CTestVolumeSettingPage* CTestVolumeSettingPage::NewLC(CBCTestVolumeView* aView) + { + CTestVolumeSettingPage* self = new ( ELeave ) CTestVolumeSettingPage(aView); + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +// ---------------------------------------------------------------------------- +// override the CBCTestCase::RunL, only response to the related command ID. +// ---------------------------------------------------------------------------- +// +void CTestVolumeSettingPage::RunL(int aCmd) + { + if(aCmd != EBCTestVolumeCmdOutline01) return; + SetupL(); + TestL(); + TearDownL(); + } + +// ---------------------------------------------------------------------------- +// build the test scripts for this test case. +// ---------------------------------------------------------------------------- +// +void CTestVolumeSettingPage::BuildScriptL() + { + // + // method 1: add script by const array + // + const TInt scripts[] = + { + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, LeftCBA, + LeftCBA + }; + AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt)); + } + +// ---------------------------------------------------------------------------- +// test the volume setting page creation api. +// ---------------------------------------------------------------------------- +// +void CTestVolumeSettingPage::TestL() + { + TInt volume(KBCTestVolumeDefaultVolumeLevel); + CAknVolumeSettingPage* volumeSettingPage = new( ELeave ) CAknVolumeSettingPage( + R_BCTESTVOLUME_SETTING_PAGE_VOLUME_INDICATOR, + volume ); + + AssertNotNullL(volumeSettingPage, _L("create volume setting page.")); + + AssertTrueL( + volumeSettingPage->ExecuteLD( CAknSettingPage::EUpdateWhenChanged ), + _L("setting page executed.")); + } + +// ---------------------------------------------------------------------------- +// getter for the container. +// ---------------------------------------------------------------------------- +// +CBCTestVolumeContainer* CTestVolumeSettingPage::Container() const + { + return iView->Container(); + } + +// ---------------------------------------------------------------------------- +// prepare for the test. +// ---------------------------------------------------------------------------- +// +void CTestVolumeSettingPage::SetupL() + { + Container()->ResetComponentsL(); + } + +// ---------------------------------------------------------------------------- +// do release jobs. +// ---------------------------------------------------------------------------- +// +void CTestVolumeSettingPage::TearDownL() + { + Container()->CreateLabelL( R_BCTESTVOLUME_TEXT_LABEL_OPERATION ); + Container()->UpdateComponentsL(); + } + +//end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.0/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,94 @@ +/* +* 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 "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: build information +* +*/ + + + +PRJ_MMPFILES + +../../bctestutil/group/bctestutil.mmp + +../bctestaknsound/group/bctestaknsound.mmp + +../bctestappfrm/group/bctestappfrm.mmp + +../bctestbuttons/group/bctestbuttons.mmp + +../bctestcmdlg/group/bctestcmdlg.mmp + +../bctestdocandinit/group/bctestdocandinit.mmp + +../bctesteditor/group/bctesteditor.mmp + +../bctesteh/group/bctesteh.mmp + +../bctesteikbctrl/group/bctesteikbctrl.mmp + +../bctesteikfrm/group/bctesteikfrm.mmp + +../bctestfontinput/group/bctestfontinput.mmp + +../bctestform/group/bctestform.mmp + +../bctestgrids/group/bctestgrids.mmp + +../bctestimage/group/bctestimage.mmp + +../bctestkeylock/group/bctestkeylock.mmp + +../bctestlabelinfoindicators/group/bctestlabelinfoindicators.mmp + +../../bctestlauncher/group/bctestlauncher.mmp + +gnumakefile ../bctestlist/group/icons_list.mk +../bctestlist/group/bctestlist.mmp + +../bctestmenu/group/bctestmenu.mmp + +../bctestmisccontrol/group/bctestmisccontrol.mmp + +../bctestnote/group/bctestnote.mmp + +../bctestnotifier/group/bctestnotifier.mmp + +../bctestpane/group/bctestpane.mmp + +../bctestpopups/group/bctestpopups.mmp + +../bctestprivateuifrm/group/bctestprivateuifrm.mmp + +../bctestptieng/group/bctestptieng.mmp + +../bctestquery/group/bctestquery.mmp + +../bctestscreenclearer/group/bctestscreenclearer.mmp + +../bctestscrollerbar/group/bctestscroller.mmp + +../bctestsearchfield/group/bctestsearchfield.mmp + +../bctestserverapp/group/bctestserverapp.mmp + +../bctestsettingpage/group/bctestsettingpage.mmp + +../bctestskins/group/bctestskins.mmp + +../bctestsliderandicons/group/bctestsliderandicons.mmp + +../bctestutilities/group/bctestutilities.mmp + +../bctestvolume/group/bctestvolume.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bctestlocation.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bctestlocation.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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: project specification file for the BCTestLocation. +* +*/ + + +TARGET BCTestLocation.exe +TARGETTYPE exe +UID 0x0 0x2000476A + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestLocation.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE BCTestLocationapp.cpp +SOURCE BCTestLocationdocument.cpp +SOURCE BCTestLocationappui.cpp +SOURCE BCTestLocationview.cpp +SOURCE BCTestLocationcontainer.cpp +SOURCE BCTestLocationcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../BCTESTUTIL/Inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eikctl.lib +LIBRARY Lbs.lib + +START RESOURCE ../group/BCTestLocation_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bctestlocation.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bctestlocation.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,225 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include "BCTestlocation.hrh" +#include "BCTestlocation.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestlocation_BMP_FNAME APP_BITMAP_DIR"\\BCTestLocation.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestLocation"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestlocation_menubar_main; + cba = r_bctestlocation_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestlocation_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestlocation_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocation_view +// AVKON_VIEW for CBCTestLocationView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestlocation_view + { + menubar = r_bctestlocation_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocation_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestlocation_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestlocation_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestlocation_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocation_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlocation_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestlocation_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocation_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlocation_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestlocation_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestlocation_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestlocation_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestlocation_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestLocationCbaCmdNext; + txt = qtn_bctestlocation_cba_next; + } + }; + } + + +RESOURCE LATITUDE_EDITOR r_bctestlocation_latitude_editor + { + flags = 0; + latlongresourceid = R_EIK_LATITUDE_AND_LONGITUDE; // LATITUDE_AND_LONGITUDE + } + +RESOURCE AVKON_DATA_QUERY r_bctestlocation_query + { + layout = EDataLayout; + label = qtn_bctestlocation_query_label; + control=EDWIN + { + maxlength=100; + width=20; + lines=1; + default_input_mode=EAknEditorTextInputMode; + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bctestlocation_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bctestlocation_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000476A // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestLocation"; + localisable_resource_file = "\\resource\\apps\\BCTestLocation"; + localisable_resource_id = R_BCTESTLOCATION_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestLocation.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocation.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocation.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestLocation resource header file +* +*/ + + +#ifndef BCTESTLOCATION_HRH +#define BCTESTLOCATION_HRH + +enum TBCTestLocationMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestLocationCba + { + EBCTestLocationCbaCmdNext = 0x6300 + }; + +#endif // BCTESTLOCATION_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocation.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocation.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestLocation localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTLOCATION" +#define qtn_apps_tavl_grid "BCTESTLOCATION" + +// MenuBar +#define qtn_bctestlocation_menubar "Option" +#define qtn_bctestlocation_cba_next "Next" +#define qtn_bctestlocation_autotest "Autotest" +#define qtn_bctestlocation_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestlocation_outline1 "Outline01" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestLOCATIONAPP_H +#define BCTestLOCATIONAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestLocation = { 0x2000476A }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestLocationApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestLocationApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestLocationDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestLocation ). + * @return The value of KUidBCTestLocation. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTLOCATIONAPPUI_H +#define C_BCTESTLOCATIONAPPUI_H + +#include + +class CBCTestLocationView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestLocationAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestLocationAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestLocationAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestLocationView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTLOCATIONAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_LOCATIONCASE_H +#define BCTEST_LOCATIONCASE_H + +#include "bctestcase.h" + +class CBCTestLocationContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestLocationCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestLocationCase* NewL( CBCTestLocationContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestLocationCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunctionOne(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestLocationCase( CBCTestLocationContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestLocationContainer* iContainer; + + }; + +#endif // BCTEST_LOCATIONCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_LOCATIONCONTAINER_H +#define BCTEST_LOCATIONCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestLocationContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestLocationContainer(); + + /** + * Destructor + */ + virtual ~CBCTestLocationContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_LOCATIONCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTLOCATIONDOCUMENT_H +#define C_BCTESTLOCATIONDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestLocationDocument application class. +*/ +class CBCTestLocationDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestLocationDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestLocationDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestLocationDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestLocationAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTLOCATIONDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/inc/bctestlocationview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_LOCATION_VIEW_H +#define BCTEST_LOCATION_VIEW_H + +#include + +const TUid KBCTestLocationViewId = { 1 }; + +class CBCTestLocationContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestLocationView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestLocationView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestLocationView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestLocationContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestLocationView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestLocationContainer* iContainer; + + }; + +#endif // BCTEST_LOCATION_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/sis/bctestlocation.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/sis/bctestlocation.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestlocation.pkg + +; Languages +&EN + +; Header +#{"bctestlocation"},(0x2000476A),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestlocation.exe"- +"!:\sys\bin\bctestlocation.exe" + +"\epoc32\data\z\resource\apps\bctestlocation.rsc"- +"!:\resource\apps\bctestlocation.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestlocation_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestlocation_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestLocationApp.h" +#include "BCTestLocationDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestLocationApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestLocationApp::AppDllUid() const + { + return KUidBCTestLocation; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestLocationApp::CreateDocumentL() +// Creates CBCTestLocationDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestLocationApp::CreateDocumentL() + { + return CBCTestLocationDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestLocationApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestLocationApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestlocationAppUi.h" +#include "bctestlocation.hrh" +#include "bctestlocationview.h" +#include "bctestutil.h" +#include "bctestlocationcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestLocationAppUi::CBCTestLocationAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestLocationAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestLocationView* view = CBCTestLocationView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestLocationCase::NewL( view->Container() ), + _L("Template test case") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestLocationAppUi::~CBCTestLocationAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocationAppUi::~CBCTestLocationAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestLocationAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include "bctestlocationcase.h" +#include "bctestlocationcontainer.h" +#include "bctestlocationview.h" +#include "bctestlocation.hrh" +#include +#include +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocationCase* CBCTestLocationCase::NewL( + CBCTestLocationContainer* aContainer ) + { + CBCTestLocationCase* self = new( ELeave ) CBCTestLocationCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestLocationCase::CBCTestLocationCase( + CBCTestLocationContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLocationCase::~CBCTestLocationCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLocationCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLocationCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestLocationCase::BuildScriptL() + { + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestLocationCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestLocationCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdMaxOutline ) + { + return; + } + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionOne(); + break; + default: + break; + } + } + +void CBCTestLocationCase::TestFunctionOne() + { + _LIT(strCAknQueryNewL, "test NewL() in AknQueryDialog.h"); + _LIT(strGetLocation, "test GetLocation() in AknQueryControl.h"); + _LIT(strSetLocation, "test SetLocation() in AknQueryControl.h"); + + TCoordinate coord(01.00, 01.0); + TLocality loc(coord, 0.1); + TPosition bp(loc, TTime()); + CAknMultiLineDataQueryDialog* mulDlg = + CAknMultiLineDataQueryDialog::NewL( bp ); + AssertTrueL( ETrue, strCAknQueryNewL ); + delete mulDlg; + + CAknQueryControl* qd = new (ELeave) CAknQueryControl(); + CleanupStack::PushL( qd ); + qd->SetContainerWindowL( *iContainer ); + TResourceReader reader; + CEikonEnv::Static()->CreateResourceReaderLC( reader, + R_BCTESTLOCATION_QUERY ); + qd->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + + qd->SetLocation(bp); + AssertTrueL( ETrue, strSetLocation ); + + qd->GetLocation(bp); + AssertTrueL( ETrue, strGetLocation ); + + CleanupStack::PopAndDestroy( qd ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,118 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestlocationcontainer.h" +#include + +#define KAknAtListGray TRgb(0xaaaaaa) +#define MFNE1_POS TPoint(10,35) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocationContainer::CBCTestLocationContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLocationContainer::~CBCTestLocationContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLocationContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect(aRect); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestLocationContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestLocationContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestLocationContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestLocationContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestLocationContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestLocationContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestLocationContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestLocationContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestLocationContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestLocationContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestLocationDocument.h" +#include "BCTestLocationAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestLocationDocument* CBCTestLocationDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocationDocument* CBCTestLocationDocument::NewL( CEikApplication& aApp ) + { + CBCTestLocationDocument* self = new( ELeave ) CBCTestLocationDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestLocationDocument::~CBCTestLocationDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocationDocument::~CBCTestLocationDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestLocationDocument::CBCTestLocationDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocationDocument::CBCTestLocationDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestLocationDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestLocationDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestLocationAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestlocation/src/bctestlocationview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestlocation.hrh" +#include +#include "bctestlocationview.h" +#include "bctestlocationcontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocationView* CBCTestLocationView::NewL(CBCTestUtil* aUtil) + { + CBCTestLocationView* self = new( ELeave ) CBCTestLocationView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocationView::CBCTestLocationView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLocationView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTLOCATION_VIEW ); + + iContainer = new( ELeave ) CBCTestLocationContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLocationView::~CBCTestLocationView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestLocationView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestLocationView::Id() const + { + return KBCTestLocationViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestLocationView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestLocationView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestLocationView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestLocationView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestLocationView::Container +// --------------------------------------------------------------------------- +// +CBCTestLocationContainer* CBCTestLocationView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestLocationView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestLocationView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bctestmisc.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bctestmisc.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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: project specification file for the BCTestMisc. +* +*/ + + +TARGET bctestmisc.exe +TARGETTYPE exe +UID 0x0 0x20004765 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctestmisc.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctestmiscapp.cpp +SOURCE bctestmiscdocument.cpp +SOURCE bctestmiscappui.cpp +SOURCE bctestmiscview.cpp +SOURCE bctestmisccontainer.cpp +SOURCE bctestmisccase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE .. /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eiksrv.lib + +START RESOURCE ../group/bctestmisc_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bctestmisc.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bctestmisc.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,236 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME MISC + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestmisc.hrh" +#include "bctestmisc.loc" +#include "bctesttouchpane.rh" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTMISC_BMP_FNAME APP_BITMAP_DIR"\\bctestmisc.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctest_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestmisc_menubar_main; + cba = r_bctestmisc_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestmisc_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestmisc_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc_view +// AVKON_VIEW for CBCTestMiscView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmisc_view + { + menubar = r_bctestmisc_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmisc_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmisc_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestmisc_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisc_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestmisc_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisc_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestmisc_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestmisc_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestmisc_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestmisc_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestMiscCbaCmdNext; + txt = qtn_bctestmisc_cba_next; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestmisc_touchpane +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE BCTouchPane r_bctestmisc_touchpane + { + version = 0; + flags = 0; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestmisc_menu +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE MENU_TITLE r_bctestmisc_menu_title + { + menu_pane = 0; + txt = ""; + flags=0; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + extension=0; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bctestmisc_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bctestmisc_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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 "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: resources for the module +* +*/ + + +#include +#include + +#include "bctestmisc.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004765 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_bctest_app_file; + localisable_resource_file = qtn_bctest_resource; + localisable_resource_id = R_BCTESTMISC_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_bctest_group; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,23 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestMisc.mmp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisc.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisc.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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 "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: BCTestMisc resource header file +* +*/ + + +#ifndef BCTESTMISC_HRH +#define BCTESTMISC_HRH + +enum TBCTestMiscMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestMiscCba + { + EBCTestMiscCbaCmdNext = 0x6300 + }; + +#endif // BCTESTMISC_HRH + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisc.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisc.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: BCTestMisc localise file +* +*/ + + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTMISC" +#define qtn_apps_tavl_grid "BCTESTMISC" + +// MenuBar +#define qtn_bctestmisc_menubar "Option" +#define qtn_bctestmisc_cba_next "Next" +#define qtn_bctestmisc_autotest "Autotest" +#define qtn_bctestmisc_menu_exit "Exit" + +//Name +#define qtn_bctest_buf "bctestmisc" +#define qtn_bctest_app_file "bctestmisc" +#define qtn_bctest_resource "\\resource\\apps\\bctestmisc" +#define qtn_bctest_group "BCTest" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestmisc_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,55 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTMISCAPP_H +#define C_CBCTESTMISCAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestMisc = { 0x20004765 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestMiscApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestMiscApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestMiscDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestMisc ). + * @return The value of KUidBCTestMisc. + */ + TUid AppDllUid() const; + + }; + +#endif + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 BC for Misc control API. +* +*/ + + +#ifndef C_CBCTESTMISCAPPUI_H +#define C_CBCTESTMISCAPPUI_H + +#include + +class CBCTestMiscView; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestMiscAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestMiscAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestMiscAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestMiscView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_CBCTESTMISCAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisccase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisccase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTMISCCASE_H +#define C_CBCTESTMISCCASE_H + +#include "bctestcase.h" + +class CBCTestMiscContainer; +class CCoeControl; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestMiscCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMiscCase* NewL( CBCTestMiscContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestMiscCase(); + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMiscCase( CBCTestMiscContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * TestAknScreenModesL + */ + void TestAknScreenModesL(); + +private: // data + + /** + * Pointer to CEikonEnv + * Not own + */ + CEikonEnv* iEnv; + + /** + * Pointer to container. + * not own + */ + CBCTestMiscContainer* iContainer; + + }; + +#endif // C_CBCTEST_MISCCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisccontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmisccontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef C_CBCTESTMISCCONTAINER_H +#define C_CBCTESTMISCCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestMiscContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestMiscContainer(); + + /** + * Destructor + */ + virtual ~CBCTestMiscContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTEST_MISCCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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 C_CBCTESTMISCDOCUMENT_H +#define C_CBCTESTMISCDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestMiscDocument application class. +*/ +class CBCTestMiscDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestMiscDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestMiscDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestMiscDocument( CEikApplication& aApp ); + +private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestMiscAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_CBCTESTMISCDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctestmiscview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "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 BC for Misc control API. +* +*/ + + +#ifndef C_CBCTESTMISCVIEW_H +#define C_CBCTESTMISCVIEW_H + +#include + +const TUid KBCTestMiscViewId = { 1 }; + +class CBCTestMiscContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestMiscView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestMiscView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestMiscView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestMiscContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMiscView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestMiscContainer* iContainer; + + }; + +#endif // C_CBCTESTMISCVIEW_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctesttouchpane.rh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/inc/bctesttouchpane.rh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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 structure definitions for BCTestMisc +* +*/ + + +STRUCT BCTouchPane + { + BYTE version; + LONG flags; + } +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/sis/bctestmisc.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/sis/bctestmisc.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +; +; 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: +; +; bctestmisc.pkg + +; Languages +&EN + +; Header +#{"bctestmisc"},(0x20004765),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestmisc.exe"- +"!:\sys\bin\bctestmisc.exe" + +"\epoc32\data\z\resource\apps\bctestmisc.rsc"- +"!:\resource\apps\bctestmisc.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestmisc_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestmisc_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Avkon Misc test app +* +*/ + + +// INCLUDE FILES +#include "bctestmiscapp.h" +#include "bctestmiscdocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestMiscApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestMiscApp::AppDllUid() const + { + return KUidBCTestMisc; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestMiscApp::CreateDocumentL() +// Creates CBCTestMiscDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestMiscApp::CreateDocumentL() + { + return CBCTestMiscDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestMiscApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestMiscApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for misc control api(s) +* +*/ + + +#include +#include + +#include "bctestmiscappui.h" +#include "bctestmisc.hrh" +#include "bctestmiscview.h" +#include "bctestutil.h" +#include "bctestmisccase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestMiscAppUi::CBCTestMiscAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestMiscAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestMiscView* view = CBCTestMiscView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + _LIT( KTestCase, "Misc test case" ); + iTestUtil->AddTestCaseL( CBCTestMiscCase::NewL( view->Container() ), + KTestCase ); + } + +// ---------------------------------------------------------------------------- +// CBCTestMiscAppUi::~CBCTestMiscAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestMiscAppUi::~CBCTestMiscAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestMiscAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + } + break; + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmisccase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmisccase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,167 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestmisccase.h" +#include "bctestmisccontainer.h" +#include "bctestmisc.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscCase* CBCTestMiscCase::NewL( + CBCTestMiscContainer* aContainer ) + { + CBCTestMiscCase* self = new( ELeave ) CBCTestMiscCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscCase::CBCTestMiscCase( + CBCTestMiscContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMiscCase::~CBCTestMiscCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMiscCase::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestMiscCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMiscCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestMiscCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestMiscCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestAknScreenModesL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestMiscCase::TestAknScreenModesL +// --------------------------------------------------------------------------- +// +void CBCTestMiscCase::TestAknScreenModesL() + { + //TAknScreenModes screenModes; + TAknScreenModes screenModes = TAknScreenModes::GetModes(); + _LIT( KGetModes, "GetModes test" ); + AssertTrueL( ETrue, KGetModes ); + + TInt count = screenModes.Count(); + _LIT( KCount, "Count test" ); + AssertTrueL( ETrue, KCount ); + + TAknScreenMode screenMode = screenModes[0]; + _LIT( KOperator, "operator test" ); + AssertTrueL( ETrue, KOperator ); + + CAknAppUiBase* uiBase = static_cast( iEnv->EikAppUi() ); + screenModes.SetAppUiScreenModeL( uiBase, screenMode ); + _LIT( KSetAppUiScreenModeL, "SetAppUiScreenModeL test" ); + AssertTrueL( ETrue, KSetAppUiScreenModeL ); + + TSize size = screenMode.SizeInPixels(); + _LIT( KSizeInPixels, "SizeInPixels test" ); + AssertTrueL( ETrue, KSizeInPixels ); + + TDisplayMode displayMode = screenMode.DisplayMode(); + _LIT( KDisplayMode, "DisplayMode test" ); + AssertTrueL( ETrue, KDisplayMode ); + + TInt modeNumber = screenMode.ModeNumber(); + _LIT( KModeNumber, "ModeNumber test" ); + AssertTrueL( ETrue, KModeNumber ); + + + CEikMenuBar* menuBar = new( ELeave ) CEikMenuBar(); + CleanupStack::PushL( menuBar ); + + menuBar->ConstructL( CAknEnv::Static()->FepMenuObserver(), 0, 0 ); + + menuBar->SetContextMenuTitleResourceId( R_BCTESTMISC_MENU_TITLE ); + _LIT( KResource, "SetContextMenuTitleResourceId test" ); + AssertTrueL( ETrue, KResource ); + + menuBar->TryDisplayContextMenuBarL(); + _LIT( KTry, "TryDisplayContextMenuBarL test" ); + AssertTrueL( ETrue, KTry ); + + menuBar->SetMenuType( CEikMenuBar::EMenuOptions ); + _LIT( KSetMenuType , "SetMenuType test"); + AssertTrueL( ETrue, KSetMenuType ); + + CleanupStack::PopAndDestroy( menuBar ); + + TBool ret = AknLayoutUtils:: MSKEnabled(); + _LIT( KMSK, "MSKEnabled test" ); + AssertTrueL( ETrue, KMSK ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmisccontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmisccontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestmisccontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscContainer::CBCTestMiscContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMiscContainer::~CBCTestMiscContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMiscContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestMiscContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestMiscContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestMiscContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestMiscContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestMiscContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestMiscContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestMiscContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestMiscContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestMiscContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Misc test application +* +*/ + + +// INCLUDE FILES +#include "bctestmiscdocument.h" +#include "bctestmiscappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestMiscDocument* CBCTestMiscDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestMiscDocument* CBCTestMiscDocument::NewL( CEikApplication& aApp ) + { + CBCTestMiscDocument* self = new( ELeave ) CBCTestMiscDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestMiscDocument::~CBCTestMiscDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestMiscDocument::~CBCTestMiscDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestMiscDocument::CBCTestMiscDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestMiscDocument::CBCTestMiscDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestMiscDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestMiscDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestMiscAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestmisc/src/bctestmiscview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctestmisc.hrh" +#include "bctestmiscview.h" +#include "bctestmisccontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscView* CBCTestMiscView::NewL(CBCTestUtil* aUtil) + { + CBCTestMiscView* self = new( ELeave ) CBCTestMiscView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMiscView::CBCTestMiscView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMiscView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTMISC_VIEW ); + + iContainer = new( ELeave ) CBCTestMiscContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMiscView::~CBCTestMiscView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestMiscView::Id() const + { + return KBCTestMiscViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestMiscView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestMiscView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestMiscView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestMiscView::Container +// --------------------------------------------------------------------------- +// +CBCTestMiscContainer* CBCTestMiscView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestMiscView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestMiscView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bctestocr.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bctestocr.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,78 @@ +/* +* 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 "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: project specification file for the bctestocr +* +*/ + + +TARGET bctestocr.exe +TARGETTYPE exe +UID 0x0 0x20004763 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x5000000 + +START RESOURCE bctestocr.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +LANG sc + +SOURCEPATH ../src +SOURCE bctestocrapp.cpp +SOURCE bctestocrdocument.cpp +SOURCE bctestocrappui.cpp +SOURCE bctestocrview.cpp +SOURCE bctestocrcontainer.cpp +SOURCE bctestocrcase.cpp + + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY AknIcon.lib +LIBRARY AknSkins.lib +LIBRARY avkon.lib +LIBRARY apparc.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY cone.lib +LIBRARY egul.lib +LIBRARY euser.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY eikctl.lib +LIBRARY eikdlg.lib +LIBRARY eikcdlg.lib +LIBRARY estor.lib +LIBRARY ocrsrv.lib +LIBRARY fbscli.lib +LIBRARY flogger.lib +LIBRARY efsrv.lib +LIBRARY hal.lib + +START RESOURCE ../group/bctestocr_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bctestocr.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bctestocr.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,202 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME OCRE + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestocr.hrh" +#include "bctestocr.loc" + +// RESOURCE DEFINITIONS +//---------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//---------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//---------------------------------------------------------------------------- +// +// TBUF16 +// +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctestocr_buf; + } + +//---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestocr_menubar; + cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; + } + +// --------------------------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestocr_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + number_of_icons = 2; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestocr_view +// +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestocr_view + { + } + +//---------------------------------------------------------------------------- +// +// r_bctestocr_menubar +// MenuBar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestocr_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestocr_menu; + txt = qtn_bctestocr_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestocr_menu +// Menu pane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestocr_menu + { + items = + { + MENU_ITEM + { + command = EBCTestOCRCmd1; + cascade = r_bctestocr_menu_ocr_cascade; + txt = qtn_bctestocr_menu_ocr; + }, + MENU_ITEM + { + command = EBCTestOCRCmdAutotest; + txt = qtn_bctestocr_menu_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestocr_menu_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestocr_menu_ocr_cascade +// Sub menu-pane of "OCR" menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestocr_menu_ocr_cascade + { + items = + { + MENU_ITEM + { + command = EBCTestOCRCmdOutline01; + txt = qtn_bctestocr_menu_out01; + } + }; + } + + +//---------------------------------------------------- +// +// r_commons60ui_wait_note +// +// Dialog resource for wait dialog +// +//---------------------------------------------------- +// +RESOURCE DIALOG r_commons60ui_wait_note + { + flags = EAknWaitNoteFlags; + buttons = R_AVKON_SOFTKEYS_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = 10; + control = AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_bctestocr_label; + plural_label = ""; + animation = R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bctestocr_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bctestocr_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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 "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 bctestocr +* +*/ + + +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004763 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestOcr"; + localisable_resource_file = "\\resource\\apps\\BCTestOcr"; + localisable_resource_id = R_BCTESTOCR_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,24 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +bctestocr.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocr.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocr.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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: bctestocr resource header file +* +*/ + + +#ifndef BCTESTOCR_HRH +#define BCTESTOCR_HRH + +enum TBCTestOCRMenuGroupCommands + { + EBCTestOCRCmd1 = 0x6000, + EBCTestOCRCmdAutotest + }; + +enum TBCTestPopupsMenuCommands + { + EBCTestOCRCmdEmptyOutline = 0x6020, + EBCTestOCRCmdOutline01, + EBCTestOCRCmdMaxOutline + }; + +#endif // BCTESTOCR_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocr.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocr.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +/* +* 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 "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: bctestocr localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTOCR" +#define qtn_apps_tavl_grid "BCTESTOCR" + +// MenuBar +#define qtn_bctestocr_menubar "Options" +#define qtn_bctestocr_menu_ocr "OCR" +#define qtn_bctestocr_menu_autotest "Autotest" +#define qtn_bctestocr_menu_exit "Exit" + +// Sub menubar of "OCR" menu +#define qtn_bctestocr_menu_out01 "OUTLINE01" +#define qtn_bctestocr_menu_out02 "OUTLINE02" +#define qtn_bctestocr_menu_out03 "OUTLINE03" +#define qtn_bctestocr_menu_out04 "OUTLINE04" +#define qtn_bctestocr_menu_out05 "OUTLINE05" +#define qtn_bctestocr_menu_out06 "OUTLINE06" + +// registraton string +#define qtn_apps_name "bctestocr" +#define qtn_localization_filename "\\resource\\apps\\bctestocr" +#define qtn_group_name "BCTest" + +#define qtn_bctestocr_buf "BCTestOCR" +#define qtn_bctestocr_label "Exercise in progress..." + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,52 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTOCRAPP_H +#define C_CBCTESTOCRAPP_H + +#include + +const TUid KUidBCTestOCR = { 0x20004763 }; // UID of the application. + +/** + * CBCTestOCRApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestOCRApp : public CAknApplication + { +private: + +// From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestOCRDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestOCR ). + * @return The value of KUidBCTestOCR. + */ + TUid AppDllUid() const; + + }; + +#endif // C_CBCTESTOCRAPP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: Declares test bc for ocr appui. +* +*/ + + +#ifndef C_CBCTESTOCRAPPUI_H +#define C_CBCTESTOCRAPPUI_H + +#include + +class CBCTestOCRView; + +/** + * Application UI class + */ +class CBCTestOCRAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestOCRAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestOCRAppUi(); + +private: + +// From CEikAppUi + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointer to the view. + * own + */ + CBCTestOCRView* iView; + + }; + +#endif // C_CBCTESTOCRAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,208 @@ +/* +* 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 "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: Declares test bc for ocr testcase. +* +*/ + + +#ifndef C_CBCTESTOCRCASE_H +#define C_CBCTESTOCRCASE_H + +#include +#include +#include +#include +#include +#include + +#include "bctestcase.h" + +class CBCTestOCRContainer; +class CCoeControl; +class CAknWaitDialog; +class CEikonEnv; + +/** + * test case for various misc control classes + */ +class CBCTestOCRCase: public CBCTestCase, + public MOCREngineObserver, + public MProgressDialogCallback + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestOCRCase* NewL( CBCTestOCRContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestOCRCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +// from MProgressDialogCallback + + /** + * Callback method + * Get's called when a dialog is dismissed. + * @param aButtonId button id to the dialog + */ + void DialogDismissedL ( TInt /*aButtonId*/ ); + +// from MOCREngineObserver + + /** + * This function will be called after the Full Image Recognition is + * completed. This calling only valid when using the + * EEngineLayoutRecognize type of engine + * @param aError Error code to indicate the completion status + * @param aBlocks Pointer to the text information of the recognized image + * block, Please note that the memory ownership belongs to + * the OCR engine and will not be passed to your procedure + * after this calling + * @param aBlockCount Number of block identified + */ + void RecognizeComplete( TInt aError, + const TOCRTextRgnInfo* aBlock, + const TInt aBlockCount ); + + /** + * This interface will be called after the Full Image Layout Analysis is + * completed. This calling only valid when using the EEngineLayoutRecognize + * type of engine + * @param aError Error code to indicate the completion status + * @param aBlocks Pointer to the text information of the recognized image + * block, Please note that the memory ownership belongs to + * the OCR engine and will not be passed to your procedure + * after this calling + * @param aBlockCount Number of block identified + */ + void LayoutComplete( TInt aError, + const TOCRBlockInfo* /*aBlock*/, + const TInt aBlockCount ); + + /** + * This interface will be called during the procession and indicates + * the progress. + * @param aPercent A percentage of the current progression + */ + void RecognizeProcess( const TUint aPercent ); + + /** + * This interface will be called after the Block Recognition is completed. + * This calling only valid when using the EEngineRecognizeBlock type of + * engine + * @param aError Error code to indicate the completion status + * @param aBlocks Pointer to the text information of the recognized image + * block, Please note that the memory ownership belongs to + * the OCR engine and will not be passed to your procedure + * after this calling + * @param aBlockCount Number of block identified + */ + void RecognizeBlockComplete( TInt aError, + const TOCRTextRgnInfo* aBlock, + const TInt aBlockCount ); + + /** + * This interface will be called after the Special Region Recognition is + completed. This calling + * only valid when using the EEngineRecognizeBlock type of engine + * @param aError Error code to indicate the completion status + * @param aBlocks Pointer to the text information of the recognized image + block, Please note that the memory ownership belongs to + the OCR engine and will not be passed to your procedure + after this calling + * @param aBlockCount Number of block identified + */ + void RecognizeSpecialRegionComplete( TInt aError, + const TOCRTextRgnInfo* aBlock, + const TInt aBlockCount ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * TestFunctionsForOCRL function + */ + void TestFunctionsForOCRL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestOCRCase( CBCTestOCRContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * DoRecgonizeBlock function + */ + void DoRecgonizeBlock(); + + /** + * DoRecgonizeSpecialRegion function + */ + void DoRecgonizeSpecialRegion(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestOCRContainer* iContainer; + + /** + * Pointer to MOCREngineLayoutRecognize. + * own + */ + MOCREngineLayoutRecognize* iEngine; + + /** + * Pointer to MOCREngineRecognizeBlock. + * own + */ + MOCREngineRecognizeBlock* iEngine2; + + /** + * object to TOcrEngineEnv. + */ + TOcrEngineEnv iEngineEnv; + + /** + * Pointer to TLanguage. + * own + */ + RArray iLanguages; + + }; + +#endif // C_CBCTESTOCRCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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: Declares test bc for ocr container. +* +*/ + + +#ifndef C_CBCTESTOCRCONTAINER_H +#define C_CBCTESTOCRCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestOCRContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestOCRContainer(); + + /** + * Destructor + */ + virtual ~CBCTestOCRContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * get iCoeEnv + */ + CCoeEnv* GetCoeEnv(); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: + +// from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTOCRCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Declares test bc for ocr document. +* +*/ + + +#ifndef C_CBCTESTOCRDOCUMENT_H +#define C_CBCTESTOCRDOCUMENT_H + +#include + +class CEikAppUi; + +/** +* CBCTestOCRDocument application class. +*/ +class CBCTestOCRDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestOCRDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestOCRDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestOCRDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestOCRAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + +}; + +#endif // C_CBCTESTOCRDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/inc/bctestocrview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,102 @@ +/* +* 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 "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: Declares test bc for ocr view. +* +*/ + + +#ifndef C_CBCTESTOCRVIEW_H +#define C_CBCTESTOCRVIEW_H + +#include + +class CBCTestOCRContainer; +class CBCTestUtil; + +const TUid KBCTestOCRViewId = { 1 }; + +/** + * Application View class + */ +class CBCTestOCRView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestOCRView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestOCRView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: + +// from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestOCRView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestOCRContainer* iContainer; + + }; + +#endif // C_CBCTESTOCRVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/sis/bctestocr.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/sis/bctestocr.pkg Fri Sep 17 09:37:58 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 "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: Package file for project bctestocr +; + +; Languages +&EN + +; Header +#{"bctestocr"},(0x20004763),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestocr.exe"- +"!:\sys\bin\bctestocr.exe" + +"\epoc32\data\z\resource\apps\bctestocr.rsc"- +"!:\resource\apps\bctestocr.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestocr_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestocr_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implements main application class. +* +*/ + + +// INCLUDE FILES +#include + +#include "bctestocrapp.h" +#include "bctestocrdocument.h" + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestOCRApp::AppDllUid() +// Returns application UID. +// --------------------------------------------------------------------------- +// +TUid CBCTestOCRApp::AppDllUid() const + { + return KUidBCTestOCR; + } + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestOCRApp::CreateDocumentL() +// Creates CBCTestOCRDocument object. +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestOCRApp::CreateDocumentL() + { + return CBCTestOCRDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestOCRApp. +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestOCRApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication( NewApplication ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 "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: Implements test bc for ocr appui. +* +*/ + +#include +#include + +#include "bctestocrappui.h" +#include "bctestocr.hrh" +#include "bctestocrview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestOCRAppUi::CBCTestOCRAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestOCRAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestOCRView* view = CBCTestOCRView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestOCRAppUi::~CBCTestOCRAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestOCRAppUi::~CBCTestOCRAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestOCRAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EEikCmdExit: + case EAknSoftkeyExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,242 @@ +/* +* 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 "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: Implements test bc for ocrl. +* +*/ + + +#include +#include +#include +#include +#include + +#include "bctestocrcase.h" +#include "bctestocrcontainer.h" +#include "bctestocr.hrh" +#include "autotestcommands.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestOCRCase* CBCTestOCRCase::NewL( + CBCTestOCRContainer* aContainer ) + { + CBCTestOCRCase* self = new( ELeave ) CBCTestOCRCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestOCRCase::CBCTestOCRCase( + CBCTestOCRContainer* aContainer ) : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestOCRCase::~CBCTestOCRCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::BuildScriptL() + { + const TInt scripts[] = + { + //outline1 + DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + KeyOK, + KeyOK + }; + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::RunL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestOCRCmdOutline01: + { + TestFunctionsForOCRL(); + break; + } + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::TestFunctionsForOCRL +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::TestFunctionsForOCRL() + { + iEngineEnv.iPriority = EPriorityNormal; + iEngineEnv.iMaxHeapSize = KMinHeapGrowBy * 1200 + 1; + + + _LIT( KErrorReport, "The OCREngine is not supported" ); + + TRAPD( ERR, iEngine = static_cast + ( OCREngineFactory::CreateOCREngineL( *this, iEngineEnv, + OCREngineFactory::EEngineLayoutRecognize ) ) ); + if( ERR == -1 || ERR == -5 ) + { + AssertTrueL( ETrue, KErrorReport ); + return; + } + + _LIT( KMOCREngineLayoutRecognizeEngine , + "MOCREngineLayoutRecognize created" ); + AssertNotNullL( iEngine, KMOCREngineLayoutRecognizeEngine ); + + iEngine2 = static_cast + ( OCREngineFactory::CreateOCREngineL( *this, iEngineEnv, + OCREngineFactory::EEngineRecognizeBlock ) ); + _LIT( KMOCREngineRecognizeBlockEngine , + "MOCREngineRecognizeBlock created" ); + AssertNotNullL( iEngine2, KMOCREngineRecognizeBlockEngine ); + + OCREngineFactory::ReleaseOCREngine( iEngine ); + iEngine = NULL; + _LIT( KMOCREngineLayoutRecognizeReleaseOCREngine , + "OCREngineFactory's ReleaseOCREngine invoked" ); + AssertTrueL( ETrue, KMOCREngineLayoutRecognizeReleaseOCREngine ); + if(iEngine2) + { + OCREngineFactory::ReleaseOCREngine( iEngine2 ); + iEngine2 = NULL; + } + _LIT( KMOCREngineRecognizeBlockReleaseOCREngine , + "OCREngineFactory's ReleaseOCREngine invoked again" ); + AssertTrueL( ETrue, KMOCREngineRecognizeBlockReleaseOCREngine ); + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::RecognizeComplete +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::RecognizeComplete( + TInt /*aError*/, + const TOCRTextRgnInfo* /*aBlock*/, + const TInt /*aBlockCount*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::RecognizeBlockComplete +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::RecognizeBlockComplete( + TInt /*aError*/, + const TOCRTextRgnInfo* /*aBlock*/, + const TInt /*aBlockCount*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::RecognizeSpecialRegionComplete +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::RecognizeSpecialRegionComplete( + TInt /*aError*/, + const TOCRTextRgnInfo* /*aBlock*/, + const TInt /*aBlockCount*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::RecognizeProcess +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::RecognizeProcess( const TUint /*aPercent*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::LayoutComplete +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::LayoutComplete( + TInt /*aError*/, + const TOCRBlockInfo* /*aBlock*/, + const TInt /*aBlockCount*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::DialogDismissedL +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::DialogDismissedL ( TInt /*aButtonId*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::DoRecgonizeBlock +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::DoRecgonizeBlock() + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRCase::DoRecgonizeSpecialRegion +// --------------------------------------------------------------------------- +// +void CBCTestOCRCase::DoRecgonizeSpecialRegion() + { + } + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,119 @@ +/* +* 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 "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: Implements test bc for ocr container. +* +*/ + + +#include "bctestocrcontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestOCRContainer::CBCTestOCRContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestOCRContainer::~CBCTestOCRContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestOCRContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestOCRContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestOCRContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestOCRContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestOCRContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestOCRContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestOCRContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestOCRContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestOCRContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestOCRContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestOCRContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +CCoeEnv* CBCTestOCRContainer::GetCoeEnv() + { + return iCoeEnv; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Implements test bc for ocr document. +* +*/ + + +// INCLUDE FILES +#include "bctestocrdocument.h" +#include "bctestocrappui.h" + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CBCTestOCRDocument* CBCTestOCRDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestOCRDocument* CBCTestOCRDocument::NewL( CEikApplication& aApp ) + { + CBCTestOCRDocument* self = new( ELeave ) CBCTestOCRDocument( aApp ); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestOCRDocument::~CBCTestOCRDocument() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestOCRDocument::~CBCTestOCRDocument() + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRDocument::CBCTestOCRDocument( CEikApplication& ) +// Overload constructor. +// --------------------------------------------------------------------------- +// +CBCTestOCRDocument::CBCTestOCRDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// --------------------------------------------------------------------------- +// CEikAppUi* CBCTestOCRDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestOCRDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestOCRAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/bctestocr/src/bctestocrview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,132 @@ +/* +* 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 "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: Implements test bc for ocr view. +* +*/ + + +#include +#include + +#include "bctestocr.hrh" +#include "bctestocrview.h" +#include "bctestocrcontainer.h" +#include "bctestutil.h" +#include "bctestocrcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestOCRView* CBCTestOCRView::NewL() + { + CBCTestOCRView* self = new ( ELeave ) CBCTestOCRView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestOCRView::CBCTestOCRView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestOCRView::ConstructL() + { + BaseConstructL( R_BCTESTOCR_VIEW ); + + iContainer = new( ELeave ) CBCTestOCRContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + _LIT( KOCRCaseComment, "OCR case" ); + iTestUtil->AddTestCaseL( CBCTestOCRCase::NewL( iContainer ), + KOCRCaseComment ); + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestOCRView::~CBCTestOCRView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestOCRView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestOCRView::Id() const + { + return KBCTestOCRViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestOCRView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestOCRView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestOCRView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestOCRView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestOCRView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EBCTestOCRCmdAutotest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestOCRCmdEmptyOutline && + aCommand < EBCTestOCRCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.1/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,29 @@ +/* +* 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 "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: build information +* +*/ + + +PRJ_MMPFILES + +../../bctestutil/group/bctestutil.mmp + +../../bctestlauncher/group/bctestlauncher.mmp + +../bctestocr/group/bctestocr.mmp + +../bctestmisc/group/bctestmisc.mmp + +../bctestlocation/group/bctestlocation.mmp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bctestlocalizer.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bctestlocalizer.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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: project specification file for the BCTestLocalizer. +* +*/ + + +TARGET BCTestLocalizer.exe +TARGETTYPE exe +UID 0x0 0x200089D2 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestLocalizer.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestlocalizerapp.cpp +SOURCE bctestlocalizerdocument.cpp +SOURCE bctestlocalizerappui.cpp +SOURCE bctestlocalizerview.cpp +SOURCE bctestlocalizercontainer.cpp +SOURCE bctestlocalizercase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/Inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY directorylocalizer.lib + +START RESOURCE ../group/bctestlocalizer_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bctestlocalizer.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bctestlocalizer.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,234 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME LOCA + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +//#include +#include +#include "bctestlocalizer.hrh" +#include "bctestlocalizer.loc" +#include "directorylocalizer.rh" +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTLOCALIZER_BMP_FNAME APP_BITMAP_DIR"\\BCTestLocalizer.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestLocalizer"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestlocalizer_menubar_main; + cba = r_bctestlocalizer_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestlocalizer_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\bctestlocalizer_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocalizer_view +// AVKON_VIEW for CbctestlocalizerView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestlocalizer_view + { + menubar = r_bctestlocalizer_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocalizer_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestlocalizer_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestlocalizer_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestlocalizer_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocalizer_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlocalizer_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestlocalizer_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlocalizer_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlocalizer_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestlocalizer_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestlocalizer_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestlocalizer_cba_options_next +// description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestlocalizer_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestLocalizerCbaCmdNext; + txt = qtn_bctestlocalizer_cba_next; + } + }; + } + +// ----------------------------------------------------------------------------- +// +// r_dltest_custom_entries +// A resource containing default entries of the directory localizer +// +// ----------------------------------------------------------------------------- +// +RESOURCE DIRECTORYLOCALIZER r_dltest_custom_entries + { + directories = + { + DIRECTORY + { + fullPath = dl_test_exists_dir; + localizedName = dl_test_exists_name; + extraData = dl_test_exists_extra; + iconIndex = dl_test_exists_icon; + }, + DIRECTORY + { + fullPath = dl_test_empty_extra_dir; + localizedName = "nothing"; + extraData = ""; + iconIndex = 1; + } + }; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bctestlocalizer_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bctestlocalizer_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200089D2 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestLocalizer"; + localisable_resource_file = "\\resource\\apps\\BCTestLocalizer"; + localisable_resource_id = R_BCTESTLOCALIZER_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestLocalizer.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizer.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizer.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestLocalizer resource header file +* +*/ + + +#ifndef C_BCTESTLOCALIZER_HRH +#define C_BCTESTLOCALIZER_HRH + +enum TBCTestLocalizerMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestLocalizerCba + { + EBCTestLocalizerCbaCmdNext = 0x6300 + }; + +#endif // C_BCTESTLOCALIZER_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizer.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizer.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +/* +* 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 "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: bctestlocalizer localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTestLocalizer" +#define qtn_apps_tavl_grid "BCTestLocalizer" + +// MenuBar +#define qtn_bctestlocalizer_menubar "Option" +#define qtn_bctestlocalizer_cba_next "Next" +#define qtn_bctestlocalizer_autotest "Autotest" +#define qtn_bctestlocalizer_menu_exit "Exit" + +// LOCALISATION STRINGS + +#define dl_test_exists_dir "c:\\test\\exists" +#define dl_test_exists_name "Hi! I'm localized all over!" +#define dl_test_exists_extra "R2D2 bleep" +#define dl_test_exists_icon 1337 + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestlocalizer_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestlocalizer_text_other_app_name "BCTestLocalizer" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTLOCALIZERAPP_H +#define C_BCTESTLOCALIZERAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestLocalizer = { 0x200089D2 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestLocalizerApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestLocalizerApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestLocalizerDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestLocalizer ). + * @return The value of KUidBCTestLocalizer. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTLOCALIZERAPP_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for BCTestLocalizer API. +* +*/ + + +#ifndef C_BCTESTLOCALIZERAPPUI_H +#define C_BCTESTLOCALIZERAPPUI_H + +#include + +class CBCTestLocalizerView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestLocalizerAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestLocalizerAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestLocalizerAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestLocalizerView* iView; + }; + +#endif // C_BCTESTLOCALIZERAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTLOCALIZERCASE_H +#define C_BCTESTLOCALIZERCASE_H + +#include "bctestcase.h" + +class CBCTestLocalizerContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestLocalizerCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestLocalizerCase* NewL( CBCTestLocalizerContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestLocalizerCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestLocalizerCase( CBCTestLocalizerContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestLocalizerContainer* iContainer; + + }; + +#endif // C_BCTESTLOCALIZERCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizercontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizercontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTESTLOCALIZERCONTAINER_H +#define C_BCTESTLOCALIZERCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestLocalizerContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestLocalizerContainer(); + + /** + * Destructor + */ + virtual ~CBCTestLocalizerContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTLOCALIZERCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTLOCALIZERDOCUMENT_H +#define C_BCTESTLOCALIZERDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestLocalizerDocument application class. +*/ +class CBCTestLocalizerDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestLocalizerDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestLocalizerDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestLocalizerDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestLocalizerAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTLOCALIZERDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/inc/bctestlocalizerview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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: BC Test for BCTestLocalizer API. +* +*/ + + +#ifndef C_BCTESTLOCALIZERVIEW_H +#define C_BCTESTLOCALIZERVIEW_H + +#include + +const TUid KBCTestLocalizerViewId = { 1 }; + +class CBCTestLocalizerContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestLocalizerView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestLocalizerView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestLocalizerView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestLocalizerView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestLocalizerContainer* iContainer; + + }; + +#endif // C_BCTESTLOCALIZERVIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/sis/bctestlocalizer.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/sis/bctestlocalizer.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestlocalizer.pkg + +; Languages +&EN + +; Header +#{"bctestlocalizer"},(0x200089D2),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 3, *, *, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestlocalizer.exe"- +"!:\sys\bin\bctestlocalizer.exe" + +"\epoc32\data\z\resource\apps\bctestlocalizer.rsc"- +"!:\resource\apps\bctestlocalizer.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestlocalizer_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestlocalizer_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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 app +* +*/ + + +// INCLUDE FILES +#include "bctestlocalizerapp.h" +#include "bctestlocalizerdocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestLocalizerApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestLocalizerApp::AppDllUid() const + { + return KUidBCTestLocalizer; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestLocalizerApp::CreateDocumentL() +// Creates CBCTestLocalizerDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestLocalizerApp::CreateDocumentL() + { + return CBCTestLocalizerDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestLocalizerApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestLocalizerApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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: appui +* +*/ + +#include +#include + +#include "bctestlocalizerappui.h" +#include "bctestlocalizer.hrh" +#include "bctestlocalizerview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestLocalizerAppUi::CBCTestLocalizerAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestLocalizerView* view = CBCTestLocalizerView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestLocalizerAppUi::~CBCTestLocalizerAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocalizerAppUi::~CBCTestLocalizerAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestLocalizerAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,158 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include + +#include "bctestlocalizercase.h" +#include "bctestlocalizercontainer.h" +#include "bctestlocalizer.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerCase* CBCTestLocalizerCase::NewL( + CBCTestLocalizerContainer* aContainer ) + { + CBCTestLocalizerCase* self = new( ELeave ) CBCTestLocalizerCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerCase::CBCTestLocalizerCase( + CBCTestLocalizerContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerCase::~CBCTestLocalizerCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerCase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + DELAY( 5 ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerCase::TestFunctionL() + { + // Test some API here + _LIT( KDLTestExistsDir, "c:\\data\\Games\\" ); + + CDirectoryLocalizer* localizer = CDirectoryLocalizer::NewL(); + CleanupStack::PushL( localizer ); + _LIT( KNewL, "CDirectoryLocalizer::NewL() called" ); + AssertNotNullL( localizer, KNewL ); + + localizer->AddFromResourceL( R_DLTEST_CUSTOM_ENTRIES ); + _LIT( KAddFromResourceL, + "CDirectoryLocalizer::AddFromResourceL( aResourceId ) called" ); + AssertTrueL( ETrue, KAddFromResourceL ); + + localizer->SetFullPath( KDLTestExistsDir ); + _LIT( KSetFullPath, "CDirectoryLocalizer::SetFullPath() called" ); + AssertTrueL( ETrue, KSetFullPath ); + + _LIT( KIsLocalized, "CDirectoryLocalizer::IsLocalized() called" ); + AssertTrueL( localizer->IsLocalized(), KIsLocalized ); + + _LIT( KLocalizedName, + "CDirectoryLocalizer::LocalizedName() called" ); + localizer->LocalizedName(); + AssertTrueL( ETrue, KLocalizedName ); + + _LIT( KExtraData, "CDirectoryLocalizer::ExtraData() called" ); + localizer->ExtraData(); + AssertTrueL( ETrue, KExtraData ); + + _LIT( KIcon, "CDirectoryLocalizer::Icon() called" ); + localizer->Icon(); + AssertTrueL( ETrue, KIcon ); + + CleanupStack::PopAndDestroy( localizer ); + + CDirectoryLocalizer* localizer2 = + CDirectoryLocalizer::NewL( R_DLTEST_CUSTOM_ENTRIES ); + CleanupStack::PushL( localizer2 ); + _LIT( KNewL2, "CDirectoryLocalizer::NewL( aResourceId ) called" ); + AssertNotNullL( localizer2, KNewL2 ); + CleanupStack::PopAndDestroy( localizer2 ); + + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizercontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizercontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestlocalizercontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerContainer::CBCTestLocalizerContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerContainer::~CBCTestLocalizerContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestLocalizerContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestLocalizerContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestLocalizerContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestLocalizerContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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 application +* +*/ + + +// INCLUDE FILES +#include "bctestlocalizerdocument.h" +#include "bctestlocalizerappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestLocalizerDocument* CBCTestLocalizerDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocalizerDocument* CBCTestLocalizerDocument::NewL( CEikApplication& aApp ) + { + CBCTestLocalizerDocument* self = new( ELeave ) CBCTestLocalizerDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestLocalizerDocument::~CBCTestLocalizerDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocalizerDocument::~CBCTestLocalizerDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestLocalizerDocument::CBCTestLocalizerDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestLocalizerDocument::CBCTestLocalizerDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestLocalizerDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestLocalizerDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestLocalizerAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestlocalizer/src/bctestlocalizerview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,133 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestlocalizer.hrh" +#include +#include "bctestlocalizerview.h" +#include "bctestlocalizercontainer.h" +#include "bctestutil.h" +#include "bctestlocalizercase.h" + +// Constansts +_LIT( KVCardCase, "vCard test case"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerView* CBCTestLocalizerView::NewL() + { + CBCTestLocalizerView* self = new( ELeave ) CBCTestLocalizerView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerView::CBCTestLocalizerView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerView::ConstructL() + { + BaseConstructL( R_BCTESTLOCALIZER_VIEW ); + + iContainer = new( ELeave ) CBCTestLocalizerContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestLocalizerCase::NewL( iContainer ), + KVCardCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLocalizerView::~CBCTestLocalizerView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestLocalizerView::Id() const + { + return KBCTestLocalizerViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestLocalizerView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestLocalizerView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bctestmisc32.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bctestmisc32.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: project specification file for the BCTestmisc. +* +*/ + + +TARGET BCTestmisc32.exe +TARGETTYPE exe +UID 0x0 0xA00040AA + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestmisc32.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestmisc32app.cpp +SOURCE bctestmisc32document.cpp +SOURCE bctestmisc32appui.cpp +SOURCE bctestmisc32view.cpp +SOURCE bctestmisc32container.cpp +SOURCE bctestmisc32case.cpp +SOURCE bctestlistdatacase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../BCTESTUTIL/Inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eikctl.lib + + + +START RESOURCE ../group/bctestmisc32_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bctestmisc32.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bctestmisc32.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,306 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestmisc32.hrh" +#include "BCTestmisc32.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTMISC32_BMP_FNAME APP_BITMAP_DIR"\\BCTestmisc32.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestmisc32"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestmisc32_menubar_main; + cba = r_bctestmisc32_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestmisc32_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestmisc_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_view +// AVKON_VIEW for CBCTestmiscView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmisc32_view + { + menubar = r_bctestmisc32_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmisc32_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmisc32_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestmisc32_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisc32_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestmisc32_outline1; + }, + MENU_ITEM + { + cascade = r_bctest_listdata_menu; + txt = qtn_bctest_listdata; + }, + MENU_ITEM + { + command = EBCTestCmdOutline6; + txt = qtn_bctestmisc32_outline6; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmisc32_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestmisc32_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestmisc32_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctest_listdata_menu +// cascade menu +// +// ---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctest_listdata_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestmisc32_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestmisc32_outline3; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestmisc32_outline4; + }, + MENU_ITEM + { + command = EBCTestCmdOutline5; + txt = qtn_bctestmisc32_outline5; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_single_shortitem +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmisc32_single_shortitem + { + array_id = r_bctestmisc32_single_short; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_single_longitem +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmisc32_single_longitem + { + array_id = r_bctestmisc32_single_long; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_single_short +// Items array for ListBox( shorttext ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmisc32_single_short + { + items = + { + LBUF { txt = qtn_bctestmisc32_single_1; }, + LBUF { txt = qtn_bctestmisc32_single_2; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmisc32_single_long +// Items array for ListBox( longtext ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmisc32_single_long + { + items = + { + LBUF { txt = qtn_bctestmisc32_single_2; }, + LBUF { txt = qtn_bctestmisc32_single_1; } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestmisc32_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE CBA r_bctestmisc32_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestmisc32CbaCmdNext; + txt = qtn_bctestmisc32_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bctestmisc32_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bctestmisc32_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0xA00040AA // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestmisc32"; + localisable_resource_file = "\\resource\\apps\\BCTestmisc32"; + localisable_resource_id = R_BCTESTMISC32_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestmisc32.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestlistdatacase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestlistdatacase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,160 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTLISTDATACASE_H +#define C_BCTESTLISTDATACASE_H + + +#include "bctestcase.h" + +class CBCTestmisc32Container; +class CCoeControl; +class CEikFormattedCellListBox; +class CEikColumnListBox; + +class CFormattedCellListBoxData; +class CColumnListBoxData; + +const TInt KBCTestList32DefaultFlag = 0; +/** +* test case for various list classes +*/ +class CBCTestListDataCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestListDataCase* NewL( CBCTestmisc32Container* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestListDataCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test CFormattedCellListBoxData + */ + void TestFmtLongTextWasClippedL(); + + /** + * Test CFormattedCellListBoxData + */ + void TestFmtShortTextWasClippedL(); + + /** + * Test CColumnListBoxData + */ + void TestColLongTextWasClippedL(); + + /** + * Test CColumnListBoxData + */ + void TestColShortTextWasClippedL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestListDataCase( CBCTestmisc32Container* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + // new functions + /** + * Sets listbox from resource using ConstructFromResourceL() of + * CEikColumnListBox class. + * @param aListBox Pointer of listbox. + * @param aResourceId Resource ID of listbox. + */ + void SetListBoxFromResourceL( CEikColumnListBox* aListBox, + const TInt aResourceId ); + + /** + * Sets listbox from resource using ConstructFromResourceL() of + * CEikFormattedCellListBox class. + * @param aListBox Pointer of listbox. + * @param aResourceId Resource ID of listbox. + */ + void SetListBoxFromResourceL( CEikFormattedCellListBox* aListBox, + const TInt aResourceId ); + + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestmisc32Container* iContainer; + + /** + * own + */ + CEikFormattedCellListBox* iFormattedListBox; + + /** + * own + */ + CEikColumnListBox* iColumnListBox; + + /** + * not own + */ + CEikonEnv* iEikEnv; + }; + +#endif // C_BCTESTLISTDATACASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ +/* +* 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 "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: BCTestmisc32 resource header file +* +*/ + + +#ifndef BCTESTMISC32_HRH +#define BCTESTMISC32_HRH + +enum TBCTestmiscMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdOutline5, + EBCTestCmdOutline6, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestmisc32Cba + { + EBCTestmisc32CbaCmdNext = 0x6300 + }; + +#endif // BCTESTMISC32_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: BCTestmisc32 localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTmisc32" +#define qtn_apps_tavl_grid "BCTESTmisc32" + +// MenuBar +#define qtn_bctestmisc32_menubar "Option" +#define qtn_bctestmisc32_cba_next "Next" +#define qtn_bctestmisc32_autotest "Autotest" +#define qtn_bctestmisc32_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestmisc32_outline1 "Outline01" +#define qtn_bctestmisc32_outline2 "Outline02" +#define qtn_bctestmisc32_outline3 "Outline03" +#define qtn_bctestmisc32_outline4 "Outline04" +#define qtn_bctestmisc32_outline5 "Outline05" +#define qtn_bctestmisc32_outline6 "Outline06" + +// menu text +#define qtn_bctest_listdata "TestListBoxData" + +// Double2SytleLstBox item +#define qtn_bctestmisc32_double2_1 "\tabcde\t\t0" +#define qtn_bctestmisc32_double2_2 "\tabcdefghijklmnopqrstuvw\tabcdefghijklmnopqrstuvw\t0" + +// single item +#define qtn_bctestmisc32_single_1 " \taaaaaa" +#define qtn_bctestmisc32_single_2 " \tabcdefghiklmnopqrstuvwxyz" + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32app.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32app.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTMISC32APP_H +#define C_BCTESTMISC32APP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestmisc32 = { 0xA00040AA }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestmisc32App application class. +* Provides factory to create concrete document object. +*/ +class CBCTestmisc32App : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestmisc32Document document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestmisc32 ). + * @return The value of KUidBCTestmisc32. + */ + TUid AppDllUid() const; + + }; + +#endif //C_BCTESTMISC32APP_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32appUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32appUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for misc control API. +* +*/ + + +#ifndef C_BCTESTMISC32APPUI_H +#define C_BCTESTMISC32APPUI_H + +#include + +class CBCTestmisc32View; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestmisc32AppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestmisc32AppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestmisc32AppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestmisc32View* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTMISC32APPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32case.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32case.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,109 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTMISC32CASE_H +#define C_BCTESTMISC32CASE_H + +#include "bctestcase.h" + +class CBCTestmisc32Container; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestmisc32Case: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestmisc32Case* NewL( CBCTestmisc32Container* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestmisc32Case(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestAknViewAppUiL(); + + /** + * Test functions for 3.2 MFNE exports + */ + void TestEikMfneL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestmisc32Case( CBCTestmisc32Container* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestmisc32Container* iContainer; + + }; + +#endif // C_BCTESTMISC32CASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32container.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32container.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTESTMISC32CONTAINER_H +#define C_BCTESTMISC32CONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestmisc32Container: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestmisc32Container(); + + /** + * Destructor + */ + virtual ~CBCTestmisc32Container(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTMISC32CONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32document.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32document.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTMISC32DOCUMENT_H +#define C_BCTESTMISC32DOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestmiscDocument application class. +*/ +class CBCTestmisc32Document : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestmisc32Document* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestmisc32Document(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestmisc32Document( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestmiscAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTMISC32DOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32view.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/inc/bctestmisc32view.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for misc control API. +* +*/ + + +#ifndef C_BCTESTMISC32VIEW_H +#define C_BCTESTMISC32VIEW_H + +#include + +const TUid KBCTestmisc32ViewId = { 1 }; + +class CBCTestmisc32Container; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestmisc32View : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestmisc32View* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestmisc32View(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestmisc32Container* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestmisc32View(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestmisc32Container* iContainer; + + }; + +#endif // C_BCTESTMISC32VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/sis/bctestmisc32.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/sis/bctestmisc32.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestmisc32.pkg + +; Languages +&EN + +; Header +#{"bctestmisc32"},(0x101F84FF),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 3, *, *, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestmisc32.exe"- +"!:\sys\bin\bctestmisc32.exe" + +"\epoc32\data\z\resource\apps\bctestmisc32.rsc"- +"!:\resource\apps\bctestmisc32.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestmisc32_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestmisc32_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestlistdatacase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestlistdatacase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,281 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include "bctestlistdatacase.h" +#include "bctestmisc32container.h" +#include "bctestmisc32.hrh" +#include "bctestmisc32appui.h" + +_LIT( KFormatListBoxCreate, "Create CAknDoubleStyle2ListBox ok" ); +_LIT( KColumnListBoxCreate, "Create CAknDoubleStyle2ListBox ok" ); +_LIT( KFormateDataTest1, "CFormattedCellListBoxData long text clipped"); +_LIT( KFormateDataTest2, "CFormattedCellListBoxData short text not clipped"); +_LIT( KColumnDataTest1, "CColumnListBoxData long text clipped"); +_LIT( KColumnDataTest2, "CColumnListBoxData shot text not clipped"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestListDataCase* CBCTestListDataCase::NewL( + CBCTestmisc32Container* aContainer ) + { + CBCTestListDataCase* self = new( ELeave ) CBCTestListDataCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestListDataCase::CBCTestListDataCase( + CBCTestmisc32Container* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestListDataCase::~CBCTestListDataCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::ConstructL() + { + BuildScriptL(); + iEikEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::BuildScriptL() + { + // Add script as your need. + for ( TInt i=0; i <= EBCTestCmdOutline5 - EBCTestCmdOutline2; i++ ) + { + AddTestL( LeftCBA, REP( Down, 1 ), KeyOK, TEND ); + AddTestL( REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline2 || aCmd > EBCTestCmdOutline5 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline2: + TestFmtLongTextWasClippedL(); + break; + case EBCTestCmdOutline3: + TestFmtShortTextWasClippedL(); + break; + case EBCTestCmdOutline4: + TestColLongTextWasClippedL(); + break; + case EBCTestCmdOutline5: + TestColShortTextWasClippedL(); + break; + default: + break; + } + } + +// -------------------------------------------------------------------------- +// CBCTestListDataCase::SetListBoxFromResourceL +// Sets listbox from resource using ConstructFromResourceL() of +// CEikColumnListBox class. +// -------------------------------------------------------------------------- +// +void CBCTestListDataCase::SetListBoxFromResourceL( + CEikColumnListBox* aListBox, const TInt aResourceId ) + { + if ( aListBox && aResourceId ) + { + aListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, aResourceId ); + aListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + } + } + +// -------------------------------------------------------------------------- +// CBCTestListDataCase::SetListBoxFromResourceL +// Sets listbox from resource using ConstructFromResourceL() of +// CEikFormattedCellListBox class. +// -------------------------------------------------------------------------- +// +void CBCTestListDataCase::SetListBoxFromResourceL( + CEikFormattedCellListBox* aListBox, const TInt aResourceId ) + { + if ( aListBox && aResourceId ) + { + aListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, aResourceId ); + aListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + } + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + break; + case EBCTestCmdOutline2: + iFormattedListBox = new( ELeave ) CAknDoubleStyleListBox(); + AssertNotNullL( iFormattedListBox, KFormatListBoxCreate ); + SetListBoxFromResourceL( + iFormattedListBox, R_BCTESTMISC32_SINGLE_LONGITEM ); + iContainer->SetControl( iFormattedListBox ); + + break; + case EBCTestCmdOutline3: + iFormattedListBox = new( ELeave ) CAknDoubleStyleListBox(); + AssertNotNullL( iFormattedListBox, KFormatListBoxCreate ); + SetListBoxFromResourceL( + iFormattedListBox, R_BCTESTMISC32_SINGLE_SHORTITEM ); + iContainer->SetControl( iFormattedListBox ); + + break; + case EBCTestCmdOutline4: + iColumnListBox = new( ELeave ) CAknSingleStyleListBox(); + AssertNotNullL( iColumnListBox, KColumnListBoxCreate ); + SetListBoxFromResourceL( + iColumnListBox, R_BCTESTMISC32_SINGLE_LONGITEM ); + iContainer->SetControl( iColumnListBox ); + + break; + case EBCTestCmdOutline5: + iColumnListBox = new( ELeave ) CAknSingleStyleListBox(); + AssertNotNullL( iColumnListBox, KColumnListBoxCreate ); + SetListBoxFromResourceL( + iColumnListBox, R_BCTESTMISC32_SINGLE_SHORTITEM ); + iContainer->SetControl( iColumnListBox ); + + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iFormattedListBox = NULL; + iColumnListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::TestFmtLongTextWasClippedL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::TestFmtLongTextWasClippedL() + { + CFormattedCellListBoxData* data = + iFormattedListBox->ItemDrawer()->FormattedCellData(); + data->CurrentItemTextWasClipped(); + AssertTrueL( ETrue, KFormateDataTest1 ); + + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::TestFmtShortTextWasClippedL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::TestFmtShortTextWasClippedL() + { + CFormattedCellListBoxData* data = + iFormattedListBox->ItemDrawer()->FormattedCellData(); + AssertTrueL( (data->CurrentItemTextWasClipped() == 0), + KFormateDataTest2 ); + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::TestColLongTextWasClippedL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::TestColLongTextWasClippedL() + { + CColumnListBoxData* data = iColumnListBox->ItemDrawer()->ColumnData(); + data->CurrentItemTextWasClipped(); + AssertTrueL( ETrue, KColumnDataTest1 ); + } + +// --------------------------------------------------------------------------- +// CBCTestListDataCase::TestColShortTextWasClippedL +// --------------------------------------------------------------------------- +// +void CBCTestListDataCase::TestColShortTextWasClippedL() + { + CColumnListBoxData* data = iColumnListBox->ItemDrawer()->ColumnData(); + AssertTrueL( (data->CurrentItemTextWasClipped() == 0), KColumnDataTest2 ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32app.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32app.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon misc test app +* +*/ + + +// INCLUDE FILES +#include "bctestmisc32app.h" +#include "bctestmisc32document.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestmisc32App::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestmisc32App::AppDllUid() const + { + return KUidBCTestmisc32; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestmisc32App::CreateDocumentL() +// Creates CBCTestmisc32Document object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestmisc32App::CreateDocumentL() + { + return CBCTestmisc32Document::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestmisc32App. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestmisc32App; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32appui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32appui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,95 @@ +/* +* 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 "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 bc for misc control api(s) +* +*/ + + +#include +#include + +#include "bctestmisc32appui.h" +#include "bctestmisc32.hrh" +#include "bctestmisc32view.h" +#include "bctestutil.h" +#include "bctestmisc32case.h" +#include "bctestlistdatacase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestmisc32AppUi::CBCTestmisc32AppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestmisc32AppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestmisc32View* view = CBCTestmisc32View::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestmisc32Case::NewL( view->Container() ), + _L("misc test case") ); + iTestUtil->AddTestCaseL( CBCTestListDataCase::NewL( view->Container() ), + _L("list data test case") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestmisc32AppUi::~CBCTestmisc32AppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestmisc32AppUi::~CBCTestmisc32AppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestmisc32AppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32case.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32case.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,187 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include + +#include "bctestmisc32case.h" +#include "bctestmisc32container.h" +#include "bctestmisc32.hrh" +#include "bctestmisc32appui.h" + +// ======== ASSERTION COMMENTS ======== + +_LIT ( KEikMfneSetFeature, "CEikMfne::SetFeature" ); +_LIT ( KEikMfneGetFeature, "CEikMfne::GetFeature" ); +_LIT ( KEikMfneSupportsFeature, "CEikMfne::SupportsFeature" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32Case* CBCTestmisc32Case::NewL( + CBCTestmisc32Container* aContainer ) + { + CBCTestmisc32Case* self = new( ELeave ) CBCTestmisc32Case( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32Case::CBCTestmisc32Case( + CBCTestmisc32Container* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32Case::~CBCTestmisc32Case() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Case::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + AddTestL( LeftCBA, REP( Down, 2 ), KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Case::RunL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline6 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestAknViewAppUiL(); + break; + case EBCTestCmdOutline6: + TestEikMfneL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Case::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Case::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Case::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::TestAknViewAppUiL() + { + CBCTestmisc32AppUi *iTestAppUi = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + + //iTestAppUi->EnableLocalScreenClearer( EFalse); + _LIT( KEnableLocalScreenClearer, "CAknViewAppUi::EnableLocalScreenClearer() invoked" ); + AssertTrueL( ETrue, KEnableLocalScreenClearer ); + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Case::TestEikMfneL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Case::TestEikMfneL() + { + CEikMfne* mfne = new ( ELeave ) CEikMfne; + CleanupStack::PushL( mfne ); + + // To create the extension + mfne->CreateFieldArrayL( 1 ); + + mfne->SetFeature( 0, 0 ); + AssertTrueL( ETrue, KEikMfneSetFeature ); + + TInt tmpFeature; + mfne->GetFeature( 0, tmpFeature ); + AssertTrueL( ETrue, KEikMfneGetFeature ); + + mfne->SupportsFeature( 0 ); + AssertTrueL( ETrue, KEikMfneSupportsFeature ); + + CleanupStack::PopAndDestroy(); // mfne + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32container.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32container.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestmisc32container.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32Container::CBCTestmisc32Container() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32Container::~CBCTestmisc32Container() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Container::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestmisc32Container::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestmisc32Container::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Container::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestmisc32Container::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Container::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestmisc32Container::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Container::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Container::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32Container::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestmisc32Container::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32document.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32document.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon misc test application +* +*/ + + +// INCLUDE FILES +#include "bctestmisc32document.h" +#include "bctestmisc32appui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestmisc32Document* CBCTestmisc32Document::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestmisc32Document* CBCTestmisc32Document::NewL( CEikApplication& aApp ) + { + CBCTestmisc32Document* self = new( ELeave ) CBCTestmisc32Document( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestmisc32Document::~CBCTestmisc32Document() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestmisc32Document::~CBCTestmisc32Document() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestmisc32Document::CBCTestmisc32Document( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestmisc32Document::CBCTestmisc32Document( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestmisc32Document::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestmisc32Document::CreateAppUiL() + { + return new( ELeave ) CBCTestmisc32AppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32view.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestmisc32/src/bctestmisc32view.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestmisc32.hrh" +#include +#include "bctestmisc32view.h" +#include "bctestmisc32container.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32View* CBCTestmisc32View::NewL(CBCTestUtil* aUtil) + { + CBCTestmisc32View* self = new( ELeave ) CBCTestmisc32View(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32View::CBCTestmisc32View() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestmisc32View::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTMISC32_VIEW ); + + iContainer = new( ELeave ) CBCTestmisc32Container(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestmisc32View::~CBCTestmisc32View() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32View::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestmisc32View::Id() const + { + return KBCTestmisc32ViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32View::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32View::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32View::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestmisc32View::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32View::Container +// --------------------------------------------------------------------------- +// +CBCTestmisc32Container* CBCTestmisc32View::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestmisc32View::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestmisc32View::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bctestpreviewpopup.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bctestpreviewpopup.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: project specification file for the BCTestPreviewPopup. +* +*/ + + +TARGET BCTestPreviewPopup.exe +TARGETTYPE exe +UID 0x0 0x101F84FF + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestPreviewPopup.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestpreviewpopupapp.cpp +SOURCE bctestpreviewpopupdocument.cpp +SOURCE bctestpreviewpopupappui.cpp +SOURCE bctestpreviewpopupview.cpp +SOURCE bctestpreviewpopupcontainer.cpp +SOURCE bctestpreviewpopupcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +START RESOURCE ../group/bctestpreviewpopup_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bctestpreviewpopup.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bctestpreviewpopup.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,205 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestpreviewpopup.hrh" +#include "BCTestpreviewpopup.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestpreviewpopup_BMP_FNAME APP_BITMAP_DIR"\\BCTestPreviewPopup.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestPrevPop"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestpreviewpopup_menubar_main; + cba = r_bctestpreviewpopup_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestpreviewpopup_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestpreviewpopup_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpreviewpopup_view +// AVKON_VIEW for CBCTestPreviewPopupView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestpreviewpopup_view + { + menubar = r_bctestpreviewpopup_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpreviewpopup_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestpreviewpopup_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestpreviewpopup_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestpreviewpopup_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpreviewpopup_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpreviewpopup_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestpreviewpopup_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpreviewpopup_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpreviewpopup_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestpreviewpopup_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestpreviewpopup_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestpreviewpopup_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestpreviewpopup_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestPreviewPopupCbaCmdNext; + txt = qtn_bctestpreviewpopup_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bctestpreviewpopup_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bctestpreviewpopup_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x101F84FF // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestPreviewPopup"; + localisable_resource_file = "\\resource\\apps\\BCTestPreviewPopup"; + localisable_resource_id = R_BCTESTPREVIEWPOPUP_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestPreviewPopup.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopup.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopup.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestPreviewPopup resource header file +* +*/ + + +#ifndef BCTESTPREVIEWPOPUP_HRH +#define BCTESTPREVIEWPOPUP_HRH + +enum TBCTestPreviewPopupMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestPreviewPopupCba + { + EBCTestPreviewPopupCbaCmdNext = 0x6300 + }; + +#endif // BCTESTPREVIEWPOPUP_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopup.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopup.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestPreviewPopup localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTPREVIEWPOPUP" +#define qtn_apps_tavl_grid "BCTESTPREVIEWPOPUP" + +// MenuBar +#define qtn_bctestpreviewpopup_menubar "Option" +#define qtn_bctestpreviewpopup_cba_next "Next" +#define qtn_bctestpreviewpopup_autotest "Autotest" +#define qtn_bctestpreviewpopup_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestpreviewpopup_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestPREVIEWPOPUPAPP_H +#define BCTestPREVIEWPOPUPAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestPreviewPopup = { 0x101F84FF }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestPreviewPopupApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestPreviewPopupApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestPreviewPopupDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestPreviewPopup ). + * @return The value of KUidBCTestPreviewPopup. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for PreviewPopup control API. +* +*/ + + +#ifndef C_BCTESTPREVIEWPOPUPAPPUI_H +#define C_BCTESTPREVIEWPOPUPAPPUI_H + +#include + +class CBCTestPreviewPopupView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPreviewPopupAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestPreviewPopupAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestPreviewPopupAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestPreviewPopupView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTPREVIEWPOPUPAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,122 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_PREVIEWPOPUPCASE_H +#define BCTEST_PREVIEWPOPUPCASE_H + +#include +#include +#include "bctestcase.h" + +class CAknPreviewPopUpController; +class CBCTestPreviewPopupContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestPreviewPopupCase: public CBCTestCase, + public MAknPreviewPopUpObserver, + public MAknPreviewPopUpContentProvider + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPreviewPopupCase* NewL( CBCTestPreviewPopupContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPreviewPopupCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +public: // from MAknPreviewPopUpObserver + + void HandlePreviewPopUpEventL( + CAknPreviewPopUpController* aController, + TPreviewPopUpEvent aEvent ); + +public: // from MAknPreviewPopupContentProvider + + void StartContentBuildingL(); + + void CancelContentBuilding(); + + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPreviewPopupCase( CBCTestPreviewPopupContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestPreviewPopupContainer* iContainer; + + }; + +#endif // BCTEST_PREVIEWPOPUPCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_PREVIEWPOPUPCONTAINER_H +#define BCTEST_PREVIEWPOPUPCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestPreviewPopupContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestPreviewPopupContainer(); + + /** + * Destructor + */ + virtual ~CBCTestPreviewPopupContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_PREVIEWPOPUPCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTPREVIEWPOPUPDOCUMENT_H +#define C_BCTESTPREVIEWPOPUPDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestPreviewPopupDocument application class. +*/ +class CBCTestPreviewPopupDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestPreviewPopupDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestPreviewPopupDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestPreviewPopupDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestPreviewPopupAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTPREVIEWPOPUPDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/inc/bctestpreviewpopupview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for PreviewPopup control API. +* +*/ + + +#ifndef BCTEST_PREVIEWPOPUP_VIEW_H +#define BCTEST_PREVIEWPOPUP_VIEW_H + +#include + +const TUid KBCTestPreviewPopupViewId = { 1 }; + +class CBCTestPreviewPopupContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPreviewPopupView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestPreviewPopupView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestPreviewPopupView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestPreviewPopupContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPreviewPopupView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestPreviewPopupContainer* iContainer; + + }; + +#endif // BCTEST_PREVIEWPOPUP_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/sis/bctestpreviewpopup.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/sis/bctestpreviewpopup.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesttempalte.pkg + +; Languages +&EN + +; Header +#{"bctestpreviewpopup"},(0x101F84FF),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 3, *, *, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestpreviewpopup.exe"- +"!:\sys\bin\bctestpreviewpopup.exe" + +"\epoc32\data\z\resource\apps\bctestpreviewpopup.rsc"- +"!:\resource\apps\bctestpreviewpopup.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestpreviewpopup_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestpreviewpopup_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon PreviewPopup test app +* +*/ + + +// INCLUDE FILES +#include "BCTestPreviewPopupApp.h" +#include "BCTestPreviewPopupDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestPreviewPopupApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestPreviewPopupApp::AppDllUid() const + { + return KUidBCTestPreviewPopup; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestPreviewPopupApp::CreateDocumentL() +// Creates CBCTestPreviewPopupDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestPreviewPopupApp::CreateDocumentL() + { + return CBCTestPreviewPopupDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestPreviewPopupApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestPreviewPopupApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for previewpopup control api(s) +* +*/ + +#include +#include + +#include "bctestpreviewpopupAppUi.h" +#include "bctestpreviewpopup.hrh" +#include "bctestpreviewpopupview.h" +#include "bctestutil.h" +#include "bctestpreviewpopupcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupAppUi::CBCTestPreviewPopupAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestPreviewPopupView* view = CBCTestPreviewPopupView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestPreviewPopupCase::NewL( view->Container() ), + _L("PreviewPopup test case") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestPreviewPopupAppUi::~CBCTestPreviewPopupAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPreviewPopupAppUi::~CBCTestPreviewPopupAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestPreviewPopupAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,259 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include +#include + +#include "bctestpreviewpopupcase.h" +#include "bctestpreviewpopupcontainer.h" +#include "bctestpreviewpopup.hrh" + +_LIT( KContent1, "Content" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupCase* CBCTestPreviewPopupCase::NewL( + CBCTestPreviewPopupContainer* aContainer ) + { + CBCTestPreviewPopupCase* self = new( ELeave ) CBCTestPreviewPopupCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupCase::CBCTestPreviewPopupCase( + CBCTestPreviewPopupContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupCase::~CBCTestPreviewPopupCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunction(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::TestFunction +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::TestFunction() + { + + TRect rect ( 120,100,200,150 ); + + CEikLabel* label = new ( ELeave ) CEikLabel; + label->SetTextL( KContent1 ); + label->SetRect( rect ); + + CAknPreviewPopUpController* popup = NULL; + popup = CAknPreviewPopUpController::NewL( *label, + CAknPreviewPopUpController::EPermanentMode ); + _LIT( KNew, "CAknPreviewPopUpController::NewL() called" ); + AssertNotNullL( popup, KNew ); + + delete popup; + popup = NULL; + popup = CAknPreviewPopUpController::NewL( *label, *this ); + AssertNotNullL( popup, KNew ); + + delete popup; + popup = NULL; + popup = CAknPreviewPopUpController::NewL( *label, *this, + CAknPreviewPopUpController::EPermanentMode); + AssertNotNullL( popup, KNew ); + + delete popup; + popup = NULL; + popup = CAknPreviewPopUpController::NewL( *label ); + AssertNotNullL( popup, KNew ); + + popup->SetPopUpShowDelay( 1000 ); + _LIT( KSetShowDelay, "CAknPreviewPopUpController::SetPopUpShowDelay() called "); + AssertTrueL( ETrue, KSetShowDelay ); + + popup->SetPopUpHideDelay( 500 ); + _LIT( KSetHideDelay, "CAknPreviewPopUpController::SetPopupHideDelay() called "); + AssertTrueL( ETrue, KSetHideDelay ); + + popup->ShowPopUp(); + _LIT( KShowPopUp, "CAknPreviewPopUpController::ShowPopUp() called "); + AssertTrueL( ETrue, KShowPopUp ); + + popup->SetPosition( TPoint (120,100) ); + _LIT( KSetPosition, "CAknPreviewPopUpController::SetPosition() called " ); + AssertTrueL( ETrue, KSetPosition ); + + popup->SetPositionByHighlight( rect ); + _LIT( KSetPositionByHighlight, "CAknPreviewPopUpController::SetPositionByHighlight() called " ); + AssertTrueL( ETrue, KSetPositionByHighlight ); + + popup->AddObserverL( *this ); + _LIT( KAddObserver, "CAknPreviewPopUpController::AddObserverL() called " ); + AssertTrueL( ETrue, KAddObserver ); + + popup->RemoveObserver( *this ); + _LIT( KRemoveObserver, "CAknPreviewPopUpController::RemoveObserver() called " ); + AssertTrueL( ETrue, KRemoveObserver ); + + popup->UpdateContentSize(); + _LIT( KUpdateContentSize, "CAknPreviewPopUpController::UpdateContentSize() called " ); + AssertTrueL( ETrue, KUpdateContentSize ); + + popup->SetHeadingTextL( _L("Text")); + _LIT( KSetHeadingText, "CAknPreviewPopUpController::SetHeadingTextL() called " ); + AssertTrueL( ETrue, KSetHeadingText ); + + TSize size = popup->Size(); + _LIT( KSize, "CAknPreviewPopUpController::Size() called " ); + AssertTrueL( size != TSize(0,0), KSize ); + + CAknPreviewPopUpController::TAknPreviewPopUpContentSize contentSize = popup->ContentSizeInLayout(); + _LIT( KContentSize,"CAknPreviewPopUpController::ContentSizeInLayout() called " ); + AssertTrueL( ETrue, KContentSize ); + + popup->HidePopUp(); + _LIT( KHidePopup,"CAknPreviewPopUpController::HidePopUp() called " ); + AssertTrueL( ETrue, KHidePopup ); + + delete label; + label = NULL; + + delete popup; + popup=NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::HandlePreviewPopUpEventL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::HandlePreviewPopUpEventL( + CAknPreviewPopUpController* aController, + TPreviewPopUpEvent aEvent) + { + + } +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::StartContentBuildingL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::StartContentBuildingL() + { + } +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupCase::CancelContentBuilding +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupCase::CancelContentBuilding() + { + + } + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestpreviewpopupcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupContainer::CBCTestPreviewPopupContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupContainer::~CBCTestPreviewPopupContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestPreviewPopupContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestPreviewPopupContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestPreviewPopupContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestPreviewPopupContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon PreviewPopup test application +* +*/ + + +// INCLUDE FILES +#include "BCTestPreviewPopupDocument.h" +#include "BCTestPreviewPopupAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestPreviewPopupDocument* CBCTestPreviewPopupDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPreviewPopupDocument* CBCTestPreviewPopupDocument::NewL( CEikApplication& aApp ) + { + CBCTestPreviewPopupDocument* self = new( ELeave ) CBCTestPreviewPopupDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestPreviewPopupDocument::~CBCTestPreviewPopupDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPreviewPopupDocument::~CBCTestPreviewPopupDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestPreviewPopupDocument::CBCTestPreviewPopupDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPreviewPopupDocument::CBCTestPreviewPopupDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestPreviewPopupDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestPreviewPopupDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestPreviewPopupAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestpreviewpopup/src/bctestpreviewpopupview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestpreviewpopup.hrh" +#include +#include "bctestpreviewpopupview.h" +#include "bctestpreviewpopupcontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupView* CBCTestPreviewPopupView::NewL(CBCTestUtil* aUtil) + { + CBCTestPreviewPopupView* self = new( ELeave ) CBCTestPreviewPopupView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupView::CBCTestPreviewPopupView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTPREVIEWPOPUP_VIEW ); + + iContainer = new( ELeave ) CBCTestPreviewPopupContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupView::~CBCTestPreviewPopupView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestPreviewPopupView::Id() const + { + return KBCTestPreviewPopupViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupView::Container +// --------------------------------------------------------------------------- +// +CBCTestPreviewPopupContainer* CBCTestPreviewPopupView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestPreviewPopupView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestPreviewPopupView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bctestservicehandler.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bctestservicehandler.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,74 @@ +/* +* 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 "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: project specification file for the BCTestServiceHandler. +* +*/ + + +TARGET BCTestServiceHandler.exe +TARGETTYPE exe +UID 0x0 0x20007628 + +VENDORID 0x101FB657 + +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestServiceHandler.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestservicehandlerapp.cpp +SOURCE bctestservicehandlerdocument.cpp +SOURCE bctestservicehandlerappui.cpp +SOURCE bctestservicehandlerview.cpp +SOURCE bctestservicehandlercontainer.cpp +SOURCE bctestservicehandlercase.cpp + +USERINCLUDE . +USERINCLUDE ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY estor.lib +LIBRARY servicehandler.lib +LIBRARY bafl.lib + +START RESOURCE ../group/bctestservicehandler_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bctestservicehandler.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bctestservicehandler.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,223 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME BCSH + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestservicehandler.hrh" +#include "bctestservicehandler.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTSERVICEHANDLER_BMP_FNAME APP_BITMAP_DIR"\\bctestservicehandler.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "ServiceHandler"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestservicehandler_menubar_main; + cba = r_bctestservicehandler_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestservicehandler_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestservicehandler_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestservicehandler_view +// AVKON_VIEW for CBCTestServiceHandlerView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestservicehandler_view + { + menubar = r_bctestservicehandler_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestservicehandler_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestservicehandler_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestservicehandler_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestservicehandler_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestservicehandler_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestservicehandler_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestservicehandler_servicehandlermenu; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestservicehandler_criteriamenu; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestservicehandler_genericparammenu; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestservicehandler_genericparamlistmenu; + }, + MENU_ITEM + { + command = EBCTestCmdOutline5; + txt = qtn_bctestservicehandler_variantmenu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestservicehandler_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestservicehandler_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestservicehandler_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestservicehandler_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestservicehandler_cba_options_next +// Softkeys +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestservicehandler_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestServiceHandlerCbaCmdNext; + txt = qtn_bctestservicehandler_cba_next; + } + }; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bctestservicehandler_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bctestservicehandler_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20007628 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestServiceHandler"; + localisable_resource_file = "\\resource\\apps\\bctestservicehandler"; + localisable_resource_id = R_BCTESTSERVICEHANDLER_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,22 @@ +/* +* 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 "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: Build information file for project BCTestServiceHandler +* +*/ + + +PRJ_MMPFILES +bctestservicehandler.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandler.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandler.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 "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: BCTestServiceHandler resource header file +* +*/ + + +#ifndef BCTESTSERVICEHANDLER_HRH +#define BCTESTSERVICEHANDLER_HRH + +enum TBCTestServiceHandlerMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdOutline5, + EBCTestCmdMaxOutline, + EAiwPlaceholder, + ETestFunction, + EProgCmdAutoTest, + ECmdLast + }; + +enum TBCTestServiceHandlerCba + { + EBCTestServiceHandlerCbaCmdNext = 0x6300 + }; + +#endif // BCTESTSERVICEHANDLER_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandler.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandler.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +/* +* 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 "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: BCTestServiceHandler localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTSERVICEHANDLER" +#define qtn_apps_tavl_grid "BCTESTSERVICEHANDLER" + +// MenuBar +#define qtn_bctestservicehandler_menubar "Option" +#define qtn_bctestservicehandler_cba_next "Next" +#define qtn_bctestservicehandler_autotest "Autotest" +#define qtn_bctestservicehandler_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline submenus +#define qtn_bctestservicehandler_criteriamenu "Criteria test" +#define qtn_bctestservicehandler_servicehandlermenu "Service handler test" +#define qtn_bctestservicehandler_genericparammenu "Param test" +#define qtn_bctestservicehandler_genericparamlistmenu "Param list test" +#define qtn_bctestservicehandler_variantmenu "Variant test" + +// outlines + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTESTSERVICEHANDLERAPP_H +#define BCTESTSERVICEHANDLERAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestServiceHandler = { 0x20007628 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestServiceHandlerApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestServiceHandlerApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestServiceHandlerDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestServiceHandler ). + * @return The value of KUidBCTestServiceHandler. + */ + TUid AppDllUid() const; + + }; + +#endif // BCTESTSERVICEHANDLERAPP_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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 BC for ServiceHandler control API. +* +*/ + + +#ifndef C_BCTESTSERVICEHANDLERAPPUI_H +#define C_BCTESTSERVICEHANDLERAPPUI_H + +#include + +class CBCTestServiceHandlerView; +class CBCTestUtil; +class CAiwServiceHandler; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestServiceHandlerAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestServiceHandlerAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestServiceHandlerAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * Owned + */ + CBCTestServiceHandlerView* iView; + }; + +#endif // C_BCTESTSERVICEHANDLERAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlercase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlercase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,169 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_SERVICEHANDLERCASE_H +#define BCTEST_SERVICEHANDLERCASE_H + +#include "bctestcase.h" +#include +#include // MEikMenuObserver + +class CBCTestServiceHandlerContainer; +class CBCTestServiceHandlerAppUi; +class CAiwServiceHandler; + +/** +* test case for various list classes +*/ +class CBCTestServiceHandlerCase: public CBCTestCase, public MAiwNotifyCallback, + public MEikMenuObserver + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestServiceHandlerCase* NewL( CBCTestServiceHandlerContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestServiceHandlerCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +public: // from MAiwNotifyCallback + + /** + * Handles notifications caused by an asynchronous ExecuteCmdL call. + * @param aCmdId The service command associated to the event. + * @param aEventId Occured event, see AiwCommon.hrh. + * @param aEvenParamList Event parameters, if any, as defined per + * related HandleCommandL. + * @return Error code for the callback. + */ + TInt HandleNotifyL( TInt aCmdId, + TInt aEventId, + CAiwGenericParamList& aEventParamList, + const CAiwGenericParamList& aInParamList ); + +public: // from MEikMenuObserver + + /** + * Called by the Uikon framework to handle the emphasising or de-emphasising of + * a menu window. + * + * CEikMenuBar objects call this on their observer to emphasise + * themselves when they are displayed, and de-emphasise themselves when they + * stop displaying. + * + * @param aMenuControl The menu control. + * @param aEmphasis ETrue to emphasize the menu, EFalse otherwise. + */ + void SetEmphasis( CCoeControl* aMenuControl, TBool aEmphasis ); + +public: // from MEikCommandObserver + + /** + * Processes user commands. + * + * Derived classes must provide an implementation of this function which responds + * to user commands appropriately based on a user-defined ID for the command. + * + * @param aCommandId ID of the command to respond to. + */ + void ProcessCommandL( TInt aCommandId ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Tests the functions in CAiwServiceHandler class. + */ + void TestServiceHandlerFunctions(); + + /** + * Tests the functions in CAiwCriteriaItem class. + */ + void TestCriteriaItemFunctions(); + + /** + * Tests the functions in TAiwGenericParam class. + */ + void TestGenericParamFunctions(); + + /** + * Tests the functions in CAiwGenericParamList class. + */ + void TestGenericParamListFunctions(); + + /** + * Tests the functions in TAiwVariant class. + */ + void TestVariantFunctions(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestServiceHandlerCase( CBCTestServiceHandlerContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * Not owned + */ + CBCTestServiceHandlerContainer* iContainer; + + /** + * Pointer to an AIW criteria item instance. + * Owned + */ + CAiwCriteriaItem* iCriteria; + }; + +#endif // BCTEST_SERVICEHANDLERCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlercontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlercontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_SERVICEHANDLERCONTAINER_H +#define BCTEST_SERVICEHANDLERCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestServiceHandlerContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestServiceHandlerContainer(); + + /** + * Destructor + */ + virtual ~CBCTestServiceHandlerContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * Owned + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_SERVICEHANDLERCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTSERVICEHANDLERDOCUMENT_H +#define C_BCTESTSERVICEHANDLERDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestServiceHandlerDocument application class. +*/ +class CBCTestServiceHandlerDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestServiceHandlerDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestServiceHandlerDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestServiceHandlerDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestServiceHandlerAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTSERVICEHANDLERDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/inc/bctestservicehandlerview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,109 @@ +/* +* 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 "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 BC for ServiceHandler control API. +* +*/ + + +#ifndef BCTEST_SERVICEHANDLER_VIEW_H +#define BCTEST_SERVICEHANDLER_VIEW_H + +#include + +const TUid KBCTestServiceHandlerViewId = { 1 }; + +class CBCTestServiceHandlerContainer; +class CBCTestServiceHandlerAppUi; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestServiceHandlerView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestServiceHandlerView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestServiceHandlerView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestServiceHandlerContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestServiceHandlerView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to the BC Test framework utility. + * Owned + */ + CBCTestUtil* iTestUtil; + + /** + * Pointer to the container. + * Owned + */ + CBCTestServiceHandlerContainer* iContainer; + + }; + +#endif // BCTEST_SERVICEHANDLER_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/sis/bctestservicehandler.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/sis/bctestservicehandler.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestservicehandler.pkg + +; Languages +&EN + +; Header +#{"bctestservicehandler"},(0x20007628),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestservicehandler.exe"- +"!:\sys\bin\bctestservicehandler.exe" + +"\epoc32\data\z\resource\apps\bctestservicehandler.rsc"- +"!:\resource\apps\bctestservicehandler.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestservicehandler_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestservicehandler_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: ServiceHandler test app +* +*/ + + +// INCLUDE FILES +#include "bctestservicehandlerapp.h" +#include "bctestservicehandlerdocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestServiceHandlerApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestServiceHandlerApp::AppDllUid() const + { + return KUidBCTestServiceHandler; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestServiceHandlerApp::CreateDocumentL() +// Creates CBCTestServiceHandlerDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestServiceHandlerApp::CreateDocumentL() + { + return CBCTestServiceHandlerDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestServiceHandlerApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestServiceHandlerApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ +/* +* 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 "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 bc for servicehandler control api(s) +* +*/ + +#include +#include +#include + +#include "bctestservicehandlerAppUi.h" +#include "bctestservicehandler.hrh" +#include "bctestservicehandlerview.h" +#include "bctestutil.h" +#include "bctestservicehandlercase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerAppUi::CBCTestServiceHandlerAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestServiceHandlerView* view = CBCTestServiceHandlerView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestServiceHandlerAppUi::~CBCTestServiceHandlerAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestServiceHandlerAppUi::~CBCTestServiceHandlerAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestServiceHandlerAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlercase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlercase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,851 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include // RFileWriteStream, RFileReadStream +#include // TResourceReader +#include // CEikMenuPane +#include +#include + +#include "bctestservicehandlercase.h" +#include "bctestservicehandlerappui.h" +#include "bctestservicehandlercontainer.h" +#include "bctestservicehandler.hrh" +#include + +_LIT( KTextCriteriaItemNullNewL, "CAiwCriteriaItem::NewL()" ); +_LIT( KTextCriteriaItemNullNewLC, "CAiwCriteriaItem::NewLC()" ); +_LIT( KTextCriteriaItemSetServiceClass, "CAiwCriteriaItem::SetServiceClass(const TUid& aServiceUid)" ); +_LIT( KTextCriteriaItemSetContentTypeL, "CAiwCriteriaItem::SetContentTypeL(const TDesC8& aContentType)" ); +_LIT( KTextCriteriaItemServiceClass, "CAiwCriteriaItem::ServiceClass()" ); +_LIT( KTextCriteriaItemContentType, "CAiwCriteriaItem::ContentType()" ); +_LIT( KTextCriteriaItemSetOptions, "CAiwCriteriaItem::SetOptions(TUint aOptions)" ); +_LIT( KTextCriteriaItemOptions, "CAiwCriteriaItem::Options()" ); +_LIT( KTextCriteriaItemMaxProviders, "CAiwCriteriaItem::MaxProviders()" ); +_LIT( KTextCriteriaItemDefaultProvider, "CAiwCriteriaItem::DefaultProvider()" ); +_LIT( KTextCriteriaItemSetDefaultProvider, "CAiwCriteriaItem::SetDefaultProvider(TInt aDefault)" ); +_LIT( KTextCriteriaItemSetMaxProviders, "CAiwCriteriaItem::SetMaxProviders(TInt aMaxProviders)" ); +_LIT( KTextCriteriaItemRomOnly, "CAiwCriteriaItem::RomOnly()" ); + +_LIT( KTextServiceHandlerNewL, "CAiwServiceHandler::NewL()" ); +_LIT( KTextServiceHandlerNewLC, "CAiwServiceHandler::NewLC()" ); +_LIT( KTextServiceHandlerReset, "CAiwServiceHandler::Reset()" ); +_LIT( KTextServiceHandlerNbrOfProviders, "CAiwServiceHandler::NbrOfProviders(const CAiwCriteriaItem* aCriteria)" ); +_LIT( KTextServiceHandlerGetInterest, "CAiwServiceHandler::GetInterest(RCriteriaArray& aInterest)" ); +_LIT( KTextServiceHandlerGetCriteria, "CAiwServiceHandler::GetCriteria(TInt aId)" ); +_LIT( KTextServiceHandlerInParamListL, "CAiwServiceHandler::InParamListL()" ); +_LIT( KTextServiceHandlerOutParamListL, "CAiwServiceHandler::OutParamListL()" ); +_LIT( KTextServiceHandlerServiceCmdByMenuCmd, "CAiwServiceHandler::ServiceCmdByMenuCmd(TInt aMenuCmdId)" ); +_LIT( KTextServiceHandlerExecuteMenuCmdL, "CAiwServiceHandler::ExecuteMenuCmdL(TInt aMenuCmdId, const CAiwGenericParamList& aInParamList, CAiwGenericParamList& aOutParamList, TUint aCmdOptions = 0, MAiwNotifyCallback* aCallback = NULL)" ); +_LIT( KTextServiceHandlerIsSubMenuEmpty, "CAiwServiceHandler::IsSubMenuEmpty(TInt aSubMenuId)" ); +_LIT( KTextServiceHandlerIsAiwMenu, "CAiwServiceHandler::IsAiwMenu(TInt aMenuResourceId)" ); +_LIT( KTextServiceHandlerHandleSubmenuL, "CAiwServiceHandler::HandleSubmenuL(CEikMenuPane& aPane)" ); +_LIT( KTextServiceHandlerReportMenuLaunch, "CAiwServiceHandler::ReportMenuLaunch()" ); +_LIT( KTextServiceHandlerExecuteServiceCmdL, "CAiwServiceHandler::ExecuteServiceCmdL(const TInt& aCmdId, const CAiwGenericParamList& aInParamList, CAiwGenericParamList& aOutParamList, TUint aCmdOptions = 0, MAiwNotifyCallback* aCallback = 0)" ); +_LIT( KTextServiceHandlerInitializeMenuPaneL, "CAiwServiceHandler::InitializeMenuPaneL(CEikMenuPane& aMenuPane, TInt aMenuResourceId, TInt aBaseMenuCmdId, const CAiwGenericParamList& aInParamList)" ); +_LIT( KTextServiceHandlerInitializeMenuPaneL2, "CAiwServiceHandler::InitializeMenuPaneL(CEikMenuPane& aMenuPane, TInt aMenuResourceId, TInt aBaseMenuCmdId, const CAiwGenericParamList& aInParamList, TBool aUseSubmenuTextsIfAvailable)" ); + +_LIT( KTextNotifyCallbackHandleNotifyL, "MAiwNotifyCallback::HandleNotifyL(TInt aCmdId, TInt aEventId, CAiwGenericParamList& aEventParamList, const CAiwGenericParamList& aInParamList)" ); +_LIT( KTextNotifyCallbackEventStarted, "KAiwEventStarted" ); +_LIT( KTextNotifyCallbackEventCompleted, "KAiwEventCompleted" ); +_LIT( KTextNotifyCallbackEventCanceled, "KAiwEventCanceled" ); +_LIT( KTextNotifyCallbackEventError, "KAiwEventError" ); +_LIT( KTextNotifyCallbackEventOutParamCheck,"KAiwEventOutParamCheck" ); +_LIT( KTextNotifyCallbackEventInParamCheck, "KAiwEventInParamCheck" ); +_LIT( KTextNotifyCallbackEventStopped, "KAiwEventStopped" ); +_LIT( KTextNotifyCallbackEventQueryExit, "KAiwEventQueryExit" ); + +_LIT( KTextGenericParam, "TAiwGenericParam()" ); +_LIT( KTextGenericParam2, "TAiwGenericParam(TGenericParamId aSemanticId)" ); +_LIT( KTextGenericParam3, "TAiwGenericParam(TGenericParamId aSemanticId, const TAiwVariant& aValue)" ); +_LIT( KTextGenericParamSetSemanticId, "TAiwGenericParam::SetSemanticId(TGenericParamId aSemanticId)" ); +_LIT( KTextGenericParamSemanticId, "TAiwGenericParam::SetSemanticId() const" ); +_LIT( KTextGenericParamValue, "TAiwGenericParam::Value()" ); +_LIT( KTextGenericParamConstValue, "TAiwGenericParam::Value() const" ); +_LIT( KTextGenericParamReset, "TAiwGenericParam::Reset()" ); +_LIT( KTextGenericParamEquals, "operator==(const TAiwGenericParam& aLhs, const TAiwGenericParam& aRhs)" ); +_LIT( KTextGenericParamNotEqual, "operator!=(const TAiwGenericParam& aLhs, const TAiwGenericParam& aRhs)" ); + +_LIT( KTextGenericParamListNewL, "CAiwGenericParamList::NewL()" ); +_LIT( KTextGenericParamListNewL2, "CAiwGenericParamList::NewL(RReadStream& aReadStream)" ); +_LIT( KTextGenericParamListNewLC, "CAiwGenericParamList::NewLC()" ); +_LIT( KTextGenericParamListNewLC2, "CAiwGenericParamList::NewLC(RReadStream& aReadStream)" ); +_LIT( KTextGenericParamListCount, "CAiwGenericParamList::Count()" ); +_LIT( KTextGenericParamListCount2, "CAiwGenericParamList::Count(TGenericParamId aSemanticId, TVariantTypeId aDataType) const" ); +_LIT( KTextGenericParamListIndex, "CAiwGenericParamList::operator[](TInt aIndex) const" ); +_LIT( KTextGenericParamListAppendL, "CAiwGenericParamList::AppendL(const TAiwGenericParam& aParam)" ); +_LIT( KTextGenericParamListAppendL2, "CAiwGenericParamList::AppendL(const CAiwGenericParamList& aList)" ); +_LIT( KTextGenericParamListRemove, "CAiwGenericParamList::Remove()" ); +_LIT( KTextGenericParamListReset, "CAiwGenericParamList::Reset()" ); +_LIT( KTextGenericParamListFindFirst, "CAiwGenericParamList::FindFirst(TInt& aIndex, TGenericParamId aSemanticId, TVariantTypeId aDataType) const" ); +_LIT( KTextGenericParamListFindNext, "CAiwGenericParamList::FindNext(TInt& aIndex, TGenericParamId aSemanticId, TVariantTypeId aDataType) const" ); +_LIT( KTextGenericParamListExternalizeL, "CAiwGenericParamList::ExternalizeL(RWriteStream& aStream) const" ); +_LIT( KTextGenericParamListSize, "CAiwGenericParamList::Size()" ); +_LIT( KTextGenericParamListInternalizeL, "CAiwGenericParamList::ExternalizeL(RReadStream& aStream)" ); +_LIT( KTextGenericParamListPackForServerL, "CAiwGenericParamList::PackForServerL(TIpcArgs& aArgs)" ); +_LIT( KTextGenericParamListUnpackFromClientL, "CAiwGenericParamList::UnpackFromClientL(const RMessage2& aArgs)" ); + +_LIT( KTextVariantEmptyConstructor, "TAiwVariant()" ); +_LIT( KTextVariantIntegerConstructor, "TAiwVariant(TInt32 aValue)" ); +_LIT( KTextVariantUidConstructor, "TAiwVariant(const TUid& aValue)" ); +_LIT( KTextVariantTimeConstructor, "TAiwVariant(const TTime& aValue)" ); +_LIT( KTextVariantDesConstructor, "TAiwVariant(const TDesC& aValue)" ); +_LIT( KTextVariantBufferConstructor, "TAiwVariant(const HBufC* aValue)" ); +_LIT( KTextVariantDes8Constructor, "TAiwVariant(const TDesC8& aValue)" ); +_LIT( KTextVariantFileConstructor, "TAiwVariant(const RFile& aValue)" ); +_LIT( KTextVariantSourceConstructor, "TAiwVariant(const TAiwVariant& aSrc)" ); +_LIT( KTextVariantAssignment, "TAiwVariant::operator=(const TAiwVariant& aValue)" ); +_LIT( KTextVariantTypeId, "TAiwVariant::TypeId()" ); +_LIT( KTextVariantIsEmpty, "TAiwVariant::IsEmpty()" ); +_LIT( KTextVariantGetInteger, "TAiwVariant::Get(TInt32& aValue)" ); +_LIT( KTextVariantGetUid, "TAiwVariant::Get(TUid& aValue)" ); +_LIT( KTextVariantGetPtr16, "TAiwVariant::Get(TPtrC& aValue)" ); +_LIT( KTextVariantGetTime, "TAiwVariant::Get(TTime& aValue)" ); +_LIT( KTextVariantGetPtr8, "TAiwVariant::Get(TPtrC8& aValue)" ); +_LIT( KTextVariantGetFile, "TAiwVariant::Get(RFile& aValue)" ); +_LIT( KTextVariantAsTInt32, "TAiwVariant::AsTInt32()" ); +_LIT( KTextVariantAsTUid, "TAiwVariant::AsTUid()" ); +_LIT( KTextVariantAsDes, "TAiwVariant::AsDes()" ); +_LIT( KTextVariantAsTTime, "TAiwVariant::AsTTime()" ); +_LIT( KTextVariantAsData, "TAiwVariant::AsData()" ); +_LIT( KTextVariantAsFileHandle, "TAiwVariant::AsFileHandle()" ); +_LIT( KTextVariantReset, "TAiwVariant::Reset()" ); +_LIT( KTextVariantSetInteger, "TAiwVariant::Set(TInt32 aValue)" ); +_LIT( KTextVariantSetUid, "TAiwVariant::Set(const TUid aValue)" ); +_LIT( KTextVariantSetTime, "TAiwVariant::Set(const TTime aValue)" ); +_LIT( KTextVariantSetDes16, "TAiwVariant::Set(const TDesC& aValue)" ); +_LIT( KTextVariantSetBuffer, "TAiwVariant::Set(const HBufC* aValue)" ); +_LIT( KTextVariantSetDes8, "TAiwVariant::Set(const TDesC8& aValue)" ); +_LIT( KTextVariantSetFile, "TAiwVariant::Set(const RFile& aValue)" ); +_LIT( KTextVariantTimeAssignment, "TAiwVariant::operator=(const TTime& aValue)" ); +_LIT( KTextVariantUidAssignment, "TAiwVariant::operator=(const TUid& aValue)" ); +_LIT( KTextVariantIntegerAssignment, "TAiwVariant::operator=(TInt32 aValue)" ); +_LIT( KTextVariantDes16Assignment, "TAiwVariant::operator=(const TDesC& aValue)" ); +_LIT( KTextVariantBufferAssignment, "TAiwVariant::operator=(const HBufC* aValue)" ); +_LIT( KTextVariantDes8Assignment, "TAiwVariant::operator=(const TDesC8& aValue)" ); +_LIT( KTextVariantFileAssignment, "TAiwVariant::operator=(const RFile& aValue)" ); +_LIT( KTextVariantEquals, "operator==(const TAiwVariant& aLhs, const TAiwVariant& aRhs)" ); +_LIT( KTextVariantNotEqual, "operator!=(const TAiwVariant& aLhs, const TAiwVariant& aRhs)" ); + +_LIT( KBuffer, "Abc" ); +_LIT8( KContentMimeType, "*" ); + +_LIT(KFileName, "C:\\data\\testfile.txt" ); + +const TInt KBufferSize = 3; +const TInt KMaxProviders = 3; +const TInt KDefaultProvider = 0x12312312; +const TInt32 KDefaultValue = 10; +const TInt KDefaultUidValue = 123456; + + +class RTestSession : public RSessionBase + { +public: + TInt Create( RServer2 aServer, TRequestStatus& aStatus ) + { + return CreateSession( aServer, + TVersion(), + 2, + EIpcSession_Sharable, + NULL, + &aStatus); + } + + inline void Send( const TIpcArgs& aArgs, TRequestStatus& aStatus ) + { + RSessionBase::SendReceive( ETestFunction, aArgs, aStatus ); + } + }; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerCase* CBCTestServiceHandlerCase::NewL( + CBCTestServiceHandlerContainer* aContainer ) + { + CBCTestServiceHandlerCase* self = new( ELeave ) CBCTestServiceHandlerCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerCase::CBCTestServiceHandlerCase( + CBCTestServiceHandlerContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerCase::~CBCTestServiceHandlerCase() + { + delete iCriteria; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::ConstructL() + { + BuildScriptL(); + iCriteria = CAiwCriteriaItem::NewL(); + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::BuildScriptL() + { + // Add script as your need. + + // Tests the CAiwServiceHandler methods + AddTestL( DELAY(1), REP(LeftCBA,2), TEND ); + + // Tests the CAiwCriteriaItem methods + AddTestL( LeftCBA, Down, LeftCBA, TEND ); + + // Tests the TAiwGenericParam methods + AddTestL( LeftCBA, REP(Down,2), LeftCBA, TEND ); + + // Tests the CAiwGenericParamList methods + AddTestL( LeftCBA, REP(Down,3), LeftCBA, TEND ); + + // Tests the TAiwVariant methods + AddTestL( LeftCBA, REP(Down,4), LeftCBA, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd >= EBCTestCmdMaxOutline ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestServiceHandlerFunctions(); + break; + + case EBCTestCmdOutline2: + TestCriteriaItemFunctions(); + break; + + case EBCTestCmdOutline3: + TestGenericParamFunctions(); + break; + + case EBCTestCmdOutline4: + TestGenericParamListFunctions(); + break; + + case EBCTestCmdOutline5: + TestVariantFunctions(); + break; + + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::PrepareCaseL( TInt /*aCmd*/ ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::ReleaseCaseL() + { + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::TestServiceHandlerFunctions +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::TestServiceHandlerFunctions() + { + CAiwServiceHandler* serviceHandler; + CAiwCriteriaItem* nullCriteria; + + serviceHandler = CAiwServiceHandler::NewL(); + CleanupStack::PushL( serviceHandler ); + AssertNotNullL( serviceHandler, KTextServiceHandlerNewL ); + CleanupStack::PopAndDestroy( serviceHandler ); + + serviceHandler = CAiwServiceHandler::NewLC(); + AssertNotNullL( serviceHandler, KTextServiceHandlerNewLC ); + + serviceHandler->Reset(); + AssertTrueL( ETrue, KTextServiceHandlerReset ); + + serviceHandler->GetCriteria( EAiwPlaceholder ); + AssertTrueL( ETrue, KTextServiceHandlerGetCriteria ); + + nullCriteria = CAiwCriteriaItem::NewLC(); + TInt providers = serviceHandler->NbrOfProviders( nullCriteria ); + AssertIntL( 0, providers, KTextServiceHandlerNbrOfProviders ); + CleanupStack::PopAndDestroy( nullCriteria ); + + serviceHandler->Reset(); + RCriteriaArray interest; + CleanupClosePushL( interest ); + serviceHandler->GetInterest( interest ); + AssertTrueL( ETrue, KTextServiceHandlerGetInterest ); + CleanupStack::PopAndDestroy( &interest ); + + CAiwGenericParamList& inParamList = serviceHandler->InParamListL(); + AssertTrueL( ETrue, KTextServiceHandlerInParamListL ); + + CAiwGenericParamList& outParamList = serviceHandler->OutParamListL(); + AssertTrueL( ETrue, KTextServiceHandlerOutParamListL ); + + TInt serviceCmd = serviceHandler->ServiceCmdByMenuCmd( NULL ); + AssertIntL( KAiwCmdNone, serviceCmd, KTextServiceHandlerServiceCmdByMenuCmd ); + + serviceHandler->ExecuteMenuCmdL( EAiwPlaceholder, + serviceHandler->InParamListL(), + serviceHandler->OutParamListL(), + KAiwOptASyncronous, + this ); + AssertTrueL( ETrue, KTextServiceHandlerExecuteMenuCmdL ); + + TBool isEmpty = serviceHandler->IsSubMenuEmpty( R_BCTESTSERVICEHANDLER_MENU ); + AssertTrueL( !isEmpty, KTextServiceHandlerIsSubMenuEmpty ); + + TBool isAiwMenu = serviceHandler->IsAiwMenu( R_BCTESTSERVICEHANDLER_MENU ); + AssertTrueL( !isAiwMenu, KTextServiceHandlerIsAiwMenu ); + + serviceHandler->ReportMenuLaunch(); + AssertTrueL( ETrue, KTextServiceHandlerReportMenuLaunch ); + + serviceHandler->ExecuteServiceCmdL( KAiwCmdNone, + serviceHandler->InParamListL(), + serviceHandler->OutParamListL() ); + AssertTrueL( ETrue, KTextServiceHandlerExecuteServiceCmdL ); + + CEikMenuPane* menuPane = new (ELeave) CEikMenuPane( this ); + CleanupStack::PushL( menuPane ); + + serviceHandler->InitializeMenuPaneL( *menuPane, + R_BCTESTSERVICEHANDLER_MENU, + EAiwPlaceholder, + serviceHandler->InParamListL() ); + AssertTrueL( ETrue, KTextServiceHandlerInitializeMenuPaneL ); + + serviceHandler->InitializeMenuPaneL( *menuPane, + R_BCTESTSERVICEHANDLER_MENU, + EAiwPlaceholder, + serviceHandler->InParamListL(), + ETrue ); + AssertTrueL( ETrue, KTextServiceHandlerInitializeMenuPaneL2 ); + + TBool submenuHandled = serviceHandler->HandleSubmenuL( *menuPane ); + AssertTrueL( !submenuHandled, KTextServiceHandlerHandleSubmenuL ); + + CleanupStack::PopAndDestroy( menuPane ); // menuPane + CleanupStack::PopAndDestroy( serviceHandler ); // serviceHandler + + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::TestCriteriaItemFunctions +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::TestCriteriaItemFunctions() + { + + CAiwCriteriaItem* firstCriteria; + CAiwGenericParamList* paramList; + TUid menuUid; + menuUid.iUid = KAiwClassMenu; + + AssertNotNullL( iCriteria, KTextCriteriaItemNullNewL ); + firstCriteria = CAiwCriteriaItem::NewLC(); + AssertNotNullL( firstCriteria, KTextCriteriaItemNullNewLC ); + CleanupStack::PopAndDestroy( firstCriteria ); + + iCriteria->SetServiceClass( menuUid ); + AssertIntL( KAiwClassMenu, iCriteria->ServiceClass().iUid, KTextCriteriaItemSetServiceClass ); + AssertTrueL( ETrue, KTextCriteriaItemServiceClass ); + + + iCriteria->SetContentTypeL( KContentMimeType ); + AssertTrueL( ETrue, KTextCriteriaItemSetContentTypeL ); + AssertTrueL( iCriteria->ContentType() == KContentMimeType, KTextCriteriaItemContentType ); + + iCriteria->SetMaxProviders( KMaxProviders ); + AssertIntL( KMaxProviders, iCriteria->MaxProviders(), KTextCriteriaItemSetMaxProviders ); + AssertTrueL( ETrue, KTextCriteriaItemMaxProviders ); + + iCriteria->SetDefaultProvider( KDefaultProvider ); + AssertIntL( KDefaultProvider, iCriteria->DefaultProvider().iUid, KTextCriteriaItemSetDefaultProvider ); + AssertTrueL( ETrue, KTextCriteriaItemDefaultProvider ); + + + iCriteria->SetOptions( AIW_OPTIONS_ROM_ONLY ); + AssertIntL( AIW_OPTIONS_ROM_ONLY, iCriteria->Options(), KTextCriteriaItemSetOptions ); + AssertTrueL( ETrue, KTextCriteriaItemOptions ); + AssertTrueL( iCriteria->RomOnly(), KTextCriteriaItemRomOnly ); + + paramList = CAiwGenericParamList::NewLC(); + HandleNotifyL( KAiwCmdNone, KAiwEventStarted, *paramList, *paramList ); + + CleanupStack::PopAndDestroy( paramList ); //paramList + + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::TestGenericParamFunctions +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::TestGenericParamFunctions() + { + TUid uid; + uid.iUid = KDefaultUidValue; + TAiwGenericParam nullParam; + + TAiwGenericParam genericParam; + AssertNotNullL( &genericParam, KTextGenericParam ); + TAiwGenericParam genericParam2( EGenericParamUnspecified ); + AssertNotNullL( &genericParam2, KTextGenericParam2 ); + TAiwGenericParam genericParam3( EGenericParamHelpItem, uid ); + AssertNotNullL( &genericParam3, KTextGenericParam3 ); + TAiwGenericParam genericParam4; + + genericParam.SetSemanticId( EGenericParamLandmark ); + AssertIntL( EGenericParamLandmark, genericParam.SemanticId(), KTextGenericParamSetSemanticId ); + AssertIntL( EGenericParamLandmark, genericParam.SemanticId(), KTextGenericParamSemanticId ); + + TAiwVariant& nullValue = nullParam.Value(); + AssertTrueL( nullValue.IsEmpty(), KTextGenericParamValue ); + const TAiwVariant& constValue = nullParam.Value(); + AssertTrueL( constValue.IsEmpty(), KTextGenericParamConstValue ); + + genericParam.Reset(); + AssertTrueL( ETrue, KTextGenericParamReset ); + + AssertTrueL( genericParam4 == nullParam, KTextGenericParamEquals ); + + AssertTrueL( genericParam != genericParam3, KTextGenericParamNotEqual ); + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::TestGenericParamListFunctions +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::TestGenericParamListFunctions() + { + TInt count; + TInt index; + TInt err; + TUid testUid; + testUid.iUid = 123; + CAiwGenericParamList* genericParamList; + CAiwGenericParamList* secondParamList; + TAiwVariant variant( testUid ); + TAiwGenericParam genericParam( 1, variant );//EGenericParamCharSet + + RFs fsSession; + User::LeaveIfError( fsSession.Connect() ); + CleanupClosePushL( fsSession ); + + genericParamList = CAiwGenericParamList::NewL(); + CleanupStack::PushL( genericParamList ); + AssertNotNullL( genericParamList, KTextGenericParamListNewL ); + + RFile writeFile; + CleanupClosePushL( writeFile ); + err = writeFile.Open( fsSession, KFileName, EFileStream | EFileWrite | EFileShareAny ); + if (err == KErrNotFound) + { + // File does not exist - create it + err = writeFile.Create( fsSession, KFileName, EFileStream | EFileWrite | EFileShareAny ); + } + + RFileWriteStream writeStream = RFileWriteStream( writeFile ); + CleanupClosePushL( writeStream ); + + genericParamList->ExternalizeL( writeStream ); + AssertTrueL( ETrue, KTextGenericParamListExternalizeL ); + + CleanupStack::PopAndDestroy( 3, genericParamList ); + + RFile readFile; + CleanupClosePushL( readFile ); + err = readFile.Open( fsSession, KFileName, EFileStream | EFileRead | EFileShareReadersOnly ); + RFileReadStream readStream = RFileReadStream( readFile ); + CleanupClosePushL( readStream ); + + genericParamList = CAiwGenericParamList::NewL( readStream ); + CleanupStack::PushL( genericParamList ); + AssertNotNullL( genericParamList, KTextGenericParamListNewL2 ); + CleanupStack::PopAndDestroy( 3, &readFile ); + + RFile readFile2; + CleanupClosePushL( readFile2 ); + err = readFile2.Open( fsSession, KFileName, EFileStream | EFileRead | EFileShareReadersOnly ); + RFileReadStream readStream2 = RFileReadStream( readFile2 ); + CleanupClosePushL( readStream2 ); + + genericParamList = CAiwGenericParamList::NewLC( readStream2 ); + AssertNotNullL( genericParamList, KTextGenericParamListNewLC2 ); + + RFile readFile3; + CleanupClosePushL( readFile3 ); + err = readFile3.Open( fsSession, KFileName, EFileStream | EFileRead | EFileShareReadersOnly ); + RFileReadStream readStream3 = RFileReadStream( readFile3 ); + CleanupClosePushL( readStream3 ); + + genericParamList->InternalizeL( readStream3 ); + AssertTrueL( ETrue, KTextGenericParamListInternalizeL ); + + CleanupStack::PopAndDestroy( 6, &fsSession ); // readStream3, readFile3, genericParamList, + // readStream2, readFile2, fsSession + + genericParamList = CAiwGenericParamList::NewLC(); + AssertNotNullL( genericParamList, KTextGenericParamListNewLC ); + + count = genericParamList->Count(); + AssertIntL( 0, count, KTextGenericParamListCount ); + count = genericParamList->Count( EGenericParamLandmarkId, EVariantTypeNull ); + AssertIntL( 0, count, KTextGenericParamListCount2 ); + + index = 0; + genericParamList->AppendL( genericParam ); + AssertTrueL( ETrue, KTextGenericParamListAppendL ); + const TAiwGenericParam& paramFromList = (*genericParamList)[index]; + AssertTrueL( ETrue, KTextGenericParamListIndex ); + + secondParamList = CAiwGenericParamList::NewLC(); + genericParamList->AppendL( *secondParamList ); + AssertNotNullL( genericParamList, KTextGenericParamListAppendL2 ); + + TBool removed = genericParamList->Remove( EGenericParamLandmarkDatabase ); + AssertTrueL( removed == EFalse, KTextGenericParamListRemove ); + + genericParamList->Reset(); + AssertTrueL( ETrue, KTextGenericParamListReset ); + + CleanupStack::PopAndDestroy( secondParamList ); + + index = 0; + genericParamList->FindFirst( index, + EGenericParamMnMapViewOptions, + EVariantTypeDesC ); + AssertIntL( KErrNotFound, index, KTextGenericParamListFindFirst ); + + index = 0; + genericParamList->FindNext( index, + EGenericParamMnGeocodingOptions, + EVariantTypeDesC8 ); + AssertIntL( KErrNotFound, index, KTextGenericParamListFindNext ); + + genericParamList->Size(); + AssertTrueL( ETrue, KTextGenericParamListSize ); + + TIpcArgs args; + genericParamList->AppendL( genericParam ); + HBufC8* msgBuf = genericParamList->PackForServerL( args ); + CleanupStack::PushL( msgBuf ); + AssertNotNullL( msgBuf, KTextGenericParamListPackForServerL ); + + // Test server handle + RServer2 server; + + // Test message handle + RMessage2 message; + + // Test session handle + RTestSession session; + + TRequestStatus sessionCreation; + TRequestStatus firstMessageReceived; + TRequestStatus argumentsReceived; + TRequestStatus secondMessageReceived; + + // Test server is created + User::LeaveIfError( server.CreateGlobal( KNullDesC ) ); + CleanupClosePushL( server ); + + // Test session is created + User::LeaveIfError( session.Create( server, sessionCreation ) ); + CleanupClosePushL( session ); + + // Server receives and completes the session creation message + server.Receive( message, firstMessageReceived ); + User::WaitForRequest( firstMessageReceived ); + message.Complete( KErrNone ); + User::WaitForRequest( sessionCreation ); + + // Parameters of genericParamList are sent via session to server + session.Send( args, argumentsReceived ); + + // Server receives the parameters + server.Receive( message, secondMessageReceived ); + User::WaitForRequest( secondMessageReceived ); + + genericParamList->UnpackFromClientL( message ); + AssertTrueL( ETrue, KTextGenericParamListUnpackFromClientL ); + + // Parameters are received and handled -> message is completed + message.Complete( KErrNone ); + User::WaitForRequest( argumentsReceived ); + + CleanupStack::PopAndDestroy( 4, genericParamList ); // session, server, msgBuf, + // genericParamList + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerCase::TestVariantFunctions +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerCase::TestVariantFunctions() + { + TBool match = EFalse; + TInt32 value = KDefaultValue; + TInt32 getValue; + TUid uidValue; + TUid getUidValue; + TTime timeValue; + TTime getTimeValue; + HBufC16* buffer16; + HBufC16* getBuffer16; + HBufC8* buffer8; + HBufC8* getBuffer8; + TPtrC16 getPtr16Value; + TPtrC8 getPtr8Value; + TAiwVariant source; + TAiwVariant getVariant; + TAiwVariant assignedVariant; + + buffer16 = HBufC16::NewLC( KBufferSize ); + getBuffer16 = HBufC16::NewLC( KBufferSize ); + buffer8 = HBufC8::NewLC( KBufferSize ); + getBuffer8 = HBufC8::NewLC( KBufferSize ); + TPtr8 ptr8 = buffer8->Des(); + TPtr8 getPtr8 = getBuffer8->Des(); + TPtr16 ptr16 = buffer16->Des(); + TPtr16 getPtr16 = getBuffer16->Des(); + ptr8.Append( KBuffer ); + ptr16.Append( KBuffer ); + + TAiwVariant emptyVariant; + AssertNotNullL( &emptyVariant, KTextVariantEmptyConstructor ); + + TAiwVariant integerVariant( value ); + AssertNotNullL( &integerVariant, KTextVariantIntegerConstructor ); + + TAiwVariant uidVariant( uidValue ); + AssertNotNullL( &uidVariant, KTextVariantUidConstructor ); + + TAiwVariant timeVariant( timeValue ); + AssertNotNullL( &timeVariant, KTextVariantTimeConstructor ); + + TAiwVariant desVariant( ptr16 ); + AssertNotNullL( &desVariant, KTextVariantDesConstructor ); + + TAiwVariant bufVariant( buffer16 ); + AssertNotNullL( &bufVariant, KTextVariantBufferConstructor ); + + TAiwVariant des8Variant( ptr8 ); + AssertNotNullL( &des8Variant, KTextVariantDes8Constructor ); + + RFile fileHandle; + CleanupClosePushL( fileHandle ); + TAiwVariant fileVariant( fileHandle ); + AssertNotNullL( &fileVariant, KTextVariantFileConstructor ); + + TAiwVariant sourceVariant( source ); + AssertNotNullL( &sourceVariant, KTextVariantSourceConstructor ); + + assignedVariant = source; + AssertNotNullL( &assignedVariant, KTextVariantAssignment ); + + timeVariant.TypeId(); + AssertTrueL( ETrue, KTextVariantTypeId ); + + TBool isEmpty = emptyVariant.IsEmpty(); + AssertTrueL( ETrue, KTextVariantIsEmpty ); + + match = integerVariant.Get( getValue ); + AssertTrueL( match, KTextVariantGetInteger ); + + match = uidVariant.Get( getUidValue ); + AssertTrueL( match, KTextVariantGetUid ); + + match = desVariant.Get( getPtr16Value ); + AssertTrueL( match, KTextVariantGetPtr16 ); + + match = timeVariant.Get( getTimeValue ); + AssertTrueL( match, KTextVariantGetTime ); + + match = des8Variant.Get( getPtr8Value ); + AssertTrueL( match, KTextVariantGetPtr8 ); + + RFile getFileHandleValue; + CleanupClosePushL( getFileHandleValue ); + match = fileVariant.Get( getFileHandleValue ); + AssertTrueL( match, KTextVariantGetFile ); + + getValue = integerVariant.AsTInt32(); + AssertIntL( KDefaultValue, getValue, KTextVariantAsTInt32 ); + + getUidValue = uidVariant.AsTUid(); + AssertIntL( uidValue.iUid, getUidValue.iUid, KTextVariantAsTUid ); + + getPtr16 = desVariant.AsDes(); + AssertTrueL( getPtr16 == ptr16, KTextVariantAsDes ); + + getTimeValue = timeVariant.AsTTime(); + AssertTrueL( getTimeValue == timeValue, KTextVariantAsTTime ); + + getPtr8 = des8Variant.AsData(); + AssertTrueL( getPtr8 == ptr8, KTextVariantAsData ); + + getFileHandleValue = fileVariant.AsFileHandle(); + AssertTrueL( getFileHandleValue == fileHandle, KTextVariantAsFileHandle ); + + emptyVariant.Reset(); + AssertTrueL( ETrue, KTextVariantReset ); + + integerVariant.Set( KDefaultValue ); + AssertTrueL( ETrue, KTextVariantSetInteger ); + + uidVariant.Set( uidValue ); + AssertTrueL( ETrue, KTextVariantSetUid ); + + timeVariant.Set( timeValue ); + AssertTrueL( ETrue, KTextVariantSetTime ); + + desVariant.Set( ptr16 ); + AssertTrueL( ETrue, KTextVariantSetDes16 ); + + bufVariant.Set( buffer16 ); + AssertTrueL( ETrue, KTextVariantSetBuffer ); + + des8Variant.Set( ptr8 ); + AssertTrueL( ETrue, KTextVariantSetDes8 ); + + fileVariant.Set( fileHandle ); + AssertTrueL( ETrue, KTextVariantSetFile ); + + timeVariant = timeValue; + AssertTrueL( ETrue, KTextVariantTimeAssignment ); + + uidVariant = uidValue; + AssertTrueL( ETrue, KTextVariantUidAssignment ); + + integerVariant = KDefaultValue; + AssertTrueL( ETrue, KTextVariantIntegerAssignment ); + + desVariant = ptr16; + AssertTrueL( ETrue, KTextVariantDes16Assignment ); + + bufVariant = buffer16; + AssertTrueL( ETrue, KTextVariantBufferAssignment ); + + des8Variant = ptr8; + AssertTrueL( ETrue, KTextVariantDes8Assignment ); + + fileVariant = fileHandle; + AssertTrueL( ETrue, KTextVariantFileAssignment ); + + AssertTrueL( assignedVariant == source, KTextVariantEquals ); + + AssertTrueL( integerVariant != emptyVariant, KTextVariantNotEqual ); + + CleanupStack::PopAndDestroy( 6, buffer16 ); // getFileHandleValue, fileHandle, + // getBuffer8, buffer8, + // getBuffer16, buffer16 + } + +TInt CBCTestServiceHandlerCase::HandleNotifyL( + TInt /*aCmdId*/, + TInt aEventId, + CAiwGenericParamList& /*aEventParamList*/, + const CAiwGenericParamList& /*aInParamList*/ ) + { + AssertTrueL( ETrue, KTextNotifyCallbackHandleNotifyL ); + + switch (aEventId) + { + case KAiwEventStarted: + AssertTrueL( ETrue, KTextNotifyCallbackEventStarted ); + break; + case KAiwEventCompleted: + AssertTrueL( ETrue, KTextNotifyCallbackEventCompleted ); + break; + case KAiwEventCanceled: + AssertTrueL( ETrue, KTextNotifyCallbackEventCanceled ); + break; + case KAiwEventError: + AssertTrueL( ETrue, KTextNotifyCallbackEventError ); + break; + case KAiwEventOutParamCheck: + AssertTrueL( ETrue, KTextNotifyCallbackEventOutParamCheck ); + break; + case KAiwEventInParamCheck: + AssertTrueL( ETrue, KTextNotifyCallbackEventInParamCheck ); + break; + case KAiwEventStopped: + AssertTrueL( ETrue, KTextNotifyCallbackEventStopped ); + break; + case KAiwEventQueryExit: + AssertTrueL( ETrue, KTextNotifyCallbackEventQueryExit ); + break; + default: + break; + } + + return KErrNone; + } + +void CBCTestServiceHandlerCase::SetEmphasis( CCoeControl* /*aMenuControl*/, + TBool /*aEmphasis*/ ) + { + } + +void CBCTestServiceHandlerCase::ProcessCommandL( TInt /*aCommandId*/ ) + { + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlercontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlercontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestservicehandlercontainer.h" + +#define KAknAtListGray TRgb(0xAAAAAA) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerContainer::CBCTestServiceHandlerContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerContainer::~CBCTestServiceHandlerContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestServiceHandlerContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestServiceHandlerContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestServiceHandlerContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestServiceHandlerContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +/* +* 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 "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: ServiceHandler test application +* +*/ + + +// INCLUDE FILES +#include "bctestservicehandlerdocument.h" +#include "bctestservicehandlerappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestServiceHandlerDocument* CBCTestServiceHandlerDocument::NewL( CEikApplication& aApp ) + { + CBCTestServiceHandlerDocument* self = new( ELeave ) CBCTestServiceHandlerDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestServiceHandlerDocument::~CBCTestServiceHandlerDocument() + { + } + +// ---------------------------------------------------------------------------- +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestServiceHandlerDocument::CBCTestServiceHandlerDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestServiceHandlerDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestServiceHandlerAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestservicehandler/src/bctestservicehandlerview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,142 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestservicehandler.hrh" +#include +#include "bctestservicehandlerview.h" +#include "bctestservicehandlercontainer.h" +#include "bctestutil.h" +#include "bctestservicehandlercase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerView* CBCTestServiceHandlerView::NewL() + { + CBCTestServiceHandlerView* self = new( ELeave ) CBCTestServiceHandlerView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerView::CBCTestServiceHandlerView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerView::ConstructL() + { + BaseConstructL( R_BCTESTSERVICEHANDLER_VIEW ); + + iContainer = new( ELeave ) CBCTestServiceHandlerContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestServiceHandlerCase::NewL( iContainer ), + _L("ServiceHandler test case") ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerView::~CBCTestServiceHandlerView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestServiceHandlerView::Id() const + { + return KBCTestServiceHandlerViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerView::Container +// --------------------------------------------------------------------------- +// +CBCTestServiceHandlerContainer* CBCTestServiceHandlerView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestServiceHandlerView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestServiceHandlerView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bctestuniteditor.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bctestuniteditor.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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: project specification file for the BCTestUnitEditor. +* +*/ + + +TARGET BCTestUnitEditor.exe +TARGETTYPE exe +UID 0x0 0x1028311C + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestUnitEditor.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctestuniteditorapp.cpp +SOURCE bctestuniteditordocument.cpp +SOURCE bctestuniteditorappui.cpp +SOURCE bctestuniteditorview.cpp +SOURCE bctestuniteditorcontainer.cpp +SOURCE bctestuniteditorcase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +SYSTEMINCLUDE . /epoc32/include /epoc32/include/oem + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eikctl.lib + +START RESOURCE ../group/bctestuniteditor_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bctestuniteditor.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bctestuniteditor.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,217 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestuniteditor.hrh" +#include "BCTestuniteditor.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestuniteditor_BMP_FNAME APP_BITMAP_DIR"\\BCTestUnitEditor.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestUnitEditor"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestuniteditor_menubar_main; + cba = r_bctestuniteditor_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestuniteditor_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestuniteditor_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestuniteditor_view +// AVKON_VIEW for CBCTestUnitEditorView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestuniteditor_view + { + menubar = r_bctestuniteditor_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestuniteditor_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestuniteditor_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestuniteditor_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestuniteditor_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestuniteditor_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestuniteditor_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestuniteditor_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestuniteditor_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestuniteditor_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestuniteditor_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestuniteditor_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestuniteditor_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestuniteditor_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestUnitEditorCbaCmdNext; + txt = qtn_bctestuniteditor_cba_next; + } + }; + } + + +RESOURCE AVKON_UNIT_EDITOR r_bctestuniteditor + { + min = -5.0; + max = 5.0; + value = 1; + maxfractionaldigits = 2; + unit = EAknUnitEditorMeter; + flags = EAknUnitEditorAllowUninitialized; + } + + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bctestuniteditor_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bctestuniteditor_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x1028311C // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestUnitEditor"; + localisable_resource_file = "\\resource\\apps\\BCTestUnitEditor"; + localisable_resource_id = R_BCTESTUNITEDITOR_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestUnitEditor.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditor.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditor.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestUnitEditor resource header file +* +*/ + + +#ifndef BCTESTUNITEDITOR_HRH +#define BCTESTUNITEDITOR_HRH + +enum TBCTestUnitEditorMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestUnitEditorCba + { + EBCTestUnitEditorCbaCmdNext = 0x6300 + }; + +#endif // BCTESTUNITEDITOR_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditor.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditor.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestUnitEditor localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTUNITEDITOR" +#define qtn_apps_tavl_grid "BCTESTUNITEDITOR" + +// MenuBar +#define qtn_bctestuniteditor_menubar "Option" +#define qtn_bctestuniteditor_cba_next "Next" +#define qtn_bctestuniteditor_autotest "Autotest" +#define qtn_bctestuniteditor_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestuniteditor_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestUNITEDITORAPP_H +#define BCTestUNITEDITORAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestUnitEditor = { 0x1028311C }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestUnitEditorApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestUnitEditorApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestUnitEditorDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestUnitEditor ). + * @return The value of KUidBCTestUnitEditor. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for UnitEditor control API. +* +*/ + + +#ifndef C_BCTESTUNITEDITORAPPUI_H +#define C_BCTESTUNITEDITORAPPUI_H + +#include + +class CBCTestUnitEditorView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestUnitEditorAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestUnitEditorAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestUnitEditorAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestUnitEditorView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTUNITEDITORAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_UNITEDITORCASE_H +#define BCTEST_UNITEDITORCASE_H + +#include "bctestcase.h" + +class CBCTestUnitEditorContainer; +class CCoeControl; + +/** +* test case for unit editor +*/ +class CBCTestUnitEditorCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestUnitEditorCase* NewL( CBCTestUnitEditorContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestUnitEditorCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestUnitEditorL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestUnitEditorCase( CBCTestUnitEditorContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestUnitEditorContainer* iContainer; + + }; + +#endif // BCTEST_UNITEDITORCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_UNITEDITORCONTAINER_H +#define BCTEST_UNITEDITORCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestUnitEditorContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestUnitEditorContainer(); + + /** + * Destructor + */ + virtual ~CBCTestUnitEditorContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_UNITEDITORCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditordocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditordocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTUNITEDITORDOCUMENT_H +#define C_BCTESTUNITEDITORDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestUnitEditorDocument application class. +*/ +class CBCTestUnitEditorDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestUnitEditorDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestUnitEditorDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestUnitEditorDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestUnitEditorAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTUNITEDITORDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/inc/bctestuniteditorview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for UnitEditor control API. +* +*/ + + +#ifndef BCTEST_UNITEDITOR_VIEW_H +#define BCTEST_UNITEDITOR_VIEW_H + +#include + +const TUid KBCTestUnitEditorViewId = { 1 }; + +class CBCTestUnitEditorContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestUnitEditorView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestUnitEditorView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestUnitEditorView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestUnitEditorContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestUnitEditorView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestUnitEditorContainer* iContainer; + + }; + +#endif // BCTEST_UNITEDITOR_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/sis/bctestuniteditor.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/sis/bctestuniteditor.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestuniteditor.pkg + +; Languages +&EN + +; Header +#{"bctestuniteditor"},(0x1028311C),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 3, *, *, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestuniteditor.exe"- +"!:\sys\bin\bctestuniteditor.exe" + +"\epoc32\data\z\resource\apps\bctestuniteditor.rsc"- +"!:\resource\apps\bctestuniteditor.rsc" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestuniteditor_reg.rsc"- +"!:\PRIVATE\10003A3F\import\APPS\bctestuniteditor_reg.rsc" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon UnitEditor test app +* +*/ + + +// INCLUDE FILES +#include "BCTestUnitEditorApp.h" +#include "BCTestUnitEditorDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestUnitEditorApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestUnitEditorApp::AppDllUid() const + { + return KUidBCTestUnitEditor; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestUnitEditorApp::CreateDocumentL() +// Creates CBCTestUnitEditorDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestUnitEditorApp::CreateDocumentL() + { + return CBCTestUnitEditorDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestUnitEditorApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestUnitEditorApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for unit editor control api(s) +* +*/ + +#include +#include + +#include "bctestuniteditorAppUi.h" +#include "bctestuniteditor.hrh" +#include "bctestuniteditorview.h" +#include "bctestutil.h" +#include "bctestuniteditorcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorAppUi::CBCTestUnitEditorAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestUnitEditorView* view = CBCTestUnitEditorView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestUnitEditorCase::NewL( view->Container() ), + _L("UnitEditor test case") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestUnitEditorAppUi::~CBCTestUnitEditorAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestUnitEditorAppUi::~CBCTestUnitEditorAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestUnitEditorAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,250 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include + +#include + +#include "bctestuniteditorcase.h" +#include "bctestuniteditorcontainer.h" +#include "bctestuniteditor.hrh" + +// ======== ASSERTION COMMENTS ======== + +_LIT ( KNewL, "NewL" ); +_LIT ( KNewLC, "NewLC" ); +_LIT ( KConstructL, "ConstructL" ); +_LIT ( KConstructFromResourceL, "ConstructFromResourceL" ); +_LIT ( KSetValue, "SetValue" ); +_LIT ( KValue, "Value" ); +_LIT ( KSupportsUnit, "SupportsUnit" ); +_LIT ( KSetUnitLconstTDesC, "SetUnitL( const TDesC& )" ); +_LIT ( KSetUnitLTInt, "SetUnitL( TInt )" ); +_LIT ( KGetUnit, "GetUnit" ); +_LIT ( KUnit, "Unit" ); +_LIT ( KSetMaxFractionalDigits, "SetMaxFractionalDigits" ); +_LIT ( KMaxFractionalDigits, "MaxFractionalDigits" ); +_LIT ( KSetMinimumAndMaximum, "SetMinimumAndMaximum" ); +_LIT ( KGetMinimumAndMaximum, "GetMinimumAndMaximum" ); +_LIT ( KSetFlags, "SetFlags" ); +_LIT ( KFlags, "Flags" ); +_LIT ( KPrepareForFocusLossL, "PrepareForFocusLossL" ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorCase* CBCTestUnitEditorCase::NewL( + CBCTestUnitEditorContainer* aContainer ) + { + CBCTestUnitEditorCase* self = new( ELeave ) CBCTestUnitEditorCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorCase::CBCTestUnitEditorCase( + CBCTestUnitEditorContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorCase::~CBCTestUnitEditorCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestUnitEditorL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + iControl = new ( ELeave ) CCoeControl; + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorCase::TestUnitEditorL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorCase::TestUnitEditorL() + { + TReal tmpValue = 2.5; + TReal tmpMax = 5.0; + TReal tmpMin = -5.0; + TInt tmpUnit = EAknUnitEditorMeter; + TInt tmpMaxFractionalDigits = 4; + TInt tmpFlags = 0; + _LIT ( KTmpUnit, "C/kg" ); + TBuf<16> tmpUnitBuf; + + CAknUnitEditor* unitEditor = NULL; + + unitEditor = CAknUnitEditor::NewL(); + CleanupStack::PushL( unitEditor ); + AssertNotNullL( unitEditor, KNewL ); + + unitEditor->ConstructL( + tmpMin, tmpMax, tmpValue, tmpMaxFractionalDigits, tmpUnit, tmpFlags ); + AssertTrueL( ETrue, KConstructL ); + CleanupStack::PopAndDestroy(); // unitEditor + unitEditor = NULL; + + unitEditor = CAknUnitEditor::NewLC(); + AssertNotNullL( unitEditor, KNewLC ); + + TResourceReader resourceReader; + CEikonEnv::Static()->CreateResourceReaderLC( + resourceReader, R_BCTESTUNITEDITOR ); + unitEditor->ConstructFromResourceL( resourceReader ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); // resourceReader + + unitEditor->SetContainerWindowL( *iContainer ); + + unitEditor->SetValue( tmpValue ); + AssertTrueL( ETrue, KSetValue ); + + unitEditor->Value(); + AssertTrueL( ETrue, KValue ); + + unitEditor->SupportsUnit( tmpUnit ); + AssertTrueL( ETrue, KSupportsUnit ); + + unitEditor->SetUnitL( KTmpUnit ); + AssertTrueL( ETrue, KSetUnitLconstTDesC ); + + unitEditor->SetUnitL( tmpUnit ); + AssertTrueL( ETrue, KSetUnitLTInt ); + + unitEditor->GetUnit( tmpUnitBuf ); + AssertTrueL( ETrue, KGetUnit ); + + unitEditor->Unit(); + AssertTrueL( ETrue, KUnit ); + + unitEditor->SetMaxFractionalDigits( tmpMaxFractionalDigits ); + AssertTrueL( ETrue, KSetMaxFractionalDigits ); + + unitEditor->MaxFractionalDigits(); + AssertTrueL( ETrue, KMaxFractionalDigits ); + + unitEditor->SetMinimumAndMaximum( tmpMin, tmpMax ); + AssertTrueL( ETrue, KSetMinimumAndMaximum ); + + unitEditor->GetMinimumAndMaximum( tmpMin, tmpMax ); + AssertTrueL( ETrue, KGetMinimumAndMaximum ); + + unitEditor->SetFlags( tmpFlags ); + AssertTrueL( ETrue, KSetFlags ); + + unitEditor->Flags(); + AssertTrueL( ETrue, KFlags ); + + // PrepareForFocusLossL might leave due to a state in + // the editor. This is not relevant for BC testing, hence trap. + TRAPD ( ignore, unitEditor->PrepareForFocusLossL(); ) + AssertTrueL( ETrue, KPrepareForFocusLossL ); + + CleanupStack::PopAndDestroy(); // unitEditor + unitEditor = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestuniteditorcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorContainer::CBCTestUnitEditorContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorContainer::~CBCTestUnitEditorContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestUnitEditorContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestUnitEditorContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestUnitEditorContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestUnitEditorContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditordocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditordocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon UnitEditor test application +* +*/ + + +// INCLUDE FILES +#include "BCTestUnitEditorDocument.h" +#include "BCTestUnitEditorAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestUnitEditorDocument* CBCTestUnitEditorDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestUnitEditorDocument* CBCTestUnitEditorDocument::NewL( CEikApplication& aApp ) + { + CBCTestUnitEditorDocument* self = new( ELeave ) CBCTestUnitEditorDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestUnitEditorDocument::~CBCTestUnitEditorDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestUnitEditorDocument::~CBCTestUnitEditorDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestUnitEditorDocument::CBCTestUnitEditorDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestUnitEditorDocument::CBCTestUnitEditorDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestUnitEditorDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestUnitEditorDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestUnitEditorAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/bctestuniteditor/src/bctestuniteditorview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestuniteditor.hrh" +#include +#include "bctestuniteditorview.h" +#include "bctestuniteditorcontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorView* CBCTestUnitEditorView::NewL(CBCTestUtil* aUtil) + { + CBCTestUnitEditorView* self = new( ELeave ) CBCTestUnitEditorView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorView::CBCTestUnitEditorView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTUNITEDITOR_VIEW ); + + iContainer = new( ELeave ) CBCTestUnitEditorContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorView::~CBCTestUnitEditorView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestUnitEditorView::Id() const + { + return KBCTestUnitEditorViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorView::Container +// --------------------------------------------------------------------------- +// +CBCTestUnitEditorContainer* CBCTestUnitEditorView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestUnitEditorView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestUnitEditorView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK3.2/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,31 @@ +/* +* 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 "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: build information +* +*/ + +PRJ_EXPORTS +../../BCTestLauncher/group/config.xml /epoc32/winscw/c/BCTestLog/config.xml + +PRJ_MMPFILES + +../../bctestutil/group/bctestutil.mmp + +../../bctestlauncher/group/bctestlauncher.mmp + +../bctestuniteditor/group/bctestuniteditor.mmp +../bctestmisc32/group/bctestmisc32.mmp +../bctestlocalizer/group/bctestlocalizer.mmp +../bctestpreviewpopup/group/bctestpreviewpopup.mmp +../bctestservicehandler/group/bctestservicehandler.mmp \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bctestbutton.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bctestbutton.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 "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: project specification file for the BCTestButton. +* +*/ + + +TARGET BCTestButton.exe +TARGETTYPE exe +UID 0x0 0x200089C2 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestButton.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestbuttonapp.cpp +SOURCE bctestbuttondocument.cpp +SOURCE bctestbuttonappui.cpp +SOURCE bctestbuttonview.cpp +SOURCE bctestbuttoncontainer.cpp +SOURCE bctestbuttoncase.cpp +SOURCE bctestbuttonex.cpp + +USERINCLUDE ../../../BCTESTUTIL/Inc + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ + +SYSTEMINCLUDE . /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY egul.lib +LIBRARY fbscli.lib +LIBRARY aknicon.lib +LIBRARY bafl.lib + +START RESOURCE ../group/bctestbutton_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bctestbutton.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bctestbutton.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,291 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestbutton.hrh" +#include "BCTestbutton.loc" + + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestButton"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestbutton_menubar_main; + cba = r_bctestbutton_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestbutton_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTestbutton_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbutton_view +// AVKON_VIEW for CBCTestButtonView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestbutton_view + { + menubar = r_bctestbutton_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbutton_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestbutton_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestbutton_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestbutton_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbutton_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestbutton_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestbutton_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestbutton_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestbutton_outline3; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestbutton_outline4; + }, + MENU_ITEM + { + command = EBCTestCmdOutline5; + txt = qtn_bctestbutton_outline5; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestbutton_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestbutton_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestbutton_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestbutton_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestbutton_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestbutton_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestButtonCbaCmdNext; + txt = qtn_bctestbutton_cba_next; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctestakn_button_state +// AVKON_BUTTON_STATE +// +// ---------------------------------------------------------------------------- +// + +RESOURCE AVKON_BUTTON_STATE r_bctestakn_button_state + { + flags=0; + txt="ss"; + helptxt="ss"; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + dim_bmpid=0xffff; + dim_bmpmask=0xffff; + press_bmpid=0xffff; + press_bmpmask=0xffff; + hover_bmpid=0xffff; + hover_bmpmask=0xffff; + } + +// ---------------------------------------------------------------------------- +// +// r_bctest_avkon_button +// AVKON_BUTTON +// +// ---------------------------------------------------------------------------- +// + +RESOURCE AVKON_BUTTON r_bctest_avkon_button + { + flags=0; + state=2; + states = + { + AVKON_BUTTON_STATE + { + flags=0; + txt="ss"; + helptxt="ss"; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + dim_bmpid=0xffff; + dim_bmpmask=0xffff; + press_bmpid=0xffff; + press_bmpmask=0xffff; + hover_bmpid=0xffff; + hover_bmpmask=0xffff; + }, + AVKON_BUTTON_STATE + { + flags=0; + txt="ss"; + helptxt="ss"; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + dim_bmpid=0xffff; + dim_bmpmask=0xffff; + press_bmpid=0xffff; + press_bmpmask=0xffff; + hover_bmpid=0xffff; + hover_bmpmask=0xffff; + } + }; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bctestbutton_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bctestbutton_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200089C2 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestButton"; + localisable_resource_file = "\\resource\\apps\\BCTestButton"; + localisable_resource_id = R_BCTESTBUTTON_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestButton.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbutton.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbutton.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ +/* +* 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 "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: BCTestButton resource header file +* +*/ + + +#ifndef C_BCTESTBUTTON_HRH +#define C_BCTESTBUTTON_HRH + +enum TBCTestButtonMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdOutline5, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestButtonCba + { + EBCTestButtonCbaCmdNext = 0x6300 + }; + +#endif // C_BCTESTBUTTON_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbutton.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbutton.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,47 @@ +/* +* 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 "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: BCTestTemplate localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTBUTTON" +#define qtn_apps_tavl_grid "BCTESTBUTTON" + +// MenuBar +#define qtn_bctestbutton_menubar "Option" +#define qtn_bctestbutton_cba_next "Next" +#define qtn_bctestbutton_autotest "Autotest" +#define qtn_bctestbutton_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestbutton_outline1 "Outline01" +#define qtn_bctestbutton_outline2 "Outline02" +#define qtn_bctestbutton_outline3 "Outline03" +#define qtn_bctestbutton_outline4 "Outline04" +#define qtn_bctestbutton_outline5 "Outline05" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTBUTTONAPP_H +#define C_BCTESTBUTTONAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestButton = { 0x200089C2 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestButtonApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestButtonApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestButtonDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestButton ). + * @return The value of KUidBCTestButton. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTBUTTONAPPUI_H +#define C_BCTESTBUTTONAPPUI_H + +#include + +class CBCTestButtonView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestButtonAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestButtonAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestButtonAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestButtonView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTBUTTONAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttoncase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttoncase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,101 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTEST_BUTTONCASE_H +#define C_BCTEST_BUTTONCASE_H + +#include "bctestcase.h" +#include + +class CBCTestButtonContainer; +class CCoeControl; +class CAknButtonStateEx; +class CAknButtonEx; + +/** +* test case for various list classes +*/ +class CBCTestButtonCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestButtonCase* NewL( CBCTestButtonContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestButtonCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test AknButtonState functions + */ + void TestAknButtonStateL(); + + /** + * Test AknButton functions + */ + void TestAknButtonL(); + void TestAknButtonExtL(); + void TestAknButtonProL(); + void TestAknButtonUtiL(); + + CGulIcon* CreateIconL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestButtonCase( CBCTestButtonContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestButtonContainer* iContainer; + CEikonEnv *eikEnv; + + }; + + +#endif // C_BCTEST_BUTTONCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttoncontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttoncontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTEST_BUTTONCONTAINER_H +#define C_BCTEST_BUTTONCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestButtonContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestButtonContainer(); + + /** + * Destructor + */ + virtual ~CBCTestButtonContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTEST_BUTTONCONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttondocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttondocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTBUTTONDOCUMENT_H +#define C_BCTESTBUTTONDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestButtonDocument application class. +*/ +class CBCTestButtonDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestButtonDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestButtonDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestButtonDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestButtonAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTBUTTONDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonex.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonex.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,57 @@ +/* +* 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 "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: container +* +*/ + + +#include + +#include "bctestbuttoncase.h" + +class CAknButton; +class CAknButtonState; + +class CAknButtonStateEx: public CAknButtonState + { + friend class CBCTestButtonCase; +public: // constructor and destructor + + /** + * Constructor + */ + CAknButtonStateEx( const TInt aFlags ); + + /** + * Destructor + */ + virtual ~CAknButtonStateEx(); + + }; + +class CAknButtonEx: public CAknButton + { + friend class CBCTestButtonCase; +public: + + /** + * Constructor + */ + CAknButtonEx( const TInt aFlags ); + + /** + * Destructor + */ + virtual ~CAknButtonEx(); + }; diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/inc/bctestbuttonview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTEST_BUTTON_VIEW_H +#define C_BCTEST_BUTTON_VIEW_H + +#include + +const TUid KBCTestButtonViewId = { 1 }; + +class CBCTestButtonContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestButtonView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestButtonView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestButtonView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestButtonContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestButtonView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestButtonContainer* iContainer; + + }; + +#endif // C_BCTEST_BUTTON_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/sis/bctestbutton.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/sis/bctestbutton.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestbutton.pkg + +; Languages +&EN + +; Header +#{"bctestbutton"},(0x200089C2),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestbutton.exe"- +"!:\sys\bin\bctestbutton.exe" + +"\epoc32\data\z\resource\apps\bctestbutton.r01"- +"!:\resource\apps\bctestbutton.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestbutton_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctestbutton_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestButtonApp.h" +#include "BCTestButtonDocument.h" +#include + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestTemplateApp::AppDllUid() +// Returns application UID. +// --------------------------------------------------------------------------- +// +TUid CBCTestButtonApp::AppDllUid() const + { + return KUidBCTestButton; + } + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestTemplateApp::CreateDocumentL() +// Creates CBCTestTemplateDocument object. +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestButtonApp::CreateDocumentL() + { + return CBCTestButtonDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestTemplateApp. +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestButtonApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctestbuttonAppUi.h" +#include "bctestbutton.hrh" +#include "bctestbuttonview.h" +#include "bctestutil.h" +#include "bctestbuttoncase.h" + +// ======== MEMBER FUNCTIONS ======== + +// -------------------------------------------------------------------------- +// ctro do nothing +// -------------------------------------------------------------------------- +// +CBCTestButtonAppUi::CBCTestButtonAppUi() + { + } + +// -------------------------------------------------------------------------- +// symbian 2nd phase ctor +// -------------------------------------------------------------------------- +// +void CBCTestButtonAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestButtonView* view = CBCTestButtonView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestButtonCase::NewL( view->Container() ), + _L("AknButton test case") ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonAppUi::~CBCTestButtonAppUi() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestButtonAppUi::~CBCTestButtonAppUi() + { + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// handle menu command events +// --------------------------------------------------------------------------- +// +void CBCTestButtonAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttoncase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttoncase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,796 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#include +#include "bctestbuttoncase.h" +#include "bctestbuttoncontainer.h" +#include "bctestbutton.hrh" +#include "bctestbuttonex.h" +// constant + +const TInt KLeft = 0; +const TInt KTop = 0; +const TInt KRight = 50; +const TInt KBottom = 50; +const TInt KOne = 1; +const TInt KZero = 0; +const TInt KTwo = 2; +const TInt KThree = 3; +const TInt KFour = 4; +const TInt KHundred = 100; + + +_LIT( strOK, "OK" ); +_LIT( strCancel, "Cancel" ); +_LIT( strHelp, "Help" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonCase* CBCTestButtonCase::NewL( + CBCTestButtonContainer* aContainer ) + { + CBCTestButtonCase* self = new( ELeave ) CBCTestButtonCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonCase::CBCTestButtonCase( + CBCTestButtonContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestButtonCase::~CBCTestButtonCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestButtonCase::ConstructL() + { + BuildScriptL(); + eikEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestButtonCase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + + DELAY( 1 ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA, + + //outline2 + LeftCBA, + Down, + LeftCBA, + + //outline3 + LeftCBA, + REP( Down, KTwo ), + LeftCBA, + + //outline4 + LeftCBA, + REP( Down, KThree ), + LeftCBA, + + //outline5 + LeftCBA, + REP( Down, KFour ), + LeftCBA, + + }; + AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestButtonCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline5 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestAknButtonStateL(); + break; + + case EBCTestCmdOutline2: + TestAknButtonL(); + break; + + case EBCTestCmdOutline3: + TestAknButtonExtL(); + break; + + case EBCTestCmdOutline4: + TestAknButtonProL(); + break; + + case EBCTestCmdOutline5: + TestAknButtonUtiL(); + break; + default: + break; + } + } + + +// --------------------------------------------------------------------------- +// CBCTestButtonCase::CreateIconL +// --------------------------------------------------------------------------- +// +CGulIcon* CBCTestButtonCase::CreateIconL() + { + CFbsBitmap *bitmap = new( ELeave ) CFbsBitmap(); + bitmap->Load( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_prop_set_button ); + return CGulIcon::NewL( bitmap ); + } +// --------------------------------------------------------------------------- +// CBCTestButtonCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestButtonCase::TestAknButtonStateL() + { + // Test some API here + _LIT( strCAknButtonState, + "Class CAknButtonState function CAknButtonState invoked" ); + _LIT( strCAknButtonStateDes, + "Class CAknButtonState function ~CAknButtonState invoked" ); + CAknButtonStateEx *btnstat = new( ELeave ) CAknButtonStateEx( KOne ); + AssertNotNullL( btnstat, strCAknButtonState ); + + _LIT( strNewL, "Class CAknButtonState function ConstructL invoked" ); + CleanupStack::PushL( btnstat ); + btnstat->ConstructL( CreateIconL(), NULL, NULL, NULL, strOK, strCancel ); + CleanupStack::Pop( btnstat ); + AssertNotNullL( btnstat, strNewL ); + + delete btnstat; + AssertTrueL( ETrue, strCAknButtonStateDes ); + btnstat = NULL; + + + _LIT( strNewLOverLoad, + "Class CAknButtonState function ConstructL( OverLoad ) invoked" ); + CAknButtonStateEx *btnstate = new( ELeave ) CAknButtonStateEx( KOne ); + CleanupStack::PushL( btnstate ); + btnstate->ConstructL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_button_decrease, + EMbmAvkonQgn_indi_button_decrease_mask, + EMbmAvkonQgn_indi_button_decrease_pressed, + EMbmAvkonQgn_indi_button_decrease_pressed_mask, + EMbmAvkonQgn_indi_button_increase, + EMbmAvkonQgn_indi_button_increase_mask, + EMbmAvkonQgn_indi_button_increase_pressed, + EMbmAvkonQgn_indi_button_increase_pressed_mask, + strOK, strCancel ); + + AssertNotNullL( btnstate, strNewLOverLoad ); + + + _LIT( strHasText, "Class CAknButtonState function HasText invoked" ); + _LIT( strHasHelp, "Class CAknButtonState function HasHelp invoked" ); + TBool hasText = btnstate->HasText(); + AssertTrueL( hasText, strHasText ); + TBool hasHelp = btnstate->HasHelp(); + AssertTrueL( hasHelp, strHasHelp ); + + _LIT( strSizeChanged, + "Class CAknButtonState function SizeChanged invoked" ); + TRect client( KLeft, KTop, KRight, KBottom ); + btnstate->SizeChanged( client, EAspectRatioPreserved ); + AssertTrueL( ETrue, strSizeChanged ); + + _LIT( strIcon, "Class CAknButtonState function Icon invoked" ); + _LIT( strDimmedIcon, + "Class CAknButtonState function DimmedIcon invoked" ); + _LIT( strPressedIcon, + "Class CAknButtonState function PressedIcon invoked" ); + _LIT( strHoverIcon, + "Class CAknButtonState function HoverIcon invoked" ); + const CGulIcon *ico = btnstate->Icon(); + AssertNotNullL( const_cast( ico ), strIcon ); + ico = btnstate->DimmedIcon(); + AssertNotNullL( const_cast( ico ), strDimmedIcon ); + ico = btnstate->PressedIcon(); + AssertNotNullL( const_cast( ico ), strPressedIcon ); + ico = btnstate->HoverIcon(); + AssertNotNullL( const_cast( ico ), strHoverIcon ); + + _LIT( strTxt, "Class CAknButtonState function Text invoked" ); + _LIT( strHelpText, + "Class CAknButtonState function HelpText invoked" ); + TDesC strText = btnstate->Text(); + AssertTrueL( ETrue, strTxt ); + + strText = btnstate->HelpText(); + AssertTrueL( ETrue, strHelpText ); + + _LIT( strFlags, "Class CAknButtonState function Flags invoked" ); + TInt iFlag = btnstate->Flags(); + AssertTrueL( ETrue, strFlags ); + + _LIT( strSetIcon, + "Class CAknButtonState function SetIcon invoked" ); + _LIT( strSetDimmedIcon, + "Class CAknButtonState function SetDimmedIcon invoked" ); + _LIT( strSetPressedIcon, + "Class CAknButtonState function SetPressedIcon invoked" ); + _LIT( strSetHoverIcon, + "Class CAknButtonState function SetHoverIcon invoked" ); + _LIT( strSetTextL, + "Class CAknButtonState function SetTextL invoked" ); + _LIT( strSetHelpTextL, + "Class CAknButtonState function SetHelpTextL invoked" ); + _LIT( strSetFlags, + "Class CAknButtonState function SetFlags invoked" ); + + + btnstate->SetIcon( CreateIconL() ); + AssertTrueL( ETrue, strSetIcon ); + btnstate->SetDimmedIcon ( CreateIconL() ); + AssertTrueL( ETrue, strSetDimmedIcon ); + btnstate->SetPressedIcon( CreateIconL() ); + AssertTrueL( ETrue, strSetPressedIcon ); + btnstate->SetHoverIcon( CreateIconL() ); + AssertTrueL( ETrue, strSetHoverIcon ); + + btnstate->SetTextL( strOK ); + AssertTrueL( ETrue, strSetTextL ); + btnstate->SetHelpTextL( strHelp ); + AssertTrueL( ETrue, strSetHelpTextL ); + btnstate->SetFlags ( KOne ); + AssertTrueL( ETrue, strSetFlags ); + + CleanupStack::PopAndDestroy(); + + _LIT( strConstructFromResourceL, + "Class CAknButtonStateEx function ConstructFromResourceL invoked" ); + + //CEikonEnv *eikEnv = CEikonEnv::Static(); + TResourceReader resourceReader; + eikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTAKN_BUTTON_STATE ); + CAknButtonStateEx *aknbtnst = new( ELeave ) CAknButtonStateEx( KZero ); + CleanupStack::PushL( aknbtnst ); + aknbtnst->ConstructFromResourceL( resourceReader ); + CleanupStack::Pop( aknbtnst ); + AssertNotNullL( aknbtnst, strConstructFromResourceL ); + delete aknbtnst; + CleanupStack::PopAndDestroy(); + + + } +void CBCTestButtonCase::TestAknButtonL() + { + + _LIT( strCAknButton, + "Class CAknButton function CAknButton invoked" ); + _LIT( strCAknButtonDes, + "Class CAknButton function ~CAknButton invoked" ); + CAknButton *aknbtn = new( ELeave ) CAknButtonEx( KZero ); + AssertNotNullL( aknbtn, strCAknButton ); + delete aknbtn; + AssertTrueL( ETrue, strCAknButtonDes ); + aknbtn = NULL; + + _LIT( strNewL, "Class CAknButton function NewL invoked" ); + aknbtn = CAknButtonEx::NewL(); + AssertNotNullL( aknbtn, strNewL ); + delete aknbtn; + aknbtn = NULL; + + _LIT( strNewLC, "Class CAknButton function NewLC invoked" ); + aknbtn = CAknButtonEx::NewLC(); + AssertNotNullL( aknbtn, strNewLC ); + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + //CEikonEnv *eikEnv = CEikonEnv::Static(); + TResourceReader resourceReader; + eikEnv->CreateResourceReaderLC( resourceReader, R_BCTEST_AVKON_BUTTON ); + + _LIT( strNewLr, + "Class CAknButton function NewL( ResourceReader ) invoked" ); + aknbtn = CAknButtonEx::NewL( resourceReader ); + AssertNotNullL( aknbtn, strNewLr ); + delete aknbtn; + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + TResourceReader reader; + eikEnv->CreateResourceReaderLC( reader, R_BCTEST_AVKON_BUTTON ); + + _LIT( strNewLCr, + "Class CAknButton function NewLC( ResourceReader ) overload invoked" ); + aknbtn = CAknButtonEx::NewLC( reader ); + AssertNotNullL( aknbtn, strNewLCr ); + CleanupStack::PopAndDestroy();//aknbtn + CleanupStack::PopAndDestroy();//reader + aknbtn = NULL; + + _LIT( strNewLri, + "Class CAknButton function NewL( TInt ResourceID ) invoked" ); + aknbtn = CAknButtonEx::NewL( R_BCTEST_AVKON_BUTTON ); + AssertNotNullL( aknbtn, strNewLri ); + delete aknbtn; + aknbtn = NULL; + + _LIT( strNewLCri, + "Class CAknButton function NewLC( TInt ResourceID ) invoked" ); + aknbtn = CAknButtonEx::NewLC( R_BCTEST_AVKON_BUTTON ); + AssertNotNullL( aknbtn, strNewLCri ); + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + + _LIT( strNewLion, + "Class CAknButton function NewL( CGulIcon... ) invoked" ); + aknbtn = CAknButtonEx::NewL( CreateIconL(), CreateIconL(), + CreateIconL(), CreateIconL(), + strOK, strHelp, KZero, KOne ); + AssertNotNullL( aknbtn, strNewLion ); + delete aknbtn; + aknbtn = NULL; + + _LIT( strNewLCion, + "Class CAknButton function NewLC( CGulIcon... ) invoked" ); + aknbtn = CAknButtonEx::NewLC( CreateIconL(), CreateIconL(), + CreateIconL(), CreateIconL(), + strOK, strHelp, KZero, KOne ); + AssertNotNullL( aknbtn, strNewLCion ); + CleanupStack::PopAndDestroy();//aknbtn + aknbtn = NULL; + + _LIT( strNewLfile, + "Class CAknButton function NewL( const TDesC...) invoked" ); + aknbtn = CAknButtonEx::NewL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_button_decrease, + EMbmAvkonQgn_indi_button_decrease_mask, + EMbmAvkonQgn_indi_button_decrease_pressed, + EMbmAvkonQgn_indi_button_decrease_pressed_mask, + EMbmAvkonQgn_indi_button_increase, + EMbmAvkonQgn_indi_button_increase_mask, + EMbmAvkonQgn_indi_button_increase_pressed, + EMbmAvkonQgn_indi_button_increase_pressed_mask, + strOK, strHelp, KZero, KOne ); + AssertNotNullL( aknbtn, strNewLfile ); + delete aknbtn; + aknbtn = NULL; + + _LIT( strNewLCfile, + "Class CAknButton function NewLC( const TDesC...) invoked" ); + aknbtn = CAknButtonEx::NewLC( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_button_decrease, + EMbmAvkonQgn_indi_button_decrease_mask, + EMbmAvkonQgn_indi_button_decrease_pressed, + EMbmAvkonQgn_indi_button_decrease_pressed_mask, + EMbmAvkonQgn_indi_button_increase, + EMbmAvkonQgn_indi_button_increase_mask, + EMbmAvkonQgn_indi_button_increase_pressed, + EMbmAvkonQgn_indi_button_increase_pressed_mask, + strOK, strHelp, KZero, KOne ); + AssertNotNullL( aknbtn, strNewLCfile ); + + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + } + +void CBCTestButtonCase::TestAknButtonExtL() + { + //CEikonEnv *eikEnv = CEikonEnv::Static(); + TResourceReader iReader; + eikEnv->CreateResourceReaderLC( iReader, R_BCTEST_AVKON_BUTTON ); + + _LIT( strConstructL, "Class CAknButton function ConstructL invoked" ); + _LIT( strConstructFromRes, + "Class CAknButton function ConstructFromResourceL invoked" ); + CAknButtonEx *aknbtn = new( ELeave ) CAknButtonEx( KZero ); + CleanupStack::PushL( aknbtn ); + aknbtn->ConstructL(); + AssertTrueL( ETrue, strConstructL ); + aknbtn->ConstructFromResourceL( iReader ); + AssertTrueL( ETrue, strConstructFromRes ); + + + _LIT( strHandleResChange, + "Class CAknButton function HandleResourceChange invoked" ); + aknbtn->HandleResourceChange ( 0 ); + AssertTrueL( ETrue, strHandleResChange ); + + _LIT( strMinimumSize, "Class CAknButton function MinimumSize invoked" ); + aknbtn->MinimumSize(); + AssertTrueL( ETrue, strMinimumSize ); + + _LIT( strSetDimmed, "Class CAknButton function SetDimmed invoked" ); + aknbtn->SetDimmed( ETrue ); + AssertTrueL( ETrue, strSetDimmed ); + + _LIT( strOfferKeyEventL, + "Class CAknButton function OfferKeyEventL invoked" ); + TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 }; + aknbtn->OfferKeyEventL( keyEvent, EEventKey ); + AssertTrueL( ETrue, strOfferKeyEventL ); + + _LIT( strMakeVisible, "Class CAknButton function MakeVisible invoked" ); + aknbtn->MakeVisible( ETrue ); + AssertTrueL( ETrue, strMakeVisible ); + + _LIT( strPrepareForFocusLossL, + "Class CAknButton function PrepareForFocusLossL invoked" ); + aknbtn->PrepareForFocusLossL(); + AssertTrueL( ETrue, strPrepareForFocusLossL ); + + _LIT( strPrepareForFocusGainL, + "Class CAknButton function PrepareForFocusGainL invoked" ); + aknbtn->PrepareForFocusGainL(); + AssertTrueL( ETrue, strPrepareForFocusGainL ); + + _LIT( strHandlePointerEventL, + "Class CAknButton function HandlePointerEventL invoked" ); + TPointerEvent pointerEvent = + { TPointerEvent::EButton1Up, + EModifierAutorepeatable, + TPoint( 20,20 ), TPoint( 0,0 ) }; + aknbtn->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, strHandlePointerEventL ); + + CleanupStack::PopAndDestroy();//aknbtn + CleanupStack::PopAndDestroy();//iReader + aknbtn = NULL; + + _LIT( strConstructFromRIDL, + "Class CAknButton function ConstructFromResourceL( TInt ) invoked" ); + aknbtn = new( ELeave ) CAknButtonEx( KZero ); + CleanupStack::PushL( aknbtn ); + aknbtn->ConstructL(); + aknbtn->ConstructFromResourceL( R_BCTEST_AVKON_BUTTON ); + AssertTrueL( ETrue, strConstructFromRIDL ); + + _LIT( strSetHighlightRect, + "Class CAknButton function SetHighlightRect invoked" ); + TRect rect( KLeft, KTop, KRight, KBottom ); + aknbtn->SetHighlightRect( rect ); + AssertTrueL( ETrue, strSetHighlightRect ); + + _LIT( strHighlightRect, + "Class CAknButton function HighlightRect invoked" ); + TRect hRect = aknbtn->HighlightRect(); + AssertTrueL( ETrue, strHighlightRect ); + + aknbtn->SetContainerWindowL( *iContainer ); + _LIT( strActivateL, "Class CAknButton function ActivateL invoked" ); + aknbtn->ActivateL(); + AssertTrueL( ETrue, strActivateL ); + + _LIT( strSetCurrentState, + "Class CAknButton function SetCurrentState invoked" ); + aknbtn->SetCurrentState( 0, ETrue ); + AssertTrueL( ETrue, strSetCurrentState ); + + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + } + + +void CBCTestButtonCase::TestAknButtonProL() + { + + _LIT( strConstructProL, + "Class CAknButton function ConstructL( const TDesC... ) invoked" ); + CAknButtonEx* aknbtn = new( ELeave ) CAknButtonEx( KOne ); + CleanupStack::PushL( aknbtn ); + aknbtn->ConstructL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_button_decrease, + EMbmAvkonQgn_indi_button_decrease_mask, + EMbmAvkonQgn_indi_button_decrease_pressed, + EMbmAvkonQgn_indi_button_decrease_pressed_mask, + EMbmAvkonQgn_indi_button_increase, + EMbmAvkonQgn_indi_button_increase_mask, + EMbmAvkonQgn_indi_button_increase_pressed, + EMbmAvkonQgn_indi_button_increase_pressed_mask, + strOK, strHelp, KOne ); + AssertNotNullL( aknbtn, strConstructProL ); + + _LIT( strSetCurrentState, + "Class CAknButton function SetCurrentState invoked" ); + aknbtn->SetCurrentState( KOne, ETrue ); + AssertTrueL( ETrue, strSetCurrentState ); + + _LIT( strAddStateL, "Class CAknButton function SetAddStateL invoked" ); + aknbtn->AddStateL( CreateIconL(), CreateIconL(), + CreateIconL(), CreateIconL(), strOK, strHelp, KOne ); + AssertTrueL( ETrue, strAddStateL ); + + _LIT( strSetAddStateProL, + "Class CAknButton function SetCurrentState( const TDesC...) invoked" ); + aknbtn->AddStateL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_button_decrease, + EMbmAvkonQgn_indi_button_decrease_mask, + EMbmAvkonQgn_indi_button_decrease_pressed, + EMbmAvkonQgn_indi_button_decrease_pressed_mask, + EMbmAvkonQgn_indi_button_increase, + EMbmAvkonQgn_indi_button_increase_mask, + EMbmAvkonQgn_indi_button_increase_pressed, + EMbmAvkonQgn_indi_button_increase_pressed_mask, + strOK, strHelp, KOne, KAknsIIDNone, + KAknsIIDNone, KAknsIIDNone, KAknsIIDNone ); + AssertTrueL( ETrue, strSetAddStateProL ); + + _LIT( strSetButtonFlags, + "Class CAknButton function SetButtonFlags invoked" ); + aknbtn->SetButtonFlags( KOne ); + AssertTrueL( ETrue, strSetButtonFlags ); + + TAknsItemID id; + id.Set( KAknsIIDDefault ); + _LIT( strSetFrameAndCenterIds, + "Class CAknButton function SetFrameAndCenterIds invoked" ); + aknbtn->SetFrameAndCenterIds( id, id, id ,id ,id, id, id, id, id, id ); + AssertTrueL( ETrue, strSetFrameAndCenterIds ); + + _LIT( strSetBackgroundIds, + "Class CAknButton function SetSetBackgroundIds invoked" ); + aknbtn->SetBackgroundIds( id, id, id, id, id ); + AssertTrueL( ETrue, strSetBackgroundIds ); + + //const CFont *font = CEikonEnv::Static()->NormalFont(); + const CFont *font = eikEnv->NormalFont(); + _LIT( strSetTextFont, "Class CAknButton function SetTextFont invoked" ); + aknbtn->SetTextFont( font ); + AssertTrueL( ETrue, strSetTextFont ); + + _LIT( strSetTextColorIds, + "Class CAknButton function SetTextColorIds invoked" ); + aknbtn->SetTextColorIds( id, 0 ); + AssertTrueL( ETrue, strSetTextColorIds ); + + _LIT( strSetTextHorizontalAlignment, + "Class CAknButton function SetTextHorizontalAlignment invoked" ); + aknbtn->SetTextHorizontalAlignment( CGraphicsContext::ELeft ); + AssertTrueL( ETrue, strSetTextHorizontalAlignment ); + + _LIT( strSetTextVerticalAlignment, + "Class CAknButton function SetTextVerticalAlignment invoked" ); + aknbtn->SetTextVerticalAlignment( CAknButton::EBottom ); + AssertTrueL( ETrue, strSetTextVerticalAlignment ); + + _LIT( strSetTextUnderlineStyle, + "Class CAknButton function SetTextUnderlineStyle invoked" ); + aknbtn->SetTextUnderlineStyle( EUnderlineOff ); + AssertTrueL( ETrue, strSetTextUnderlineStyle ); + + // HS + _LIT( strSetTextAndIconAlignment, + "Class CAknButton function SetTextAndIconAlignment invoked" ); + aknbtn->SetTextAndIconAlignment( CAknButton::EIconBeforeText ); + AssertTrueL( ETrue, strSetTextAndIconAlignment ); + + _LIT( strSetIconScaleMode, + "Class CAknButton function SetIconScaleMode invoked" ); + aknbtn->SetIconScaleMode( EAspectRatioPreserved ); + AssertTrueL( ETrue, strSetIconScaleMode ); + + _LIT( strSetIconHorizontalAlignment, + "Class CAknButton function SetIconHorizontalAlignment invoked" ); + aknbtn->SetIconHorizontalAlignment( CAknButton::EBottom ); + AssertTrueL( ETrue, strSetIconHorizontalAlignment ); + + _LIT( strSetIconVerticalAlignment, + "Class CAknButton function SetIconVerticalAlignment invoked" ); + aknbtn->SetIconVerticalAlignment( CAknButton::EBottom ); + AssertTrueL( ETrue, strSetIconVerticalAlignment ); + + _LIT( strSetHelpNoteTimeouts, + "Class CAknButton function SetHelpNoteTimeouts invoked" ); + aknbtn->SetHelpNoteTimeouts( KHundred, KHundred ); + AssertTrueL( ETrue, strSetHelpNoteTimeouts ); + + _LIT( strSetKeyRepeatInterval, + "Class CAknButton function SetKeyRepeatInterval invoked" ); + aknbtn->SetKeyRepeatInterval( KHundred, KHundred ); + AssertTrueL( ETrue, strSetKeyRepeatInterval ); + + _LIT( strSetLongPressInterval, + "Class CAknButton function SetLongPressInterval invoked" ); + aknbtn->SetLongPressInterval( KHundred ); + AssertTrueL( ETrue, strSetLongPressInterval ); + + _LIT( strStateIndex, "Class CAknButton function StateIndex invoked" ); + aknbtn->StateIndex(); + AssertTrueL( ETrue, strStateIndex ); + + _LIT( strDisablePictographs, + "Class CAknButton function DisablePictographs invoked" ); + aknbtn->DisablePictographs(); + AssertTrueL( ETrue, strDisablePictographs ); + + _LIT( strEnablePictographsL, + "Class CAknButton function EnablePictographsL invoked" ); + CAknPictographInterface* interface = NULL; + aknbtn->EnablePictographsL( *interface ); + AssertTrueL( ETrue, strEnablePictographsL ); + + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + } + + +void CBCTestButtonCase::TestAknButtonUtiL() + { + + _LIT( strConstructL, + "Class CAknButton function ConstructL( CGulIcon... ) invoked" ); + CAknButtonEx* aknbtn = new( ELeave ) CAknButtonEx( KOne ); + CleanupStack::PushL( aknbtn ); + aknbtn->ConstructL( CreateIconL(), CreateIconL(), + CreateIconL(), CreateIconL(), + strOK, strHelp, KOne ); + AssertNotNullL( aknbtn, strConstructL ); + aknbtn->SetContainerWindowL( *iContainer ); + + _LIT( strSetTooltipPosition, + "Class CAknButton function SetTooltipPosition invoked" ); + aknbtn->SetTooltipPosition( CAknButton::EPositionTop ); + AssertTrueL( ETrue, strSetTooltipPosition ); + + _LIT( strSetRequestExit, + "Class CAknButton function SetTooltipPosition invoked" ); + aknbtn->SetRequestExit( ETrue ); + AssertTrueL( ETrue, strSetRequestExit ); + + _LIT( strIsDimmed, "Class CAknButton function IsDimmed invoked" ); + aknbtn->IsDimmed(); + AssertTrueL( ETrue, strIsDimmed ); + + _LIT( strSetDimmedHelpTextL, + "Class CAknButton function SetDimmedHelpTextL invoked" ); + aknbtn->SetDimmedHelpTextL( strHelp ); + AssertTrueL( ETrue, strSetDimmedHelpTextL ); + + + _LIT( strState, "Class CAknButton function State invoked" ); + CAknButtonState* aknbst = aknbtn->State(); + AssertNotNullL( aknbst, strState ); + aknbst = NULL; + + _LIT( strStatePr, "Class CAknButton function State( TInt ) invoked" ); + aknbst = aknbtn->State( KZero ); + AssertNotNullL( aknbst, strStatePr ); + + _LIT( strButtonFlags, "Class CAknButton function ButtonFlags invoked" ); + aknbtn->ButtonFlags(); + AssertTrueL( ETrue, strButtonFlags ); + + TMargins8 margin; + margin.iLeft = KLeft; + margin.iRight = KRight; + margin.iBottom = KBottom; + margin.iTop = KTop; + _LIT( strSetMargins, "Class CAknButton function SetMargins invoked" ); + aknbtn->SetMargins( margin ); + AssertTrueL( ETrue, strSetMargins ); + + TSize size( KRight, KBottom ); + _LIT( strSetIconSize, "Class CAknButton function SetIconSize invoked" ); + aknbtn->SetIconSize( size ); + AssertTrueL( ETrue, strSetIconSize ); + + _LIT( KResetState, "Class CAknButton function ResetState invoked" ); + aknbtn->ResetState(); + AssertTrueL( ETrue, KResetState ); + + _LIT(KPositionChanged,"Class CAknButton function PositionChanged invoked"); + aknbtn->PositionChanged(); + AssertTrueL( ETrue, KPositionChanged ); + + _LIT( strSizeChanged, "Class CAknButton function SizeChanged invoked" ); + aknbtn->SizeChanged(); + AssertTrueL( ETrue, strSizeChanged ); + + _LIT( strFocusChanged, + "Class CAknButton function FocusChanged invoked" ); + aknbtn->FocusChanged( EDrawNow ); + AssertTrueL( ETrue, strFocusChanged ); + + _LIT( strExtensionInterface, + "Class CAknButton function ExtensionInterface invoked" ); + TUid uid = TUid::Uid( KZero ); + aknbtn->ExtensionInterface( uid ); + AssertTrueL( ETrue, strExtensionInterface ); + + + _LIT( strChangeState, "Class CAknButton function ChangeState invoked" ); + aknbtn->ChangeState( ETrue ); + AssertTrueL( ETrue, strChangeState ); + + _LIT( strGetCurrentText, + "Class CAknButton function GetCurrentText invoked" ); + TDesC tdText = aknbtn->GetCurrentText(); + AssertTrueL( ETrue, strGetCurrentText ); + + _LIT( strGetCurrentIcon, + "Class CAknButton function GetCurrentIcon invoked" ); + const CGulIcon* icon = aknbtn->GetCurrentIcon(); + AssertNotNullL( const_cast< CGulIcon* >( icon ), strGetCurrentIcon ); + + aknbtn->SetContainerWindowL( *iContainer ); + aknbtn->SetDimmed( EFalse ); + _LIT( strShowHelpL, "Class CAknButton function ShowHelpL invoked" ); + aknbtn->ShowHelpL(); + AssertTrueL( ETrue, strShowHelpL ); + + _LIT( strHideHelp, "Class CAknButton function HideHelp invoked" ); + aknbtn->HideHelp(); + AssertTrueL( ETrue, strHideHelp ); + + CleanupStack::PopAndDestroy(); + aknbtn = NULL; + + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttoncontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttoncontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestbuttoncontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonContainer::CBCTestButtonContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestButtonContainer::~CBCTestButtonContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestButtonContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestButtonContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestButtonContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestButtonContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestButtonContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestButtonContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestButtonContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestButtonContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestButtonContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttondocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttondocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestButtonDocument.h" +#include "BCTestButtonAppUi.h" + +// ================= MEMBER FUNCTIONS ======================================= + +// --------------------------------------------------------------------------- +// CBCTestButtonDocument* CBCTestButtonDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonDocument* CBCTestButtonDocument::NewL( CEikApplication& aApp ) + { + CBCTestButtonDocument* self = new( ELeave ) CBCTestButtonDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonDocument::~CBCTestButtonDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonDocument::~CBCTestButtonDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestButtonDocument::CBCTestButtonDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestButtonDocument::CBCTestButtonDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestButtonDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestButtonDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestButtonAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonex.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonex.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +#include "bctestbuttonex.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian Constructor +// --------------------------------------------------------------------------- +// +CAknButtonStateEx::CAknButtonStateEx(const TInt aFlags):CAknButtonState(aFlags) + { + } + +CAknButtonStateEx::~CAknButtonStateEx() + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian Constructor +// --------------------------------------------------------------------------- +// +CAknButtonEx::CAknButtonEx( const TInt aFlags ):CAknButton( aFlags ) + { + } +CAknButtonEx::~CAknButtonEx( ) + { + } + +//end of file + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestbutton/src/bctestbuttonview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestbutton.hrh" +#include +#include "bctestbuttonview.h" +#include "bctestbuttoncontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonView* CBCTestButtonView::NewL(CBCTestUtil* aUtil) + { + CBCTestButtonView* self = new( ELeave ) CBCTestButtonView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestButtonView::CBCTestButtonView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestButtonView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTBUTTON_VIEW ); + + iContainer = new( ELeave ) CBCTestButtonContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestButtonView::~CBCTestButtonView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestButtonView::Id() const + { + return KBCTestButtonViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestButtonView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestButtonView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestButtonView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestButtonView::Container +// --------------------------------------------------------------------------- +// +CBCTestButtonContainer* CBCTestButtonView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestButtonView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestButtonView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bctestchoicelist.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bctestchoicelist.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,82 @@ +/* +* 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 "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: project specification file for the BCTestChoicelist. +* +*/ + + +TARGET BCTestChoicelist.exe +TARGETTYPE exe +UID 0x0 0x200089C4 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestChoicelist.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE BCTestChoicelistapp.cpp +SOURCE BCTestChoicelistdocument.cpp +SOURCE BCTestChoicelistappui.cpp +SOURCE BCTestChoicelistview.cpp +SOURCE BCTestChoicelistcontainer.cpp +SOURCE BCTestChoicelistcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../BCTESTUTIL/Inc +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 +SYSTEMINCLUDE . /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY bafl.lib + +START RESOURCE ../group/BCTestChoicelist_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bctestchoicelist.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bctestchoicelist.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,224 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME PBK2 + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestChoicelist.hrh" +#include "BCTestChoicelist.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCPopupChoicelist_BMP_FNAME APP_BITMAP_DIR"\\BCPopupChoicelist.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCPopup"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_BCPopupChoicelist_menubar_main; + cba = r_BCPopupChoicelist_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_BCPopupChoicelist_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCPopupChoicelist_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_BCPopupChoicelist_view +// AVKON_VIEW for CBCPopupChoicelistView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_BCPopupChoicelist_view + { + menubar = r_BCPopupChoicelist_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_BCPopupChoicelist_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_BCPopupChoicelist_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_BCPopupChoicelist_menu; + }, + MENU_TITLE + { + menu_pane = r_BCPopupChoicelist_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_BCPopupChoicelist_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_BCPopupChoicelist_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_BCPopupChoicelist_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = "Outline02"; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = "Outline03" ; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_BCPopupChoicelist_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_BCPopupChoicelist_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_BCPopupChoicelist_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_BCPopupChoicelist_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_BCPopupChoicelist_cba_options_next +// description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_BCPopupChoicelist_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCPopupChoicelistCbaCmdNext; + txt = qtn_BCPopupChoicelist_cba_next; + } + }; + } + +RESOURCE ARRAY r_mychoicelist_items +{ + items = + { + LBUF { txt = "10"; }, + LBUF { txt = "20"; }, + LBUF { txt = "30"; } + }; +} + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bctestchoicelist_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bctestchoicelist_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200089C4 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestChoicelist"; + localisable_resource_file = "\\resource\\apps\\BCTestChoicelist"; + localisable_resource_id = R_BCPOPUPCHOICELIST_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestChoicelist.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelist.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelist.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: BCPopupChoicelist resource header file +* +*/ + + +#ifndef C_BCPopupChoicelist_HRH +#define C_BCPopupChoicelist_HRH + +enum TBCPopupChoicelistMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCPopupChoicelistCba + { + EBCPopupChoicelistCbaCmdNext = 0x6300 + }; + +#endif // C_BCPopupChoicelist_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelist.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelist.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestChoicelist localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTestChoicelist" +#define qtn_apps_tavl_grid "BCTestChoicelist" + +// MenuBar +#define qtn_BCPopupChoicelist_menubar "Option" +#define qtn_BCPopupChoicelist_cba_next "Next" +#define qtn_BCPopupChoicelist_autotest "Autotest" +#define qtn_BCPopupChoicelist_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_BCPopupChoicelist_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_BCPopupChoicelist_text_other_app_name "BCTestChoicelist" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_PBK2TESTAPP_H +#define C_PBK2TESTAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCPopupChoicelist = { 0x200089C4 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCPopupChoicelistApp application class. +* Provides factory to create concrete document object. +*/ +class CBCPopupChoicelistApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCPopupChoicelistDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCPopupChoicelist ). + * @return The value of KUidBCPopupChoicelist. + */ + TUid AppDllUid() const; + + }; + +#endif // C_PBK2TESTAPP_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for BCPopupChoicelist API. +* +*/ + + +#ifndef C_PBK2TESTAPPUI_H +#define C_PBK2TESTAPPUI_H + +#include + +class CBCPopupChoicelistView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCPopupChoicelistAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCPopupChoicelistAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCPopupChoicelistAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCPopupChoicelistView* iView; + }; + +#endif // C_PBK2TESTAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_PBK2TESTCASE_H +#define C_PBK2TESTCASE_H + +#include +#include "bctestcase.h" + +class CBCPopupChoicelistContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCPopupChoicelistCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCPopupChoicelistCase* NewL( CBCPopupChoicelistContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCPopupChoicelistCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + void TestDetectorFunctionL(); + void TestPopMenuFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCPopupChoicelistCase( CBCPopupChoicelistContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCPopupChoicelistContainer* iContainer; + + }; + +class CBCTapDetectorCallBack : public CBase, public MAknLongTapDetectorCallBack +{ + public: + void HandleLongTapEventL( const TPoint& aPenEventLocation, + const TPoint& aPenEventScreenLocation ); + +}; +#endif // C_PBK2TESTCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_PBK2TESTCONTAINER_H +#define C_PBK2TESTCONTAINER_H + +#include + +/** +* container class +*/ +class CBCPopupChoicelistContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCPopupChoicelistContainer(); + + /** + * Destructor + */ + virtual ~CBCPopupChoicelistContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_PBK2TESTCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCPopupChoicelistDOCUMENT_H +#define C_BCPopupChoicelistDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCPopupChoicelistDocument application class. +*/ +class CBCPopupChoicelistDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCPopupChoicelistDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCPopupChoicelistDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCPopupChoicelistDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CPbk2TestAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCPopupChoicelistDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/inc/bctestchoicelistview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_PBK2TESTVIEW_H +#define C_PBK2TESTVIEW_H + +#include + +const TUid KBCPopupChoicelistViewId = { 1 }; + +class CBCPopupChoicelistContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCPopupChoicelistView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCPopupChoicelistView* NewL(); + + /** + * dtor + */ + virtual ~CBCPopupChoicelistView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCPopupChoicelistView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCPopupChoicelistContainer* iContainer; + + }; + +#endif // C_PBK2TESTVIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/sis/bctestchoicelist.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/sis/bctestchoicelist.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestChoicelist.pkg + +; Languages +&EN + +; Header +#{"BCTestChoicelist"},(0x200089C4),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestChoicelist.exe"- +"!:\sys\bin\BCTestChoicelist.exe" + +"\epoc32\data\z\resource\apps\BCTestChoicelist.r01"- +"!:\resource\apps\BCTestChoicelist.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestChoicelist_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestChoicelist_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/sis/sis_script.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/sis/sis_script.bat Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ +@rem +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem + +makesis pbk2test.pkg +signsis pbk2test.SIS pbk2test.sisx \S60\AppinstUi\internal\RD_RootCA\rd.cer \S60\AppinstUi\internal\RD_RootCA\rd-key.pem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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 app +* +*/ + + +// INCLUDE FILES +#include "BCTestChoicelistapp.h" +#include "BCTestChoicelistdocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCPopupChoicelistApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCPopupChoicelistApp::AppDllUid() const + { + return KUidBCPopupChoicelist; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCPopupChoicelistApp::CreateDocumentL() +// Creates CBCPopupChoicelistDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCPopupChoicelistApp::CreateDocumentL() + { + return CBCPopupChoicelistDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCPopupChoicelistApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCPopupChoicelistApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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: appui +* +*/ + +#include +#include + +#include "BCTestChoicelistappui.h" +#include "BCTestChoicelist.hrh" +#include "BCTestChoicelistview.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistAppUi::CBCPopupChoicelistAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCPopupChoicelistView* view = CBCPopupChoicelistView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCPopupChoicelistAppUi::~CBCPopupChoicelistAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCPopupChoicelistAppUi::~CBCPopupChoicelistAppUi() + { + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCPopupChoicelistAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,375 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include + +#include +#include +#include +#include + +#include "BCTestChoicelistcase.h" +#include "BCTestChoicelistcontainer.h" +#include "BCTestChoicelist.hrh" +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistCase* CBCPopupChoicelistCase::NewL( + CBCPopupChoicelistContainer* aContainer ) + { + CBCPopupChoicelistCase* self = new( ELeave ) CBCPopupChoicelistCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistCase::CBCPopupChoicelistCase( + CBCPopupChoicelistContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistCase::~CBCPopupChoicelistCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistCase::BuildScriptL() + { + + const TInt scripts[] = + { + DELAY( 1 ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA, + + //outline2 + LeftCBA, + Down, + LeftCBA, + + //outline3 + LeftCBA, + REP( Down, 2 ), + LeftCBA, + }; + + AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistCase::RunL +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline3 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + case EBCTestCmdOutline2: + TestDetectorFunctionL(); + break; + case EBCTestCmdOutline3: + TestPopMenuFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistCase::TestFunctionL +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistCase::TestFunctionL() + { + // Test some API here + + CAknButton* btn = CAknButton::NewLC( NULL, NULL, NULL, + NULL, _L("LeftButton"), KNullDesC, + KAknButtonNoFrame, 0 ); + + CleanupStack::PopAndDestroy(); + btn = NULL; + + btn = CAknButton::NewL( NULL, NULL, NULL, + NULL, _L("LeftButton"), KNullDesC, + KAknButtonNoFrame, 0 ); + + CDesCArrayFlat* itemArray = new ( ELeave ) CDesCArrayFlat( 8 ); + CleanupStack::PushL( itemArray ); + itemArray->AppendL( _L("orking") ); + itemArray->AppendL( _L("ll") ); + itemArray->AppendL( _L("sti") ); + itemArray->AppendL( _L("w") ); + + + CAknChoiceList *choList = + CAknChoiceList::NewL( iContainer, itemArray, + CAknChoiceList::EAknChoiceListWithCurrentSelection, btn ); + + CleanupStack::PushL( choList ); + _LIT( aknChoiceList, " ChoiceList create successfully " ); + AssertNotNullL( choList, aknChoiceList ); + + CleanupStack::Pop( choList ); + CleanupStack::Pop( itemArray ); + delete btn; + + choList->ShowChoiceListL(); + _LIT( showList, " ShowChoiceList! " ); + AssertTrueL( ETrue, showList); + + choList->SetSelectedIndex( TInt( 1 ) ); + _LIT( setIndex, " SetSelectedIndex()!" ); + AssertTrueL( ETrue, setIndex ); + + choList->SelectedIndex(); + _LIT( selectedIndex, " SelectedIndex() " ); + AssertTrueL( ETrue, selectedIndex ); + + choList->SetItemsL( R_MYCHOICELIST_ITEMS ); + _LIT( setItemsL, " SetItemsL( TInt aResourceId ) " ); + AssertTrueL( ETrue, setItemsL ); + + _LIT( setItems, " SetItems( CDesCArray* aArray ) " ); + CDesCArray* array = new ( ELeave ) CDesCArrayFlat( 1 ); + array->AppendL( setItems ); + choList->SetItems( array ); + AssertTrueL( ETrue, setItems ); + + TBuf<20> *bf = new ( ELeave ) TBuf<20>; + choList->AddItemL( bf ); + _LIT( addItemL, " AddItemL() " ); + AssertTrueL( ETrue, addItemL ); + + choList->RemoveItem( TInt( 1 ) ); + _LIT( removeItem, " RemoveItem() " ); + AssertTrueL( ETrue, removeItem ); + + choList->SetFlags( TInt( 1 ) ); + _LIT( setFlags, " SetFlags() " ); + AssertTrueL( ETrue, setFlags ); + + choList->Flags(); + _LIT( flg, " Flags() " ); + AssertTrueL( ETrue, flg ); + + choList->SetButtonL( CAknButton::NewL() ); + _LIT( setButtonL, " SetButtonL() " ); + AssertTrueL( ETrue, setButtonL ); + + choList->HideChoiceList(); + _LIT( hideChoiceList, " HideChoiceList() " ); + AssertTrueL( ETrue, hideChoiceList ); + + _LIT( setTooltipTextL, " SetTooltipTextL() " ); + choList->SetTooltipTextL( setTooltipTextL ); + AssertTrueL( ETrue, setTooltipTextL ); + + choList->SetTooltipTimeouts( 150, 3000 ); // 150 and 3000 are the defaults + _LIT( setTooltipTimeouts, " SetTooltipTimeouts() " ); + AssertTrueL( ETrue, setTooltipTimeouts ); + + choList->SetTooltipPosition( CAknChoiceList::EPositionTop ); + _LIT( setTooltipPosition, " SetTooltipPosition() " ); + AssertTrueL( ETrue, setTooltipPosition ); + + choList->ComponentControl( TInt( 1 ) ); + _LIT( componentControl, " componentControl() " ); + AssertTrueL( ETrue, componentControl ); + + choList->CountComponentControls(); + _LIT( countComponentControls, " CountComponentControls() " ); + AssertTrueL( ETrue, countComponentControls ); + + choList->MinimumSize(); + _LIT( minimumSize, " MinimumSize() " ); + AssertTrueL( ETrue, minimumSize ); + + choList->HandleResourceChange( TInt( 1 ) ); + _LIT( handleResourceChange, " HandleResourceChange() " ); + AssertTrueL( ETrue, handleResourceChange ); + + TKeyEvent keyEvent; + choList->OfferKeyEventL( keyEvent, EEventNull ); + _LIT( offerKeyEventL, " OfferKeyEventL() " ); + AssertTrueL( ETrue, offerKeyEventL ); + + choList->Draw( TRect() ); + _LIT( draw, " Draw() " ); + AssertTrueL( ETrue, draw ); + + choList->PositionChanged(); + _LIT( KPositionChanged, "PositionChanged()!"); + AssertTrueL( ETrue, KPositionChanged ); + + choList->HandleControlEventL( iContainer, + MCoeControlObserver::EEventRequestFocus ); + _LIT( handleControlEventL, " HandleControlEventL() " ); + AssertTrueL( ETrue, handleControlEventL ); + + choList->InsertItemL( TInt( 2 ), *bf ); + _LIT( insertItemL, " InsertItemL() " ); + AssertTrueL( ETrue, insertItemL ); + + delete bf; + delete choList; +} + +void CBCPopupChoicelistCase::TestDetectorFunctionL() + { +#ifdef RD_SCALABLE_UI_V2 + CAknLongTapDetector* tapDetector = + CAknLongTapDetector::NewL( NULL ); + _LIT( tpDectector," its NULL" ); + AssertNotNullL(tapDetector, tpDectector ); + CleanupStack::PushL( tapDetector ); + + TPointerEvent pEvent; + tapDetector->PointerEventL( pEvent ); + _LIT( ptEvent,"PointerEventL()!" ); + AssertTrueL( ETrue, ptEvent ); + + tapDetector->SetTimeDelayBeforeAnimation( 100 ); + _LIT( stTimeDelay," SetTimeDelayBeforeAnimation()!" ); + AssertTrueL( ETrue, stTimeDelay ); + + tapDetector->SetLongTapDelay(50); + _LIT( stLongDelay,"SetLongTapDelay(50);!" ); + AssertTrueL( ETrue, stLongDelay ); + + tapDetector->EnableLongTapAnimation( ETrue ); + _LIT( ELongTAnim, "EnableLongTapAnimation(ETrue);!"); + AssertTrueL( ETrue, ELongTAnim ); + + TWsEvent wEvent; + tapDetector->MonitorWsMessage( wEvent ); + _LIT( MoniWsMsg, "MonitorWsMessage(wEvent);!"); + AssertTrueL( ETrue, MoniWsMsg ); + + TBool check; + check = tapDetector->IsAnimationRunning(); + _LIT(IsAniRunning, "IsAnimationRunnin();!"); + AssertTrueL(ETrue, IsAniRunning ); + + CleanupStack::PopAndDestroy( tapDetector ); + + CBCTapDetectorCallBack listcase; + MAknLongTapDetectorCallBack* callback = &listcase; + TPoint tp1, tp2; + + callback->HandleLongTapEventL( tp1, tp2 ); + _LIT(KHandleLongTapEventL, "HandleLongTapEventL();!"); + AssertTrueL(ETrue, KHandleLongTapEventL ); + + +#endif + } + + +void CBCPopupChoicelistCase::TestPopMenuFunctionL() + { +#ifdef RD_SCALABLE_UI_V2 + TPoint aPoint; + + CAknStylusPopUpMenu* popMenu = + CAknStylusPopUpMenu::NewL( NULL, aPoint, NULL); + _LIT( pMenu,"CAknStylusPopUpMenu::NewL()!" ); + AssertNotNullL( popMenu, pMenu); + CleanupStack::PushL( popMenu ); + + TBuf<20> *bf = new (ELeave) TBuf<20>; + _LIT(adMenuItem," addMenuItemL()" ); + popMenu->AddMenuItemL( *bf, EBCTestCmdOutline1); + AssertTrueL( ETrue, adMenuItem ); + delete bf; + + popMenu->RemoveMenuItem( EBCTestCmdOutline1 ); + _LIT( remMenuFuc," popMenu()!" ); + AssertTrueL( ETrue, remMenuFuc); + + popMenu->SetItemDimmed( EBCTestCmdOutline1, ETrue); + _LIT( setItemFuc," SetItemDimmed()! " ); + AssertTrueL( ETrue, setItemFuc); + + popMenu->ShowMenu(); + _LIT(ShMenu, "ShowMenu()!"); + AssertTrueL(ETrue, ShMenu); + + TPoint point; + popMenu->SetPosition(point); + _LIT(SetPos, "SetPosition()!"); + AssertTrueL(ETrue, SetPos); + + + CCoeControl* cntrlptr = new (ELeave) CCoeControl; + MCoeControlObserver::TCoeEvent cEvent; + + popMenu->HandleControlEventL(cntrlptr, cEvent); + _LIT(HandleCtrlEvent, "HandleControlEventL()!"); + AssertTrueL(ETrue, HandleCtrlEvent); + + delete cntrlptr; + + CleanupStack::PopAndDestroy( popMenu ); +#endif + + } + +void CBCTapDetectorCallBack::HandleLongTapEventL(const TPoint& aPenEventLocation, + const TPoint& aPenEventScreenLocation ) +{ + //Nothing here. +} \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "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: container +* +*/ + + +#include "BCTestChoicelistcontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistContainer::CBCPopupChoicelistContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistContainer::~CBCPopupChoicelistContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCPopupChoicelistContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCPopupChoicelistContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCPopupChoicelistContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistContainer::ComponentControl +// --------------------------------------------------------------------------- + +CCoeControl* CBCPopupChoicelistContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistContainer::SetControl +// --------------------------------------------------------------------------- + +void CBCPopupChoicelistContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistContainer::ResetControl +// --------------------------------------------------------------------------- + +void CBCPopupChoicelistContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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 application +* +*/ + + +// INCLUDE FILES +#include "BCTestChoicelistdocument.h" +#include "BCTestChoicelistappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCPopupChoicelistDocument* CBCPopupChoicelistDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- + +CBCPopupChoicelistDocument* CBCPopupChoicelistDocument::NewL( CEikApplication& aApp ) + { + CBCPopupChoicelistDocument* self = + new( ELeave ) CBCPopupChoicelistDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCPopupChoicelistDocument::~CBCPopupChoicelistDocument() +// Destructor. +// ---------------------------------------------------------------------------- + +CBCPopupChoicelistDocument::~CBCPopupChoicelistDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCPopupChoicelistDocument::CBCPopupChoicelistDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCPopupChoicelistDocument::CBCPopupChoicelistDocument( CEikApplication& aApp ) + :CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCPopupChoicelistDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- + +CEikAppUi* CBCPopupChoicelistDocument::CreateAppUiL() + { + return new( ELeave ) CBCPopupChoicelistAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestchoicelist/src/bctestchoicelistview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,133 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "BCTestChoicelist.hrh" +#include +#include "BCTestChoicelistview.h" +#include "BCTestChoicelistcontainer.h" +#include "bctestutil.h" +#include "BCTestChoicelistcase.h" + +// Constansts +_LIT( KPopupChoicelistCase, "PopupChoicelist test case"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistView* CBCPopupChoicelistView::NewL() + { + CBCPopupChoicelistView* self = new( ELeave ) CBCPopupChoicelistView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistView::CBCPopupChoicelistView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistView::ConstructL() + { + BaseConstructL( R_BCPOPUPCHOICELIST_VIEW ); + + iContainer = new( ELeave ) CBCPopupChoicelistContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCPopupChoicelistCase::NewL( iContainer ), + KPopupChoicelistCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCPopupChoicelistView::~CBCPopupChoicelistView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistView::Id +// --------------------------------------------------------------------------- + +TUid CBCPopupChoicelistView::Id() const + { + return KBCPopupChoicelistViewId; + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCPopupChoicelistView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCPopupChoicelistView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/Icons_mix50.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/Icons_mix50.mk Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +# +# Copyright (c) 2005 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: +# + +ifeq (WINS,$(findstring WINS, $(PLATFORM))) +ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\Z +else +ZDIR=\epoc32\data\z +endif + +TARGETDIR=$(ZDIR)\resource\apps +HEADERDIR=\epoc32\include + +ICONTARGETFILENAME=$(TARGETDIR)\bctestmix50.mif + +#ok +HEADERFILENAME=$(HEADERDIR)\bctestmix50.mbg + +do_nothing : + @rem do_nothing + +MAKMAKE : do_nothing + +BLD : do_nothing + +CLEAN : do_nothing + +LIB : do_nothing + +CLEANLIB : do_nothing + +RESOURCE : + mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \ + /c8,8 ..\DataSrc\golgo2.bmp \ + /c8,8 ..\DataSrc\golgo3.bmp \ + /c8,8 ..\DataSrc\golgo4.bmp \ + /c8,8 ..\DataSrc\golgo5.bmp \ + /c8,8 ..\DataSrc\golgo6.bmp \ + /c8,8 ..\DataSrc\athene.bmp \ + /c8,8 ..\DataSrc\marked_add.bmp \ + /c8,1 ..\DataSrc\qgn_indi_marked_add.svg \ + /c8,1 ..\DataSrc\check.bmp \ + /c8,1 ..\DataSrc\non_check.bmp \ + /c8,1 ..\DataSrc\prop_group_small.bmp \ + /c8,1 ..\DataSrc\LShellIcon.bmp + +FREEZE : do_nothing + +SAVESPACE : do_nothing + +RELEASABLES : + @echo $(HEADERFILENAME) && \ + @echo $(ICONTARGETFILENAME) + +FINAL : do_nothing diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bctestmix50.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bctestmix50.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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: project specification file for the bctestmix50. +* +*/ + + +TARGET bctestmix50.exe +TARGETTYPE exe +UID 0x0 0xA00040AB + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +START RESOURCE bctestmix50.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctestmix50app.cpp +SOURCE bctestmix50document.cpp +SOURCE bctestmix50appui.cpp +SOURCE bctestmix50view.cpp +SOURCE bctestmix50container.cpp +SOURCE bctestmix50case.cpp +SOURCE bctestmix50extendclasses.cpp +SOURCE bctestmix50patchmisc.cpp +SOURCE bctestmix50patchcontrolcase.cpp +SOURCE bctestmix50patchcolumncase.cpp +SOURCE bctestmix50patchcolumnbasecase.cpp +SOURCE bctestmix50patchviewcase.cpp + +USERINCLUDE ./../inc +USERINCLUDE ../../../bctestutil/inc + +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +SYSTEMINCLUDE . /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware +SYSTEMINCLUDE /epoc32/include/mw +SYSTEMINCLUDE /epoc32/include/platform +SYSTEMINCLUDE /epoc32/include/platform/mw + +LIBRARY aknhlist.lib +LIBRARY aknicon.lib +LIBRARY akninputlanguage.lib +LIBRARY aknnotify.lib +LIBRARY aknskins.lib +LIBRARY apgrfx.lib +LIBRARY apmime.lib +LIBRARY apparc.lib +LIBRARY avkon.lib +LIBRARY bafl.lib +LIBRARY bctestutil.lib +LIBRARY commondialogs.lib +LIBRARY commonui.lib +LIBRARY cone.lib +LIBRARY eikcoctl.lib +LIBRARY eikcore.lib +LIBRARY eikctl.lib +LIBRARY eikdlg.lib +LIBRARY efsrv.lib +LIBRARY egul.lib +LIBRARY estor.lib +LIBRARY euser.lib +LIBRARY fbscli.lib +LIBRARY fontutils.lib +LIBRARY gdi.lib +LIBRARY insock.lib +LIBRARY touchfeedback.lib +LIBRARY ws32.lib +LIBRARY AknSkinSrv.lib + + +START RESOURCE ../group/bctestmix50_reg.rss +DEPENDS bctestmix50.rsg +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bctestmix50.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bctestmix50.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2288 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME MIX5 + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "bctestmix50.hrh" +#include "bctestmix50.loc" + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +//---------------------------------------------------------------------------- +// +STRUCT BCTouchPane + { + BYTE version; + LONG flags; + } + +// RESOURCE DEFINITIONS +//---------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctestmix50_buff; + } + + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestmix50_menubar_main; + cba = r_bctestmix50_cba_options_next; + } + + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestmix50_localisable_app_info + { + short_caption = qtn_apps_short_caption; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_caption; + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_view +// AVKON_VIEW for CBCTestMix50View +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmix50_view + { + menubar = r_bctestmix50_menubar_main; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmix50_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmix50_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestmix50_case_menu; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctestmix50_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestmix50patch_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestmix50patch_outline3; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestmix50patch_outline4; + } + }; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestmix50_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestmix50_menu_exit; + } + }; + } + + +// ---------------------------------------------------------------------------- +// +// r_bctestmix50_cba_options_next +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctestmix50_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id = EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestMix50CbaCmdNext; + txt = qtn_bctestmix50_cba_next; + } + }; + } + + +// ---------------------------------------------------------------------------- +// +// r_bctestmix50_eikdialog +// +// +// ---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestmix50_eikdialog + { + flags = EEikDialogFlagNoDrag | EEikDialogFlagCbaButtons + | EEikDialogFlagWait; + buttons = R_AVKON_SOFTKEYS_OK_BACK; + title = qtn_truncation; + items = + { + DLG_LINE + { + type = EEikCtEdwin; + id = EBcTestEdwin; + prompt = qtn_truncation; + control = EDWIN + { + flags = EAknEditorFlagDefault; + width = qtn_eikdialog_width; + lines = qtn_eikdialog_line; + maxlength = qtn_eikdialog_base_line; + }; + }, + DLG_LINE + { + type = EAknCtMessageQuery; + id = EAknMessageQueryContentId; + control = AVKON_MESSAGE_QUERY + { + }; + } + }; + } + + +// ---------------------------------------------------------------------------- +// +// r_bctestmix50_slider +// bc test for slider resource +// +// ---------------------------------------------------------------------------- +// +RESOURCE SLIDER r_bctestmix50_slider + { + layout = EAknFormSliderLayout1; + minvalue = AKNEIK_SLIDER_MINIMUM_VALUE; + maxvalue = AKNEIK_SLIDER_MAXIMUM_VALUE; + step = AKNEIK_SLIDER_STEP_SIZE; + valuetype = EAknSliderValueBareFigure; + decimalplaces = 0; + singular_valuelabel = qtn_bctestmix50_singular_txt; + minlabel = qtn_bctestmix50_min_txt; + maxlabel = qtn_bctestmix50_max_txt; + valuelabel = qtn_bctestmix50_value_txt; + graphical_image=0; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50setpage_text_setting_page +// For outline01,06,09,11,12, 25,28, 64. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctestmix50setpage_text_setting_page + { + number = AKNEIK_TEXT_SETTING_PAGE_NUMBER; + label = qtn_bctestmix50setpage_text_title; + type = EEikCtEdwin; + editor_resource_id = r_bctestmix50_edwin; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_edwin +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EDWIN r_bctestmix50_edwin + { + width = AKNEIK_TEXT_SETTING_PAGE_WIDTH; + lines = AKNEIK_TEXT_SETTING_PAGE_LINES; + maxlength = AKNEIK_TEXT_SETTING_PAGE_MAXLENGTH20; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_volumecontrol +// bc test for CAknVolumeControl +// +//----------------------------------------------------------------------------- +// +RESOURCE VOLUME r_bctestmix50_volumecontrol + { + flags = ESettingsVolumeControl; + value = AKNEIK_VOLUME_SETTING_VALUE; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_editor_edwin +// bc test for CAknUnitEditor +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_UNIT_EDITOR r_bctestmix50_editor_edwin + { + min = AKNEIK_EDITOR_MIN_VALUE; + max = AKNEIK_EDITOR_MAX_VALUE; + maxfractionaldigits = AKNEIK_EDITOR_MAXFRACT_VALUE; + flags = EAknUnitEditorAllowUninitialized; + } + +//---------------------------------------------------------------------------- +// r_bctestmix50patch_view +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmix50patch_view + { + menubar = r_bctestmix50patch_menubar_main; + hotkeys = r_bctest_mix50patch_hotkey_command; + } + +//---------------------------------------------------------------------------- +// r_bctestmix50patch_menubar_main +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmix50patch_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmix50patch_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestmix50patch_case_menu; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctestmix50patch_case_menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50patch_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline2; + txt = qtn_bctestmix50patch_outline1; + }, + MENU_ITEM + { + command = EBCTestCmdOutline3; + txt = qtn_bctestmix50patch_outline2; + }, + MENU_ITEM + { + command = EBCTestCmdOutline4; + txt = qtn_bctestmix50patch_outline4; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctesttoolbar_cba_options_next +// +//---------------------------------------------------------------------------- +// +RESOURCE CBA r_bctesttoolbar_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestMix50PatchTempToolbarCbaCmdNext; + txt = qtn_bctesttoolbar_cba_next; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctestmix50patch_menu +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50patch_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestmix50patch_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestmix50patch_menu_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctestmix50patch_cba_options_next +// +//---------------------------------------------------------------------------- +// +RESOURCE CBA r_bctestmix50patch_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestMix50PatchCbaCmdNext; + txt = qtn_bctestmix50patch_cba_next; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctestmix50patch_toolbar +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_TOOLBAR r_bctestmix50patch_toolbar + { + flags = KAknToolbarFixed; + items = + { + TBAR_CTRL + { + type = EAknCtButton; + id = EBCTestCmdEmptyOutline; + control = AVKON_BUTTON + { + flags = KAknButtonTextInsideFrame; + states = + { + AVKON_BUTTON_STATE + { + txt = "button"; + } + }; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_bmpanim_data_org +// +//---------------------------------------------------------------------------- +// +RESOURCE BMPANIM_DATA r_bctest_bmpanim_data_org + { + //identifier = 0; + frameinterval = 300; // ms + playmode = EAknBitmapAnimationPlayModePlay; + flash = 0; + bmpfile = AVKON_BITMAP_FILE; + frames = r_bctest_note_error_anim_frames; + backgroundframe = R_QGN_NOTE_QUERY_ANIM_FRAMES; + } + +//---------------------------------------------------------------------------- +// r_bctest_note_error_anim_frames +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctest_note_error_anim_frames + { + items= + { + BMPANIM_FRAME + { + time=300; + bmpid=EMbmAvkonQgn_note_error_2; + maskid=EMbmAvkonQgn_note_error_2_mask; + }, + BMPANIM_FRAME + { + time=300; + bmpid=EMbmAvkonQgn_note_error; + maskid=EMbmAvkonQgn_note_error_mask; + }, + BMPANIM_FRAME + { + time=300; + bmpid=EMbmAvkonQgn_note_error_2; + maskid=EMbmAvkonQgn_note_error_2_mask; + }, + BMPANIM_FRAME + { + time=300; + bmpid=EMbmAvkonQgn_note_error; + maskid=EMbmAvkonQgn_note_error_mask; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_enhanced_cba_button +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_CBA_BUTTON r_bctest_enhanced_cba_button + { + id = EBCTestMix50PatchEnhancedCBAButton; + txt = "Enhanced CBA"; + } + +//---------------------------------------------------------------------------- +// r_bctest_bmpanim_data +// +//---------------------------------------------------------------------------- +// +RESOURCE BMPANIM_DATA r_bctest_bmpanim_data + { + //identifier = 0; + frameinterval = 300; // ms + playmode = EAknBitmapAnimationPlayModePlay; + bmpfile = AVKON_BITMAP_FILE; + } + +//---------------------------------------------------------------------------- +// r_bctest_cmdbt_label +// +//---------------------------------------------------------------------------- +// +RESOURCE NAVI_LABEL r_bctest_cmdbt_label + { + txt = "CmdButton"; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_hotkey_command +// +//---------------------------------------------------------------------------- +// +RESOURCE HOTKEYS r_bctest_mix50patch_hotkey_command + { + plain = + { + HOTKEY { command=EBCTestCmdOutline2; key= 'o'; } + }; + + control = + { + HOTKEY { command=EBCTestCmdOutline2; key= 'o'; } + }; + + shift_control = + { + HOTKEY { command=EBCTestCmdOutline3; key= 'o'; } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_image +// +//---------------------------------------------------------------------------- +// +RESOURCE NAVI_IMAGE r_bctest_mix50patch_image + { + bmpfile = AVKON_ICON_FILE; + bmpid= EMbmAvkonQgn_indi_battery_strength; + bmpmask= EMbmAvkonQgn_indi_battery_strength_mask; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_indicator +// +//---------------------------------------------------------------------------- +// +RESOURCE INDICATOR r_bctest_mix50patch_indicator + { + uid = EAknIndicatorIrActive; + npriority = 10; + wpriority = 20; + bmpfile = AVKON_BITMAP_FILE; + states = INDICATOR_STATE + { + id = EAknIndicatorStateAnimate; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_ir_blank; + narrowbmpid = EMbmAvkonQgn_stat_ir_uni_blank; + }; + icons = INDICATOR_ICON + { + widebmpid = EMbmAvkonQgn_stat_ir; + narrowbmpid = EMbmAvkonQgn_stat_ir_uni; + }; + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_note_icon +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctest_mix50patch_note_icon + { + flags = EAknDialogGenericNoteFlags | EEikDialogFlagWait; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EBCTestMix50PatchNoteCtrlIdNoImageNote; + control = AVKON_NOTE + { + layout = ENoteWithImageLayout; + singular_label = qtn_bctest_mix50patch_note_singular; + plural_label = qtn_bctest_mix50patch_note_plural; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_lbbut +// +//---------------------------------------------------------------------------- +// +RESOURCE LBBUT r_bctest_mix50patch_lbbut + { + buttontype=0; // EEikCtCommandButton + button = CMBUT + { + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt=""; + bmpfile = AVKON_ICON_FILE; + bmpid= EMbmAvkonQgn_indi_battery_strength; + bmpmask= EMbmAvkonQgn_indi_battery_strength_mask; + }; + hotkey=0; + flags=1; // EEikLabeledButtonShowHotKey + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_iconfile +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctest_mix50patch_iconfile + { + buf = qtn_bctestpopups_iconfile; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_volume_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_volume_setting_page + { + number = BCTEST_MIX50PATCH_VOLUME_SETTING_PAGE_NUMBER; + label = qtn_bctest_mix50patch_setpage_volume_title; + type = EAknCtVolumeControl; + editor_resource_id = r_bctest_mix50patch_setpage_volume; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_volume +// +//---------------------------------------------------------------------------- +// +RESOURCE VOLUME r_bctest_mix50patch_setpage_volume + { + flags = ESettingsVolumeControl; + value = BCTEST_MIX50PATCH_VOLUME_SETTING_PAGE_VALUE; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_text_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_setpage_text_setting_page + { + number = BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_NUMBER; + label = qtn_bctest_mix50patch_setpage_text_title; + menubar = r_bctest_mix50patch_setpage_radiobtn_setpage_menubar; + type = EEikCtEdwin; + editor_resource_id = r_bctest_mix50patch_setpage_edwin; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_edwin +// +//---------------------------------------------------------------------------- +// +RESOURCE EDWIN r_bctest_mix50patch_setpage_edwin + { + width = BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_WIDTH; + lines = BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_LINES; + maxlength = BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_MAXLENGTH20; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_radiobtn_setpage_menubar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctest_mix50patch_setpage_radiobtn_setpage_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctest_mix50patch_setpage_radiobtn_setpage_menupane; + txt = qtn_bctest_mix50patch_setpage_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_radiobtn_setpage_menupane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctest_mix50patch_setpage_radiobtn_setpage_menupane + { + items = + { + MENU_ITEM + { + command = EAknAtSetPageCmdSetItemArrayAndSelection; + txt = qtn_bctest_mix50patch_setpage_radiobtn_setarray_select_item; + }, + MENU_ITEM + { + command = EAknAtSetPageCmdSelectCurrentItem; + txt = qtn_bctest_mix50patch_setpage_radiobtn_selcur_item; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_slider_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_setpage_slider_setting_page + { + number = BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_NUMBER; + label = qtn_bctest_mix50patch_setpage_slider_title; + type = EAknCtSlider; + editor_resource_id = r_bctest_mix50patch_setpage_slider; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_slider +// +//---------------------------------------------------------------------------- +// +RESOURCE SLIDER r_bctest_mix50patch_setpage_slider + { + layout = EAknSettingsItemSliderLayout; + minvalue = BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_MINVALUE; + maxvalue = BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_MAXVALUE; + step = BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_STEP; + valuetype = EAknSliderValuePercentage; + minlabel = qtn_slider_minlabel; + maxlabel = qtn_slider_maxlabel; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_setting_page + { + number = BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_NUMBER; + label = qtn_bctest_mix50patch_text_title; + menubar = r_bctest_mix50patch_setpage_radiobtn_setpage_menubar; + type = EEikCtEdwin; + editor_resource_id = r_bctest_mix50patch_edwin; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_edwin +// +//---------------------------------------------------------------------------- +// +RESOURCE EDWIN r_bctest_mix50patch_edwin + { + width = BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_WIDTH; + lines = BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_LINES; + maxlength = BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_MAXLENGTH20; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_list_item_array +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctest_mix50patch_setpage_list_item_array + { + items = + { + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list0; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list1; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list2; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list3; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list4; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list5; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list6; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list7; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list8; + }, + LBUF + { + txt = qtn_bctest_mix50patch_setpage_item_list9; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_password_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_password_setting_page + { + number = BCTEST_MIX50PATCH_ALPHA_PASSWORD_SETTING_PAGE_NUMBER; + label = qtn_bctest_mix50patch_password_setpage_title; + type = EEikCtSecretEd; + editor_resource_id = r_bctest_mix50patch__setpage_password; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch__setpage_password +// +//---------------------------------------------------------------------------- +// +RESOURCE SECRETED r_bctest_mix50patch__setpage_password + { + num_letters = BCTEST_MIX50PATCH_ALPHA_PASSWORD_LENGTH_OF_STRING; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_radiobtn_setpage +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_setpage_radiobtn_setpage + { + label = qtn_bctest_mix50patch_setpage_radiobtn_title; + softkey_resource = R_AVKON_SOFTKEYS_OPTIONS_BACK; + type = EAknSetListBox; + editor_resource_id = r_bctest_mix50patch_setpage_radiobtn_setpage_listbox; + menubar = r_bctest_mix50patch_setpage_radiobtn_setpage_menubar; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_radiobtn_setpage_listbox +// +//---------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctest_mix50patch_setpage_radiobtn_setpage_listbox + { + flags = EEikListBoxMultipleSelection; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_radiobtn_setpage_menubar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctest_mix50patch_radiobtn_setpage_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctest_mix50patch_setpage_radiobtn_setpage_menupane; + txt = qtn_bctest_mix50patch_setpage_menubar; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_ipaddress_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_setpage_ipaddress_setting_page + { + label= "IP"; + type = EAknCtIpFieldEditor; + editor_resource_id = r_bctest_mix50patch_setpage_ipaddress_editor; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_ipaddress_editor +// +//---------------------------------------------------------------------------- +// +RESOURCE IP_FIELD_EDITOR r_bctest_mix50patch_setpage_ipaddress_editor + { + min_field_values = IP_FIELD + { + first_field = BCTEST_MIX50PATCH_IPADDRESS_MIN_FIRST_FIELD_VALUE; + second_field = BCTEST_MIX50PATCH_IPADDRESS_MIN_SECOND_FIELD_VALUE; + third_field = BCTEST_MIX50PATCH_IPADDRESS_MIN_THIRD_FIELD_VALUE; + fourth_field = BCTEST_MIX50PATCH_IPADDRESS_MIN_FOURTH_FIELD_VALUE; + }; + max_field_values = IP_FIELD + { + first_field = BCTEST_MIX50PATCH_IPADDRESS_MAX_FIRST_FIELD_VALUE; + second_field = BCTEST_MIX50PATCH_IPADDRESS_MAX_SECOND_FIELD_VALUE; + third_field = BCTEST_MIX50PATCH_IPADDRESS_MAX_THIRD_FIELD_VALUE; + fourth_field = BCTEST_MIX50PATCH_IPADDRESS_MAX_FOURTH_FIELD_VALUE; + }; + flags = 0; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_time_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctest_mix50patch_setpage_time_setting_page + { + number = BCTEST_MIX50PATCH_TIME_SETTING_PAGE_NUMBER; + label = "time"; + type = EEikCtTimeEditor; + editor_resource_id = r_bctest_mix50patch_setpage_time_editor; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_setpage_time_editor +// +//---------------------------------------------------------------------------- +// +RESOURCE TIME_EDITOR r_bctest_mix50patch_setpage_time_editor + { + minTime = TIME + { + second = BCTEST_MIX50PATCH_TIME_EDITOR_MIN_SECOND; + minute = BCTEST_MIX50PATCH_TIME_EDITOR_MIN_MINUTE; + hour = BCTEST_MIX50PATCH_TIME_EDITOR_MIN_HOUR; + }; + maxTime = TIME + { + second = BCTEST_MIX50PATCH_TIME_EDITOR_MAX_SECOND; + minute = BCTEST_MIX50PATCH_TIME_EDITOR_MAX_MINUTE; + hour = BCTEST_MIX50PATCH_TIME_EDITOR_MAX_HOUR; + }; + } + +//---------------------------------------------------------------------------- +// r_bctestlist_checkbox_setting_page +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctestlist_checkbox_setting_page + { + number = BCTEST_MIX50PATCH_CHECKBOX_SETTING_PAGE_NUMBER; + label = qtn_bctest_mix50patch_list_multi_title; + type = EAknSetListBox; + editor_resource_id = r_bctest_mix50patch_list; + menubar = r_bctest_mix50patch_list_checkbox_menubar; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_list +// +//---------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctest_mix50patch_list + { + array_id = r_bctest_mix50patch_list_item; + flags = EAknListBoxSelectionList; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_list_item +// +//---------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctest_mix50patch_list_item + { + items = + { + LBUF + { + txt = qtn_bctest_mix50patch_list_item_s1; + }, + LBUF + { + txt = qtn_bctest_mix50patch_list_item_s2; + }, + LBUF + { + txt = qtn_bctest_mix50patch_list_item_s3; + }, + LBUF + { + txt = qtn_bctest_mix50patch_list_item_s4; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_list_checkbox_menubar +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctest_mix50patch_list_checkbox_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctest_mix50patch_list_checkbox_menupane; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_list_checkbox_menupane +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctest_mix50patch_list_checkbox_menupane + { + items = + { + MENU_ITEM + { + command = EProgSoftkeyNextOutline; + txt = qtn_bctest_mix50patch_list_softkey_next; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_toolbar +// +//---------------------------------------------------------------------------- +// +RESOURCE AVKON_TOOLBAR r_bctest_mix50patch_toolbar + { + flags = KAknToolbarFixed | KAknToolbarWithoutCba; + items = + { + TBAR_CTRL + { + type = EAknCtButton; + id = EBCTestMix50PatchToolbarCtrl; + control = AVKON_BUTTON + { + flags = 0; + states = + { + + }; + }; + } + }; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_touchpane +// +//---------------------------------------------------------------------------- +// +RESOURCE BCTouchPane r_bctest_mix50patch_touchpane + { + version = 1; + flags = 0; + } + +//---------------------------------------------------------------------------- +// r_bctest_mix50patch_touchpane +// +//---------------------------------------------------------------------------- +// +RESOURCE MEMORYSELECTIONDIALOG r_bctest_mix50patch_memory_selection_locations + { + locations = + { + LOCATION { root_path = PHONE; }, + LOCATION { root_path = MMC; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestlist_view +// AVKON_VIEW for CAknAtColumnView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestmix50_list_view + { + menubar = r_bctestmix50_list_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_menubar_main +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmix50_list_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmix50_list_exit; + }, + MENU_TITLE + { + menu_pane = r_bctestmix50_list_main_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_main_menu +// Menu Pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50_list_main_menu + { + items = + { + MENU_ITEM + { + cascade = r_bctestmix50_list_column_menu; + txt = qtn_bctestmix50_list_menu_column; + }, + + MENU_ITEM + { + cascade = r_bctestmix50_list_other_menu; + txt = qtn_bctestmix50_list_menu_other; + } + + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_column_menu +// cascade menu for column list boxes +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50_list_column_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline01; + txt = qtn_bctestmix50_list_outline01; + }, + MENU_ITEM + { + command = EBCTestCmdOutline02; + txt = qtn_bctestmix50_list_outline02; + }, + MENU_ITEM + { + command = EBCTestCmdOutline03; + txt = qtn_bctestmix50_list_outline03; + }, + MENU_ITEM + { + command = EBCTestCmdOutline04; + txt = qtn_bctestmix50_list_outline04; + }, + MENU_ITEM + { + command = EBCTestCmdOutline05; + txt = qtn_bctestmix50_list_outline05; + }, + MENU_ITEM + { + command = EBCTestCmdOutline06; + txt = qtn_bctestmix50_list_outline06; + }, + MENU_ITEM + { + command = EBCTestCmdOutline07; + txt = qtn_bctestmix50_list_outline07; + }, + MENU_ITEM + { + command = EBCTestCmdOutline08; + txt = qtn_bctestmix50_list_outline08; + }, + MENU_ITEM + { + command = EBCTestCmdOutline09; + txt = qtn_bctestmix50_list_outline09; + }, + MENU_ITEM + { + command = EBCTestCmdOutline10; + txt = qtn_bctestmix50_list_outline10; + } + }; + } + + + + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_other_menu +// cascade menu for other cases +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50_list_other_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline43; + txt = qtn_bctestmix50_list_outline43; + }, + MENU_ITEM + { + command = EBCTestCmdOutline44; + txt = qtn_bctestmix50_list_outline44; + } + }; + } + + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_exit +// Menu Pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestmix50_list_exit + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestmix50_list_autotest; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestmix50_list_exit; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_popupfind +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_popupfind + { + array_id = r_bctestmix50_list_item_single_popupfind; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_1_add_rm +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_1_add_rm + { + array_id = r_bctestmix50_list_item_single1_add_rm; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_markable +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_markable + { + array_id = r_bctestmix50_list_item_single_markable; + flags = EAknListBoxMarkableList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_markable_shortcut +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_markable_shortcut + { + array_id = r_bctestmix50_list_item_single_markable; + flags = EAknListBoxMarkableListWithShortcuts; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_3 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_3 + { + array_id = r_bctestmix50_list_item_single3; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_4 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_4 + { + array_id = r_bctestmix50_list_item_single1; + flags = EAknListBoxMarkableList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_5 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_5 + { + array_id = r_bctestmix50_list_item_single4; + flags = EAknListBoxMultiselectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_6 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_6 + { + array_id = r_bctestmix50_list_item_single5; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_7 +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_7 + { + array_id = r_bctestmix50_list_item_single6; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_sub +// ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +/*RESOURCE LISTBOX r_bctestmix50_list_single_sub + { + array_id = r_bctestmix50_list_item_single_sub; + flags = EAknListBoxSelectionList; + } +*/ +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_number +// ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_single_number + { + array_id = r_bctestmix50_list_item_single_number; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_setting +// ListBox( Setting style ) +// +//----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_bctestmix50_list_setting_add_rm + { + array_id = r_bctestmix50_list_item_setting_add_rm; + flags = EAknListBoxSelectionList; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_setting_number +// ListBox( Setting style ) +// +//----------------------------------------------------------------------------- +// +/* +RESOURCE LISTBOX r_bctestmix50_list_setting_number + { + array_id = r_bctestmix50_list_item_setting_number; + flags = EAknListBoxSelectionList; + } + + + +*/ + +RESOURCE LISTBOX r_bctestmix50_list_markablelist_big_single + { + array_id = r_bctestmix50_list_item_big_single; + flags = EAknListBoxMarkableList; + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single1 +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single1 + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_s1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s4; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s6; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s7; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s8; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s9; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single1_add_rm +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single1_add_rm + { + items = + { + LBUF { txt = qtn_bctestmix50_list_item_s9; }, + LBUF { txt = qtn_bctestmix50_list_item_s2_rm; }, + LBUF { txt = qtn_bctestmix50_list_item_s3; }, + LBUF { txt = qtn_bctestmix50_list_item_s4; }, + LBUF { txt = qtn_bctestmix50_list_item_s5; }, + LBUF { txt = qtn_bctestmix50_list_item_s6; }, + LBUF { txt = qtn_bctestmix50_list_item_s7; }, + LBUF { txt = qtn_bctestmix50_list_item_s8; }, + LBUF { txt = qtn_bctestmix50_list_item_s1_add; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single_popupfind +// Items array for ListBox( Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single_popupfind + { + items = + { + LBUF { txt = qtn_bctestmix50_list_item_popupfind; }, + LBUF { txt = qtn_bctestmix50_list_item_s1; }, + LBUF { txt = qtn_bctestmix50_list_item_s1; }, + LBUF { txt = qtn_bctestmix50_list_item_s2; }, + LBUF { txt = qtn_bctestmix50_list_item_s3; }, + LBUF { txt = qtn_bctestmix50_list_item_s4; }, + LBUF { txt = qtn_bctestmix50_list_item_s5; }, + LBUF { txt = qtn_bctestmix50_list_item_s6; }, + LBUF { txt = qtn_bctestmix50_list_item_s7; }, + LBUF { txt = qtn_bctestmix50_list_item_s8; }, + LBUF { txt = qtn_bctestmix50_list_item_s9; } + }; + } + +//----------------------------------------------------------------------------- +// +// r_item_bctestmix50_list_single_markable +// Items array for ListBox +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single_markable + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_this_is; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_markable_list; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s10; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s12; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s4; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s6; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s7; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single3 +// Items array for ListBox( Single 3 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single3 + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_s1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s4; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single4 +// Items array for ListBox( Single 4 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single4 + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_this_is; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_multisel_list; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_press_0; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s10; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s11; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s6; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s7; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single5 +// Items array for ListBox( Single 5 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single5 + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_s1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s4; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s9; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s6; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s7; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single6 +// Items array for ListBox( Single 6 ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single6 + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_open1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_open2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s4; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_s6; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_single_number +// Items array for ListBox( Single Number ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_single_number + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_sn1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn4; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn6; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn7; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_sn8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_big_single +// Items array for ListBox( Big Single ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_big_single + { + items = + { + LBUF + { + txt = qtn_bctestmix50_list_item_bs1; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs2; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs3; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs4; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs5; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs6; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs7; + }, + LBUF + { + txt = qtn_bctestmix50_list_item_bs8; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_item_setting_add_rm +// Items array for ListBox( Setting ) +// +//----------------------------------------------------------------------------- +// +RESOURCE ARRAY r_bctestmix50_list_item_setting_add_rm + { + items = + { + LBUF { txt = qtn_bctestmix50_list_item_st1_add; }, + LBUF { txt = qtn_bctestmix50_list_item_st2_rm; }, + LBUF { txt = qtn_bctestmix50_list_item_st3; }, + LBUF { txt = qtn_bctestmix50_list_item_st4; }, + LBUF { txt = qtn_bctestmix50_list_item_st5; }, + LBUF { txt = qtn_bctestmix50_list_item_st6; }, + LBUF { txt = qtn_bctestmix50_list_item_st7; }, + LBUF { txt = qtn_bctestmix50_list_item_st8; } + }; + } +/* + + + +*/ +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_empty_setting_page +// For outline 16. +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_SETTING_PAGE r_bctestmix50_list_empty_setting_page + { + label= qtn_bctestmix50_list_setpage_empty_label; + type = EAknCtPopupSettingList; + editor_resource_id = r_bctestmix50_list_empty_setting_list; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_empty_setting_list +// For outline 16. +// +//----------------------------------------------------------------------------- +// +RESOURCE POPUP_SETTING_LIST r_bctestmix50_list_empty_setting_list + { + } + + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_listdlg_cancelled +// Note prompt for outline 109. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestmix50_list_listdlg_cancelled + { + buf = qtn_bctestmix50_list_listdlg_cancelled; + } + +//----------------------------------------------------------------------------- +// +// qtn_bctestmix50_list_listdlg_rec_obsevent +// Note prompt for receiving observer event of list dialog. +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF256 r_bctestmix50_list_listdlg_rec_obsevent + { + buf = qtn_bctestmix50_list_listdlg_rec_obsevent; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_markable_dialog +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestmix50_list_markable_dialog + { + flags = EAknDialogMarkableList; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtSingleListBox; + id = ESelectionListControl; + control = LISTBOX + { + flags = EAknListBoxMarkableList; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestmix50_list_single_selection_list_dialog +// +//----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestmix50_list_single_selection_list_dialog + { + flags = EAknDialogSelectionList; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtSingleListBox; + id = EBCTestMix50ListDlgLbx; + control = LISTBOX + { + flags = EAknListBoxSelectionList; + }; + } + }; + } + + + +//----------------------------------------------------------------------------- +// +// r_aknatsetpage_checkbox_setting_page +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestmix50_list_checkbox_menubar + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestmix50_list_checkbox_menupane; + } + }; + } + +RESOURCE MENU_PANE r_bctestmix50_list_checkbox_menupane + { + items = + { + MENU_ITEM + { + command = EProgSoftkeyNextOutline; + txt = qtn_bctestmix50_list_softkey_next; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesteditor_secret +// +//----------------------------------------------------------------------------- +// +RESOURCE SECRETED r_bctesteditor_secret + { + num_letters=8; + } + +//----------------------------------------------------------------------------- +// +// r_bctestaknquedlg_oneline_data_query +// Resource of 1 line Data Query. +// +//----------------------------------------------------------------------------- + +RESOURCE DIALOG r_bctestaknquedlg_oneline_data_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtQuery; + id = EGeneralQuery; + control = AVKON_DATA_QUERY + { + layout = EStaticSizeDataLayout; // EDataLayout; + label = "Query"; + control = EDWIN + { + flags = EEikEdwinNoHorizScrolling;// | EEikEdwinResizable; + width = AKNTAQUERY_EDWIN_WIDTH; + maxlength = AKNTAQUERY_EDWIN_MAXLENGTH; + }; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctest_staticnote_dialog +// Resource of static note dialog. +// +//----------------------------------------------------------------------------- +RESOURCE DIALOG r_bctest_staticnote_dialog + { + flags=EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons | EEikDialogFlagWait; + buttons=R_AVKON_SOFTKEYS_OK_CANCEL; + items= + { + DLG_LINE + { + type=EAknCtNote; + id=EGeneralNote; + control= AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = "ABC"; + animation = R_QGN_NOTE_INFO_ANIM; + }; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctest_number_edwin_control +// edwin control of ENumberLayout. +// +//----------------------------------------------------------------------------- +RESOURCE AVKON_DATA_QUERY r_bctest_number_edwin_control + { + layout = ENumberLayout; + label = "Number Layout Test"; + control = AVKON_INTEGER_EDWIN + { + maxlength = 0; + min = -99999999; + max = 99999999; + unset_value= -100000000; + extension1 = 0; + extension2 = 0; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctest_duration_edwin_control +// edwin control of EDurationLayout. +// +//----------------------------------------------------------------------------- +RESOURCE AVKON_DATA_QUERY r_bctest_duration_edwin_control + { + layout = EDurationLayout; + label = "Duration Layout Test"; + control = DURATION_EDITOR + { + minDuration = DURATION + { + seconds = 0; + }; + maxDuration = DURATION + { + seconds = 0; + }; + flags = 0; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctest_date_edwin_control +// edwin control of EDateLayout. +// +//----------------------------------------------------------------------------- +RESOURCE AVKON_DATA_QUERY r_bctest_date_edwin_control + { + layout = EDateLayout; + label = "Date Layout Test"; + control = DATE_EDITOR + { + minDate = DATE + { + day = 0; + month = 0; + year = 2000; + }; + maxDate = DATE + { + day = 0; + month = 0; + year = 2009; + }; + flags=0; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctest_ip_field +// resource of ip field. +// +//----------------------------------------------------------------------------- +RESOURCE IP_FIELD r_bctest_ip_field + { + + } + +//----------------------------------------------------------------------------- +// +// r_bctest_icon_array +// resource of icon array. +// +//----------------------------------------------------------------------------- +RESOURCE AKN_ICON_ARRAY r_bctest_icon_array + { + type = EAknIconArraySimple; + bmpfile = "z:\\resource\\apps\\avkon2.mbm"; + icons = + { + AKN_ICON + { + iconId = 0; + maskId = 1; + } + }; + } +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bctestmix50_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bctestmix50_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: resources for the module +* +*/ + + +#include +#include + + +//#define qtn_bctestmix50_group "BCTest" +#define qtn_bctestmix50_appfile "bctestmix50" +#define qtn_bctestmix50_resource_path "\\resource\\apps\\bctestmix50" + + +UID2 KUidAppRegistrationResourceFile +UID3 0xA00040AB // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_bctestmix50_appfile; + localisable_resource_file = qtn_bctestmix50_resource_path; + localisable_resource_id = R_BCTESTMIX50_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + //group_name = qtn_bctestmix50_group; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,20 @@ +/* +* 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 "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: project specification file for the bctestmix50. +* +*/ + +PRJ_MMPFILES + +bctestmix50.mmp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,180 @@ +/* +* 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 header file +* +*/ + + +#ifndef BCTESTMIX50_HRH +#define BCTESTMIX50_HRH + +enum TBCTestMix50MenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdOutline2, + EBCTestCmdOutline3, + EBCTestCmdOutline4, + EBCTestCmdMaxOutline, + EAknAtSetPageCmdSetItemArrayAndSelection, + EAknAtSetPageCmdSelectCurrentItem, + EProgSoftkeyNextOutline, + // for listbox + EBCTestCmdOutline01, + EBCTestCmdOutline02, + EBCTestCmdOutline03, + EBCTestCmdOutline04, + EBCTestCmdOutline05, + EBCTestCmdOutline06, + EBCTestCmdOutline07, + EBCTestCmdOutline08, + EBCTestCmdOutline09, + EBCTestCmdOutline10, + EBCTestCmdOutline18, + EBCTestCmdOutline43, + EBCTestCmdOutline44, + + EProgCmdAutoTest + }; + +enum TBCTestMix50Cba + { + EBCTestMix50CbaCmdNext = 0x6300, + EBcTestEdwin + }; + + +enum TBCTestMix50PatchCba + { + EBCTestMix50PatchCbaCmdNext = 0x6300, + EBCTestMix50PatchTempToolbarCbaCmdNext, + EBCTestMix50PatchEnhancedCBAButton + }; + +enum TBCTestix50PatchCtlId + { + EBCTestMix50PatchNoteCtrlIdNoImageNote = 0x6400, + EBCTestMix50PatchLabelledButton, + EBCTestMix50PatchTab1, + EBCTestMix50PatchToolbarCtrl, + EBCTestMix50PatchCtlIdNumber + }; + + +enum TBCTestListSetPageItemIndex + { + EBCTestListEmptyItem = 1 + }; + +enum TBCTestListSelListDlgMenuCmd + { + EBCTestMix50CmdListDlgNone = 0x7600, + EBCTestListCmdListDlgSelListProcCmd, + EBCTestListCmdListDlgMultiSelListProcCmd, + EBCTestListCmdListDlgMarkListProcCmd, + EBCTestListCmdListDlgSimKey, + EBCTestListCmdListDlgSimKeyNumber, + EBCTestListCmdListDlgSimKeyDelete, + EBCTestListCmdListDlgSimKeyLeftShift, + EBCTestListCmdListDlgSimKeyRightShift, + EBCTestListCmdListDlgSimKeyUp, + EBCTestListCmdListDlgSimKeyDown, + EBCTestListCmdListDlgMarkListInitMPane1, + EBCTestListCmdListDlgMarkListInitMPane2, + EBCTestListCmdListDlgMarkListInitMItem1, + EBCTestListCmdListDlgMarkListInitMItem2, + EBCTestListCmdListDlgMarkListUpdateAfterCmd, + EBCTestListCmdListDlgItemRemoval, + EBCTestListCmdListDlgObserverTest + }; + +enum TBCTestListDlgCtrl + { + EBCTestMix50ListDlgLbx = 1 + }; + +// for column list box +//#define AVKON_BMP_FILENAME "z:"APP_BITMAP_DIR"\\avkon2.mbm" +#define BCTESTLIST_BMP_FILENAME APP_BITMAP_DIR"\\bctestlist.mbm" +#define CHECKBOX_SETTING_PAGE_NUMBER 1 + +#define AKNEIK_SLIDER_MINIMUM_VALUE 0 +#define AKNEIK_SLIDER_MAXIMUM_VALUE 100 +#define AKNEIK_SLIDER_STEP_SIZE 2 +#define AKNEIK_TEXT_SETTING_PAGE_NUMBER 1 +#define AKNEIK_TEXT_SETTING_PAGE_WIDTH 9 +#define AKNEIK_TEXT_SETTING_PAGE_LINES 5 +#define AKNEIK_TEXT_SETTING_PAGE_MAXLENGTH20 20 +#define AKNEIK_VOLUME_SETTING_VALUE 5 + +#define AKNEIK_EDITOR_MIN_VALUE 0 +#define AKNEIK_EDITOR_MAX_VALUE 20 +#define AKNEIK_EDITOR_MAXFRACT_VALUE 2 + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctestuifw_BMP_FNAME APP_BITMAP_DIR"\\BCTestuifw.mbm" + +// for Volume Setting Page +#define BCTEST_MIX50PATCH_VOLUME_SETTING_PAGE_NUMBER 1 +#define BCTEST_MIX50PATCH_VOLUME_SETTING_PAGE_VALUE 8 + +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_NUMBER 1 +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_WIDTH 9 +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_WIDTH 9 +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_LINES 5 +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_MAXLENGTH10 10 +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_MAXLENGTH20 20 +#define BCTEST_MIX50PATCH_TEXT_SETTING_PAGE_MAXLENGTH30 30 + +// for Slider Setting Page +#define BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_NUMBER 1 +#define BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_MINVALUE 0 +#define BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_MAXVALUE 101 +#define BCTEST_MIX50PATCH_SLIDER_SETTING_PAGE_STEP 1 + +// for AknSettingPage +#define BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_NUMBER 1 +#define BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_WIDTH 9 +#define BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_LINES 5 +#define BCTEST_MIX50PATCH_AKNEIK_TEXT_SETTING_PAGE_MAXLENGTH20 20 + +// for Alpha Password Setting Page +#define BCTEST_MIX50PATCH_ALPHA_PASSWORD_SETTING_PAGE_NUMBER 1 +#define BCTEST_MIX50PATCH_ALPHA_PASSWORD_LENGTH_OF_STRING 8 + +//For Ip address editor +#define BCTEST_MIX50PATCH_IPADDRESS_MIN_FIRST_FIELD_VALUE 0 +#define BCTEST_MIX50PATCH_IPADDRESS_MIN_SECOND_FIELD_VALUE 0 +#define BCTEST_MIX50PATCH_IPADDRESS_MIN_THIRD_FIELD_VALUE 0 +#define BCTEST_MIX50PATCH_IPADDRESS_MIN_FOURTH_FIELD_VALUE 0 +#define BCTEST_MIX50PATCH_IPADDRESS_MAX_FIRST_FIELD_VALUE 255 +#define BCTEST_MIX50PATCH_IPADDRESS_MAX_SECOND_FIELD_VALUE 255 +#define BCTEST_MIX50PATCH_IPADDRESS_MAX_THIRD_FIELD_VALUE 255 +#define BCTEST_MIX50PATCH_IPADDRESS_MAX_FOURTH_FIELD_VALUE 255 + +// for Time Setting Page +#define BCTEST_MIX50PATCH_TIME_SETTING_PAGE_NUMBER 1 +#define BCTEST_MIX50PATCH_TIME_EDITOR_MIN_SECOND 0 +#define BCTEST_MIX50PATCH_TIME_EDITOR_MIN_MINUTE 0 +#define BCTEST_MIX50PATCH_TIME_EDITOR_MIN_HOUR 0 +#define BCTEST_MIX50PATCH_TIME_EDITOR_MAX_SECOND 59 +#define BCTEST_MIX50PATCH_TIME_EDITOR_MAX_MINUTE 59 +#define BCTEST_MIX50PATCH_TIME_EDITOR_MAX_HOUR 23 + +#define BCTEST_MIX50PATCH_CHECKBOX_SETTING_PAGE_NUMBER 1 +#define AKNTAQUERY_EDWIN_WIDTH 5 +#define AKNTAQUERY_EDWIN_MAXLENGTH 128 +#endif // BCTESTMIX50_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,136 @@ +/* +* 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 header file +* +*/ + + +// caption +#define qtn_apps_short_caption "Mix50" +#define qtn_apps_caption "BCTestMix50" + +// MenuBar +#define qtn_bctestmix50_menubar "Option" +#define qtn_bctestmix50_cba_next "Next" +#define qtn_bctestmix50_autotest "Autotest" +#define qtn_bctestmix50_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestmix50_outline1 "Outline01" +#define qtn_bctestmix50_outline2 "Outline02" +#define qtn_bctestmix50_outline3 "Outline03" +#define qtn_bctestmix50_outline4 "Outline04" +#define qtn_bctestmix50_outline5 "Outline05" +#define qtn_bctestmix50_outline6 "Outline06" +#define qtn_bctestmix50_outline7 "Outline07" +#define qtn_bctestmix50_outline8 "Outline08" +#define qtn_bctestmix50_outline9 "Outline09" +#define qtn_bctestmix50_outline10 "Outline10" +#define qtn_bctestmix50_outline11 "Outline11" +#define qtn_bctestmix50_outline12 "Outline12" +#define qtn_bctestmix50_outline13 "Outline13" +#define qtn_bctestmix50_outline14 "Outline14" +#define qtn_bctestmix50_outline15 "Outline15" +#define qtn_bctestmix50_outline16 "Outline16" +#define qtn_bctestmix50_outline17 "Outline17" +#define qtn_bctestmix50_outline18 "Outline18" +#define qtn_bctestmix50_outline19 "Outline19" +#define qtn_bctestmix50_outline20 "Outline20" +#define qtn_bctestmix50_outline21 "Outline21" + +#define qtn_eikdialog_width 8 +#define qtn_eikdialog_line 5 +#define qtn_eikdialog_base_line 21 + +#define qtn_bctestmix50_min_txt "min" +#define qtn_bctestmix50_max_txt "max" +#define qtn_bctestmix50_value_txt "value" +#define qtn_bctestmix50_singular_txt "singular" + +#define qtn_bctestmix50_buff "bctestmix50" + +// mix50 patch begins +// Caption +#define qtn_bctest_mix50patch_apps_tavl_list "BCTestMix50Patch" +#define qtn_bctest_mix50patch_apps_tavl_grid "BCTestMix50Patch" + +// MenuBar +#define qtn_bctestmix50patch_menubar "Option" +#define qtn_bctestmix50patch_cba_next "Next" +#define qtn_bctestmix50patch_autotest "Autotest" +#define qtn_bctestmix50patch_menu_exit "Exit" + +// softkey +#define qtn_bctest_mix50patch_text_softkey_option "Options" + +// outline +#define qtn_bctestmix50patch_outline2 "Outline02" +#define qtn_bctestmix50patch_outline3 "Outline03" +#define qtn_bctestmix50patch_outline4 "Outline04" + +// Confirmation Note Lavel +#define qtn_bctest_mix50patch_note_singular "CAknNoteDialog test!" +#define qtn_bctest_mix50patch_note_plural "Success!" + +// Title for volume setting page +#define qtn_bctest_mix50patch_setpage_volume_title "Volume" +//Title for slider settingpage +#define qtn_bctest_mix50patch_setpage_slider_title "Slider" + +// Slider Setting Page +#define qtn_slider_minlabel "darker" +#define qtn_slider_maxlabel "lighter" + +// CAknSettingPage +#define qtn_bctest_mix50patch_text_title "CAknSettingPage" + +//Title for radio button settingpage +#define qtn_bctest_mix50patch_setpage_radiobtn_title "Radio buttons" +#define qtn_bctest_mix50patch_setpage_menubar "Option" +#define qtn_bctest_mix50patch_setpage_radiobtn_setarray_select_item "SetArray & Select" +#define qtn_bctest_mix50patch_setpage_radiobtn_selcur_item "SelectCurrentItem" + +//Title for password settingpage +#define qtn_bctest_mix50patch_password_setpage_title "Password SettingPage" +#define qtn_bctest_mix50patch_setpage_text_title "Text SettingPage" + +//Title for radio button settingpage +#define qtn_bctest_mix50patch_setpage_radiobtn_title "Radio buttons" +#define qtn_bctest_mix50patch_setpage_menubar "Option" +#define qtn_bctest_mix50patch_setpage_radiobtn_setarray_select_item "SetArray & Select" +#define qtn_bctest_mix50patch_setpage_radiobtn_selcur_item "SelectCurrentItem" + +// for check box setting page +#define qtn_bctest_mix50patch_list_multi_title "check box setting page" +#define qtn_bctest_mix50patch_list_softkey_next "next" +#define qtn_bctest_mix50patch_list_item_s1 "aaaaaa" +#define qtn_bctest_mix50patch_list_item_s2 "bbbbbb" +#define qtn_bctest_mix50patch_list_item_s3 "cccccc" +#define qtn_bctest_mix50patch_list_item_s4 "dddddd" + +#define PHONE "C:\\Data\\" +#define MMC "E:\\" + +// text +#define qtn_bctest_mix50patch_pane_title_pane "Title pane" +#define qtn_bctest_mix50patch_pane_tab "Tab0" +#define qtn_bctest_mix50patch_pane_navelabel "Navigation" +#define qtn_bctest_mix50patch_volume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctest_mix50patch_volume_text_other_app_name "BCTestSoftkey" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50app.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50app.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* 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 "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: declaration of app. +* +*/ + + +#ifndef C_BCTESTMIX50APP_H +#define C_BCTESTMIX50APP_H + +#include + +const TUid KUidBCTestMix50 = { 0xA00040AB }; // UID of the application. + +/** + * CBCTestMix50App class. + * Provides factory to create concrete document object. + */ +class CBCTestMix50App : public CAknApplication + { + +private: + +// From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestMix50Document document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestMix50 ). + * @return The value of KUidBCTestMix50. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTMIX50APP_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50appui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50appui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,78 @@ +/* +* 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 "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: declaration of appui. +* +*/ + + +#ifndef C_BCTESTMIX50APPUI_H +#define C_BCTESTMIX50APPUI_H + +#include + +class CBCTestMix50View; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestMix50AppUi : public CAknViewAppUi + { + +public: // Constructors and destructor + + /** + * constructor + */ + CBCTestMix50AppUi(); + + /** + * symbian 2nd constructor + */ + void ConstructL(); + + /** + * destructor + */ + virtual ~CBCTestMix50AppUi(); + +private: + +//From base class CEikAppUi + + /** + * From CEikAppUi + * @param aCommand, ID of the command to respond to + */ + void HandleCommandL( TInt aCommand ); + +private: // member data + + /** + * pointor to the view. + * own + */ + CBCTestMix50View* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + }; + +#endif // C_BCTESTMIX50APPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50case.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50case.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,213 @@ +/* +* 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 "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: declaration of test case +* +*/ + + +#ifndef C_BCTESTMIX50CASE_H +#define C_BCTESTMIX50CASE_H + +#include "bctestcase.h" + +class CBCTestMix50Container; +class CCoeControl; + +/** + * test case for various classes + */ +class CBCTestMix50Case: public CBCTestCase + { + +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMix50Case* NewL( CBCTestMix50Container* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestMix50Case(); + +public: +// from base class CBCTestCase + + /** + * from base class CBCTestCase + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test for CFormattedCellListBoxData + */ + void TestCFormattedCellListBoxDataCaseL(); + + /** + * Test for CAknSearchField + */ + void TestCAknSearchFieldCaseL(); + + /** + * Test for CAknPopupList + */ + void TestCAknPopupListCaseL(); + + /** + * Test for CAknMessageQueryControl + */ + void TestCAknMessageQueryControlCaseL(); + + /** + * Test for CAknPopupHeadingPane + */ + void TestCAknPopupHeadingPaneCaseL(); + + /** + * Test for CEikButtonGroupContainer + */ + void TestCEikButtonGroupContainerCaseL(); + + /** + * Test for CEikCba + */ + void TestCEikCbaCaseL(); + + /** + * Test for CEikEdwin + */ + void TestCEikEdwinCaseL(); + + /** + * Test for CAknSlider + */ + void TestCAknSliderCaseL(); + + /** + * Test for CEikDialog + */ + void TestCEikDialogCaseL(); + + /** + * Test for CEikCaptionedControl + */ + void TestCEikCaptionedControlCaseL(); + + /** + * Test for CAknVolumeControl + */ + void TestCAknVolumeControlCaseL(); + + /** + * Test for CAknSettingPage + */ + void TestCAknSettingPageCaseL(); + + /** + * Test for CEikListBox + */ + void TestCEikListBoxCaseL(); + + /** + * Test for CAknEdwinState + */ + void TestCAknEdwinStateCaseL(); + + /** + * Test for CEikMenuPane + */ + void TestCEikMenuPaneCaseL(); + + /** + * Test for CAknGrid + */ + void TestCAknGridCaseL(); + + /** + * Test for CColumnListBoxItemDrawer + */ + void TestCColumnListBoxItemDrawerCaseL(); + + /** + * Test for CAknLocationEditor + */ + void TestCAknLocationEditorCaseL(); + + /** + * Test for CEikMfne + */ + void TestCEikMfneCaseL(); + + /** + * Test for CAknUnitEditor + */ + void TestCAknUnitEditorCaseL(); + + /** + * Test for CColumnListBoxData + */ + void TestCColumnListBoxDataCaseL(); + /** + * Test for MTouchFeedback + */ + void TestTouchFeedback() ; + /** + * Test for CAknchoicelist + */ + void TestCAknchoicelist(); + + /** + * Test for CAknButton + */ + //komala void TestCAknButton(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMix50Case( CBCTestMix50Container* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // memeber data + + /** + * Pointer to CEikonEnv + * own + */ + CEikonEnv* iEnv; + + /** + * Pointer to container. + * not own + */ + CBCTestMix50Container* iContainer; + + }; + +#endif // C_BCTESTMIX50CASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50container.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50container.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,98 @@ +/* +* 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 "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: declaration of container +* +*/ + + +#ifndef C_BCTESTMIX50CONTAINER_H +#define C_BCTESTMIX50CONTAINER_H + +#include + +/** + * container class + */ +class CBCTestMix50Container: public CCoeControl + { + friend class CBCTestMix50PatchControlCase; + friend class CBCTestMix50ListColumnCase; + +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestMix50Container(); + + /** + * Destructor + */ + virtual ~CBCTestMix50Container(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: + +// from CCoeControl + + /** + * from CCoeControl + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + * @return pointer to the component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: + +// from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // member data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTMIX50CONTAINER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50document.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50document.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: declaration of document +* +*/ + + +#ifndef C_BCTESTMIX50DOCUMENT_H +#define C_BCTESTMIX50DOCUMENT_H + +#include + +class CEikAppUi; + +/** + * CBCTestMix50Document class. + */ +class CBCTestMix50Document : public CEikDocument + { + +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestMix50Document* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestMix50Document(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestMix50Document( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestMix50AppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTMIX50DOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50extendclasses.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50extendclasses.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,174 @@ +/* +* 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 "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: declaration of testting needed extend classes. +* +*/ + + +#ifndef C_BCTESTMIX50EXTENDCLASSES_H +#define C_BCTESTMIX50EXTENDCLASSES_H + +#include +#include +#include +#include +#include +#include + + +/* + * following class test for CAknPopupList::FadeBehindPopup(protected) + */ +class CBCTestCAknPopupList: public CAknPopupList + { + friend class CBCTestMix50Case; + +public: + /** + * Symbian static 2nd constructor + */ + static CBCTestCAknPopupList* NewL( CEikListBox* aListBox ); + }; + + +/* + * following class for UpdateCommandObserverL testing + */ +class TBCTestCommandObserver: public MEikCommandObserver + { +private: + /* + * realize the interface function ProcessCommandL + */ + void ProcessCommandL( TInt /*aCommandId*/ ); + }; + + +/* + * following class for SetPointerEventObserver tesing + */ +class TBCTestPointerObserver: public MPointerEventObserver + { +private: + /* + * realize the interface function PointerEvent + */ + bool PointerEvent( CEikCaptionedControl* /*aControl*/, + const TPointerEvent& /*aPointerEvent*/ ); + }; + +/* + * test for CAknSettingPage::TextLabel/ShadowText ( protected ) + */ +class CBCTestCAknSettingPage: public CAknSettingPage + { + friend class CBCTestMix50Case; + +public: + CBCTestCAknSettingPage::CBCTestCAknSettingPage( TInt aResourceId ); + + CBCTestCAknSettingPage::CBCTestCAknSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ); + }; + + +/* + * following class for AddSelectionObserverL/RemoveSelectionObserver + */ +class TBCTestSelectionObserver: public MListBoxSelectionObserver + { + void SelectionModeChanged( CEikListBox* /*aListBox*/, + TBool /*aSelectionModeEnabled*/ ); + }; + +/* + * following class for SetCcpuState + */ +class TBCTestCcpuEditor: public MEikCcpuEditor + { +private: + /* + * realize the interface function CcpuIsFocused + */ + TBool CcpuIsFocused() const; + + /* + * realize the interface function CcpuCanCut + */ + TBool CcpuCanCut() const; + + /* + * realize the interface function CcpuCutL + */ + void CcpuCutL(); + + /* + * realize the interface function CcpuCanCopy + */ + TBool CcpuCanCopy() const; + + /* + * realize the interface function CcpuCopyL + */ + void CcpuCopyL(); + + /* + * realize the interface function CcpuCanPaste + */ + TBool CcpuCanPaste() const; + + /* + * realize the interface function CcpuPasteL + */ + void CcpuPasteL(); + + /* + * realize the interface function CcpuCanUndo + */ + TBool CcpuCanUndo() const; + + /* + * realize the interface function CcpuUndoL + */ + void CcpuUndoL(); + }; + + +/* + * following class for CAknGrid::MopSupplyObject + */ +class CBCTestCAknGrid: public CAknGrid + { + friend class CBCTestMix50Case; + +public: + CBCTestCAknGrid(); + + }; + +/* + * following class for CAknLocationEditor::CAknLocationEditor_ExtensionInterface + */ +class CBCTestCAknLocationEditor: public CAknLocationEditor + { + friend class CBCTestMix50Case; +private: + void* CAknLocationEditor_ExtensionInterface( TUid aInterface ); + }; + +#endif //C_BCTESTMIX50EXTENDCLASSES_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchcolumnbasecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchcolumnbasecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,145 @@ +/* +* 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: base test case for various list classes +* +*/ + + +#ifndef C_BCTESTMIX50PATCHCOLUMNBASECASE_H +#define C_BCTESTMIX50PATCHCOLUMNBASECASE_H + +#include "bctestcase.h" + +class CBCTestMix50Container; +class CEikListBox; +class CEikTextListBox; +class CEikColumnListBox; +class CEikFormattedCellListBox; +class CTextListBoxModel; +class CEikonEnv; +class CGulIcon; + +const TInt KBCTestListInitListResourceId = 0; +const TInt KBCTestListInitEmptyResourceId = 0; +const TInt KBCTestListMessageInitId = 0; +const TInt KBCTestListAddInitCount = 0; +const TInt KBCTestListRemoveInitCount = 0; +const TInt KBCTestListGraphicGulIconIndex = 10; +const TInt KBCTestListDefaultFlag = 0; +_LIT(KAvkonMbmFileName, "\\resource\\apps\\avkon2.mbm"); +_LIT(KBCTestListMbmFileName, "\\resource\\apps\\bctestmix50.mbm"); +//Define .mif file for .svg icons +_LIT(KBCTestListMifFileName, "\\resource\\apps\\bctestmix50.mif"); + +/** +* list base case class +* @since S60 v5.0 +*/ +class CBCTestMix50ListBaseCase: public CBCTestCase + { +public: + +// constructor and destructor + + CBCTestMix50ListBaseCase( CBCTestMix50Container* iContainer, + CEikonEnv* aEikEnv = NULL ); + + ~CBCTestMix50ListBaseCase(); + +// new functions + + /** + * Sets listbox from resource using ConstructFromResourceL() of + * CEikColumnListBox class. + * @param aListBox Pointer of listbox. + * @param aResourceId Resource ID of listbox. + */ + void SetListBoxFromResourceL( CEikColumnListBox* aListBox, + const TInt aResourceId ); + + /** + * Sets listbox from resource using ConstructFromResourceL() of + * CEikFormattedCellListBox class. + * @param aListBox Pointer of listbox. + * @param aResourceId Resource ID of listbox. + */ + void SetListBoxFromResourceL( CEikFormattedCellListBox* aListBox, + const TInt aResourceId ); + + /** + * Sets listbox from inner description using ConstructL() of + * CEikColumnListBox class. + * @param aListBox Pointer of listbox. + * @param aFlags Flags of listbox. + * @param textArray List items as CDesCArray. + */ + void SetListBoxFromInnerDescriptionL( + CEikColumnListBox* aListBox, + const TInt aFlags = KBCTestListDefaultFlag, + CDesCArray* textArray = NULL ); + + /** + * Sets listbox from inner description using ConstructL() of + * CEikFormattedCellListBox class. + * @param aListBox Pointer of listbox. + * @param aFlags Flags of listbox. + * @param textArray List items as CDesCArray. + */ + void SetListBoxFromInnerDescriptionL( + CEikFormattedCellListBox* aListBox, + const TInt aFlags = KBCTestListDefaultFlag, + CDesCArray* textArray = NULL ); + + /** + * Sets graphic icon using listbox as CEikColumnListBox. + * @param aListBox Pointer of listbox. + */ + void SetGraphicIconL( CEikColumnListBox* aListBox ); + + /** + * Sets graphic icon using listbox as CEikFormattedCellListBox. + * @param aListBox Pointer of listbox. + */ + void SetGraphicIconL( CEikFormattedCellListBox* aListBox ); + + /** + * Creates the icon and adds it to the array if it was successful + * @param aIconsArray Pointer of icon using graphics for listbox. + * @param aIconFile the path of iconfile using graphics for listbox. + * @param aBitmap the resource id of Bitmap. + * @param aMask the resource id of MaskBitmap. + */ + void CreateIconAndAddToArrayL( CArrayPtr*& aIconsArray, + const TDesC& aIconFile, + TInt aBitmap, TInt aMask = -1); + +private: // New Function + + /** + * Appends graphics data. + * @param aIcons Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +protected: // data + + CBCTestMix50Container* iContainer; // not own + + CEikonEnv* iEikEnv; // not own + + TInt iOutlineId; + + }; + +#endif /*BCTESTMIX50PATCHCOLUMNBASECASE_H*/ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchcolumncase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchcolumncase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,326 @@ +/* +* 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 case for column list classes +* +*/ + + +#ifndef C_BCTESTMIX50PATCHCOLUMNCASE_H +#define C_BCTESTMIX50PATCHCOLUMNCASE_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include "bctestmix50patchcolumnbasecase.h" + +class CEikColumnListBox; +class CBCTestMix50Container; +class CEikTextListBox; +class CSubSnakingListBoxView; + +/** +* test case for various list classes +*/ +class CBCTestMix50ListColumnCase: public CBCTestMix50ListBaseCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMix50ListColumnCase* NewL( + CBCTestMix50Container* aContainer, CEikonEnv* aEikEnv ); + + /** + * Destructor + */ + virtual ~CBCTestMix50ListColumnCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: + +// new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Release resource used by test case + */ + void ReleaseCase(); + + /** + * test CEikSnakingTextListBox + */ + void TestSnakingTextListBoxL(); + + /** + * test CEikTextListBox + */ + void TestEikTextListBoxL(); + + /** + * test CTextListBoxModel + */ + void TestTextListBoxModelL(); + + /** + * test CEikSnakingListBoxL + */ + void TestEikSnakingListBoxL(); + + /** + * test CEikListBox + */ + void TestEikListBoxL(); + + /** + * test CSnakingListBoxView + */ + void TestSnakingListBoxViewL(); + + /** + * test CListBoxView + */ + void TestListBoxViewL(); + + /** + * test TextListItemDrawer + */ + void TestTextListItemDrawerL(); + + /** + * test CEikListBoxTextEditor + */ + void TestListBoxTextEditorL(); + + /** + * test CListBoxData and CFontsWithStyle + */ + void TestListBoxDataL(); + + /** + * test CFormattedCellListBoxData + */ + void TestFormattedCellListBoxDataL(); + + /** + * test CEikFormattedCellListBox + */ + void TestFormattedCellListBoxL(); + + /** + * test CColumnListBoxData + */ + void TestColumnListBoxDataL(); + + /** + * test CEikColumnListBox + */ + void TestColumnListBoxL(); + + /** + * test CAknSelectionListDialog CAknMarkableListDialog + */ + void TestSelectionListDialogL(); + + /** + * test AknListBoxLayouts + */ + void TestListBoxLayoutsL(); + + /** + * test CEikConsoleScreen + */ + void TestConsoleScreenL(); + + /** + * test CEikCapCArray + */ + void TestCapCArrayL(); +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestMix50ListColumnCase( CBCTestMix50Container* aContainer, + CEikonEnv* aEikEnv ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +// from CBCTestListBaseCase + + /** + * Appends graphics data. + * @param Pointer of icon using graphics for listbox. + */ + virtual void GraphicIconL( CArrayPtr* aIcons ); + +private: // data + + /** + * Own + */ + CEikColumnListBox* iListBox; + }; +/** + * Test class for protected API of CEikTextListBox + */ +class CSubEikTextListBox: public CEikTextListBox + { +public: + /** + * Test WriteInternalStateL + */ + void TestWriteInternalStateL(RWriteStream& aWriteStream) const; + /** + * Test CreateItemDrawerL + */ + void TestCreateItemDrawerL(); + + }; +/** + * Test class for protected API of CTextListBoxModel + */ +class CSubTextListBoxModel: public CTextListBoxModel + { +public: + /** + * Test ItemArrayOwnershipType + */ + TListBoxModelItemArrayOwnership TestItemArrayOwnershipType() const; + }; +/** + * Test class for protected API of CEikSnakingListBox + */ +class CSubEikSnakingListBox: public CEikSnakingListBox + { + friend class CBCTestMix50ListColumnCase; + }; +/** + * Test class for protected API of CEikListBox + */ +class CSubEikListBox: public CEikListBox + { + friend class CBCTestMix50ListColumnCase; + }; +/** + * Test class for protected API of CSnakingListBoxView + */ +class CSubSnakingListBoxView: public CSnakingListBoxView + { + friend class CBCTestMix50ListColumnCase; + }; +/** + * Test class for protected API of CListBoxView + */ +class CSubListBoxView : public CListBoxView + { + friend class CBCTestMix50ListColumnCase; + }; +/** + * Test class for protected API of CTextListItemDrawer + */ +class CSubTextListItemDrawer: public CTextListItemDrawer + { + friend class CBCTestMix50ListColumnCase; +public: + /** + * C++ constructor + */ + CSubTextListItemDrawer(MTextListBoxModel* aTextListBoxModel, + const CFont* aFont); + }; +/** + * Test class for protected API of CListItemDrawer + */ +class CSubListItemDrawer: public CListItemDrawer + { + friend class CBCTestMix50ListColumnCase; + }; +/** + * Test class for protected API of CEikListBoxTextEditor + */ +class CSubEikListBoxTextEditor: public CEikListBoxTextEditor + { + friend class CBCTestMix50ListColumnCase; +public: + CSubEikListBoxTextEditor(MListBoxModel* aModel); + }; +/** + * Test class for protected API of CListBoxData + */ +class CSubListBoxData: public CListBoxData + { + friend class CBCTestMix50ListColumnCase; +public: + /** + * add fonts to CListBoxData + */ + TInt AddActualFontL(const CFont* aBaseFont); + /** + * Test CFontWithStyle + */ + TBool TestCFontWithStyle(); + }; +/** + * Test class for protected API of CAknMarkableListDialog + */ +class CSubAknMarkableListDialog: public CAknMarkableListDialog + { + friend class CBCTestMix50ListColumnCase; +public: + /** + * 2nd constructor + */ + static CSubAknMarkableListDialog* NewL( TInt &aValue, + CArrayFix *aSelectedItems, MDesCArray *aArray ); + /** + * C++ constructor + */ + CSubAknMarkableListDialog( TInt &aValue, CArrayFix *aSelectedItems, + MDesCArray *aArray, TInt aMenuBarResourceId, + TInt aOkMenuBarResourceId, MEikCommandObserver *aObserver ); + }; +/** + * Test class for protected API of CEikConsoleScreen + */ +class CSubEikConsoleScreen: public CEikConsoleScreen + { + friend class CBCTestMix50ListColumnCase; + }; + + +#endif /*C_BCTESTMIX50PATCHCOLUMNCASE_H*/ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchcontrolcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchcontrolcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,337 @@ +/* +* 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: declaration of test case +* +*/ + + +#ifndef C_BCTESTMIX50PATCHCONTROLCASE_H +#define C_BCTESTMIX50PATCHCONTROLCASE_H + +#include +#include +#include "bctestcase.h" + +class CBCTestMix50Container; +class CCoeControl; +class MAknToolbarObserver; +class CAknStaticNoteDialog; +class CBCTestAknNoteDialog; + +/** +* test case for various classes +*/ +class CBCTestMix50PatchControlCase: public CBCTestCase, + public MAknToolbarObserver, + public MEikCommandObserver + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMix50PatchControlCase* NewL( + CBCTestMix50Container* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestMix50PatchControlCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test the bitmap animation apis + */ + void TestAnimationL(); + + /** + * Test the buttons api + */ + void TestButtonsL(); + + /* + * Test the choice list api + */ + void TestChoiceListL(); + + /* + * Test the common file api + */ + void TestCommonFileL(); + + /* + * Test the common file api + */ + void TestSelectCommonFileL(); + + /* + * Test the common file api + */ + void TestSaveCommonFileL(); + + /* + * Test the document handler api + */ + void TestDocumentHandlerL(); + + /* + * Test the fonts api + */ + void TestFontsL(); + + /* + * Test the generic buttons api and grids api + */ + void TestGridsL(); + + /* + * Test the hlist and hotkey api + */ + void TestHListsAndHotkeysL(); + + /* + * Test miscellaneous apis + */ + void TestMiscellOneL(); + + /* + * Test the initialization apis + */ + void TestInitializationL(); + + /* + * Test the input language apis + */ + void TestInputLanL(); + + /* + * Test menus apis + */ + void TestMenusL(); + + /* + * Test the notes apis + */ + void TestNotesL(); + + /* + * Test another miscellaneous apis + */ + void TestMiscellTwoL(); + + /* + * Test the notifier apis + */ + void TestNotifierL(); + + /* + * Test the buttons apis + */ + void TestPopupsL(); + + /* + * Test the ui framework apis + */ + void TestUIFrmL(); + + /* + * Test the queries apis + */ + void TestQueriesL(); + + /* + * Test the scroller apis + */ + void TestScrollerL(); + + /* + * Test the search field api + */ + void TestSearchfieldL(); + + /* + * Test the setting page apis + */ + void TestSettingPagesL(); + + /* + * Test the title pane apis + */ + void TestTitlePaneL(); + + /* + * Test the toolbar apis + */ + void TestAknToolbarL(); + + /* + * Test touch pane api + */ + void TestAknTouchPaneL(); + + /* + * Test CAknEnv apis + */ + void TestAknEnvL(); + + /* + * Test volume control api + */ + void TestAknVolumeControlL(); + + /* + * Test image item data + */ + void TestImageTableItemDataL(); + + /* + * Test image item data + */ + void TestMBmpItemDataL(); + + /* + * Test color table item data + */ + void TestColTableItemDataL(); + + /* + * Test a bunch of background control context apis + */ + void TestBackgroundCCL(); + + /* + * Test AknLayoutUtils apis + */ + void TestAknLayoutUtilsL(); + + /* + * Test AknsUtils apis + */ + void TestAknsUtilsL(); + + /* + * Test AknsDrawUtils apis + */ + void TestAknsDrawUtilsL(); + + /* + * Test various dialog classes api + */ + void TestDialogsL(); + + /* + * Test popup control apis + */ + void TestPopupL(); + + /* + * Test state related objects + */ + void TestStatesL(); + + /* + * Test ip field editor apis + */ + void TestIpFieldEditorL(); + + /* + * Test icon array apis + */ + void TestIconArrayL(); + + /* + * Test additional apis + */ + void TestAdditionL(); + //5.2 specific + /* + * Test AknPopupUtils apis + */ + void TestAknPopupUtilsL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMix50PatchControlCase( CBCTestMix50Container* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * Handles toolbar events for a certain toolbar item. + * @param aCommand The command ID of some toolbar item. + */ + inline void OfferToolbarEventL( TInt /* aCommand */ ){} + + /** + * ProcessComamndL + */ + inline void ProcessCommandL( TInt ){} +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestMix50Container* iContainer; + + /* + * pointer to the CCoeEnv + * not own + */ + CCoeEnv* iCoeEnv; + + /* + * pointer to the static note dialog + * own + */ + CAknStaticNoteDialog * iStaticNoteDialog; + }; +#endif /*C_BCTESTMIX50PATCHCONTROLCASE_H*/ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchmisc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchmisc.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,541 @@ +/* +* 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: declaration of test case +* +*/ + + +#ifndef C_BCTESTMIX50PATCHMISC_H +#define C_BCTESTMIX50PATCHMISC_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include +#include +#include +#include +#include +#include +#include + +class CEikCommandButtonBase; +class MEikCommandObserver; +class CBCTestUIFWViewCase; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestCommandButtonBase : public CEikCommandButtonBase + { + friend class CBCTestMix50PatchControlCase; +public: // constructor and destructor + /** + * C++ constructor + */ + static CBCTestCommandButtonBase* NewL(); + + /** + * C++ destructor + */ + virtual ~CBCTestCommandButtonBase(); + + /** + * Draw function + */ + void Draw( const TRect& aRect )const; + + /** + * From CCoeControl + * Serialize the control's state. For testing + * @param aWriteStream Stream to write to. + */ + void WriteInternalStateL(RWriteStream& aWriteStream) const; + +private: // constructor + + /** + * default constructor + */ + CBCTestCommandButtonBase(); + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestChoiceList : public CAknChoiceList + { + friend class CBCTestMix50PatchControlCase; + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestImage : public CEikImage + { + friend class CBCTestMix50PatchControlCase; + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestFadedComponent : public CBase, + public MAknFadedComponent + { + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestSearchfieldObserver : public CBase, + public MAdaptiveSearchTextObserver + { +public: + /** + * Notification and handling of an adaptive search text change. + * @param aSearchField The source search field of this message. + */ + inline void AdaptiveSearchTextChanged( CAknSearchField* ) + { + } + }; + +/** + * CBCTestVolumeSettingPage class + */ +class CBCTestVolumeSettingPage : public CAknVolumeSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestVolumeSettingPage(TInt aResourceID, TInt& aVolume); + + /** + * C++ destructor + */ + virtual ~CBCTestVolumeSettingPage(){}; + }; + +/** + * CBCTestIntegerSettingPage class + */ +class CBCTestIntegerSettingPage : public CAknIntegerSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestIntegerSettingPage(TInt aResourceID, TInt& aValue, + TInt aTextSettingPageFlags = 0 ); + + /** + * Destructor + */ + virtual ~CBCTestIntegerSettingPage(){}; + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestTextSettingPage : public CAknTextSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestTextSettingPage(TInt aResourceID, TDes& aText, + TInt aTextSettingPageFlags = 0 ); + + /** + * Destructor + */ + virtual ~CBCTestTextSettingPage(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestSliderSettingPage : public CAknSliderSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestSliderSettingPage(TInt aResourceID, TInt& aSliderValue); + + /** + * Destructor + */ + virtual ~CBCTestSliderSettingPage(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestPatchAknSettingPage: public CAknSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestPatchAknSettingPage( TInt aResourceId ); + + /** + * Destructor + */ + virtual ~CBCTestPatchAknSettingPage(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestRadioButtonSettingPage : public CAknRadioButtonSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestRadioButtonSettingPage( + TInt aResourceID, + TInt& aCurrentSelectionIndex, + const MDesCArray* aItemArray ); + + /** + * Destructor + */ + virtual ~CBCTestRadioButtonSettingPage(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestNumericPasswordSettingPage : + public CAknNumericPasswordSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestNumericPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword); + + /** + * Destructor + */ + virtual ~CBCTestNumericPasswordSettingPage(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestAlphaPasswordSettingPage : public CAknAlphaPasswordSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestAlphaPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword); + + /** + * Destructor + */ + virtual ~CBCTestAlphaPasswordSettingPage(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestPasswordSettingPage : public CAknPasswordSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword); + /** + * Destrucotor + */ + virtual ~CBCTestPasswordSettingPage(){} + + /** + * Update the text + */ + inline void UpdateTextL(){} + }; + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestIpFieldSettingPage : public CAknIpFieldSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestIpFieldSettingPage( TInt aResourceID, TInetAddr& aIpAddress ); + }; + + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestTimeOffsetSettingPage : public CAknTimeOffsetSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestTimeOffsetSettingPage( TInt aResourceID, + TTimeIntervalSeconds& aTimeOffsetValue ); + }; + + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestCheckBoxSettingPage: public CAknCheckBoxSettingPage + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ Constructor + */ + CBCTestCheckBoxSettingPage(TInt aResourceID, + CSelectionItemList* aItemArray ); + }; + + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestSnakingListBox : public CEikSnakingListBox + { + friend class CBCTestMix50PatchControlCase; + }; + +/** +* helper class for test CAknAppUi +*/ +class CAknAppUiEx: public CAknAppUi + { + friend class CBCTestMix50PatchControlCase; + friend class CBCTestMix50PatchViewCase; +public: + + /** + * C++ Constructor + */ + CAknAppUiEx(); + + /** + * Destructor + */ + virtual ~CAknAppUiEx(); + +protected: + /** + * Symbian second-phase constructor + */ + void Construct(); + }; + + +/** + * CBCTestSingleStyleListBox class + */ +class CBCTestMAknAliasKeyCodeResolver : public CBase, + public MAknAliasKeyCodeResolver + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * Resolves keyboard layout dependent keycode for the given event + * @since S60 3.1 + * @param aCode reference to variable to contain new keycode + * @param aKeyEvent reference to original, complete, event + * @param aType indicating original event type + * @return KErrNone on success, otherwise system wide error codes + */ + inline TInt GetAliasKeyCode(TUint& /* aCode */, + const TKeyEvent& /* aKeyEvent */,TEventCode /* aType */ ) + { return 0; } + }; + +/** + * CBCTestFepPen class + */ +/* Subbu +class CBCTestFepPen: public CBase, public MAknFepPenSupportInterface + { + +public: +Subbu */ + /** + * Start pen input method + * + * @since S60 v3.2 + * @return None + */ + //Subbu inline void ActivatePenInputL(){} + + /** + * Close pen input method + * + * @since S60 v3.2 + * @return None + */ +//Subbu inline void DeactivatePenInputL(){} +//Subbu }; + + +/** + * CBCTestEikFileNameLabel class + */ +class CBCTestEikFileNameLabel : public CEikFileNameLabel + { + friend class CBCTestMix50PatchControlCase; + }; + +/** + * MonkFilter + */ +struct MonkFilter: public MAknFileFilter + { + + /** + * Checks if a file is accepted by the filter. + * @param aDriveAndPath Drive and full path of the file. + * @param aEntry A directory entry. + * @return Returns ETrue if filter accepts the file. + */ + TBool Accept( const TDesC& /*aDriveAndPath*/, + const TEntry& /*aEntry*/ ) const + { + return ETrue; + } + }; + +/** +* helper class for test CAknAppServiceBase +*/ +class CBCTestAppServiceBase : public CAknAppServiceBase, + public MAknServerAppExitObserver + { + friend class CBCTestMix50PatchViewCase; +public: + /** + * Handle the exit of a connected server app. + * This implementation provides Series 60 default behavior + * for handling of the EAknCmdExit exit code. Derived classes + * should base-call this implementation if they override this + * function. + * @param aReason The reason that the server application exited. + * This will either be an error code, + * or the command id that caused + * the server app to exit. + */ + void HandleServerAppExit(TInt aReason); + +protected: + /** + * Override of CSession2::CreateL(). + * If further overridden, this function must be base-called. + */ + void CreateL(); + + /** + * Override of CSession2::ServiceL(). + * If further overridden, this function must be base-called. + * @param aMessage The client message + */ + void ServiceL(const RMessage2& aMessage); + + /** + * Override of CSession2::ServiceError(). + * If further overridden, this function must be base-called. + * @param aMessage The client message. + * @param aError The error code to which + * occured during message servicing + */ + void ServiceError(const RMessage2& aMessage,TInt aError); + }; + +/** +* helper class for test CAknNoteDialog +*/ +class CBCTestAknNoteDialog : public CAknNoteDialog + { + friend class CBCTestMix50PatchControlCase; +public: + /** + * C++ default constructor. + * + * @param aSelfPtr Pointer to the address of the dialog. + * @param aTone = @c ENoTone The tone. + * @param aTimeout = @c ENoTimeout The timeout (microseconds). + * @see @c TTone, @c TTimeout. + */ + IMPORT_C CBCTestAknNoteDialog(CEikDialog** aSelfPtr, + const TTone& aTone = ENoTone, + const TTimeout& aTimeout = ENoTimeout) + : CAknNoteDialog( aSelfPtr, aTone, aTimeout ) + { + + } + + /** + * Deletes the note dialog. + * + * @see @c TTimer, @c OkToExitL(), @c ExitSleepingDialog(). + * @param aThis Pointer to the dialog. + * @return Always returns @c EFalse. + */ + IMPORT_C static TInt OwnStaticDeleteL(TAny* aThis) + { + return CAknNoteDialog::StaticDeleteL( aThis ); + } + }; +#endif /*C_BCTESTMIX50PATCHMISC_H*/ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchviewcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50patchviewcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,142 @@ +/* +* 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: view test case +* +*/ + + +#ifndef C_BCTESTMIX50PATCHVIEWCASE_H +#define C_BCTESTMIX50PATCHVIEWCASE_H + +#include "bctestcase.h" + +class CBCTestMix50Container; +class CBCTestMix50View; +class CCoeControl; + +/** +* test case for various classes +*/ +class CBCTestMix50PatchViewCase: public CBCTestCase, + public MAknAliasKeyCodeResolver + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestMix50PatchViewCase* NewL( + CBCTestMix50Container* aContainer, + CBCTestMix50View* aView ); + + /** + * Destructor + */ + virtual ~CBCTestMix50PatchViewCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test the akn view + */ + void TestAknViewL(); + + /** + * Test appui + */ + void TestAknAppUiL(); + + /** + * Test app ui base + */ + void TestAknAppUiBaseL(); + + /** + * Test app service base + */ + void TestAknAppServiceBaseL(); + + /** + * Resolves keyboard layout dependent keycode for the given event + * + * @since S60 3.1 + * @param aCode reference to variable to contain new keycode + * @param aKeyEvent reference to original, complete, event + * @param aType indicating original event type + * @return KErrNone on success, otherwise system wide error codes + */ + inline TInt GetAliasKeyCode(TUint& /* aCode */, + const TKeyEvent& /* aKeyEvent */,TEventCode /* aType */ ) + { + return 0; + } + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMix50PatchViewCase( CBCTestMix50Container* aContainer, + CBCTestMix50View* aView ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to view + * own + */ + CBCTestMix50View* iView; + /** + * Pointer to view + * own + */ + CCoeControl* iControl; + /** + * Pointer to container. + * not own + */ + CBCTestMix50Container* iContainer; + }; + +#endif /*C_BCTESTMIX50PATCHVIEWCASE_H*/ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50view.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/inc/bctestmix50view.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,113 @@ +/* +* 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 "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: declaration of view +* +*/ + + +#ifndef C_BCTESTMIX50VIEW_H +#define C_BCTESTMIX50VIEW_H + +#include + +const TUid KBCTestMix50ViewId = { 1 }; + +class CBCTestMix50Container; +class CBCTestUtil; + +/** + * CBCTestMix50View class + * + */ +class CBCTestMix50View : public CAknView + { + +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestMix50View* NewL( CBCTestUtil* aUtil ); + + /** + * destructor + */ + virtual ~CBCTestMix50View(); + +public: + + /** + * getter of Container + */ + CBCTestMix50Container* Container(); + +// from CAknView + + /** + * from CAknView + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: + +// from CAknView + + /** + * from CAknView + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * from CAknView + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestMix50View(); + + /** + * symbian 2nd constructor + */ + void ConstructL( CBCTestUtil* aUtil ); + +private: // member data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestMix50Container* iContainer; + + }; + +#endif // C_BCTESTMIX50VIEW_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/sis/bctestmix50.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/sis/bctestmix50.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestmix50.pkg + +; Languages +&EN + +; Header +#{"bctestmix50"},(0xA00040AB),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestmix50.exe"- +"!:\sys\bin\bctestmix50.exe" + +"\epoc32\data\z\resource\apps\bctestmix50.r01"- +"!:\resource\apps\bctestmix50.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestmix50_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctestmix50_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50app.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50app.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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: app +* +*/ + + +#include + +#include "bctestmix50app.h" +#include "bctestmix50document.h" + + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// TUid CBCTestMix50App::AppDllUid() +// Returns application UID +// --------------------------------------------------------------------------- +// +TUid CBCTestMix50App::AppDllUid() const + { + return KUidBCTestMix50; + } + + +// --------------------------------------------------------------------------- +// CApaDocument* CBCTestMix50App::CreateDocumentL() +// Creates CBCTestMix50Document object +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestMix50App::CreateDocumentL() + { + return CBCTestMix50Document::NewL( *this ); + } + + +// ================= OTHER EXPORTED FUNCTIONS ================================ +// +// --------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestMix50App +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestMix50App; + } + + +// --------------------------------------------------------------------------- +// E32Main +// the main function of this application +// --------------------------------------------------------------------------- +// +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication( NewApplication ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50appui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50appui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,111 @@ +/* +* 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 "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: appui +* +*/ + + +#include +#include + +#include "bctestmix50appui.h" +#include "bctestmix50.hrh" +#include "bctestmix50view.h" +#include "bctestutil.h" +#include "bctestmix50case.h" +#include "bctestmix50patchcontrolcase.h" +#include "bctestmix50patchviewcase.h" +#include "bctestmix50patchcolumncase.h" + +_LIT( KTestCaseTitle, "mix test case" ); +_LIT( KTestControlPatchTitle, "CBCTestMix50PatchControlCase test case" ); +_LIT( KTestListboxTitle, "CBCTestMix50ListColumnCase test case" ); +_LIT( KTestViewCaseTitle, "CBCTestMix50PatchViewCase test case"); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestMix50AppUi::CBCTestMix50AppUi() +// constructor do nothing +// --------------------------------------------------------------------------- +// +CBCTestMix50AppUi::CBCTestMix50AppUi() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50AppUi::ConstructL() +// symbian 2nd phase constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50AppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestMix50View* view = CBCTestMix50View::NewL( iTestUtil ); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestMix50Case::NewL( view->Container() ), + KTestCaseTitle ); + iTestUtil->AddTestCaseL( CBCTestMix50ListColumnCase::NewL( view->Container(), + CEikonEnv::Static()), KTestListboxTitle ); + iTestUtil->AddTestCaseL( CBCTestMix50PatchControlCase::NewL( view->Container() ), + KTestControlPatchTitle ); + iTestUtil->AddTestCaseL( CBCTestMix50PatchViewCase::NewL( view->Container(), view ), + KTestViewCaseTitle ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50AppUi::~CBCTestMix50AppUi() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestMix50AppUi::~CBCTestMix50AppUi() + { + delete iTestUtil; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50AppUi::HandleCommandL() +// handle menu command events +// --------------------------------------------------------------------------- +// +void CBCTestMix50AppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50case.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50case.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1198 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include +//#include +//#include +#include +#include +#include +//#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#include "bctestmix50case.h" +#include "bctestmix50container.h" +#include "bctestmix50.hrh" +#include "bctestmix50extendclasses.h" + +const TInt KMinVal = 1; +const TInt KMaxVal = 100; +const TInt KDefaultVolumeLevel = 5; + +const TInt KXLeftPos = 0; +const TInt KYUpPos = 0; +const TInt KXRightPos = 100; +const TInt KYDownPos = 100; + +const TInt KBuffSmallSize = 32; +const TInt KBuffLargeSize = 256; +const TInt KSearchFieldMaxLength = 256; + +const TInt KIconWidth = 20; +const TInt KIconHeight = 20; + +_LIT( KTitle, "Title" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::NewL() +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50Case* CBCTestMix50Case::NewL( CBCTestMix50Container* aContainer ) + { + CBCTestMix50Case* self = new( ELeave ) CBCTestMix50Case( aContainer ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::CBCTestMix50Case() +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50Case::CBCTestMix50Case( CBCTestMix50Container* aContainer ) + : iContainer( aContainer ) + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::~CBCTestMix50Case() +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMix50Case::~CBCTestMix50Case() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::ConstructL() +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::BuildScriptL() +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::BuildScriptL() + { + // Add script + const TInt scripts[] = + { + + DELAY(1), + LeftCBA, KeyOK // Outline 1 + + }; + + AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::RunL() +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::RunL( TInt aCmd ) + { + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + { + + TestCFormattedCellListBoxDataCaseL(); + TestCAknSearchFieldCaseL(); + TestCAknPopupListCaseL(); + TestCAknMessageQueryControlCaseL(); + TestCAknPopupHeadingPaneCaseL(); + TestCEikButtonGroupContainerCaseL(); + TestCEikCbaCaseL(); + TestCEikEdwinCaseL(); + TestCAknSliderCaseL(); + TestCEikDialogCaseL(); + TestCEikCaptionedControlCaseL(); + TestCAknVolumeControlCaseL(); + TestCAknSettingPageCaseL(); + TestCEikListBoxCaseL(); + TestCAknEdwinStateCaseL(); + TestCEikMenuPaneCaseL(); + TestCAknGridCaseL(); + //TestCColumnListBoxItemDrawerCaseL(); + TestCAknLocationEditorCaseL(); + TestCEikMfneCaseL(); + TestCAknUnitEditorCaseL(); + TestCColumnListBoxDataCaseL(); + TestTouchFeedback() ; + TestCAknchoicelist(); + //TestCAknButton(); + } + + break; + default: + break; + } + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCFormattedCellListBoxDataCaseL() +// ( menu item -1- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCFormattedCellListBoxDataCaseL() + { + CFormattedCellListBoxData* formatCellListBoxData = + CFormattedCellListBoxData::NewL(); + CleanupStack::PushL( formatCellListBoxData ); + _LIT( KTxtNewL, "CFormattedCellListBoxData::NewL" ); + AssertNotNullL( formatCellListBoxData, KTxtNewL ); + + formatCellListBoxData->CurrentItemTextWasClipped(); + _LIT( KTxtCurrentItemTextWasClipped, + "CFormattedCellListBoxData::CurrentItemTextWasClipped" ); + AssertTrueL( ETrue, KTxtCurrentItemTextWasClipped ); + + CleanupStack::PopAndDestroy( formatCellListBoxData ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknSearchFieldCaseL() +// ( menu item -2- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknSearchFieldCaseL() + { + CAknSearchField* search = CAknSearchField::NewL( *iContainer, + CAknSearchField::ESearch, + NULL, KSearchFieldMaxLength ); + CleanupStack::PushL( search ); + _LIT( KTxtNewL, "CAknSearchField::NewL" ); + AssertNotNullL( search, KTxtNewL ); + + search->MakeVisible( ETrue ); + search->MakeVisible( EFalse ); + _LIT( KTxtMakeVisible, "CAknSearchField::MakeVisible" ); + AssertTrueL( ETrue, KTxtMakeVisible ); + + CleanupStack::PopAndDestroy( search ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknPopupListCaseL() +// ( menu item -3- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknPopupListCaseL() + { + CEikListBox* listBox = new( ELeave ) CEikListBox; + CleanupStack::PushL( listBox ); + + CBCTestCAknPopupList* popupList = CBCTestCAknPopupList::NewL( listBox ); + CleanupStack::PushL( popupList ); + _LIT( KTxtNewL, "CBCTestCAknPopupList::NewL" ); + AssertNotNullL( popupList, KTxtNewL ); + + popupList->FadeBehindPopup( ETrue ); + popupList->FadeBehindPopup( EFalse ); + _LIT( KTxtFadeBehindPopup, "CAknPopupList::FadeBehindPopup" ); + AssertTrueL( ETrue, KTxtFadeBehindPopup ); + + CleanupStack::PopAndDestroy( popupList ); + CleanupStack::PopAndDestroy( listBox ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknMessageQueryControlCaseL() +// ( menu item -4- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknMessageQueryControlCaseL() + { + CAknMessageQueryDialog* msgQueryDlg = + CAknMessageQueryDialog::NewL( ( TDesC& )KTitle, CAknQueryDialog::ENoTone ); + CleanupStack::PushL( msgQueryDlg ); + _LIT( KTxtCAknMessageQueryDialog, "CAknMessageQueryDialog::NewL" ); + AssertNotNullL( msgQueryDlg, KTxtCAknMessageQueryDialog ); + + msgQueryDlg->PrepareLC( R_BCTESTMIX50_EIKDIALOG ); + _LIT( KTxtPrepareLC, "CAknMessageQueryDialog::PrepareLC" ); + AssertTrueL( ETrue, KTxtPrepareLC ); + + CAknMessageQueryControl* msgCtrl = static_cast< CAknMessageQueryControl* > + ( msgQueryDlg->Control( EAknMessageQueryContentId ) ); + _LIT( KTxtCAknMessageQueryControl, + "CAknMessageQueryControl static_cast< CAknMessageQueryControl* >" ); + AssertNotNullL( msgCtrl, KTxtCAknMessageQueryControl ); + + msgCtrl->LinkHighLighted(); + _LIT( KTxtLinkHighLighted, "CAknMessageQueryControl::LinkHighLighted" ); + AssertTrueL( ETrue, KTxtLinkHighLighted ); + + CleanupStack::Pop( ); // PrepareLC + CleanupStack::PopAndDestroy( msgQueryDlg ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknPopupHeadingPaneCaseL() +// ( menu item -5- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknPopupHeadingPaneCaseL() + { + CAknPopupHeadingPane* head = new( ELeave ) CAknPopupHeadingPane(); + CleanupStack::PushL( head ); + _LIT( KTxtCAknPopupHeadingPane, + "CAknPopupHeadingPane::CAknPopupHeadingPane" ); + AssertNotNullL( head, KTxtCAknPopupHeadingPane ); + + CEikImage* image = new( ELeave ) CEikImage; + CleanupStack::PushL( image ); + + CFbsBitmap* bmpImg = new( ELeave ) CFbsBitmap; + CleanupStack::PushL( bmpImg ); + + CFbsBitmap* maskImg = new( ELeave ) CFbsBitmap; + CleanupStack::PushL( maskImg ); + + TSize iconSize( KIconWidth, KIconHeight ); + User::LeaveIfError( AknIconUtils::SetSize( bmpImg, + iconSize, EAspectRatioNotPreserved ) ); + User::LeaveIfError( AknIconUtils::SetSize( maskImg, + iconSize, EAspectRatioNotPreserved ) ); + image->SetPicture( bmpImg, maskImg ); + + TBuf< KBuffLargeSize > buff; + head->ConstructL( buff ); + _LIT( KTxtConstructL, + "CAknPopupHeadingPane::ConstructL" ); + AssertTrueL( ETrue, KTxtConstructL ); + + head->SetHeaderImageOwnedL( image ); + _LIT( KTxtSetHeaderImageOwnedL, + "CAknPopupHeadingPane::SetHeaderImageOwnedL" ); + AssertTrueL( ETrue, KTxtSetHeaderImageOwnedL ); + + CleanupStack::Pop( maskImg ); + CleanupStack::Pop( bmpImg ); + CleanupStack::Pop( image ); + CleanupStack::PopAndDestroy( head ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikButtonGroupContainerCaseL() +// ( menu item -6- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikButtonGroupContainerCaseL() + { + TInt pos = 0; + TBCTestCommandObserver cmdObserver; + CEikButtonGroupContainer* btnGroupContainer = + CEikButtonGroupContainer::Current(); + + btnGroupContainer->UpdateCommandObserverL( pos, cmdObserver ); + _LIT( KTxtUpdateCommandObserverL, + "CEikButtonGroupContainer::UpdateCommandObserverL" ); + AssertTrueL( ETrue, KTxtUpdateCommandObserverL ); + + btnGroupContainer->UpdatedCommandObserverExists( + CEikButtonGroupContainer::ELeftSoftkeyPosition ); + _LIT( KTxtUpdatedCommandObserverExists, + "CEikButtonGroupContainer::UpdatedCommandObserverExists" ); + AssertTrueL( ETrue, KTxtUpdatedCommandObserverExists ); + + btnGroupContainer->RemoveCommandObserver( pos ); + _LIT( KTxtRemoveCommandObserver, + "CEikButtonGroupContainer::RemoveCommandObserver" ); + AssertTrueL( ETrue, KTxtRemoveCommandObserver ); + + } + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikCbaCaseL() +// ( menu item -6.1- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikCbaCaseL() +{ + CEikButtonGroupContainer* btnGroupContainer = + CEikButtonGroupContainer::Current(); + + + CEikCba *eikcba = static_cast( btnGroupContainer->ButtonGroup() ); + eikcba->HandleControlEventL(eikcba, MCoeControlObserver::EEventStateChanged); + _LIT(KHandleControlEvent, "CCoeControl::HandleControlEventL"); + AssertTrueL(ETrue, KHandleControlEvent); + +} + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikEdwinCaseL() +// ( menu item -7- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikEdwinCaseL() + { + CEikEdwin* eikEdwin = new( ELeave ) CEikEdwin; + CleanupStack::PushL( eikEdwin ); + _LIT( KTxtCEikEdwin, "CEikEdwin::CEikEdwin" ); + AssertNotNullL( eikEdwin, KTxtCEikEdwin ); + + TRect rect( KXLeftPos, KYUpPos, KXRightPos, KYDownPos ); + eikEdwin->SetScrollRect( rect ); + _LIT( KTxtSetScrollRect, "CEikEdwin::SetScrollRect" ); + AssertTrueL( ETrue, KTxtSetScrollRect ); + + CleanupStack::PopAndDestroy( eikEdwin ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknSliderCaseL() +// ( menu item -8- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknSliderCaseL() + { + CAknSlider* aknSlider = new( ELeave ) CAknSlider; + CleanupStack::PushL( aknSlider ); + _LIT( KTxtCAknSlider, "CAknSlider::CAknSlider" ); + AssertNotNullL( aknSlider, KTxtCAknSlider ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTMIX50_SLIDER ); + aknSlider->ConstructFromResourceL( reader ); + _LIT( KTxtConstructFromResourceL, "CAknSlider::ConstructFromResourceL" ); + AssertTrueL( ETrue, KTxtConstructFromResourceL ); + CleanupStack::PopAndDestroy(); // reader + + aknSlider->SetContainerWindowL( *iContainer ); + _LIT( KTxtSetContainerWindowLg, "CAknSlider::SetContainerWindowL" ); + AssertTrueL( ETrue, KTxtSetContainerWindowLg ); + + TInt nMin = 0; + TInt nMax = 0; + aknSlider->SetRange( KMinVal, KMaxVal ); + _LIT( KTxtSetRange, "CAknSlider::SetRange" ); + AssertTrueL( ETrue, KTxtSetRange ); + + aknSlider->GetRange( nMin, nMax ); + _LIT( KTxtGetRange, "CAknSlider::GetRange" ); + AssertTrueL( (KMinVal == nMin)&&(KMaxVal == nMax), KTxtGetRange ); + + aknSlider->EnableDrag(); + _LIT( KTxtEnableDrag, "CAknSlider::EnableDrag" ); + AssertTrueL( ETrue, KTxtEnableDrag ); + + CleanupStack::PopAndDestroy( aknSlider ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikDialogCaseL() +// ( menu item -9- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikDialogCaseL() + { + CEikDialog* dialog = new( ELeave ) CEikDialog; + CleanupStack::PushL( dialog ); + _LIT( KTxtCEikDialog, "CEikDialog::CEikDialog" ); + AssertNotNullL( dialog, KTxtCEikDialog ); + + dialog->ReadResourceLC( R_BCTESTMIX50_EIKDIALOG ); + _LIT( KTxtReadResourceLC, "CEikDialog::ReadResourceLC" ); + AssertTrueL( ETrue, KTxtReadResourceLC ); + CleanupStack::Pop(); + + dialog->SetMultilineQuery( EFalse ); + dialog->SetMultilineQuery( ETrue ); + _LIT( KTxtSetMultilineQuery, "CEikDialog::SetMultilineQuery" ); + AssertTrueL( ETrue, KTxtSetMultilineQuery ); + + CleanupStack::PopAndDestroy( dialog ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikCaptionedControlCaseL() +// ( menu item -10- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikCaptionedControlCaseL() + { + CEikCaptionedControl* captionCtrl = new( ELeave ) CEikCaptionedControl; + CleanupStack::PushL( captionCtrl ); + _LIT( KTxtCEikCaptionedControl, + "CEikCaptionedControl::CEikCaptionedControl" ); + AssertNotNullL( captionCtrl, KTxtCEikCaptionedControl ); + + TBCTestPointerObserver pointerObserver; + captionCtrl->SetPointerEventObserver( &pointerObserver ); + _LIT( KTxtSetPointerEventObserver, + "CEikCaptionedControl::SetPointerEventObserver" ); + AssertTrueL( ETrue, KTxtSetPointerEventObserver ); + + TInt nFlag = 0; + captionCtrl->SetFormFlags( nFlag ); + _LIT( KTxtSetFormFlags, + "CEikCaptionedControl::SetFormFlags" ); + AssertTrueL( ETrue, KTxtSetFormFlags ); + + TInt nIcon = 0; + CFbsBitmap* bitmap = new ( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bitmap ); + + CFbsBitmap* maskBmp = new ( ELeave ) CFbsBitmap(); + CleanupStack::PushL( maskBmp ); + + captionCtrl->SetCaptionL( KTitle ); + _LIT( KTxtSetCaptionL, + "CEikCaptionedControl::SetCaptionL" ); + AssertTrueL( ETrue, KTxtSetCaptionL ); + + captionCtrl->SetIndicatorIconL( nIcon, bitmap, maskBmp ); + _LIT( KTxtSetIndicatorIconL, + "CEikCaptionedControl::SetIndicatorIconL" ); + AssertTrueL( ETrue, KTxtSetIndicatorIconL ); + + CleanupStack::Pop( maskBmp ); + CleanupStack::Pop( bitmap ); + CleanupStack::PopAndDestroy( captionCtrl ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknVolumeControlCaseL() +// ( menu item -11- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknVolumeControlCaseL() + { + CAknVolumeControl* volumeCtrl = new( ELeave ) CAknVolumeControl; + CleanupStack::PushL( volumeCtrl ); + _LIT( KTxtCAknVolumeControl, "CAknVolumeControl::CAknVolumeControl" ); + AssertNotNullL( volumeCtrl, KTxtCAknVolumeControl ); + + volumeCtrl->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTMIX50_VOLUMECONTROL ); + volumeCtrl->ConstructFromResourceL( reader ); + _LIT( KTxtConstructFromResourceL, + "CAknVolumeControl::ConstructFromResourceL" ); + AssertTrueL( ETrue, KTxtConstructFromResourceL ); + CleanupStack::PopAndDestroy(); // reader + + volumeCtrl->SetRange( KMinVal , KMaxVal ); + _LIT( KTxtSetRange, "CAknVolumeControl::SetRange" ); + AssertTrueL( ETrue, KTxtSetRange ); + + TInt nMin = 0; + TInt nMax = 0; + volumeCtrl->GetRange( nMin , nMax ); + _LIT( KTxtGetRange, "CAknVolumeControl::GetRange" ); + AssertTrueL( ( KMinVal == nMin )&&( KMaxVal == nMax ), KTxtGetRange ); + + CleanupStack::PopAndDestroy( volumeCtrl ); + volumeCtrl = NULL; + + CGulIcon* icon = CAknVolumeControl::CreateSetDynRangeStyleListBoxIconL( + KDefaultVolumeLevel, KMinVal, KMaxVal ); + CleanupStack::PushL( icon ); + _LIT( KTxtCreateSetDynRangeStyleListBoxIconL, + "CAknVolumeControl::CreateSetDynRangeStyleListBoxIconL" ); + AssertNotNullL( icon, KTxtCreateSetDynRangeStyleListBoxIconL ); + CleanupStack::PopAndDestroy( icon ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknSettingPageCaseL() +// ( menu item -12- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknSettingPageCaseL() + { + CBCTestCAknSettingPage* settingPage = new( ELeave ) + CBCTestCAknSettingPage( R_BCTESTMIX50SETPAGE_TEXT_SETTING_PAGE ); + CleanupStack::PushL( settingPage ); + _LIT( KTxtCBCTestCAknSettingPage, + "CBCTestCAknSettingPage::CBCTestCAknSettingPage" ); + AssertNotNullL( settingPage, KTxtCBCTestCAknSettingPage ); + + settingPage->ConstructL(); + _LIT( KTxtConstructL, "CAknSettingPage::ConstructL" ); + AssertTrueL( ETrue, KTxtConstructL ); + + settingPage->TextLabel(); + _LIT( KTxtTextLabel, "CAknSettingPage::TextLabel" ); + AssertTrueL( ETrue, KTxtTextLabel ); + + settingPage->ShadowText(); + _LIT( KTxtShadowText, "CAknSettingPage::ShadowText" ); + AssertTrueL( ETrue, KTxtShadowText ); + + CleanupStack::PopAndDestroy( settingPage ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikListBoxCaseL() +// ( menu item -13- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikListBoxCaseL() + { + CEikListBox* listBox = new( ELeave ) CEikListBox(); + CleanupStack::PushL( listBox ); + _LIT( KTxtCEikListBox, "CEikListBox::CEikListBox" ); + AssertNotNullL( listBox, KTxtCEikListBox ); + + listBox->RedrawItem( 0 ); + _LIT( KTxtRedrawItem, "CEikListBox::RedrawItem" ); + AssertTrueL( ETrue, KTxtRedrawItem ); + + TBCTestSelectionObserver selectionObserver; + listBox->AddSelectionObserverL( &selectionObserver ); + _LIT( KTxtAddSelectionObserverL, + "CEikListBox::AddSelectionObserverL" ); + AssertTrueL( ETrue, KTxtAddSelectionObserverL ); + + listBox->RemoveSelectionObserver( &selectionObserver ); + _LIT( KTxtRemoveSelectionObserver, + "CEikListBox::RemoveSelectionObserver" ); + AssertTrueL( ETrue, KTxtRemoveSelectionObserver ); + + CleanupStack::PopAndDestroy( listBox ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknEdwinStateCaseL() +// ( menu item -14- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknEdwinStateCaseL() + { + CAknEdwinState* edwinState = new( ELeave ) CAknEdwinState; + CleanupStack::PushL( edwinState ); + _LIT( KTxtCAknEdwinState, "CAknEdwinState::CAknEdwinState" ); + AssertNotNullL( edwinState, KTxtCAknEdwinState ); + + TInt nCmdID = 5; + TInt nRetID = 0; + edwinState->SetMiddleSoftkeyCommandId( nCmdID ); + _LIT( KTxtSetMiddleSoftkeyCommandId, + "CAknEdwinState::SetMiddleSoftkeyCommandId" ); + AssertTrueL( ETrue, KTxtSetMiddleSoftkeyCommandId ); + + nRetID = edwinState->MiddleSoftkeyCommandId(); + _LIT( KTxtMiddleSoftkeyCommandId, "CAknEdwinState::MiddleSoftkeyCommandId" ); + AssertTrueL( nCmdID == nRetID, KTxtMiddleSoftkeyCommandId ); + + TBCTestCcpuEditor cpuEditor; + edwinState->SetCcpuState( &cpuEditor ); + _LIT( KTxtSetCcpuState, + "CAknEdwinState::SetCcpuState" ); + AssertTrueL( ETrue, KTxtSetCcpuState ); + + CleanupStack::PopAndDestroy( edwinState ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikMenuPaneCaseL() +// ( menu item -15- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikMenuPaneCaseL() + { + CAknDialog* dlg = new( ELeave ) CAknDialog(); + CleanupStack::PushL( dlg ); + + CEikMenuPane* menuPane = new( ELeave ) CEikMenuPane( dlg ); + CleanupStack::PushL( menuPane ); + + TBuf< KBuffLargeSize > buff; + menuPane->ConstructMenuSctRowFromDialogL( buff, + R_AVKON_EMAIL_ADDR_SPECIAL_CHARACTER_TABLE_DIALOG ); + _LIT( KTxtConstructMenuSctRowFromDialogL, + "CAknEdwinState::ConstructMenuSctRowFromDialogL" ); + AssertTrueL( ETrue, KTxtConstructMenuSctRowFromDialogL ); + + menuPane->ConstructMenuSctRowFromDialogL( EAknSCTLowerCase , buff, + R_AVKON_EMAIL_ADDR_SPECIAL_CHARACTER_TABLE_DIALOG ); + AssertTrueL( ETrue, KTxtConstructMenuSctRowFromDialogL ); + + CleanupStack::PopAndDestroy( menuPane ); + CleanupStack::PopAndDestroy( dlg ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknGridCaseL() +// ( menu item -16- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknGridCaseL() + { + CBCTestCAknGrid* grid = new( ELeave) CBCTestCAknGrid(); + CleanupStack::PushL( grid ); + _LIT( KCAknGrid, "CAknGrid::CAknGrid" ); + AssertNotNullL( grid, KCAknGrid ); + + TTypeUid tUid( 0 ); + grid->MopSupplyObject( tUid ); + _LIT( KTxtMopSupplyObject, "CAknGrid::MopSupplyObject" ); + AssertTrueL( ETrue, KTxtMopSupplyObject ); + + CleanupStack::PopAndDestroy( grid ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCColumnListBoxItemDrawerCaseL() +// ( menu item -( 17 )- ) +// --------------------------------------------------------------------------- +// +/*void CBCTestMix50Case::TestCColumnListBoxItemDrawerCaseL() + { + CColumnListBoxItemDrawer* columnListBoxItemDrawer = + new( ELeave )CColumnListBoxItemDrawer(); + CleanupStack::PushL( columnListBoxItemDrawer ); + + _LIT( KCColumnListBoxItemDrawer, + "CColumnListBoxItemDrawer::CColumnListBoxItemDrawer()" ); + AssertTrueL( ETrue, KCColumnListBoxItemDrawer ); + + CleanupStack::PopAndDestroy( columnListBoxItemDrawer ); + } + +*/ +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknLocationEditorCaseL() +// ( menu item -18- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknLocationEditorCaseL() + { + CBCTestCAknLocationEditor* testEditor = + new( ELeave )CBCTestCAknLocationEditor; + CleanupStack::PushL( testEditor ); + + TKeyEvent keyEvent; + keyEvent.iCode = 0; + testEditor->OfferKeyEventL( keyEvent, EEventKey ); + _LIT( KOfferKeyEventL, "CAknLocationEditor::OfferKeyEventL()" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + TUid uid = { 0xA00040AB }; + testEditor->CAknLocationEditor_ExtensionInterface( uid ); + _LIT( KExtensionInterface, + "CAknLocationEditor::CAknLocationEditor_ExtensionInterface()" ); + AssertTrueL( ETrue, KExtensionInterface ); + + CleanupStack::PopAndDestroy( testEditor ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCEikMfneCaseL() +// ( menu item -19- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCEikMfneCaseL() + { + CEikMfne* eikMfne = new( ELeave )CEikMfne; + CleanupStack::PushL( eikMfne ); + + TInt result(0); + eikMfne->GetFeature( 0, result ); + _LIT( KGetFeature, "CEikMfne::GetFeature" ); + AssertTrueL( ETrue, KGetFeature ); + + result = eikMfne->SetFeature( 0, 0 ); + _LIT( KSetFeature, "CEikMfne::SetFeature" ); + AssertTrueL( ETrue, KSetFeature ); + + result = eikMfne->SupportsFeature( 0 ); + _LIT( KSupportsFeature, "CEikMfne::SupportsFeature" ); + AssertTrueL( ETrue, KSupportsFeature ); + + eikMfne->SetUseOverrideColors( ETrue ); + _LIT( KSetUseOverrideColors, "CEikMfne::SetUseOverrideColors" ); + AssertTrueL( ETrue, KSetUseOverrideColors ); + + //TC indirectly calling overridden CEikMfne::SizeChanged + eikMfne->CreateFieldArrayL(3); + CEikMfneNumber *mfnenum = CEikMfneNumber::NewL(*LatinPlain12(), 0, 99, 55, 0); + eikMfne->AddField(mfnenum); + + CEikMfneSeparator *mfnesep = CEikMfneSeparator::NewL(_L("xbdf0\x00C1\x00C7:").AllocL()); + eikMfne->AddField(mfnesep); + + CEikMfneSeparator *mfnesep1 = CEikMfneSeparator::NewL(_L("FOOBAR").AllocL()); + eikMfne->AddField(mfnesep1); + + TSize sizeCtrl = eikMfne->Size(); + sizeCtrl.iHeight +=1; + sizeCtrl.iWidth +=1; + eikMfne->SetSize(sizeCtrl); + _LIT( KSizeChanged, "CEikMfne::SizeChanged()" ); + AssertTrueL( ETrue, KSizeChanged ); + + + eikMfne->ResetFieldArray(); + _LIT( KResetFieldArray, "CEikMfne::ResetFieldArray()" ); + AssertTrueL( ETrue, KResetFieldArray ); + + + + CleanupStack::PopAndDestroy( eikMfne ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknUnitEditorCaseL() +// ( menu item -20- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknUnitEditorCaseL() + { + CAknUnitEditor* aknUnitEditor = CAknUnitEditor::NewL(); + CleanupStack::PushL( aknUnitEditor ); + + _LIT( KTxtNewL, "CAknUnitEditor::NewL()" ); + AssertNotNullL( aknUnitEditor, KTxtNewL ); + + TResourceReader resourceReader; + iEnv->CreateResourceReaderLC( resourceReader, R_BCTESTMIX50_EDITOR_EDWIN ); + + aknUnitEditor->ConstructFromResourceL( resourceReader ); + _LIT( KConstructFromResourceL, + "CAknUnitEditor::ConstructFromResourceL()" ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + CleanupStack::PopAndDestroy(); // resourceReader + CleanupStack::PopAndDestroy( aknUnitEditor ); + _LIT( KTxtDestrutctor, "CAknUnitEditor::~CAknUnitEditor()" ); + AssertTrueL( ETrue, KTxtDestrutctor ); + aknUnitEditor = NULL; + + aknUnitEditor = CAknUnitEditor::NewLC(); + _LIT( KTxtNewLC, "CAknUnitEditor::NewLC()" ); + AssertNotNullL( aknUnitEditor, KTxtNewLC ); + + aknUnitEditor->ConstructL( 1, 1, 1, 1, 1, 1 ); + _LIT( KConstructL, "CAknUnitEditor::ConstructL()" ); + AssertTrueL( ETrue, KConstructL ); + + aknUnitEditor->SetContainerWindowL( *iContainer ); + _LIT( KSetContainerWindowL, "CAknUnitEditor::SetContainerWindowL()" ); + AssertTrueL( ETrue, KSetContainerWindowL ); + + aknUnitEditor->Flags(); + _LIT( KFlags, "CAknUnitEditor::Flags()" ); + AssertTrueL( ETrue, KFlags ); + + TReal min, max; + aknUnitEditor->GetMinimumAndMaximum( min, max ); + _LIT( KGetMinimumAndMaximum, "CAknUnitEditor::GetMinimumAndMaximum()" ); + AssertTrueL( ETrue, KGetMinimumAndMaximum ); + + TBuf< KBuffSmallSize > uEditData; + aknUnitEditor->GetUnit( uEditData ); + _LIT( KGetUnit, "CAknUnitEditor::GetUnit()" ); + AssertTrueL( ETrue, KGetUnit ); + + aknUnitEditor->MaxFractionalDigits(); + _LIT( KMaxFractionalDigits, "CAknUnitEditor::MaxFractionalDigits()" ); + AssertTrueL( ETrue, KMaxFractionalDigits ); + + aknUnitEditor->PrepareForFocusLossL(); + _LIT( KPrepareForFocusLossL, "CAknUnitEditor::PrepareForFocusLossL()" ); + AssertTrueL( ETrue, KPrepareForFocusLossL ); + + aknUnitEditor->SetFlags( 0 ); + _LIT( KSetFlags, "CAknUnitEditor::SetFlags()" ); + AssertTrueL( ETrue, KSetFlags ); + + aknUnitEditor->SetMaxFractionalDigits( 1 ); + _LIT( KSetMaxFractionalDigits, "CAknUnitEditor::SetMaxFractionalDigits()" ); + AssertTrueL( ETrue, KSetMaxFractionalDigits ); + + aknUnitEditor->SetMinimumAndMaximum( 0, 1 ); + _LIT( KSetMinimumAndMaximum, "CAknUnitEditor::SetMinimumAndMaximum()" ); + AssertTrueL( ETrue, KSetMinimumAndMaximum ); + + aknUnitEditor->SetUnitL( uEditData ); + _LIT( KSetUnitL, "CAknUnitEditor::SetUnitL()" ); + AssertTrueL( ETrue, KSetUnitL ); + + aknUnitEditor->SetUnitL( 0 ); + _LIT( KSetUnitLInt, "CAknUnitEditor::SetUnitL()" ); + AssertTrueL( ETrue, KSetUnitLInt ); + + aknUnitEditor->SetValue( 0.0 ); + _LIT( KSetValueDouble, "CAknUnitEditor::SetValue()" ); + AssertTrueL( ETrue, KSetValueDouble ); + + aknUnitEditor->Unit(); + _LIT( KUnit, "CAknUnitEditor::Unit()" ); + AssertTrueL( ETrue, KUnit ); + + aknUnitEditor->Value(); + _LIT( KValue, "CAknUnitEditor::Value()" ); + AssertTrueL( ETrue, KValue ); + + aknUnitEditor->SupportsUnit( 0 ); + _LIT( KSupportsUnit, "CAknUnitEditor::SupportsUnit()" ); + AssertTrueL( ETrue, KSupportsUnit ); + + CleanupStack::PopAndDestroy( aknUnitEditor ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCColumnListBoxDataCaseL() +// ( menu item -21- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCColumnListBoxDataCaseL() + { + CColumnListBoxData* columnListBoxData = CColumnListBoxData::NewL(); + CleanupStack::PushL( columnListBoxData ); + + columnListBoxData->CurrentItemTextWasClipped(); + _LIT( KCurrentItemTextWasClipped, + "CColumnListBoxData::CurrentItemTextWasClipped()" ); + AssertTrueL( ETrue, KCurrentItemTextWasClipped ); + + CleanupStack::PopAndDestroy( columnListBoxData ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknchoicelist() +// ( menu item -22- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestCAknchoicelist() + { + + CAknButton* btn = CAknButton::NewLC( NULL, NULL, NULL, + NULL, _L("LeftButton"), KNullDesC, + KAknButtonNoFrame, 0 ); + + CleanupStack::PopAndDestroy(); + btn = NULL; + + btn = CAknButton::NewL( NULL, NULL, NULL, + NULL, _L("LeftButton"), KNullDesC, + KAknButtonNoFrame, 0 ); + + CDesCArrayFlat* itemArray = new ( ELeave ) CDesCArrayFlat( 8 ); + CleanupStack::PushL( itemArray ); + itemArray->AppendL( _L("orking") ); + itemArray->AppendL( _L("ll") ); + itemArray->AppendL( _L("sti") ); + itemArray->AppendL( _L("w") ); + + + CAknChoiceList *choList = CAknChoiceList::NewL( iContainer, itemArray, + CAknChoiceList::EAknChoiceListWithCurrentSelection, btn ); + + CleanupStack::PushL( choList ); + _LIT( aknChoiceList, " ChoiceList create successfully " ); + AssertNotNullL( choList, aknChoiceList ); + + CleanupStack::Pop( choList ); + CleanupStack::Pop( itemArray ); + delete btn; + + choList->ShowChoiceListL(); + _LIT( showList, " ShowChoiceList! " ); + AssertTrueL( ETrue, showList); + + choList->SetSelectedIndex( TInt( 1 ) ); + _LIT( setIndex, " SetSelectedIndex()!" ); + AssertTrueL( ETrue, setIndex ); + + choList->SelectedIndex(); + _LIT( selectedIndex, " SelectedIndex() " ); + AssertTrueL( ETrue, selectedIndex ); + + //choList->SetItemsL( R_MYCHOICELIST_ITEMS ); + _LIT( setItemsL, " SetItemsL( TInt aResourceId ) " ); + AssertTrueL( ETrue, setItemsL ); + + _LIT( setItems, " SetItems( CDesCArray* aArray ) " ); + CDesCArray* array = new ( ELeave ) CDesCArrayFlat( 1 ); + array->AppendL( setItems ); + choList->SetItems( array ); + AssertTrueL( ETrue, setItems ); + + TBuf<20> *bf = new ( ELeave ) TBuf<20>; + choList->AddItemL( bf ); + _LIT( addItemL, " AddItemL() " ); + AssertTrueL( ETrue, addItemL ); + + choList->RemoveItem( TInt( 1 ) ); + _LIT( removeItem, " RemoveItem() " ); + AssertTrueL( ETrue, removeItem ); + + choList->SetFlags( TInt( 1 ) ); + _LIT( setFlags, " SetFlags() " ); + AssertTrueL( ETrue, setFlags ); + + choList->Flags(); + _LIT( flg, " Flags() " ); + AssertTrueL( ETrue, flg ); + + choList->SetButtonL( CAknButton::NewL() ); + _LIT( setButtonL, " SetButtonL() " ); + AssertTrueL( ETrue, setButtonL ); + + choList->HideChoiceList(); + _LIT( hideChoiceList, " HideChoiceList() " ); + AssertTrueL( ETrue, hideChoiceList ); + + _LIT( setTooltipTextL, " SetTooltipTextL() " ); + choList->SetTooltipTextL( setTooltipTextL ); + AssertTrueL( ETrue, setTooltipTextL ); + + choList->SetTooltipTimeouts( 150, 3000 ); // 150 and 3000 are the defaults + _LIT( setTooltipTimeouts, " SetTooltipTimeouts() " ); + AssertTrueL( ETrue, setTooltipTimeouts ); + + choList->SetTooltipPosition( CAknChoiceList::EPositionTop ); + _LIT( setTooltipPosition, " SetTooltipPosition() " ); + AssertTrueL( ETrue, setTooltipPosition ); + + choList->ComponentControl( TInt( 1 ) ); + _LIT( componentControl, " componentControl() " ); + AssertTrueL( ETrue, componentControl ); + + choList->CountComponentControls(); + _LIT( countComponentControls, " CountComponentControls() " ); + AssertTrueL( ETrue, countComponentControls ); + + choList->MinimumSize(); + _LIT( minimumSize, " MinimumSize() " ); + AssertTrueL( ETrue, minimumSize ); + +/*komala choList->PositionChanged();//test PositionChanged + _LIT( KCAknChoiceList, + "CColumnListBoxData::TestCAknchoicelist()" ); + AssertTrueL( ETrue, KCAknChoiceList ); +*/ + choList->HandleResourceChange( TInt( 1 ) ); + _LIT( handleResourceChange, " HandleResourceChange() " ); + AssertTrueL( ETrue, handleResourceChange ); + + TKeyEvent keyEvent; + choList->OfferKeyEventL( keyEvent, EEventNull ); + _LIT( offerKeyEventL, " OfferKeyEventL() " ); + AssertTrueL( ETrue, offerKeyEventL ); + + choList->Draw( TRect() ); + _LIT( draw, " Draw() " ); + AssertTrueL( ETrue, draw ); + + choList->HandleControlEventL( iContainer, + MCoeControlObserver::EEventRequestFocus ); + _LIT( handleControlEventL, " HandleControlEventL() " ); + AssertTrueL( ETrue, handleControlEventL ); + + choList->InsertItemL( TInt( 2 ), *bf ); + _LIT( insertItemL, " InsertItemL() " ); + AssertTrueL( ETrue, insertItemL ); + + delete bf; + delete choList; + + } + +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestCAknButton() +// ( menu item -23- ) +// --------------------------------------------------------------------------- +// +/*komala void CBCTestMix50Case::TestCAknButton() + { + CAknButton* aknCAknButton = CAknButton::NewL(); + CleanupStack::PushL( aknCAknButton ); + aknCAknButton->PositionChanged(); + _LIT( KCAknButton, + "CColumnListBoxData::TestCAknButton()" ); + AssertTrueL( ETrue, KCAknButton ); + CleanupStack::PopAndDestroy( aknCAknButton ); + } +*/ +// --------------------------------------------------------------------------- +// CBCTestMix50Case::TestTouchFeedback() +// ( menu item -21- ) +// --------------------------------------------------------------------------- +// +void CBCTestMix50Case::TestTouchFeedback() + { + MTouchFeedback* feedback = MTouchFeedback::Instance(); + _LIT( KMTouchFeedbackInstance, + "MTouchFeedback::Instance" ); + AssertTrueL( ETrue, KMTouchFeedbackInstance ); + + feedback->TouchFeedbackSupported(); + _LIT(KMTouchFBSupported, "TouchFeedbackSuppoted()!"); + AssertTrueL( ETrue, KMTouchFBSupported ); + + feedback->SetFeedbackEnabledForThisApp( ETrue ); + _LIT(KMSetFeedbackEnabledForThisApp, "SetFeedbackEnabledForThisApp()!"); + AssertTrueL( ETrue, KMSetFeedbackEnabledForThisApp ); + + TBool fb; + fb = feedback->FeedbackEnabledForThisApp(); + _LIT(KMFeedbackEnabledForThisApp, "FeedbackEnabledForThisApp()!"); + AssertTrueL( ETrue, KMFeedbackEnabledForThisApp ); + //AssertTrueL( ETrue, fb ); + + feedback->FlushRegistryUpdates(); + _LIT(KMFlushRegUpdates, "FlushRegistryUpdates()!"); + AssertTrueL(ETrue, KMFlushRegUpdates); + + + TTouchLogicalFeedback type; + feedback->InstantFeedback(type); + _LIT(KMInstantFeedback, "InstantFeedback()!"); + AssertTrueL(ETrue, KMInstantFeedback); + + CAknButton* aknCAknButton = CAknButton::NewL(); + CleanupStack::PushL( aknCAknButton ); + + TUint32 index; + TRect rect; + TTouchEventType etype; + feedback->SetFeedbackArea( aknCAknButton, index, rect, type, etype); + _LIT(KMSetFeedbackArea, "SetFeedbackArea()!"); + AssertTrueL(ETrue, KMSetFeedbackArea); + + feedback->RemoveFeedbackArea(aknCAknButton, index); + _LIT(KMRemoveFeedbackArea, "RemoveFeedbackArea()!"); + AssertTrueL( ETrue, KMRemoveFeedbackArea ); + + feedback->RemoveFeedbackForControl(aknCAknButton); + _LIT(KMRemoveFeedbackForControl, "RemoveFeedbackForControl()!"); + AssertTrueL( ETrue, KMRemoveFeedbackForControl ); + + feedback->ChangeFeedbackArea(aknCAknButton, index, rect); + _LIT(KMChangeFeedbackArea, "ChangeFeedbackArea()!"); + AssertTrueL( ETrue, KMChangeFeedbackArea ); + + feedback->ChangeFeedbackType(aknCAknButton, index, type); + _LIT(KMChangeFeedbackType, "ChangeFeedbackType()!"); + AssertTrueL( ETrue, KMChangeFeedbackType ); + + feedback->MoveFeedbackAreaToFirstPriority(aknCAknButton, index); + _LIT(KMMoveFeedbackAreaToFirstPriority, "MoveFeedbackAreaToFirstPriority()!"); + AssertTrueL(ETrue, KMMoveFeedbackAreaToFirstPriority); + + feedback->InstantFeedback(aknCAknButton, type); + _LIT(KMInstantFeedback2, "InstantFeedback(aknCAknButton, type)!"); + AssertTrueL(ETrue, KMInstantFeedback2); + + feedback->ControlHasFeedback(aknCAknButton); + _LIT(KMControlHasFeedback, "ControlHasFeedback()!"); + AssertTrueL(ETrue, KMControlHasFeedback); + + feedback->ControlHasFeedback(aknCAknButton, index); + _LIT(KMControlHasFeedback2, "ControlHasFeedback(index)!"); + AssertTrueL(ETrue, KMControlHasFeedback2); + + feedback->EnableFeedbackForControl( aknCAknButton, fb ); + _LIT(KMEnableFeedbackForControl, "EnableFeedbackForControl()!"); + AssertTrueL(ETrue, KMEnableFeedbackForControl); + + + + + CleanupStack::PopAndDestroy( aknCAknButton ); + + if( !feedback ) + { + MTouchFeedback* feedbackCreated = MTouchFeedback::CreateInstanceL(); + _LIT( KMTouchFeedbackCreateInstanceL, + "MTouchFeedback::CreateInstanceL" ); + AssertTrueL( ETrue, KMTouchFeedbackCreateInstanceL ); + + + MTouchFeedback::DestroyInstance(); + _LIT( KMTouchFeedbackDestroyInstance, + "MTouchFeedback::DestroyInstance" ); + AssertTrueL( ETrue, KMTouchFeedbackDestroyInstance ); + + } + + + } + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50container.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50container.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestmix50container.h" + +#define KAknAtListGray TRgb( 0xaaaaaa ) + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::CBCTestMix50Container() +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50Container::CBCTestMix50Container() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::~CBCTestMix50Container() +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMix50Container::~CBCTestMix50Container() + { + ResetControl(); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::ConstructL() +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50Container::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::Draw() +// Fills the window's rectangle +// --------------------------------------------------------------------------- +// +void CBCTestMix50Container::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::CountComponentControls() +// +// --------------------------------------------------------------------------- +// +TInt CBCTestMix50Container::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::ComponentControl() +// +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestMix50Container::ComponentControl( TInt ) const + { + return iControl; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::SetControl() +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50Container::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Container::ResetControl() +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50Container::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50document.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50document.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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: document +* +*/ + + +#include "bctestmix50document.h" +#include "bctestmix50appui.h" + + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CBCTestMix50Document::NewL() +// Symbian OS two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestMix50Document* CBCTestMix50Document::NewL( CEikApplication& aApp ) + { + CBCTestMix50Document* self = new( ELeave ) CBCTestMix50Document( aApp ); + return self; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Document::~CBCTestMix50Document() +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestMix50Document::~CBCTestMix50Document() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Document::CBCTestMix50Document() +// Overload constructor. +// --------------------------------------------------------------------------- +// +CBCTestMix50Document::CBCTestMix50Document( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50Document::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestMix50Document::CreateAppUiL() + { + return new( ELeave ) CBCTestMix50AppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50extendclasses.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50extendclasses.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,216 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include "bctestmix50extendclasses.h" + + +// --------------------------------------------------------------------------- +// CBCTestCAknPopupList::NewL() +// +// --------------------------------------------------------------------------- +// +CBCTestCAknPopupList* CBCTestCAknPopupList::NewL( CEikListBox* aListBox ) + { + CAknPopupList* self = CAknPopupList::NewL( aListBox + , R_AVKON_SOFTKEYS_OK_CANCEL ); + CBCTestCAknPopupList* rSelf = + static_cast< CBCTestCAknPopupList* > ( self ); + return rSelf; + } + + +// --------------------------------------------------------------------------- +// TBCTestCommandObserver::ProcessCommandL() +// +// --------------------------------------------------------------------------- +// +void TBCTestCommandObserver::ProcessCommandL( TInt /*aCommandId*/ ) + { + } + + +// --------------------------------------------------------------------------- +// TBCTestPointerObserver::PointerEvent() +// +// --------------------------------------------------------------------------- +// +bool TBCTestPointerObserver::PointerEvent( CEikCaptionedControl* /*aControl*/, + const TPointerEvent& /*aPointerEvent*/ ) + { + return EFalse; + } + + +// --------------------------------------------------------------------------- +// CBCTestCAknSettingPage::CBCTestCAknSettingPage +// +// --------------------------------------------------------------------------- +// +CBCTestCAknSettingPage::CBCTestCAknSettingPage( TInt aResourceId ) + : CAknSettingPage( aResourceId ) + { + } + + +// --------------------------------------------------------------------------- +// CBCTestCAknSettingPage::CBCTestCAknSettingPage +// +// --------------------------------------------------------------------------- +// +CBCTestCAknSettingPage::CBCTestCAknSettingPage( + const TDesC* aSettingText, + TInt aSettingNumber, + TInt aControlType, + TInt aEditorResourceId, + TInt aSettingPageResourceId ) + : CAknSettingPage( aSettingText, + aSettingNumber, + aControlType, + aEditorResourceId, + aSettingPageResourceId ) + { + } + + +// --------------------------------------------------------------------------- +// TBCTestSelectionObserver::SelectionModeChanged() +// +// --------------------------------------------------------------------------- +// +void TBCTestSelectionObserver::SelectionModeChanged( CEikListBox* /*aListBox*/, + TBool /*aSelectionModeEnabled*/ ) + { + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuIsFocused() +// +// --------------------------------------------------------------------------- +// +TBool TBCTestCcpuEditor::CcpuIsFocused() const + { + return EFalse; + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuCanCut() +// +// --------------------------------------------------------------------------- +// +TBool TBCTestCcpuEditor::CcpuCanCut() const + { + return EFalse; + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuCutL() +// +// --------------------------------------------------------------------------- +// +void TBCTestCcpuEditor::CcpuCutL() + { + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuCanCopy() +// +// --------------------------------------------------------------------------- +// +TBool TBCTestCcpuEditor::CcpuCanCopy() const + { + return EFalse; + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuCopyL() +// +// --------------------------------------------------------------------------- +// +void TBCTestCcpuEditor::CcpuCopyL() + { + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuCanPaste() +// +// --------------------------------------------------------------------------- +// +TBool TBCTestCcpuEditor::CcpuCanPaste() const + { + return EFalse; + }; + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuPasteL() +// +// --------------------------------------------------------------------------- +// +void TBCTestCcpuEditor::CcpuPasteL() + { + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuCanUndo() +// +// --------------------------------------------------------------------------- +// +TBool TBCTestCcpuEditor::CcpuCanUndo() const + { + return EFalse; + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuUndoL() +// +// --------------------------------------------------------------------------- +// +void TBCTestCcpuEditor::CcpuUndoL() + { + } + + +// --------------------------------------------------------------------------- +// TBCTestCcpuEditor::CcpuUndoL() +// +// --------------------------------------------------------------------------- +// +CBCTestCAknGrid::CBCTestCAknGrid() + : CAknGrid() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestCAknLocationEditor::CAknLocationEditor_ExtensionInterface() +// +// --------------------------------------------------------------------------- +// +void* CBCTestCAknLocationEditor::CAknLocationEditor_ExtensionInterface( + TUid aInterface ) + { + return CAknLocationEditor::CAknLocationEditor_ExtensionInterface( aInterface ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchcolumnbasecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchcolumnbasecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,229 @@ +/* +* 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 case for various list classes +* +*/ + + +#include +#include +#include +#include +#include +#include + +#include +#include +#include "bctestmix50patchcolumnbasecase.h" +#include "bctestmix50container.h" + + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// C++ Default constructor. +// --------------------------------------------------------------------------- +// +CBCTestMix50ListBaseCase::CBCTestMix50ListBaseCase( + CBCTestMix50Container* aContainer, CEikonEnv* aEikEnv) + : iContainer( aContainer ), iEikEnv( aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestMix50ListBaseCase::~CBCTestMix50ListBaseCase() + { + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::SetListBoxFromResourceL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::SetListBoxFromResourceL( + CEikColumnListBox* aListBox, const TInt aResourceId ) + { + if ( aListBox && aResourceId ) + { + aListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, aResourceId ); + aListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::SetListBoxFromResourceL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::SetListBoxFromResourceL( + CEikFormattedCellListBox* aListBox, const TInt aResourceId ) + { + if ( aListBox && aResourceId ) + { + aListBox->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEikEnv->CreateResourceReaderLC( reader, aResourceId ); + aListBox->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // resource stuffs. + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::SetListBoxFromInnerDescriptionL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::SetListBoxFromInnerDescriptionL( + CEikColumnListBox* aListBox, const TInt aFlags, CDesCArray* textArray ) + { + if ( aListBox ) + { + // Constructs listbox. + aListBox->ConstructL( iContainer, aFlags ); + + if ( textArray ) + { + // Sets list item from resource. + aListBox->Model()->SetItemTextArray( textArray ); + aListBox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + } + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::SetListBoxFromInnerDescriptionL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::SetListBoxFromInnerDescriptionL( + CEikFormattedCellListBox* aListBox, + const TInt aFlags, + CDesCArray* textArray ) + { + if ( aListBox ) + { + // Constructs listbox. + aListBox->ConstructL( iContainer, aFlags ); + + if ( textArray ) + { + // Sets list item from resource. + aListBox->Model()->SetItemTextArray( textArray ); + aListBox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + } + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::SetGraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::SetGraphicIconL( CEikColumnListBox* aListBox ) + { + if ( aListBox ) + { + // Creates gul icon. + CArrayPtr* icons = new( ELeave ) CAknIconArray( + KBCTestListGraphicGulIconIndex ); + + CleanupStack::PushL( icons ); + + GraphicIconL( icons ); // Appends graphic data. + + // Sets graphics as ListBox icon. + aListBox->ItemDrawer()->ColumnData()->SetIconArray( icons ); + + CleanupStack::Pop(); + + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::SetGraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::SetGraphicIconL( + CEikFormattedCellListBox* aListBox ) + { + if ( aListBox ) + { + // Creates gul icon. + CArrayPtr* icons = new( ELeave ) CAknIconArray( + KBCTestListGraphicGulIconIndex ); + + CleanupStack::PushL( icons ); + + GraphicIconL( icons ); // Appends graphic data. + + // Sets graphics as ListBox icon. + aListBox->ItemDrawer()->FormattedCellData()->SetIconArrayL( icons ); + + CleanupStack::Pop(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::GraphicIconL( CArrayPtr* aIcons ) + { + if ( aIcons ) + { + // Appends icon. + CreateIconAndAddToArrayL(aIcons, KBCTestListMbmFileName, + EMbmBctestmix50Qgn_indi_marked_add, + EMbmBctestmix50Qgn_indi_marked_add_mask); + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListBaseCase::CreateIconAndAddToArrayL +// Creates the icon and adds it to the array if it was successful +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListBaseCase::CreateIconAndAddToArrayL( + CArrayPtr*& aIconsArray, + const TDesC& aIconFile, + TInt aBitmap, TInt aMask/* = -1*/) + { + CGulIcon* icon = CGulIcon::NewLC(); + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + if (aMask >= 0) + { + AknIconUtils::CreateIconL( bitmap, mask, aIconFile, aBitmap, aMask); + } + else + { + bitmap = AknIconUtils::CreateIconL( aIconFile, aBitmap); + } + + if (bitmap) + { + icon->SetBitmap(bitmap); + if (mask) + icon->SetMask(mask); + aIconsArray->AppendL(icon); + CleanupStack::Pop(icon); + } + else + { + CleanupStack::PopAndDestroy(icon); + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchcolumncase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchcolumncase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1650 @@ +/* +* 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 case for column list classes +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // CEikConsoleControl +#include +#include // CEikCaptionedControl +#include + +#include +#include "bctestmix50patchcolumncase.h" +#include "bctestmix50container.h" +#include "bctestmix50.hrh" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50ListColumnCase* CBCTestMix50ListColumnCase::NewL( + CBCTestMix50Container* aContainer, CEikonEnv* aEikEnv ) + { + CBCTestMix50ListColumnCase* self = new( ELeave ) CBCTestMix50ListColumnCase( + aContainer, aEikEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50ListColumnCase::CBCTestMix50ListColumnCase( + CBCTestMix50Container* aContainer, CEikonEnv* aEikEnv ) + : CBCTestMix50ListBaseCase( aContainer, aEikEnv ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMix50ListColumnCase::~CBCTestMix50ListColumnCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListColumnCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::BuildScriptL() + { + AddTestL( DELAY( 1 ), LeftCBA, Down, LeftCBA, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListColumnCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::RunL( TInt aCmd ) + { + switch( aCmd ) + { + case EBCTestCmdOutline2: + TestSnakingTextListBoxL(); + TestEikTextListBoxL(); + TestTextListBoxModelL(); + TestEikSnakingListBoxL(); + TestEikListBoxL(); + TestSnakingListBoxViewL(); + TestListBoxViewL(); + TestTextListItemDrawerL(); + TestListBoxTextEditorL(); + TestListBoxDataL(); + TestFormattedCellListBoxDataL(); + TestFormattedCellListBoxL(); + TestColumnListBoxDataL(); + TestColumnListBoxL(); + TestSelectionListDialogL(); + TestListBoxLayoutsL(); + TestConsoleScreenL(); + TestCapCArrayL(); + break; + default: + break; + } + } + +//---------------------------------------------------------------------------- +//Test CEikSnakingTextListBox +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestSnakingTextListBoxL() +{ + _LIT( KSnakingList1, + "CEikSnakingTextListBox::CEikSnakingTextListBox() invoked" ); + _LIT( KSnakingList2 , "CEikSnakingTextListBox::ConstructL() invoked" ); + _LIT( KSnakingList3 , "CEikSnakingTextListBox::Model() invoked" ); + _LIT( KSnakingList4 , + "CEikSnakingTextListBox::GetColorUseListL() invoked" ); + _LIT( KSnakingList5 , + "CEikSnakingTextListBox::HandleResourceChange() invoked" ); + _LIT( KSnakingList6 , + "CEikSnakingTextListBox::HandlePointerEventL() invoked" ); + _LIT( KSnakingList7 , + "CEikSnakingTextListBox::~CEikSnakingTextListBox() invoked" ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 0 , 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + CEikSnakingTextListBox * listBox = new( ELeave ) CEikSnakingTextListBox(); + CleanupStack::PushL( listBox ); + AssertTrueL( ETrue , KSnakingList1 ); + + listBox->ConstructL( iContainer ); + AssertTrueL( ETrue, KSnakingList2 ); + + CTextListBoxModel * listBoxModel = listBox->Model(); + AssertNotNullL( listBoxModel , KSnakingList3 ); + + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( colorUseList ); + listBox->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KSnakingList4 ); + colorUseList->Reset(); + listBox->GetColorUseListL( *colorUseList ); + CleanupStack::PopAndDestroy( colorUseList ); + + TInt type( 1 ); + listBox->HandleResourceChange( type ); + AssertTrueL(ETrue , KSnakingList5); + listBox->HandlePointerEventL( event ); + AssertTrueL( ETrue , KSnakingList6 ); + CleanupStack::Pop( listBox ); + delete listBox; + AssertTrueL( ETrue , KSnakingList7 ); + } + +//--------------------------------------------------------------------------- +//Test CEikTextListBox +//--------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestEikTextListBoxL() + { + _LIT( KStreamName, "C:\\bctestlog\\bctestlog1.txt" ); + _LIT( KTextList1 , "CEikTextListBox::CEikTextListBox() invoked" ); + _LIT( KTextList2 , "CEikTextListBox::ConstructL() invoked" ); + _LIT( KTextList3 , "CEikTextListBox::Model() invoked" ); + _LIT( KTextList4 , "CEikTextListBox::GetColorUseListL() invoked" ); + _LIT( KTextList5 , "CEikTextListBox::CreateItemDrawerL() invoked" ); + _LIT( KTextList6 , "CEikTextListBox::WriteInternalStateL() invoked" ); + _LIT( KTextList7 , "CEikTextListBox::~CEikTextListBox() invoked" ); + _LIT( KTextList8 , "CEikTextListBox::CEikTextListBox() invoked" ); + _LIT( KTextList9 , "CreateResourceReaderLC() invoked" ); + _LIT( KTextList10 , "CEikTextListBox::ConstructFromResourceL() invoked" ); + _LIT( KTextList11 , "CEikTextListBox::~CEikTextListBox() invoked" ); + + + CSubEikTextListBox * listbox = new ( ELeave )CSubEikTextListBox(); + CleanupStack::PushL( listbox ); + AssertNotNullL( listbox , KTextList1 ); + + listbox->ConstructL( iContainer ); + AssertTrueL( ETrue , KTextList2 ); + + CTextListBoxModel * listboxModel = listbox->Model(); + AssertNotNullL( listboxModel , KTextList3 ); + + CArrayFix* indexArray = new ( ELeave ) + CArrayFixFlat( 1 ); + CleanupStack::PushL( indexArray ); + listbox->GetColorUseListL(*indexArray); + AssertTrueL(ETrue , KTextList4); + CleanupStack::PopAndDestroy( indexArray ); + + listbox->TestCreateItemDrawerL(); + AssertTrueL(ETrue , KTextList5); + + + RFs& tempServer = iEikEnv->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + listbox->TestWriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy( &fWrite ); + AssertTrueL(ETrue , KTextList6); + CleanupStack::Pop(listbox); + + delete listbox; + AssertTrueL(ETrue , KTextList7); + + //test ContructFromResurceL + CSubEikTextListBox * listbox2 = new( ELeave )CSubEikTextListBox(); + CleanupStack::PushL(listbox2); + AssertNotNullL(listbox2 , KTextList8); + + listbox2->SetContainerWindowL( *iContainer ); + TResourceReader resourceReader; + iEikEnv->CreateResourceReaderLC( resourceReader, + R_BCTESTMIX50_LIST_MARKABLELIST_BIG_SINGLE ); + AssertTrueL( ETrue, KTextList9 ); + listbox2->ConstructFromResourceL( resourceReader ); + AssertTrueL( ETrue, KTextList10 ); + + CleanupStack::PopAndDestroy(); //resourceReader + CleanupStack::Pop(); //listbox2 + delete listbox2; + AssertTrueL(ETrue , KTextList11); + + } +//---------------------------------------------------------------------------- +// Test CTextListBoxModel +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestTextListBoxModelL() + { + _LIT( KModel1 , "CTextListBoxModel::CTextListBoxModel() invoked" ); + _LIT( KModel2 , "CTextListBoxModel::MatchableTextArray() invoked" ); + _LIT( KModel3 , "CTextListBoxModel::ItemArrayOwnershipType() invoked" ); + _LIT( KModel4 , "CTextListBoxModel::SetItemTextArray() invoked" ); + _LIT( KModel5 , "CTextListBoxModel::SetOwnershipType() invoked" ); + _LIT( KModel6 , "CTextListBoxModel::~CTextListBoxModel() invoked" ); + + CSubTextListBoxModel* model = new( ELeave ) CSubTextListBoxModel(); + CleanupStack::PushL( model ); + AssertNotNullL( model, KModel1 ); + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + const MDesCArray* array = model->MatchableTextArray(); + AssertTrueL( ETrue, KModel2 ); + delete array; + + TListBoxModelItemArrayOwnership type = + model->TestItemArrayOwnershipType(); + AssertTrueL( ETrue, KModel3 ); + + model->SetItemTextArray( textArray ); + AssertTrueL( ETrue, KModel4 ); + + model->SetOwnershipType( ELbmOwnsItemArray ); + AssertTrueL( ETrue, KModel5 ); + + CleanupStack::Pop(); // textArray + CleanupStack::Pop(); // model + delete model; + AssertTrueL( ETrue, KModel6 ); + } + +//---------------------------------------------------------------------------- +//Test CEikSnakingListBoxL +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestEikSnakingListBoxL() + { + _LIT( KSnakeList1 , "CEikSnakingListBox::CEikSnakingListBox() invoked" ); + _LIT( KSnakeList2 , "CEikSnakingListBox::ConstructL() invoked" ); + _LIT( KSnakeList3 , + "CEikSnakingListBox::MakeViewClassInstanceL() invoked" ); + _LIT( KSnakeList4 , "CEikSnakingListBox::ColumnWidth() invoked" ); + _LIT( KSnakeList5 , "CEikSnakingListBox::SetColumnWidth() invoked" ); + _LIT( KSnakeList6 , "CEikSnakingListBox::HandlePointerEventL() invoked" ); + _LIT( KSnakeList7 , "CEikSnakingListBox::SetTopItemIndex() invoked" ); + _LIT( KSnakeList8 , + "CEikSnakingListBox::HandleViewRectSizeChangeL() invoked" ); + _LIT( KSnakeList9 , + "CEikSnakingListBox::HandleLeftArrowKeyL() invoked" ); + _LIT( KSnakeList10 , + "CEikSnakingListBox::HorizontalNudgeValue() invoked" ); + _LIT( KSnakeList11 , + "CEikSnakingListBox::HorizScrollGranularityInPixels() invoked" ); + _LIT( KSnakeList12 , + "CEikSnakingListBox::AdjustTopItemIndex() invoked" ); + _LIT( KSnakeList13 , "CEikSnakingListBox::HandleDragEventL() invoked" ); + _LIT( KSnakeList14 , + "CEikSnakingListBox::RestoreClientRectFromViewRect() invoked" ); + _LIT( KSnakeList15 , + "CEikSnakingListBox::AdjustRectHeightToWholeNumberOfItems() \ + invoked" ); + _LIT( KSnakeList16 , + "CEikSnakingListBox::MoveToNextOrPreviousItemL() invoked" ); + _LIT( KSnakeList17 , + "CEikSnakingListBox::SizeChanged() invoked" ); + _LIT( KSnakeList18 , "CEikSnakingListBox::GetColorUseListL() invoked" ); + _LIT( KSnakeList19 , + "CEikSnakingListBox::HandleResourceChange() invoked" ); + _LIT( KSnakeList20 , + "CEikSnakingListBox::HandleRightArrowKeyL() invoked" ); + _LIT( KSnakeList21 , + "CEikSnakingListBox::~CEikSnakingListBox() invoked" ); + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer( model , + iEikEnv->NormalFont() ); + CleanupStack::PushL( drawer ); + CSubListBoxData *boxData = new( ELeave )CSubListBoxData(); + boxData->ConstructL( iEikEnv->NormalFont() ); + boxData->AddActualFontL( iEikEnv->NormalFont() ); + drawer->SetData( boxData ); + + CSubEikSnakingListBox *snakeList = new ( ELeave ) CSubEikSnakingListBox(); + CleanupStack::PushL( snakeList ); + AssertNotNullL( snakeList, KSnakeList1 ); + + TGulBorder border( TGulBorder::ESingleGray ); + snakeList->ConstructL( model, drawer, iContainer, border, + EAknListBoxSelectionList | EAknListBoxViewerFlags ); + AssertTrueL( ETrue, KSnakeList2 ); + + CListBoxView* view = snakeList->MakeViewClassInstanceL(); + AssertNotNullL( view, KSnakeList3 ); + delete view; + + TInt width = snakeList->ColumnWidth(); + AssertTrueL( ETrue, KSnakeList4 ); + + snakeList->SetColumnWidth( 10 ); + AssertTrueL( ETrue, KSnakeList5 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 0, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + snakeList->HandlePointerEventL( event ); + AssertTrueL( ETrue, KSnakeList6 ); + + snakeList->SetTopItemIndex( 1 ); + AssertNotNullL( view, KSnakeList7 ); + + snakeList->HandleViewRectSizeChangeL(); + AssertTrueL( ETrue , KSnakeList8 ); + + snakeList->HandleLeftArrowKeyL( CListBoxView::ESingleSelection ); + AssertTrueL( ETrue , KSnakeList9 ); + + TInt nudgeValue = snakeList->HorizontalNudgeValue(); + AssertTrueL( ETrue , KSnakeList10 ); + + TInt granularity = snakeList->HorizScrollGranularityInPixels(); + AssertTrueL( ETrue , KSnakeList11 ); + + snakeList->AdjustTopItemIndex(); + AssertTrueL( ETrue , KSnakeList12 ); + + snakeList->HandleDragEventL(TPoint( 0, 0 )); + AssertTrueL( ETrue , KSnakeList13 ); + + TRect rect = iContainer->Rect(); + snakeList->RestoreClientRectFromViewRect( rect ); + AssertTrueL( ETrue , KSnakeList14 ); + + TInt pixelReduced = + snakeList->AdjustRectHeightToWholeNumberOfItems( rect ); + AssertTrueL( ETrue , KSnakeList15 ); + + snakeList->MoveToNextOrPreviousItemL( TPoint( 10, 50 ) ); + AssertTrueL( ETrue , KSnakeList16 ); + + snakeList->SizeChanged(); + AssertTrueL( ETrue , KSnakeList17 ); + + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( colorUseList ); + snakeList->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue , KSnakeList18 ); + CleanupStack::PopAndDestroy( colorUseList ); + + snakeList->HandleResourceChange( KAknsMessageSkinChange ); + AssertTrueL( ETrue , KSnakeList19 ); + snakeList->HandleRightArrowKeyL( CListBoxView::ESingleSelection ); + AssertTrueL( ETrue , KSnakeList20 ); + + CleanupStack::Pop( snakeList ); + CleanupStack::Pop( drawer ); + CleanupStack::Pop( model ); + CleanupStack::Pop( textArray ); + delete snakeList; + AssertTrueL( ETrue, KSnakeList21 ); + } + +//---------------------------------------------------------------------------- +// test CEikListBox +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestEikListBoxL() + { + _LIT( KEikListBox1 , "CEikListBox::CEikListBox() invoked" ); + _LIT( KEikListBox2 , "CEikListBox::ConstructL() invoked" ); + _LIT( KEikListBox3 , "CEikListBox::HandleScrollEventL() invoked" ); + _LIT( KEikListBox4 , "CEikListBox::VerticalInterItemGap() invoked" ); + _LIT( KEikListBox5 , "CEikListBox::GetColorUseListL() invoked" ); + _LIT( KEikListBox6 , "CEikListBox::GetColorUseListL2() invoked" ); + _LIT( KEikListBox7 , "CEikListBox::GetColorUseListL3() invoked" ); + _LIT( KEikListBox8 , "CEikListBox::GetColorUseListL4() invoked" ); + _LIT( KEikListBox9 , "CEikListBox::HighlightRect() invoked" ); + _LIT( KEikListBox10 , "CEikListBox::UndoLastChar() invoked" ); + _LIT( KEikListBox11 , "CEikListBox::HandleLeftArrowKeyL() invoked" ); + _LIT( KEikListBox12 , "CEikListBox::HandleRightArrowKeyL() invoked" ); + _LIT( KEikListBox13 , "CEikListBox::MakeViewClassInstanceL() invoked" ); + _LIT( KEikListBox14 , "CEikListBox::SetReasonForFocusLostL() invoked" ); + _LIT( KEikListBox15 , "CEikListBox::ReasonForFocusLostL() invoked" ); + _LIT( KEikListBox16 , "CEikListBox::EnableMSKObserver() invoked" ); + _LIT( KEikListBox17 , + "CEikListBox::SetPointerEventFilterDisabledL() invoked" ); + //5.2 specific + _LIT( KEikListBox18 , + "CEikListBox::SuspendEffects() invoked" ); + _LIT( KEikListBox19 , + "CEikListBox::ScrollingDisabled() invoked" ); + _LIT( KEikListBox20 , + "CEikListBox::ItemIsPartiallyVisible() invoked" ); + + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer(); + CleanupStack::PushL( drawer ); + drawer->ConstructL( iEikEnv->NormalFont() ); + CEikListBox* listBox1 = new( ELeave ) CEikListBox(); + CleanupStack::PushL( listBox1 ); + AssertNotNullL( listBox1, KEikListBox1 ); + + listBox1->ConstructL( model, drawer, + iContainer, EAknListBoxSelectionList | EAknListBoxViewerFlags ); + AssertNotNullL( listBox1, KEikListBox2 ); + + const CArrayFix* tmp = listBox1->SelectionIndexes(); + + /*listBox1->SetPointerEventFilterDisabledL( *tmp ); + AssertTrueL( ETrue, KEikListBox17 ); + + //5.2 specific + listBox1->SuspendEffects(ETrue); + AssertTrueL( ETrue, KEikListBox18 ); + + listBox1->ScrollingDisabled(); + AssertTrueL( ETrue, KEikListBox19 ); + + listBox1->View()->ItemIsPartiallyVisible( 1 ); + AssertTrueL( ETrue, KEikListBox20 );*/ + + CleanupStack::PopAndDestroy( listBox1 ); + CleanupStack::Pop( drawer ); + CleanupStack::Pop( model ); + CleanupStack::Pop( textArray ); + + textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + drawer = new( ELeave ) CTextListItemDrawer( model,iEikEnv->NormalFont() ); + CleanupStack::PushL( drawer ); + + CSubEikListBox* listBox = new( ELeave ) CSubEikListBox(); + CleanupStack::PushL( listBox ); + + TGulBorder border( TGulBorder::ESingleGray ); + listBox->ConstructL( model, drawer, + iContainer, border, + EAknListBoxSelectionList | EAknListBoxViewerFlags ); + listBox->SetDimmed( ETrue ); + + CEikScrollBar* scrollBar = new( ELeave ) CEikScrollBar(); + CleanupStack::PushL( scrollBar ); + scrollBar->ConstructL( listBox , iContainer , CEikScrollBar::EVertical , + iContainer->Rect().Size().iHeight ); + listBox->HandleScrollEventL( scrollBar , EEikScrollDown ); + AssertNotNullL( listBox, KEikListBox3 ); + + TInt botIndex = listBox->BottomItemIndex(); + + TRect rect = iContainer->Rect(); + listBox->CalculatePopoutRect( 0 , 0 , rect ); + + TSize size = listBox->CalcSizeInPixels( 5 , 2 ); + TInt width = listBox->CalcWidthBasedOnNumOfChars( 5 ); + listBox->CalcHeightBasedOnNumOfItems( 2 ); + listBox->CalcWidthBasedOnRequiredItemWidth( 30 ); + + TInt verticalInterItemGap = listBox->VerticalInterItemGap(); + AssertTrueL( ETrue, KEikListBox4 ); + + listBox->SetLaunchingButton( NULL ); + listBox->SetItemEditor( NULL); + MEikListBoxEditor* editor = listBox->ItemEditor(); + listBox->EditItemL( 10 ); + listBox->StopEditingL( EFalse ); + TInt shortcutValue = listBox->ShortcutValueForNextList(); + listBox->SetShortcutValueFromPrevList( 1 ); + + CArrayFixFlat* colorUseList = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( colorUseList ); + listBox->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KEikListBox5 ); + + colorUseList->Reset(); + AssertTrueL( ETrue, KEikListBox6 ); + + listBox->GetColorUseListL( *colorUseList ); + AssertTrueL( ETrue, KEikListBox7 ); + + CleanupStack::PopAndDestroy( colorUseList ); + AssertTrueL( ETrue, KEikListBox8 ); + + TRect hightlightRect = listBox->HighlightRect(); + AssertTrueL( ETrue, KEikListBox9 ); + + listBox->CreateMatchBufferL(); + listBox->UndoLastChar(); + AssertTrueL( ETrue , KEikListBox10 ); + + TInt scrollGraInPixels = listBox->HorizScrollGranularityInPixels(); + + TInt horizontalNudge = listBox->HorizontalNudgeValue(); + listBox->SimulateArrowKeyEventL( EKeyDownArrow ); + listBox->HandleLeftArrowKeyL( CListBoxView::ESingleSelection ); + AssertTrueL( ETrue, KEikListBox11 ); + + listBox->HandleRightArrowKeyL( CListBoxView::ENoSelection ); + AssertTrueL( ETrue, KEikListBox12 ); + + CListBoxView* view = listBox->MakeViewClassInstanceL(); + AssertTrueL( ETrue, KEikListBox13 ); + delete view; + + TInt height = listBox->ViewRectHeightAdjustment(); + listBox->SetViewRectHeightAdjustment( 10 ); + listBox->HandleDragEventL( TPoint( 0, 0 ) ); + TInt interItemGap = listBox->InterItemGap(); + listBox->SetReasonForFocusLostL( + CEikListBox::EFocusLostToExternalControl ); + AssertTrueL( ETrue, KEikListBox14 ); + + CEikListBox::TReasonForFocusLost rffl = listBox->ReasonForFocusLostL(); + AssertTrueL( ETrue, KEikListBox15 ); + + TEikScrollBarFrameLayout frameLayout; + listBox->CreateScrollBarFrameLayout( frameLayout ); + + TInt eventModified = listBox->EventModifiers(); + CEikScrollBarFrame* scrollBar2 = listBox->CreateScrollBarFrameL(); + listBox->EnableMSKObserver(ETrue); + AssertTrueL( ETrue , KEikListBox16 ); + + CleanupStack::PopAndDestroy( scrollBar ); + CleanupStack::PopAndDestroy( listBox ); + CleanupStack::Pop( drawer ); + CleanupStack::Pop( model ); + CleanupStack::Pop( textArray ); + } + +//---------------------------------------------------------------------------- +//Test CSnakingListBoxView +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestSnakingListBoxViewL() + { + _LIT( KSnakeList1 , + "CSubEikSnakingListBox::CSubEikSnakingListBox() invoked" ); + _LIT( KListView1 , "CSnakingListBoxView::SetColumnWidth() invoked" ); + _LIT( KListView2 , "CSnakingListBoxView::SetItemHeight() invoked" ); + _LIT( KListView3 , + "CSnakingListBoxView::NumberOfItemsThatFitInRect() invoked" ); + _LIT( KListView4 , "CSnakingListBoxView::HScroll() invoked" ); + _LIT( KListView5 , "CSnakingListBoxView::CalcDataWidth() invoked" ); + _LIT( KListView6 , + "CSnakingListBoxView::CalcBottomItemIndex() invoked" ); + _LIT( KListView7 , "CSnakingListBoxView::Draw() invoked" ); + _LIT( KListView8 , "CSnakingListBoxView::VisibleWidth() invoked" ); + _LIT( KListView9 , + "CSnakingListBoxView::ScrollToMakeItemVisible() invoked" ); + _LIT( KListView10 , + "CSnakingListBoxView::CalculateHScrollOffsetSoItemIsVisible() \ + invoked" ); + _LIT( KListView11 , + "CSnakingListBoxView::CalcNewTopItemIndexSoItemIsVisible() invoked" ); + _LIT( KListView12 , "CSnakingListBoxView::ItemPos() invoked" ); + _LIT( KListView13 , + "CSnakingListBoxView::CalcRowAndColIndexesFromItemIndex() invoked" ); + _LIT( KListView14 , + "CSnakingListBoxView::ItemSize() invoked" ); + _LIT( KListView15 , + "CSnakingListBoxView::CalcItemIndexFromRowAndColIndexes() invoked" ); + _LIT( KListView16 , + "CSnakingListBoxView::NumberOfItemsPerColumn() invoked" ); + _LIT( KListView17 , "CSnakingListBoxView::DrawItemRange() invoked" ); + _LIT( KListView18, "CSnakingListBoxView::DrawColumnRange() invoked" ); + _LIT( KListView19 , + "CSnakingListBoxView::MoveToPreviousColumnL() invoked" ); + _LIT( KListView20 , "CSnakingListBoxView::MoveToNextColumnL() invoked" ); + _LIT( KListView21 , + "CSnakingListBoxView::ClearUnusedItemSpace() invoked" ); + _LIT( KListView22 , + "CSnakingListBoxView::UpdateHScrollOffsetBasedOnTopItemIndex()\ + invoked" ); + _LIT( KSnakeList23 , + "CSubEikSnakingListBox::~CSubEikSnakingListBox() invoked" ); + + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL + ( R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer( model , + iEikEnv->NormalFont() ); + CleanupStack::PushL( drawer ); + CSubListBoxData *boxData = new(ELeave)CSubListBoxData(); + boxData->ConstructL( iEikEnv->NormalFont() ); + boxData->AddActualFontL( iEikEnv->NormalFont() ); + drawer->SetData( boxData ); + + CSubEikSnakingListBox *snakeList = new ( ELeave ) CSubEikSnakingListBox(); + CleanupStack::PushL( snakeList ); + AssertNotNullL( snakeList, KSnakeList1 ); + + TGulBorder border( TGulBorder::ESingleGray ); + snakeList->ConstructL( model, drawer, iContainer, border, + EAknListBoxSelectionList | EAknListBoxViewerFlags ); + + //Test CSnakingListBoxViewL + snakeList->CreateViewL(); + CSubSnakingListBoxView * listView = + ( CSubSnakingListBoxView * )snakeList->iView; + listView->SetColumnWidth( 10 ); + AssertTrueL( ETrue , KListView1 ); + + listView->MoveCursorL( CListBoxView::ECursorNextItem, + CListBoxView::ENoSelection ); + listView->SetTopItemIndex( 1 ); + listView->SetItemHeight ( 10 ); + + AssertTrueL( ETrue , KListView2 ); + TPoint point( 0 , 0 ); + TInt index = 1; + listView->XYPosToItemIndex( point , index); + + TRect rect = iContainer->Rect(); + TInt numbers = listView->NumberOfItemsThatFitInRect( rect ); + AssertTrueL( ETrue , KListView3 ); + + listView->HScroll( 2 ); + AssertTrueL( ETrue , KListView4 ); + + listView->CalcDataWidth(); + AssertTrueL( ETrue , KListView5 ); + + listView->CalcBottomItemIndex(); + AssertTrueL( ETrue , KListView6); + + listView->Draw(); + AssertTrueL( ETrue , KListView7 ); + + TInt width = listView->VisibleWidth(rect); + AssertTrueL( ETrue , KListView8 ); + + listView->ScrollToMakeItemVisible( 1 ); + AssertTrueL( ETrue , KListView9 ); + + listView->CalculateHScrollOffsetSoItemIsVisible( 1 ); + AssertTrueL( ETrue , KListView10 ); + + listView->CalcNewTopItemIndexSoItemIsVisible( 2 ); + AssertTrueL( ETrue , KListView11 ); + + TPoint point2 = listView->ItemPos(2); + AssertTrueL( ETrue , KListView12 ); + + TSize size = listView->ItemSize(); + AssertTrueL( ETrue , KListView13 ); + + TInt itemIndex = 1 ; + TInt rowIndex = 0 ; + TInt colIndex = 0 ; + listView->CalcRowAndColIndexesFromItemIndex( itemIndex , rowIndex , + colIndex ); + AssertTrueL( ETrue , KListView14 ); + + colIndex = 0; + listView->CalcItemIndexFromRowAndColIndexes( itemIndex , rowIndex , + colIndex ); + AssertTrueL( ETrue , KListView15 ); + + TInt perColumn = listView->NumberOfItemsPerColumn(); + AssertTrueL( ETrue , KListView16 ); + + listView->DrawItemRange( 1 , 5 ); + AssertTrueL( ETrue , KListView17 ); + + listView->DrawColumnRange( 2 ,4 ); + AssertTrueL( ETrue , KListView18 ); + + listView->MoveToPreviousColumnL(CListBoxView::ESingleSelection); + AssertTrueL( ETrue , KListView19 ); + + listView->MoveToNextColumnL(CListBoxView::ESingleSelection); + AssertTrueL( ETrue , KListView20 ); + + listView->ClearUnusedItemSpace( 1 , 2 ); + AssertTrueL( ETrue , KListView21 ); + + listView->UpdateHScrollOffsetBasedOnTopItemIndex(); + AssertTrueL( ETrue , KListView22 ); + + CleanupStack::Pop( snakeList ); + CleanupStack::Pop( drawer ); + CleanupStack::Pop( model ); + CleanupStack::Pop( textArray ); + delete snakeList; + AssertTrueL( ETrue, KSnakeList23 ); + } + +//--------------------------------------------------------------------------- +//Test CListBoxView +//--------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestListBoxViewL() + { + _LIT( KListBoxView1 , "CEikListBox::CEikListBox() invoked" ); + _LIT( KListBoxView2 , "CEikListBox::ConstructL() invoked" ); + _LIT( KListBoxView3 , "CEikListBox::CreateViewL() invoked" ); + _LIT( KListBoxView4 , "CListBoxView::SetDimmed() invoked" ); + _LIT( KListBoxView5 , "CListBoxView::SetPaintedSelection() invoked" ); + _LIT( KListBoxView6 , "CListBoxView::HScroll() invoked" ); + _LIT( KListBoxView7 , "CListBoxView::Draw() invoked" ); + _LIT( KListBoxView8 , "CListBoxView::TextColor() invoked" ); + _LIT( KListBoxView9 , "CListBoxView::DrawEmptyList() invoked" ); + _LIT( KListBoxView10 , "CListBoxView::DeselectRangeL() invoked" ); + _LIT( KListBoxView11 , "CListBoxView::SelectRangeL() invoked" ); + _LIT( KListBoxView12 , "PopAndDestroy invoked" ); + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer(); + CleanupStack::PushL( drawer ); + CSubListBoxData *boxData = new( ELeave )CSubListBoxData(); + boxData->ConstructL( iEikEnv->NormalFont() ); + boxData->AddActualFontL( iEikEnv->NormalFont() ); + drawer->SetData( boxData ); + + + CSubEikListBox* listBox = new( ELeave ) CSubEikListBox(); + CleanupStack::PushL( listBox ); + AssertTrueL( ETrue, KListBoxView1 ); + + TGulBorder border( TGulBorder::ESingleGray ); + listBox->ConstructL( model, drawer, + iContainer, border, + EAknListBoxSelectionList | EAknListBoxViewerFlags ); + AssertTrueL( ETrue, KListBoxView2 ); + + listBox->CreateViewL(); + AssertTrueL( ETrue, KListBoxView3 ); + + CSubListBoxView * listView = ( CSubListBoxView * )listBox->iView; + //begin test CListBoxView + listView->SetDimmed( ETrue ); + AssertTrueL( ETrue, KListBoxView4 ); + + listView->SetPaintedSelection( ETrue ); + AssertTrueL( ETrue, KListBoxView5 ); + + listView->HScroll( 10 ); + AssertTrueL( ETrue, KListBoxView6 ); + + listView->Draw(); + AssertTrueL( ETrue, KListBoxView7 ); + + TRgb rgb = listView->TextColor(); + AssertTrueL( ETrue, KListBoxView8 ); + + listView->DrawEmptyList( iContainer->Rect() ); + AssertTrueL( ETrue, KListBoxView9); + + listView->DeselectRangeL( 0 , 4 ); + AssertTrueL( ETrue, KListBoxView10 ); + + listView->SelectRangeL( 1 , 3 ); + AssertTrueL( ETrue, KListBoxView11 ); + + CleanupStack::PopAndDestroy( listBox ); + AssertTrueL( ETrue, KListBoxView12 ); + + CleanupStack::Pop( drawer ); + CleanupStack::Pop( model ); + CleanupStack::Pop( textArray ); + + } +//---------------------------------------------------------------------------- +// test TextListItemDrawer() +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestTextListItemDrawerL() + { + _LIT( KTestItemDrawer1, + "CTextListItemDrawer::ItemWidthInPixels () invoked" ); + _LIT( KTestItemDrawer2, + "CTextListItemDrawer::MatcherCursorRect () invoked" ); + _LIT( KTestItemDrawer3, + "CTextListItemDrawer::MatcherCursorAscent () invoked" ); + _LIT( KTestItemDrawer4, "CTextListItemDrawer::SetFont () invoked" ); + _LIT( KTestItemDrawer5, + "CTextListItemDrawer::SetSearchStringL () invoked" ); + _LIT( KTestItemDrawer6, "CTextListItemDrawer::Font () invoked" ); + _LIT( KTestItemDrawer7, "CTextListItemDrawer::ItemCellSize () invoked" ); + _LIT( KTestItemDrawer8, "CTextListItemDrawer::DrawItemText () invoked" ); + _LIT( KListItemDrawer9, + "CListItemDrawer::ItemWidthInPixels () invoked" ); + _LIT( KListItemDrawer10, "CListItemDrawer::MinimumCellSize () invoked" ); + _LIT( KListItemDrawer11, "CListItemDrawer::SetGc () invoked" ); + _LIT( KListItemDrawer12, + "CListItemDrawer::SetMarkColumnWidth () invoked" ); + _LIT( KListItemDrawer13, "CListItemDrawer::SetMarkGutter () invoked" ); + _LIT( KListItemDrawer14, "CListItemDrawer::MarkColumn () invoked" ); + _LIT( KListItemDrawer15, "CListItemDrawer::MarkGutter () invoked" ); + _LIT( KListItemDrawer16, + "CListItemDrawer::MatcherCursorRect () invoked" ); + _LIT( KListItemDrawer17, + "CListItemDrawer::MatcherCursorAscent () invoked" ); + _LIT( KListItemDrawer18, "CListItemDrawer::DrawItemMark () invoked" ); + _LIT( KListItemDrawer19, "CListItemDrawer::SetSymbolFont () invoked" ); + _LIT( KListItemDrawer20, "CListItemDrawer::DrawFrame () invoked" ); + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CSubTextListItemDrawer* textDrawer = new( ELeave ) CSubTextListItemDrawer( + model , iEikEnv->NormalFont() ); + CleanupStack::PushL( textDrawer ); + CSubListBoxData *boxData = new(ELeave)CSubListBoxData(); + CleanupStack::PushL( boxData ); + boxData->ConstructL( iEikEnv->NormalFont() ); + boxData->AddActualFontL( iEikEnv->NormalFont() ); + + textDrawer->SetData( boxData ); + textDrawer->ItemWidthInPixels( 1 ); + AssertTrueL( ETrue, KTestItemDrawer1 ); + TRect cursorRect = iContainer->Rect(); + + cursorRect = textDrawer->MatcherCursorRect( KTestItemDrawer3 , + 0 , 0 , 0 ); + AssertTrueL( ETrue, KTestItemDrawer2 ); + TInt cursorAscent = textDrawer->MatcherCursorAscent( 0 ); + AssertTrueL( ETrue, KTestItemDrawer3 ); + textDrawer->SetFont( iEikEnv->TitleFont() ); + AssertTrueL( ETrue, KTestItemDrawer4 ); + + TPtrC ptr( KTestItemDrawer6 ); + textDrawer->SetSearchStringL( &ptr ); + AssertTrueL( ETrue, KTestItemDrawer5 ); + + const CFont* font = textDrawer->Font( 0 ); + AssertTrueL( ETrue, KTestItemDrawer6 ); + + iContainer->ActivateGc(); + CWindowGc& gc = iContainer->SystemGc(); + textDrawer->SetGc( &gc ); + TSize size = textDrawer->ItemCellSize(); + AssertTrueL( ETrue, KTestItemDrawer7 ); + + TRect rect( TPoint( 0 , 0 ), size ); + textDrawer->DrawItemText( 0 , rect , ETrue , EFalse , EFalse ); + AssertTrueL( ETrue, KTestItemDrawer8 ); + iContainer->DeactivateGc(); + //Test CListItemDrawer + textDrawer->CListItemDrawer::ItemWidthInPixels( 0 ); + AssertTrueL( ETrue, KListItemDrawer9 ); + + size = textDrawer->CListItemDrawer::MinimumCellSize(); + AssertTrueL( ETrue, KListItemDrawer10 ); + + textDrawer->CListItemDrawer::SetGc( &gc ); + AssertTrueL( ETrue, KListItemDrawer11 ); + + textDrawer->CListItemDrawer::SetMarkColumnWidth( 30 ); + AssertTrueL( ETrue, KListItemDrawer12 ); + + textDrawer->CListItemDrawer::SetMarkGutter( 10 ); + AssertTrueL( ETrue, KListItemDrawer13 ); + + TInt colum = textDrawer->CListItemDrawer::MarkColumn(); + AssertTrueL( ETrue, KListItemDrawer14 ); + + TInt gutter = textDrawer->CListItemDrawer::MarkGutter(); + AssertTrueL( ETrue, KListItemDrawer15 ); + + cursorRect = textDrawer->CListItemDrawer::MatcherCursorRect( + KTestItemDrawer3 , 0 , 0 , 0 ); + AssertTrueL( ETrue, KListItemDrawer16 ); + + cursorAscent = textDrawer->CListItemDrawer::MatcherCursorAscent( 0 ); + AssertTrueL( ETrue, KListItemDrawer17 ); + + TPoint pt( 0, 0 ); + textDrawer->CListItemDrawer::DrawItemMark( ETrue , EFalse , pt ); + AssertTrueL( ETrue, KListItemDrawer18 ); + + textDrawer->CListItemDrawer::SetSymbolFont( iEikEnv->NormalFont() ); + AssertTrueL( ETrue, KListItemDrawer19 ); + + CFont* itemFont = textDrawer->CListItemDrawer::Font( 0 ); + textDrawer->CListItemDrawer::DrawFrame( gc , rect , 0 ); + AssertTrueL( ETrue, KListItemDrawer20 ); + + CleanupStack::Pop( boxData ); + CleanupStack::PopAndDestroy( textDrawer ); + CleanupStack::PopAndDestroy( model ); + CleanupStack::Pop( textArray ); + } + +//---------------------------------------------------------------------------- +// Test CEikListBoxTextEditor +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestListBoxTextEditorL() + { + _LIT( KStreamName, "C:\\bctestlog\\bctestlog1.txt" ); + + _LIT( KTextEditor1, "CEikListBoxTextEditor::UpdateModelL() invoked" ); + _LIT( KTextEditor2, + "CEikListBoxTextEditor::HandlePointerEventL() invoked" ); + _LIT( KTextEditor3, "CEikListBoxTextEditor::ListBoxModel() invoked" ); + _LIT( KTextEditor4, "CEikListBoxTextEditor::ItemIndex() invoked" ); + _LIT( KTextEditor5, "CEikListBoxTextEditor::Editor() invoked" ); + _LIT( KTextEditor6, "CEikListBoxTextEditor::StopEditingL() invoked" ); + _LIT( KTextEditor7, "CEikListBoxTextEditor::Release() invoked" ); + + CDesCArray* textArray = iEikEnv->ReadDesCArrayResourceL( + R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CTextListBoxModel* model = new( ELeave ) CTextListBoxModel(); + CleanupStack::PushL( model ); + model->ConstructL( textArray ); + + CSubEikListBoxTextEditor * textEditor = new CSubEikListBoxTextEditor( model ); + CleanupStack::PushL( textEditor ); + + textEditor->SetFont( iEikEnv->NormalFont() ); + textEditor->SetListBoxEditorObserver( NULL ); + TPtrC text = textEditor->ItemText(); + + TRect rect = iContainer->Rect(); + rect.iBr.iY = rect.iTl.iY + rect.Size().iHeight / 2; + + TKeyEvent eventEnter = { EKeyEnter , EKeyEnter , 0 , 0 }; + textEditor->OfferKeyEventL( eventEnter, EEventKey ); + + textEditor->UpdateModelL(); + AssertTrueL( ETrue, KTextEditor1 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0 ; + TPoint eventPos(0, 30) ; + event.iPosition = eventPos; + event.iParentPosition = eventPos; + textEditor->HandlePointerEventL(event); + AssertTrueL( ETrue, KTextEditor2 ); + + CTextListBoxModel* listModel = + (CTextListBoxModel*)textEditor->ListBoxModel(); + AssertTrueL( ETrue, KTextEditor3 ); + + TInt index = textEditor->ItemIndex(); + AssertTrueL( ETrue, KTextEditor4 ); + + textEditor->StartEditingL( *iContainer, rect , 0 , 30 ); + CEikEdwin* edWin = textEditor->Editor(); + AssertTrueL( ETrue, KTextEditor5 ); + + RFs& tempServer = iEikEnv->FsSession(); + tempServer.Delete( KStreamName ); + AssertTrueL( ETrue, KStreamName ); + + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + textEditor->WriteInternalStateL( fWrite ); + CleanupStack::PopAndDestroy( &fWrite ); + + textEditor->StopEditingL(); + AssertTrueL( ETrue, KTextEditor6 ); + + textEditor->Release(); + AssertTrueL( ETrue, KTextEditor7 ); + + CleanupStack::Pop( textEditor ); + CleanupStack::PopAndDestroy( model ); + CleanupStack::Pop( textArray ); + } +//--------------------------------------------------------------------------- +// Test CListBoxData and CFontsWithStyle +//--------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestListBoxDataL() + { + _LIT( KEikSearchString, "searching" ); + _LIT( KEikTestText, "test text" ); + + _LIT( KLbData1, "CListBoxData::CListBoxData() invoked" ); + _LIT( KLbData2, "CListBoxData::ConstructL() invoked" ); + _LIT( KLbData3, "CListBoxData::FontBoundValues() invoked" ); + _LIT( KLbData4, "CListBoxData::SetFontHeight() invoked" ); + _LIT( KLbData5, "CListBoxData::ConstructFontL() invoked" ); + _LIT( KLbData6, "CListBoxData::UpdateFontBoundValues() invoked" ); + _LIT( KLbData7, "CListBoxData::IsSearchString() invoked" ); + _LIT( KLbData8, "CListBoxData::DrawItem() invoked" ); + _LIT( KLbData9, "CFontsWithStyle class function invoked" ); + + + CSubListBoxData *listdata = new( ELeave ) CSubListBoxData(); + CleanupStack::PushL( listdata ); + AssertTrueL( ETrue, KLbData1 ); + + listdata->ConstructL( iEikEnv->NormalFont() ); + AssertTrueL( ETrue, KLbData2 ); + + const TListFontBoundValues& boundValue = listdata->FontBoundValues(); + AssertTrueL( ETrue, KLbData3 ); + + TInt fontHeightInTwips = 10; + TInt height = listdata->SetFontHeight( fontHeightInTwips ); + AssertTrueL( ETrue, KLbData4 ); + + TFontStyle style( EPostureItalic, EStrokeWeightBold, + EPrintPosSuperscript ); + listdata->ConstructFontL( iEikEnv->TitleFont(), style, + listdata->iItalicFont ); + AssertTrueL( ETrue, KLbData5 ); + + listdata->UpdateFontBoundValues( *( iEikEnv->NormalFont() ) ); + fontHeightInTwips = 20; + TInt ret = listdata->RegenerateFonts( listdata->iNormalFont, + fontHeightInTwips ); + AssertTrueL( ETrue, KLbData6 ); + + TPtrC ptr( KEikSearchString ); + listdata->SetSearchStringL( &ptr ); + TBool search = listdata->IsSearchString(); + AssertTrueL( ETrue, KLbData7 ); + + iContainer->ActivateGc(); + CWindowGc& gc = iContainer->SystemGc(); + const TInt KRectHeight = 30; + TRect rect = iContainer->Rect(); + rect.iBr.iY = rect.iTl.iY + KRectHeight; + const CFont& font = *iEikEnv->NormalFont(); + gc.UseFont( &font ); + listdata->DrawItem( gc, rect, KEikTestText, font, 0 ); + AssertTrueL( ETrue, KLbData8 ); + + listdata->TestCFontWithStyle(); + AssertTrueL( ETrue, KLbData9 ); + + iContainer->DeactivateGc(); + CleanupStack::PopAndDestroy(listdata); + } +//------------------------------------------------------------------------------------- +// Test CFormattedCellListBoxData +//------------------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestFormattedCellListBoxDataL() + { + _LIT( KFCListData1, "CFormattedCellListBoxData::NewL() invoked" ); + _LIT( KTColors, "TColors::TColors() invoked" ); + _LIT( KFCListData2, + "CFormattedCellListBoxData::SetSubCellRightSeparatorStyleL() invoked" ); + _LIT( KFCListData3, + "CFormattedCellListBoxData::SetSubCellTextClipGapL() invoked" ); + _LIT( KFCListData4, + "CFormattedCellListBoxData::HasHighlightAnim() invoked" ); + _LIT( KFCListData5, "CFormattedCellListBoxData::Rect() invoked" ); + _LIT( KFCListData6, + "CFormattedCellListBoxData::DrawHighlightAnim() invoked" ); + + CFormattedCellListBoxData* data = CFormattedCellListBoxData::NewL(); + AssertTrueL( ETrue, KFCListData1 ); + + CFormattedCellListBoxData::TColors * color = + new (ELeave)CFormattedCellListBoxData::TColors(); + AssertTrueL( ETrue, KTColors ); + delete color; + + CGraphicsContext::TPenStyle pen = data->SubCellRightSeparatorStyle( 1 ); + data->SetSubCellRightSeparatorStyleL( 1 , CGraphicsContext::ESolidPen); + AssertTrueL( ETrue, KFCListData2 ); + + data->SetSubCellTextClipGapL( 1 , 10); + AssertTrueL( ETrue, KFCListData3 ); + + TBool ret = data->HasHighlightAnim(); + AssertTrueL( ETrue, KFCListData4 ); + + TRect rect = iContainer->Rect(); + AssertTrueL( ETrue, KFCListData5 ); + + CWindowGc& gc = iContainer->SystemGc(); + data->DrawHighlightAnim( gc ,rect ); + AssertTrueL( ETrue, KFCListData6 ); + + delete data; + } + +//---------------------------------------------------------------------------- +// Test CEikFormattedCellListBox +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestFormattedCellListBoxL() + { + + CEikFormattedCellListBox* fcListBox = new CEikFormattedCellListBox(); + fcListBox->ConstructL( iContainer , EAknListBoxSelectionList); + fcListBox->EnableStretching(ETrue); + fcListBox->HideSecondRow(ETrue); + delete fcListBox; + } + +//---------------------------------------------------------------------------- +// Test CColumnListBoxData +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestColumnListBoxDataL() + { + _LIT( KListData1, "CColumnListBoxData::SetColumnMarginsL() invoked" ); + _LIT( KListData2, "CColumnListBoxData::SetColumnAlignmentL() invoked" ); + _LIT( KListData3, + "CColumnListBoxData::SetColumnSeparatorStyleL() invoked" ); + _LIT( KListData4, "CColumnListBoxData::SetNumberColumnL() invoked" ); + _LIT( KListData5, "CColumnListBoxData::SetColumnTextClipGapL() invoked" ); + _LIT( KListData6, "CColumnListBoxData::HasHighlightAnim() invoked" ); + _LIT( KListData7, + "CColumnListBoxData::SubCellsMightIntersect() invoked" ); + _LIT( KListData8, "CColumnListBoxData::StretchingEnabled() invoked" ); + + CColumnListBoxData* listData = CColumnListBoxData::NewL(); + TMargins margin; + const TInt KLeft = 0; + const TInt KTop = 0; + const TInt KRight = 50; + const TInt KBottom = 50; + margin.iLeft = KLeft; + margin.iRight = KRight; + margin.iBottom = KBottom; + margin.iTop = KTop; + + CColumnListBoxData::TColors *color = new CColumnListBoxData::TColors(); + delete color; + listData->SetColumnMarginsL( 1 , margin ); + AssertTrueL( ETrue, KListData1 ); + + listData->SetColumnAlignmentL( 1 , CGraphicsContext::ELeft ); + AssertTrueL( ETrue, KListData2 ); + + listData->SetColumnSeparatorStyleL( 1 , CGraphicsContext::ESolidPen); + AssertTrueL( ETrue, KListData3 ); + + listData->SetNumberColumnL(2 , ETrue); + AssertTrueL( ETrue, KListData4 ); + + listData->SetColumnTextClipGapL( 3 , 10); + AssertTrueL( ETrue, KListData5 ); + + TBool hasHeighLight = listData->HasHighlightAnim(); + AssertTrueL( ETrue, KListData6 ); + + CWindowGc& gc = iContainer->SystemGc(); + TRect rect = iContainer->Rect(); + listData->DrawHighlightAnim(gc, rect); + listData->SubCellsMightIntersect(ETrue); + AssertTrueL( ETrue, KListData7 ); + + TBool stretch = listData->StretchingEnabled(); + AssertTrueL( ETrue, KListData8 ); + + delete listData; + } + +//--------------------------------------------------------------------------- +// Test CEikColumnListBox +//--------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestColumnListBoxL() + { + _LIT( KCListBox1, "CEikColumnListBox::ConstructL() invoked" ); + _LIT( KCListBox2, "CEikColumnListBox::EnableStretching() invoked" ); + + CEikColumnListBox* columnList = new( ELeave ) CEikColumnListBox(); + columnList->ConstructL( iContainer ); + AssertTrueL( ETrue, KCListBox1 ); + + columnList->EnableStretching(ETrue); + AssertTrueL( ETrue, KCListBox2 ); + + delete columnList; + } + +//---------------------------------------------------------------------------- +// Test CAknSelectionListDialog CAknMarkableListDialog +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestSelectionListDialogL() + { + _LIT( KSelListDlg1, "textArray::ReadDesCArrayResourceL() invoked" ); + _LIT( KSelListDlg2, "CAknSelectionListDialog::NewL() invoked" ); + _LIT( KSelListDlg3, + "CAknSelectionListDialog::beforeHandlePointerEventL() invoked" ); + _LIT( KSelListDlg4, + "CAknSelectionListDialog::HandlePointerEventL() invoked" ); + _LIT( KMarkedDlg1, + "CAknMarkableListDialog::CAknMarkableListDialog() invoked" ); + _LIT( KMarkedDlg2, + "CAknMarkableListDialog::HandlePointerEventL() invoked" ); + _LIT( KMarkedDlg3, + "CAknMarkableListDialog::DynInitMenuPaneL() invoked" ); + _LIT( KCAknMarkableListDialog, + "CSubAknMarkableListDialog::CSubAknMarkableListDialog() invoked" ); + + TInt value( -1 ); + CArrayFix* markedItems = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( markedItems ); + CDesCArray* textArray = NULL; + textArray = iEikEnv->ReadDesCArrayResourceL( R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + AssertTrueL( ETrue, KSelListDlg1); + + CAknSelectionListDialog* selDlg = CAknSelectionListDialog::NewL( + value, textArray, R_AVKON_DIALOG_EMPTY_MENUBAR, NULL ); + AssertTrueL( ETrue, KSelListDlg2); + selDlg->PrepareLC( R_BCTESTMIX50_LIST_SINGLE_SELECTION_LIST_DIALOG ); + AssertTrueL( ETrue, KSelListDlg3 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos(0, 30); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + selDlg->HandlePointerEventL(event); + AssertTrueL( ETrue, KSelListDlg4 ); + + CleanupStack::PopAndDestroy( ); // PrepareLC + CleanupStack::PopAndDestroy( textArray ); + CleanupStack::PopAndDestroy( markedItems ); + + markedItems = new( ELeave ) CArrayFixFlat( 2 ); + CleanupStack::PushL( markedItems ); + textArray = NULL; + textArray = iEikEnv->ReadDesCArrayResourceL( R_BCTESTMIX50_LIST_ITEM_SINGLE1 ); + CleanupStack::PushL( textArray ); + + CSubAknMarkableListDialog* markedDlg = CSubAknMarkableListDialog::NewL( + value, markedItems, textArray ); + AssertTrueL( ETrue, KMarkedDlg1 ); + CleanupStack::PushL( markedDlg ); + markedDlg->PrepareLC( R_BCTESTMIX50_LIST_MARKABLE_DIALOG ); + markedDlg->HandlePointerEventL(event); + AssertTrueL( ETrue, KMarkedDlg2 ); + + CEikMenuPane* menuPane = new( ELeave ) CEikMenuPane( markedDlg ); + CleanupStack::PushL( menuPane ); + markedDlg->DynInitMenuPaneL( R_BCTESTMIX50_LIST_COLUMN_MENU, menuPane ); + AssertTrueL( ETrue, KMarkedDlg3 ); + + CDesCArrayFlat* array = new ( ELeave ) CDesCArrayFlat( 4 ); + CleanupStack::PushL( array ); + + array->AppendL( _L( "0\tLabel1\t0\t0" ) ); + array->AppendL(_L( "0\tLabel2\t0\t0" ) ); + + CArrayFix *selectedItems = new(ELeave) CArrayFixFlat( 4 ); + CleanupStack::PushL( selectedItems ); + + //IMPORT_C CAknMarkableListDialog( + // TInt &aValue, CArrayFix *aSelectedItems, + // MDesCArray *aArray, TInt aMenuBarResourceId, + // TInt aOkMenuBarResourceId, + // MEikCommandObserver *aObserver ); + CSubAknMarkableListDialog* dialog = new (ELeave) CSubAknMarkableListDialog( + value, selectedItems, array, 0, R_AVKON_DIALOG_EMPTY_MENUBAR, NULL ); + CleanupStack::PushL( dialog ); + AssertNotNullL( dialog, KCAknMarkableListDialog ); + + CleanupStack::PopAndDestroy( dialog ); + CleanupStack::PopAndDestroy( selectedItems ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( menuPane ); + CleanupStack::PopAndDestroy( ); // PrepareLC + CleanupStack::Pop( markedDlg ); + CleanupStack::PopAndDestroy( textArray ); + CleanupStack::PopAndDestroy( markedItems ); + } +//------------------------------------------------------------------------------ +// Test AknListBoxLayouts AknListBoxLinesTemplate +//------------------------------------------------------------------------------ +// +void CBCTestMix50ListColumnCase::TestListBoxLayoutsL() + { + _LIT( KListBox1, "AknListBoxLayouts::SetupColumnGfxCell() invoked" ); + _LIT( KListBox2, "AknListBoxLayouts::SetupColumnTextCell() invoked" ); + _LIT( KListBox3, + "AknListBoxLayouts::SetupColumnTextCell() another invoked" ); + _LIT( KLBLineTemplate1, + "AknListBoxLinesTemplate::AknListBoxLinesTemplate() invoked" ); + _LIT( KLBLineTemplate2, + "AknListBoxLinesTemplate::ComponentControl() invoked" ); + _LIT( KLBLineTemplate3, + "AknListBoxLinesTemplate::AknListBoxLinesTemplate() invoked" ); + + CEikColumnListBox* listBox = new( ELeave ) CEikColumnListBox(); + listBox->ConstructL( iContainer ); + TRect rect = iContainer->Rect(); + TSize size = listBox->MinimumSize(); + TPoint pt1( rect.iTl ); + TPoint pt2( rect.iTl.iX + size.iWidth, + rect.iTl.iY + size.iHeight ); + AknListBoxLayouts::SetupColumnGfxCell(*listBox, listBox->ItemDrawer() , 0, + rect.iTl.iX, rect.iTl.iY, rect.iBr.iX, rect.iBr.iY, + size.iWidth, size.iHeight, 0 , 5); + AssertTrueL( ETrue, KListBox1 ); + AknListBoxLayouts::SetupColumnTextCell(*listBox, + listBox->ItemDrawer(), 0, iEikEnv->NormalFont(), + 0, rect.iTl.iX, rect.iTl.iY, rect.iBr.iY, size.iWidth, + CGraphicsContext::ELeft, 0 , 5); + AssertTrueL( ETrue, KListBox2 ); + + /*Subbu + TAknTextLineLayout textLine ; + AknListBoxLayouts::SetupColumnTextCell(*listBox, listBox->ItemDrawer(), 0, + textLine, 0 , 20); + AssertTrueL( ETrue, KListBox3 ); + */ + delete listBox; + + AknListBoxLinesTemplate* listbox = + new (ELeave) AknListBoxLinesTemplate + ( R_LIST_PANE_LINES_BC_COLUMN ); + CleanupStack::PushL( listbox ); + AssertTrueL( ETrue, KLBLineTemplate1 ); + listbox->ComponentControl( 0 ); + AssertTrueL( ETrue, KLBLineTemplate2 ); + CleanupStack::PopAndDestroy( listbox ); + + AknListBoxLinesTemplate< CEikSettingsListBox >* settinglb = + new (ELeave)AknListBoxLinesTemplate< CEikSettingsListBox > + ( R_LIST_PANE_LINES_BC_COLUMN ); + AssertTrueL( ETrue, KLBLineTemplate3 ); + delete settinglb; + } + +//---------------------------------------------------------------------------- +// Test CEikConsoleScreen +//---------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestConsoleScreenL() + { + _LIT(KTitle, "Console Screen" ); + _LIT( KConsoleScreen1, "CEikConsoleScreen::CEikConsoleScreen() invoked" ); + _LIT( KConsoleScreen2, "CEikConsoleScreen::ConstructL() invoked" ); + _LIT( KConsoleScreen3, "CEikConsoleScreen::SetTitleL() invoked" ); + _LIT( KConsoleScreen4, "CEikConsoleScreen::SetConsWin() invoked" ); + _LIT( KConsoleControl1, "CEikScrollBar::CEikScrollBar() invoked" ); + _LIT( KConsoleControl2, "CEikConsoleControl::HandleScrollEventL() invoked" ); + + CSubEikConsoleScreen * consoleScreen = new( ELeave ) CSubEikConsoleScreen(); + CleanupStack::PushL( consoleScreen ); + AssertTrueL( ETrue, KConsoleScreen1 ); + + consoleScreen->ConstructL( KTitle, + CEikConsoleScreen::ENoInitialCursor ); + AssertTrueL( ETrue, KConsoleScreen2 ); + + consoleScreen->SetTitleL( KTitle ); + AssertTrueL( ETrue, KConsoleScreen3 ); + CEikConsoleControl* eikConsoleControl = + new( ELeave ) CEikConsoleControl(); + CleanupStack::PushL( eikConsoleControl ); + + TPoint point( 0, 0 ); + TSize ss( 20, 20 ); + eikConsoleControl->ConstructL( point, ss, + CEikConsoleScreen::EUseBackedUpWindow, EEikConsWinInPixels ); + consoleScreen->SetConsWin( eikConsoleControl ); + AssertTrueL( ETrue, KConsoleScreen4 ); + + CEikScrollBar* scrollBar = new( ELeave ) CEikScrollBar(); + CleanupStack::PushL( scrollBar ); + AssertTrueL( ETrue, KConsoleControl1 ); + + scrollBar->ConstructL( eikConsoleControl, iContainer, + CEikScrollBar::EVertical,iContainer->Rect().Size().iHeight ); + eikConsoleControl->HandleScrollEventL( scrollBar, EEikScrollDown ); + AssertTrueL( ETrue, KConsoleControl2 ); + + CleanupStack::PopAndDestroy( scrollBar ); + CleanupStack::Pop( eikConsoleControl ); + CleanupStack::PopAndDestroy( consoleScreen ); + } +// --------------------------------------------------------------------------- +// test CEikCapCArray +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::TestCapCArrayL() + { + _LIT( KCapCArray1, "CEikCapCArray::CEikCapCArray() invoked" ); + _LIT( KCapCArray2, "CEikCapCArray::DeleteLine() invoked" ); + + CEikCapCArray* eikCapCArray = new (ELeave)CEikCapCArray( 3 ) ; + AssertTrueL( ETrue, KCapCArray1 ); + CleanupStack::PushL( eikCapCArray ); + + CEikCaptionedControl* coeControl = new( ELeave ) CEikCaptionedControl(); + CleanupStack::PushL( coeControl ); + eikCapCArray->AppendL(coeControl); + eikCapCArray->DeleteLine( 0 ); + AssertTrueL( ETrue, KCapCArray2 ); + + CleanupStack::Pop( coeControl ); + CleanupStack::PopAndDestroy( eikCapCArray ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListColumnCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::ReleaseCase() + { + iContainer->ResetControl(); + iListBox = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestMix50ListColumnCase::GraphicIconL +// --------------------------------------------------------------------------- +// +void CBCTestMix50ListColumnCase::GraphicIconL( CArrayPtr* /* aIcons */ ) + { + + } + +// --------------------------------------------------------------------------- +// Test CEikTextListBox WriteInternalStateL +// --------------------------------------------------------------------------- +// +void CSubEikTextListBox::TestWriteInternalStateL(RWriteStream& aWriteStream) + const + { + WriteInternalStateL( aWriteStream ); + } + +// --------------------------------------------------------------------------- +// Test CEikTextListBox CreateItemDrawerL +// --------------------------------------------------------------------------- +// +void CSubEikTextListBox::TestCreateItemDrawerL() + { + CreateItemDrawerL(); + if(iItemDrawer) + delete iItemDrawer; + } + +// --------------------------------------------------------------------------- +// Test TListBoxModelItemArrayOwnership ItemArrayOwnershipType +// --------------------------------------------------------------------------- +// +TListBoxModelItemArrayOwnership CSubTextListBoxModel + ::TestItemArrayOwnershipType() const + { + return ItemArrayOwnershipType(); + } + +// --------------------------------------------------------------------------- +// CSubTextListItemDrawer c++ constructor +// --------------------------------------------------------------------------- +// +CSubTextListItemDrawer::CSubTextListItemDrawer( + MTextListBoxModel* aTextListBoxModel, const CFont* aFont) + :CTextListItemDrawer( aTextListBoxModel, aFont ) + { + + } + +// --------------------------------------------------------------------------- +// CSubEikListBoxTextEditor c++ constructor +// --------------------------------------------------------------------------- +// +CSubEikListBoxTextEditor::CSubEikListBoxTextEditor( MListBoxModel* aModel ) + : CEikListBoxTextEditor( aModel ) + { + + } + +// --------------------------------------------------------------------------- +// Test AddActualFontL +// --------------------------------------------------------------------------- +// +TInt CSubListBoxData::AddActualFontL( const CFont* aBaseFont ) + { + if (!iNormalFont.iFonts) + { + iNormalFont.iFonts=new ( ELeave ) CArrayPtrFlat ( 1 ); + iBoldFont.iFonts=new ( ELeave ) CArrayPtrFlat ( 1 ); + iItalicFont.iFonts=new ( ELeave ) CArrayPtrFlat ( 1 ); + iBoldItalicFont.iFonts=new ( ELeave ) CArrayPtrFlat ( 1 ); + } + + // Reserves extra space for each font array. + TInt fontCount=iNormalFont.iFonts->Count()+1; + iNormalFont.iFonts->SetReserveL( fontCount ); + iBoldFont.iFonts->SetReserveL( fontCount ); + iItalicFont.iFonts->SetReserveL( fontCount ); + iBoldItalicFont.iFonts->SetReserveL( fontCount ); + + // Add Fonts. + TFontStyle style=aBaseFont->FontSpecInTwips().iFontStyle; + ConstructFontL( aBaseFont, style, iNormalFont ); + ConstructFontL( aBaseFont, style, iBoldFont ); + ConstructFontL( aBaseFont, style, iItalicFont ); + ConstructFontL( aBaseFont, style, iBoldItalicFont ); + return fontCount-1; + } + +// --------------------------------------------------------------------------- +// Test CFontWithStyle +// --------------------------------------------------------------------------- +// +TBool CSubListBoxData::TestCFontWithStyle() + { + TFontStyle style( EPostureItalic, EStrokeWeightBold, + EPrintPosSuperscript ); + iNormalFont.SetFontStyle( style ); + TFontStyle fontStyle = iNormalFont.FontStyle(); + iNormalFont.ReleaseFonts(); + return ( fontStyle == style ); + } +// --------------------------------------------------------------------------- +// CSubAknMarkableListDialog Symbian 2nd constructor +// --------------------------------------------------------------------------- +// +CSubAknMarkableListDialog* CSubAknMarkableListDialog::NewL( TInt &aValue, + CArrayFix *aSelectedItems, MDesCArray *aArray ) + { + CSubAknMarkableListDialog* self = new( ELeave ) CSubAknMarkableListDialog( + aValue, aSelectedItems, aArray, + R_AVKON_DIALOG_EMPTY_MENUBAR, R_AVKON_DIALOG_EMPTY_MENUBAR, NULL ); + CleanupStack::PushL( self ); + self->ConstructL( R_AVKON_DIALOG_EMPTY_MENUBAR ); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// CSubAknMarkableListDialog C++ constructor +// --------------------------------------------------------------------------- +// +CSubAknMarkableListDialog::CSubAknMarkableListDialog( + TInt &aValue, CArrayFix *aSelectedItems, + MDesCArray *aArray, TInt aMenuBarResourceId, + TInt aOkMenuBarResourceId, MEikCommandObserver *aObserver ): + CAknMarkableListDialog( aValue, aSelectedItems, aArray, aMenuBarResourceId, + aOkMenuBarResourceId, aObserver ) + { + } + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchcontrolcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchcontrolcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2989 @@ +/* +* 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 case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include // Common dialogs resource IDs +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include +#include +#include +//#include +#include +//#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "bctestmix50patchcontrolcase.h" +#include "bctestmix50patchmisc.h" +#include "bctestmix50container.h" +#include "bctestmix50.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50PatchControlCase* CBCTestMix50PatchControlCase::NewL( CBCTestMix50Container* + aContainer ) + { + CBCTestMix50PatchControlCase* self = new( ELeave ) CBCTestMix50PatchControlCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50PatchControlCase::CBCTestMix50PatchControlCase( CBCTestMix50Container* + aContainer ) + : iContainer( aContainer ) + { + iCoeEnv = CCoeEnv::Static(); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMix50PatchControlCase::~CBCTestMix50PatchControlCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(5), LeftCBA, Down, Down, LeftCBA, RightCBA, + RightCBA, RightCBA, RightCBA, RightCBA, RightCBA, + RightCBA, RightCBA, RightCBA, RightCBA, RightCBA, + RightCBA, RightCBA, RightCBA, RightCBA, RightCBA, + RightCBA, RightCBA, RightCBA, RightCBA, RightCBA, + RightCBA, RightCBA, RightCBA, RightCBA, RightCBA, + RightCBA, RightCBA, RightCBA, RightCBA, RightCBA, + RightCBA, RightCBA, + TEND ); + + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::RunL( TInt aCmd ) + { + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline3: + TestAnimationL(); + TestButtonsL(); + TestChoiceListL(); + TestCommonFileL(); + TestSelectCommonFileL(); + TestSaveCommonFileL(); + TestDocumentHandlerL(); + TestFontsL(); + TestGridsL(); + TestHListsAndHotkeysL(); + TestMiscellOneL(); + TestInitializationL(); + TestInputLanL(); + TestMenusL(); + TestNotesL(); + TestMiscellTwoL(); + TestPopupsL(); + TestUIFrmL(); + TestQueriesL(); + TestScrollerL(); + TestSearchfieldL(); + TestSettingPagesL(); + TestTitlePaneL(); + TestAknToolbarL(); + //TestAknTouchPaneL(); + TestImageTableItemDataL(); + TestMBmpItemDataL(); + TestColTableItemDataL(); + TestBackgroundCCL(); + TestAknLayoutUtilsL(); + TestAknsUtilsL(); + TestAknsDrawUtilsL(); + TestDialogsL(); + TestPopupL(); + TestStatesL(); + TestIpFieldEditorL(); + TestIconArrayL(); + TestAknVolumeControlL(); + TestAknEnvL(); + TestAdditionL(); + // TestAknPopupUtilsL(); //5.2 specific + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer.s + iContainer->SetControlL( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestAnimationL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAnimationL() + { + // Test bitmap animation api + _LIT( KStrExcludeAnimationFrames, + "CAknBitmapAnimation::ExcludeAnimationFramesFromCache() invoked " ); + _LIT( KStrSetScaleModeForAnimationBackgroundFrame, + "SetScaleModeForAnimationBackgroundFrame() invoked" ); + + CAknBitmapAnimation* ani= CAknBitmapAnimation::NewL(); + CleanupStack::PushL(ani); + + TResourceReader reader; + CCoeEnv::Static()->CreateResourceReaderLC(reader, + R_BCTEST_BMPANIM_DATA_ORG ); + ani->ConstructFromResourceL(reader); + CleanupStack::PopAndDestroy(); + + ani->SetScaleModeForAnimationBackgroundFrame( EAspectRatioNotPreserved ); + AssertTrueL( ETrue, KStrSetScaleModeForAnimationBackgroundFrame ); + + ani->ExcludeAnimationFramesFromCache(); + AssertTrueL( ETrue, KStrExcludeAnimationFrames ); + CleanupStack::PopAndDestroy( ani ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestButtonsL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestButtonsL() + { + // Test the button apis + _LIT( KDrawNow, + "CEikCommandButtonBase::Draw() invoked" ); + _LIT( KButBaseWriteInternalStateL, + "CEikButtonBase::WriteInternalStateL() invoked" ); + _LIT( KDimCommandByPosition, + "CEikButtonGroupContainer::DimCommandByPosition() invoked"); + _LIT( KIsCommandDimmedByPosition, + "CEikButtonGroupContainer::IsCommandDimmedByPosition() invoked" ); + _LIT( KAnimateCommandByPosition, + "CEikButtonGroupContainer::AnimateCommandByPosition() invoked" ); + _LIT( KAnimateCommand, + "MEikButtonGroup::AnimateCommand() invoked"); + _LIT( KLbbutWriteInternalStateL, + "CEikLabeledButton::WriteInternalStateL() invoked"); + _LIT( KOfferCommandListL, + "CEikButtonGroupContainer::OfferCommandListL( array ) invoked" ); + _LIT( KOfferCommandListResL, + "CEikButtonGroupContainer::OfferCommandListL( resource ) invoked" ); + _LIT( KMEikOfferCommandListL, + "MEikEnhancedButtonGroup::OfferCommandListL( array ) invoked "); + _LIT( KIsCommandInGroup, + "MEikEnhancedButtonGroup::IsCommandInGroup" ); + _LIT( KReplaceCommand, + "MEikEnhancedButtonGroup::ReplaceCommand" ); + + CBCTestCommandButtonBase* cmdButtonBase = + CBCTestCommandButtonBase::NewL(); + CleanupStack::PushL( cmdButtonBase ); + cmdButtonBase->SetContainerWindowL( *iContainer ); + TResourceReader reader; + CCoeEnv::Static()->CreateResourceReaderLC( reader, R_BCTEST_CMDBT_LABEL ); + cmdButtonBase->ConstructLabelFromResourceL( + reader, CEikCommandButtonBase::EFirst ); + + cmdButtonBase->ActivateGc(); + cmdButtonBase->Draw( iContainer->Rect() ); + cmdButtonBase->DeactivateGc(); + AssertTrueL( ETrue, KDrawNow ); + + _LIT( KStreamName, "c:\\BCTestLog\\buttontest.txt" ); + RFs& tempServer = CEikonEnv::Static()->FsSession(); + tempServer.Delete( KStreamName ); + RFileWriteStream fWrite; + User::LeaveIfError( fWrite.Create( tempServer, + KStreamName, EFileWrite ) ); + CleanupClosePushL( fWrite ); + cmdButtonBase->WriteInternalStateL( fWrite ); + AssertTrueL( ETrue, KButBaseWriteInternalStateL ); + + AssertTrueL( ETrue, KLbbutWriteInternalStateL); + CleanupStack::PopAndDestroy( &fWrite ); + CleanupStack::PopAndDestroy(); // reader + CleanupStack::PopAndDestroy( cmdButtonBase ); + + CEikButtonGroupContainer* currentBtGrp = + CEikButtonGroupContainer::Current(); + currentBtGrp->DimCommandByPosition( + CEikButtonGroupContainer::ELeftSoftkeyPosition, EFalse ); + AssertTrueL( ETrue, KDimCommandByPosition ); + + currentBtGrp->MakeCommandVisibleByPosition( + CEikButtonGroupContainer::ELeftSoftkeyPosition, ETrue ); + + currentBtGrp->IsCommandDimmedByPosition( + CEikButtonGroupContainer::ELeftSoftkeyPosition ); + AssertTrueL( ETrue,KIsCommandDimmedByPosition ); + + currentBtGrp->AnimateCommandByPosition( + CEikButtonGroupContainer::ELeftSoftkeyPosition ); + AssertTrueL( ETrue, KAnimateCommandByPosition ); + + + TInt toolbarresourceid = R_BCTESTMIX50PATCH_CBA_OPTIONS_NEXT; + TInt commandid = EAknSoftkeyOptions; + currentBtGrp->AnimateCommand( commandid ); + AssertTrueL( ETrue, KAnimateCommand ); + + RArray arr; + arr.Append( commandid ); + //TRAP( res, eikcba->OfferCommandListL( arr ) ); + currentBtGrp->OfferCommandListL( arr ); + AssertTrueL( ETrue, KOfferCommandListL ); + AssertTrueL( ETrue, KMEikOfferCommandListL ); + arr.Close(); + + currentBtGrp->IsCommandInGroup( commandid ); + AssertTrueL( ETrue, KIsCommandInGroup ); + currentBtGrp->ReplaceCommand( commandid, toolbarresourceid ); + AssertTrueL( ETrue, KReplaceCommand ); + + currentBtGrp->OfferCommandListL( commandid ); + AssertTrueL( ETrue, KOfferCommandListResL ); + + currentBtGrp->MakeCommandVisibleByPosition( + CEikButtonGroupContainer::ELeftSoftkeyPosition, ETrue ); + + TInt resourceId = R_BCTESTMIX50PATCH_CASE_MENU; + + RWindowGroup& parentWg = CCoeEnv::Static()->RootWin(); + TUint btgroupflags = 0; + + EikButtonGroupFactory::TCreationData creationData( + CEikButtonGroupContainer::EView, this, + resourceId, &parentWg, btgroupflags, + CEikButtonGroupContainer::EVertical ); + _LIT( KTCreationData, "TCreationData test" ); + AssertTrueL( ETrue, KTCreationData ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestChoiceListL() +// ChoiceListL test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestChoiceListL() + { + _LIT(KHandlePointerEvent, "CAknChoiceList::HandlePointerEvent() invoked"); + + CDesCArrayFlat* itemArray = new ( ELeave ) CDesCArrayFlat( 8 ); + CleanupStack::PushL( itemArray ); + itemArray->AppendL( _L("orking") ); + itemArray->AppendL( _L("ll") ); + itemArray->AppendL( _L("sti") ); + itemArray->AppendL( _L("w") ); + CBCTestChoiceList *choiceList =static_cast + ( CAknChoiceList::NewL( iContainer, itemArray, + CAknChoiceList::EAknChoiceListWithCurrentSelection ) ); + CleanupStack::PushL( choiceList ); + TPointerEvent pointerEvent; + pointerEvent.iType = TPointerEvent::EButton1Up ; + choiceList->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEvent ); + + CleanupStack::PopAndDestroy( choiceList ); + CleanupStack::Pop( itemArray ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestCommonFileL() +// common file test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestCommonFileL() + { + _LIT( KSetTitleL, + "CAknMemorySelectionDialogMultiDrive::SetTitleL() invoked" ); + _LIT( KSetLeftSoftkeyL, + "CAknMemorySelectionDialogMultiDrivef::SetLeftSoftkeyL() invoked" ); + _LIT( KSetRightSoftkeyL, + "CAknMemorySelectionDialogMultiDrive::SetRightSoftkeyL() invoked" ); + _LIT( KGetItem, + "CAknMemorySelectionDialogMultiDrive::GetItem() invoked" ); + _LIT( KExecute1, + "CAknMemorySelectionDialogMultiDrive::ExecuteL1()invoked" ); + _LIT( KExecute2, + "CAknMemorySelectionDialogMultiDrive::ExecuteL2() invoked" ); + _LIT( KRunDlgLD13, + "CAknMemorySelectionDialogMultiDrive::RunDlgLD1()inovked" ); + _LIT( KRunDlgLD14, + "CAknMemorySelectionDialogMultiDrive::RunDlgLD2()invoked" ); + _LIT( KRunDlgLD15, + "CAknMemorySelectionDialogMultiDrive::RunDlgLD3()invoked" ); + _LIT( KRunDlgLD16, + "CAknMemorySelectionDialogMultiDrive::AddDrivePathsL()invoked" ); + _LIT( KCAknMemorySelectionSettingItemMultiDriveDes, + "~CAknMemorySelectionSettingItemMultiDrive()invoked"); + _LIT( KMultiDriveNewL1, + "CAknMemorySelectionDialogMultiDrive::NewL()1 invoked" ); + _LIT( KMultiDriveNewL2, + "CAknMemorySelectionDialogMultiDrive::NewL()2 invoked" ); + _LIT( KCAknMemorySelectionSettingItemMultiDrive, + "CAknMemorySelectionSettingItemMultiDrive() invoked"); + _LIT( KCompleteConstructionL, + "CAknMemorySelectionSettingItemMultiDrive::CompleteConstructionL("); + _LIT( KSettingTextL, + "CAknMemorySelectionSettingItemMultiDrive::SettingTextL() invoked"); + _LIT( KLoadL, + "CAknMemorySelectionSettingItemMultiDrive::LoadL()invoked"); + _LIT( KStoreL, + "CAknMemorySelectionSettingItemMultiDrive::StoreL()invoked"); + + TDriveNumber aSelDr = EDriveC; + + CAknMemorySelectionSettingItemMultiDrive* memSelection = + new ( ELeave ) CAknMemorySelectionSettingItemMultiDrive( + R_BCTEST_MIX50PATCH_SETTING_PAGE, aSelDr ); + AssertTrueL( ETrue, KCAknMemorySelectionSettingItemMultiDrive ); + CleanupStack::PushL( memSelection ); + + memSelection->CompleteConstructionL(); + AssertTrueL( ETrue, KCompleteConstructionL ); + + memSelection->SettingTextL(); + AssertTrueL( ETrue, KSettingTextL ); + + memSelection->LoadL(); + AssertTrueL( ETrue, KLoadL ); + + memSelection->StoreL(); + AssertTrueL( ETrue, KStoreL ); + + CleanupStack::PopAndDestroy( memSelection ); + AssertTrueL( ETrue, KCAknMemorySelectionSettingItemMultiDriveDes ); + + TInt includedMedias = 5; + TCommonDialogType aDialogDr = ECFDDialogTypeNormal; + + CAknMemorySelectionDialogMultiDrive* memSelDialogMulDriver = + CAknMemorySelectionDialogMultiDrive::NewL( aDialogDr, ETrue ); + AssertNotNullL( memSelDialogMulDriver, KMultiDriveNewL1 ); + + CleanupStack::PushL( memSelDialogMulDriver ); + CleanupStack::PopAndDestroy( memSelDialogMulDriver ); + + memSelDialogMulDriver = NULL; + memSelDialogMulDriver = CAknMemorySelectionDialogMultiDrive::NewL( + aDialogDr, 0, EFalse, includedMedias ); + AssertNotNullL( memSelDialogMulDriver, KMultiDriveNewL2 ); + CleanupStack::PushL( memSelDialogMulDriver ); + + _LIT( tTxt, "Selection dialog title" ); + TBuf<16> aDefaultFolder( _L("c:\\") ); + TBuf<16> aRootPath( _L("d:\\") ); + TBuf rText; + + memSelDialogMulDriver->SetTitleL( tTxt ); + AssertTrueL( ETrue, KSetTitleL ); + + memSelDialogMulDriver->SetLeftSoftkeyL( _L("OK") ); + AssertTrueL( ETrue, KSetLeftSoftkeyL ); + + memSelDialogMulDriver->SetRightSoftkeyL( _L("Cancel") ); + AssertTrueL( ETrue, KSetRightSoftkeyL ); + + memSelDialogMulDriver->GetItem( 0, rText ); + AssertTrueL( ETrue, KGetItem ); + + memSelDialogMulDriver->ExecuteL( aSelDr ); + AssertTrueL( ETrue, KExecute1); + + memSelDialogMulDriver->ExecuteL( aSelDr, &rText, &aDefaultFolder ); + AssertTrueL( ETrue, KExecute2 ); + + memSelDialogMulDriver->RunDlgLD( aSelDr ); + AssertTrueL( ETrue, KRunDlgLD13 ); + + memSelDialogMulDriver->RunDlgLD( aSelDr, aDefaultFolder ); + AssertTrueL( ETrue, KRunDlgLD14 ); + + memSelDialogMulDriver->RunDlgLD( aSelDr, 0 ); + AssertTrueL( ETrue, KRunDlgLD15 ); + + memSelDialogMulDriver->AddDrivePathsL( aRootPath, aDefaultFolder ); + AssertTrueL( ETrue, KRunDlgLD16 ); + + CleanupStack::PopAndDestroy( memSelDialogMulDriver ); + + TBuf fileName( _L("c:\\data\\testcommonfile.txt") ); + RFile file; + file.Replace( CCoeEnv::Static()->FsSession(), fileName, EFileWrite ); + file.Close(); + + CAknFileNamePromptDialog* promptDialog = CAknFileNamePromptDialog::NewL(); + CleanupStack::PushL( promptDialog ); + promptDialog->RenameL( fileName ); + CleanupStack::PopAndDestroy( promptDialog ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestSelectCommonFileL() +// common file select api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestSelectCommonFileL() + { + _LIT( KTitle, "Common File Test " ); + _LIT( KRunSelectDlgLD, "AknCommonDialogsDynMem::RunSelectDlgLD()invoked"); + + TBuf folder(_L("c:\\data")); + TBuf fileName( _L("c:\\data\\testcommonfile.txt") ); + TInt res = R_BCTEST_MIX50PATCH_MEMORY_SELECTION_LOCATIONS; + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + KTitle()); + + MonkFilter filter; + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + &filter ); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + 0 ); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + &filter ); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + folder, + res ); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + folder, + res, + &filter ); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + folder, + res, + 0 ); + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + folder, + res, + 0, + KTitle() ); + AssertTrueL( ETrue, KRunSelectDlgLD ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestSaveCommonFileL() +// Common file save api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestSaveCommonFileL() + { + _LIT( KTitle, "Common File Test " ); + _LIT( KRunSaveDlgLD, "AknCommonDialogsDynMem::RunSaveDlgLD()invoked"); + + TBuf folder(_L("c:\\data")); + TBuf fileName( _L("c:\\data\\testcommonfile.txt") ); + TInt res = R_BCTEST_MIX50PATCH_MEMORY_SELECTION_LOCATIONS; + + AknCommonDialogsDynMem::RunSaveDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res); + + + AknCommonDialogsDynMem::RunSelectDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + KTitle()); + + MonkFilter filter; + AknCommonDialogsDynMem::RunSaveDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + &filter ); + + AknCommonDialogsDynMem::RunSaveDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + KTitle(), + KTitle() ); + + + AknCommonDialogsDynMem::RunSaveDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + 0 ); + + AknCommonDialogsDynMem::RunSaveDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + res, + 0, + KTitle() ); + + AknCommonDialogsDynMem::RunSaveDlgLD( + AknCommonDialogsDynMem::EMemoryTypePhone, + fileName, + folder, + res, + 0, + KTitle() ); + AssertTrueL( ETrue, KRunSaveDlgLD ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestDocumentHandlerL() +// document handler api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestDocumentHandlerL() + { + _LIT( KOpenFile1, + "CDocumentHandler::OpenFileL(RFile&,TDataType&) invoked" ); + _LIT( KOpenFile2, + "CDocumentHandler::OpenFileL(TDesC&,TDataType&) invoked" ); + _LIT( KNewLC1, + "CDocumentHandler::NewLC() invoked" ); + _LIT( KNewLC2, + "CDocumentHandler::NewLC( CEikProcess* ) invoked" ); + _LIT( KGetProgressiveDownloadAppUidsL, + "CDocumentHandler::GetProgressiveDownloadAppUidsL() invoked"); + _LIT( KCanHandleProgressivelyL, + "CDocumentHandler::CanHandleProgressivelyL() invoked"); + + CDocumentHandler *docHandler = CDocumentHandler::NewLC(); + CleanupStack::PopAndDestroy( docHandler ); + AssertNotNullL( docHandler, KNewLC1 ); + docHandler = NULL; + + CEikProcess* proc = CEikonEnv::Static()->Process(); + docHandler = CDocumentHandler::NewLC( proc ); + AssertNotNullL( docHandler, KNewLC2 ); + + TDataType dataType; + _LIT( KEmbeddedFileName, "C:\\BCTestLog\\DocHandleEmbedded.txt" ); + RFs& fs = CEikonEnv::Static()->FsSession(); + RFile embeddedFile; + if( embeddedFile.Open( fs, KEmbeddedFileName, + EFileWrite | EFileShareAny ) != KErrNone ) + { + embeddedFile.Create( fs, KEmbeddedFileName, + EFileWrite | EFileShareAny ); + } + CleanupClosePushL( embeddedFile ); + _LIT8( KContent, "Content Text" ); + embeddedFile.Write( KContent ); + TInt error; + error = docHandler->OpenFileL( embeddedFile, dataType ); + AssertIntL( KErrNone, error, KOpenFile1 ); + + error = KErrNone; + error = docHandler->OpenFileL( KEmbeddedFileName(), dataType ); + AssertIntL( KErrNone, error, KOpenFile2 ); + + TUid uid = { 0 }; + docHandler->CanHandleProgressivelyL( dataType, uid ); + AssertTrueL( ETrue, KCanHandleProgressivelyL ); + + RArray uidList; + docHandler->GetProgressiveDownloadAppUidsL( uidList ); + CleanupClosePushL( uidList ); + AssertTrueL( ETrue, KGetProgressiveDownloadAppUidsL ); + + CleanupStack::PopAndDestroy(); // uidList + CleanupStack::PopAndDestroy(); // embeddedFile + CleanupStack::PopAndDestroy( docHandler ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestChoiceListL() +// ChoiceListL test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestFontsL() + { + _LIT( KGetFont1, + "AknFontAccess::GetFont( CBitmapDevice& , \ + TFontStyle ,TInt, TAknFontFamily ) invoked" ); + _LIT( KGetClosestFont1, + "AknFontAccess::GetClosestFont( CBitmapDevice& ,TFontStyle \ + ,TInt, TAknFontFamily ) invoked" ); + _LIT( KGetFont2, + "AknFontAccess::GetFont( CBitmapDevice& ,TFontStyle , \ + TInt, TDesC& ) invoked" ); + _LIT( KGetClosestFont2, + "AknFontAccess::GetClosestFont( CBitmapDevice& ,TFontStyle , \ + TInt, TDesC& ) invoked" ); + _LIT( KAknLayoutTest1, + "AknLayoutUtils::CreateLayoutFontFromSpecificationL( const \ + TAknFontSpecification&) invoked" ); + _LIT( KAknLayoutTest2, + "AknLayoutUtils::CreateLayoutFontFromSpecificationL( const \ + TTypeface&, const TAknFontSpecification& ) invoked" ); + + TFontStyle fontStyle( EPostureItalic, EStrokeWeightBold, + EPrintPosSuperscript ); + const TInt KFontSizeInPixels=12; + CBitmapDevice* dev = CCoeEnv::Static()->ScreenDevice(); + TInt fontSizeInTwips = dev->VerticalPixelsToTwips( KFontSizeInPixels ); + + CFont* font = AknFontAccess::GetFont( *dev, fontStyle, + fontSizeInTwips, AknFontAccess::EAknFontFamilySansSerif ); + AssertTrueL( ETrue, KGetFont1 ); + dev->ReleaseFont( font ); + + font = NULL; + font = AknFontAccess::GetClosestFont( *dev, fontStyle, + fontSizeInTwips, AknFontAccess::EAknFontFamilySansSerif ); + AssertTrueL( ETrue, KGetClosestFont1 ); + dev->ReleaseFont( font ); + + TBuf<14> fontName( _L( "courier") ); + font = NULL; + font = AknFontAccess::GetFont( *dev, fontStyle, + fontSizeInTwips, fontName ); + AssertTrueL( ETrue, KGetFont2 ); + dev->ReleaseFont( font ); + + font = NULL; + font = AknFontAccess::GetClosestFont( *dev, fontStyle, + fontSizeInTwips, fontName ); + AssertTrueL( ETrue, KGetClosestFont2 ); + dev->ReleaseFont( font ); + + TAknFontSpecification fontSpec( ELatinPlain12 ); + CAknLayoutFont* layoutFont = AknFontAccess:: + CreateLayoutFontFromSpecificationL( *dev, fontSpec ); + delete layoutFont; + AssertTrueL( ETrue, KAknLayoutTest1 ); + + TTypeface typeFace; + layoutFont = AknFontAccess::CreateLayoutFontFromSpecificationL( *dev, typeFace, fontSpec ); + delete layoutFont; + AssertTrueL( ETrue, KAknLayoutTest2 ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestGridsL() +// Grids api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestGridsL() + { + _LIT( KHandleControlEventL, + " CAknColourSelectionGrid::HandleControlEventL() invoked"); + _LIT( KHandleDialogPageEventL, + " CAknColourSelectionGrid::HandleDialogPageEventL() invoked"); + + CArrayFixFlat* array = new( ELeave ) CArrayFixFlat(1); + CleanupStack::PushL( array ); + TRgb rgb = ( KRgbRed, KRgbGreen, KRgbBlue ); + array->AppendL( rgb ); + TBool noneChosen = ETrue; + CAknColourSelectionGrid* colourSelectionGrid = + CAknColourSelectionGrid::NewL( + array, ETrue, noneChosen, rgb ); + CleanupStack::PushL( colourSelectionGrid ); + + colourSelectionGrid->HandleControlEventL( iContainer, + MCoeControlObserver::EEventRequestExit ); + AssertTrueL( ETrue, KHandleControlEventL ); + + colourSelectionGrid->HandleDialogPageEventL( + MEikDialogPageObserver::EUnknownType ); + AssertTrueL( ETrue, KHandleDialogPageEventL ); + + CleanupStack::PopAndDestroy( colourSelectionGrid ); + CleanupStack::PopAndDestroy( array ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestHListsAndHotkeysL() +// hierarchical list and hot key api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestHListsAndHotkeysL() + { + + _LIT( KChild, + "CAknTreeList::KChild() invoked " ); + _LIT( KVisibleItemIndex, + "CAknTreeList::VisibleItemIndex() invoked" ); + _LIT( KSort1, + "CAknTreeList::Sort( AknCustomTreeOrdering*, TBool ) invoked " ); + _LIT( KSort2, + "CAknTreeList::Sort( AknCustomTreeOrdering*, TBool, TBool ) invoked " ); + _LIT( KChildCount, + " CAknTreeList::ChildCount() invoked " ); + _LIT( KConstructFromResourceL, + "CEikHotKeyTable::ConstructFromResourceL() invoked" ); + _LIT( KAddItemL, + "CEikHotKeyTable::AddItemL() invoked" ); + _LIT( KHotKeyFromCommandId, + "CEikHotKeyTable::HotKeyFromCommandId() invoked" ); + _LIT( KRemoveItem, + "CEikHotKeyTable::RemoveItem()invoked" ); + _LIT( KReset, + "CEikHotKeyTable::Reset() invoked" ); + + TInt index; + TBool mark = ETrue; + TBool draw=ETrue; + CAknTreeList* list = CAknSingleStyleTreeList::NewLC(); + + MAknCustomTreeOrdering* custom = NULL; + list->Sort( custom, draw ); + AssertTrueL( ETrue, KSort1 ); + + _LIT( KNodeText, "Node" ); + TUint32 flags = CAknSingleStyleTreeList::EPersistent; + static_cast( list )->AddNodeL( + KAknTreeIIDRoot,KNodeText, flags, EFalse ); + + index = list->ChildCount(KAknTreeIIDRoot); + AssertTrueL( ETrue, KChildCount ); + + TAknTreeItemID item; + item = list->Child( KAknTreeIIDRoot, index - 1 ); + AssertTrueL( ETrue, KChild ); + + list->VisibleItemIndex( item ); + AssertTrueL( ETrue, KVisibleItemIndex ); + + list->Sort(KAknTreeIIDRoot, mark, draw ); + AssertTrueL( ETrue, KSort2 ); + + CleanupStack::PopAndDestroy( list ); + + const TInt KModifierCode = 0; + CEikHotKeyTable* hotKey = new( ELeave) CEikHotKeyTable(); + CleanupStack::PushL( hotKey ); + + hotKey->ConstructFromResourceL( R_BCTEST_MIX50PATCH_HOTKEY_COMMAND ); + AssertTrueL( ETrue, KConstructFromResourceL ); + + hotKey->AddItemL( EBCTestCmdOutline1, Key1, KModifierCode ); + AssertTrueL( ETrue, KAddItemL ); + + hotKey->AddItemL( EBCTestCmdOutline1, Key1, EModifierCtrl ); + hotKey->AddItemL( EProgCmdAutoTest, Key2, + EModifierShift|EModifierCtrl ); + + TInt cmdId = hotKey->CommandIdFromHotKey( Key1, EModifierCtrl ); + _LIT( KCommandIdFromHotKey, "CEikHotKeyTable::CommandIdFromHotKey" ); + AssertTrueL( ETrue, KCommandIdFromHotKey ); + + TInt keyCode; + TInt kModifier; + TBool flag = hotKey->HotKeyFromCommandId( EBCTestCmdOutline1, keyCode, + kModifier ); + AssertTrueL( flag, KHotKeyFromCommandId ); + + flag = hotKey->HotKeyFromCommandId( EProgCmdAutoTest, keyCode, + kModifier ); + _LIT( KHotKeyFromCommandId1, "CEikHotKeyTable::HotKeyFromCommandId 1" ); + AssertTrueL( flag, KHotKeyFromCommandId1 ); + + hotKey->RemoveItem( EBCTestCmdOutline1 ); + AssertTrueL( ETrue, KRemoveItem ); + + hotKey->Reset(); + AssertTrueL( ETrue, KReset ); + + CleanupStack::Pop( hotKey ); + delete hotKey; + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestMiscellOneL() +// miscellaneous apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestMiscellOneL() + { + _LIT( KWriteInternalStateL, + "EikImage::WriteInternalStateL() invoked" ); + _LIT( KHandleResourceChange, + "CAknInputFrame::HandleResourceChange() invoked"); + _LIT( KReplaceIndicatorIconL, + "CAknIndicatorContainer::ReplaceIndicatorIconL()invoked"); + _LIT( KDraw, + "CEikFileNameLabel::Draw()invoked"); + + CBCTestImage* image = new ( ELeave ) CBCTestImage; + CleanupStack::PushL( image ); + + _LIT( KFileName, "c:\\bctestlog\\image.txt" ); + RFs& fileSession = CCoeEnv::Static()->FsSession(); + RFileWriteStream fileStream; + if ( fileStream.Open( fileSession, KFileName(), EFileWrite ) != KErrNone ) + { + fileStream.Create( fileSession, KFileName(), EFileWrite ); + } + CleanupClosePushL( fileStream ); + image->WriteInternalStateL( fileStream ); + AssertTrueL( ETrue, KWriteInternalStateL ); + + CleanupStack::PopAndDestroy( &fileStream ); + CleanupStack::PopAndDestroy( image ); + + // Test indicator container api + CAknIndicatorContainer* indicator = + new( ELeave ) CAknIndicatorContainer(); + CleanupStack::PushL( indicator ); + indicator->ConstructL(); + TUid uId; + uId = indicator->CreateIndicatorFromResourceL( + R_BCTEST_MIX50PATCH_INDICATOR, + CAknIndicatorContainer::EMultiColorIndicator ); + + CFbsBitmap* bitmap( NULL ); + // Get bitmap for "abc" icon + TAknsItemID skinId = KAknsIIDQgnStatCaseSmall; + TInt bitmapId = EMbmAvkonQgn_stat_case_small; + MAknsSkinInstance *skin = AknsUtils::SkinInstance(); + AknsUtils::CreateIconLC( skin, + skinId, + bitmap, + AknIconUtils::AvkonIconFileName(), + bitmapId ); + + TSize size; + User::LeaveIfError( AknIconUtils::GetContentDimensions( bitmap, + size ) ); + CFbsBitmap* emptyMask = new (ELeave) CFbsBitmap(); + CleanupStack::PushL( emptyMask ); + User::LeaveIfError( emptyMask->Create( size, EGray2 ) ); + + // Ownership of bitmap and newMask is transferred to indicator. + indicator->ReplaceIndicatorIconL( uId, EAknIndicatorStateOn, + CAknIndicatorContainer::ELayoutModeUsual, bitmap, emptyMask ); + AssertTrueL( ETrue, KReplaceIndicatorIconL ); + + CleanupStack::Pop( 2, bitmap ); // CSI: 47,12 # emptyMask, bitmap + CleanupStack::PopAndDestroy( indicator ); + + // input frame api + CEikEdwin* edwin = new( ELeave ) CEikEdwin(); + CleanupStack::PushL( edwin ); + edwin->ConstructL( 0, 30, 100, 1 ); + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + bmp->Load( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_stat_chi_pinyin ); + + CGulIcon* icon = CGulIcon::NewL( bmp ); + CleanupStack::PushL( icon ); + + CAknInputFrame* inputFrame = CAknInputFrame::NewL( edwin, + EFalse, icon ); + CleanupStack::PushL( inputFrame ); + // POPUP_FIELD_SELECTION_BMP + inputFrame->HandleResourceChange( KEikColorResourceChange ); + AssertTrueL( ETrue, KHandleResourceChange ); + + CleanupStack::PopAndDestroy( inputFrame ); + CleanupStack::Pop( icon ); + CleanupStack::Pop( bmp ); + CleanupStack::PopAndDestroy( edwin ); + + // labels api + CBCTestEikFileNameLabel* fileNameLabel = new( + ELeave ) CBCTestEikFileNameLabel; + CleanupStack::PushL( fileNameLabel ); + fileNameLabel->ConstructL(); + fileNameLabel->SetContainerWindowL( *iContainer ); + fileNameLabel->ActivateGc(); + fileNameLabel->Draw( iContainer->Rect() ); + AssertTrueL( ETrue, KDraw ); + fileNameLabel->DeactivateGc(); + + CleanupStack::PopAndDestroy( fileNameLabel ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestInitializationL() +// initialization api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestInitializationL() + { + _LIT( KResourceFile , + "CEikCtlLibrary::ResourceFile() invoked" ); + _LIT( KControlFactory , + "CEikCtlLibrary::ControlFactory() invoked" ); + _LIT( KInitializeL , + "CEikCtlLibrary::InitializeL() invoked" ); + _LIT( KButtonGroupFactory , + "CEikCtlLibrary::ButtonGroupFactory() invoked" ); + + CEikCtlLibrary::ResourceFile(); + AssertTrueL( ETrue, KResourceFile ); + + CEikCtlLibrary::ControlFactory(); + AssertTrueL( ETrue, KControlFactory ); + + CEikCtlLibrary::InitializeL(); + AssertTrueL( ETrue, KInitializeL ); + + CEikCtlLibrary::ButtonGroupFactory(); + AssertTrueL( ETrue, KButtonGroupFactory ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestInputLanL() +// input language api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestInputLanL() + { + _LIT( KTAknInputLanguageCapabilities, + "TAknInputLanguageCapabilities::TAknInputLanguageCapabilities() \ + invoked" ); + _LIT( KAssignCapability, + "TAknInputLanguageCapabilities::AssignCapability()invoked " ); + _LIT( KFilteredCapabilities, "TAknInputLanguageCapabilities:: \ + FilteredCapabilities()invoked" ); + _LIT( KHasCapability, "TAknInputLanguageCapabilities:: \ + HasCapability()invoked" ); + _LIT( KSetAllCapabilities, "TAknInputLanguageCapabilities:: \ + SetAllCapabilities()invoked" ); + _LIT( KMdcaCount, + "CAknInputLanguageList::MdcaCount()invoked" ); + _LIT( KMdcaPoint, + "CAknInputLanguageList::MdcaPoint" ); + _LIT( KLanItem1, + "CAknInputLanguageItem::LanguageCode" ); + _LIT( KLanItem2, + "CAknInputLanguageItem::LanguageName" ); + _LIT( KLanItem3, "CAknInputLanguageItem::Capabilities" ); + _LIT( KCAknInputLanguageItemDes, + "CAknInputLanguageItem::~CAknInputLanguageItem() invoked" ); + _LIT( KCAknInputLanguageListDes, + "CAknInputLanguageList::~CAknInputLanguageList() invoked"); + + CAknInputLanguageInfo* lanInfo = + AknInputLanguageInfoFactory::CreateInputLanguageInfoL(); + CleanupStack::PushL( lanInfo ); + + TAknInputLanguageCapabilities capFilter; + AssertTrueL( ETrue, KAssignCapability ); + + capFilter.AssignCapability( + TAknInputLanguageCapabilities::EMultitap, ETrue ); + AssertTrueL( ETrue, KAssignCapability); + + TAknInputLanguageCapabilities inputCap; + TAknInputLanguageCapabilities desCap; + AssertTrueL( ETrue, KTAknInputLanguageCapabilities ); + + inputCap.AssignCapability( TInt ( 1 ),EFalse ); + AssertTrueL( ETrue, KAssignCapability ); + + inputCap.FilteredCapabilities( desCap ); + AssertTrueL( ETrue, KFilteredCapabilities ); + + inputCap.HasAnySupport(); + AssertTrueL( ETrue, KHasCapability ); + + inputCap.HasCapability( TInt ( 1 ) ); + AssertTrueL( ETrue, KHasCapability ); + + inputCap.SetAllCapabilities(); + AssertTrueL( ETrue, KSetAllCapabilities ); + + CAknInputLanguageList* inputList = new ( + ELeave ) CAknInputLanguageList( TInt( 1 ) ); + CleanupStack::PushL( inputList ); + + CArrayFixFlat* codeList = new( ELeave ) CArrayFixFlat( 1 ); + CleanupStack::PushL( codeList ); + codeList->AppendL( ELangEnglish ); + + lanInfo->AppendLanguagesL( inputList, codeList, capFilter ); + + TInt cunt = inputList->MdcaCount(); + AssertTrueL( ETrue, KMdcaCount ); + + TPtrC ptr = inputList->MdcaPoint( 0 ); + AssertTrueL( ETrue, KMdcaPoint ); + + CAknInputLanguageItem* lanItem = (*inputList)[0]; + + TLanguage code = lanItem->LanguageCode(); + AssertIntL( ELangEnglish, code, KLanItem1 ); + + TPtrC name = lanItem->LanguageName(); + AssertTrueL( ETrue, KLanItem2 ); + + TAknInputLanguageCapabilities cap = lanItem->Capabilities(); + AssertTrueL( ETrue, KLanItem3 ); + + CleanupStack::PopAndDestroy( codeList ); + CleanupStack::PopAndDestroy( inputList ); + AssertTrueL( ETrue, KCAknInputLanguageListDes ); + AssertTrueL( ETrue, KCAknInputLanguageItemDes ); + CleanupStack::PopAndDestroy( lanInfo ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestMenusL() +// menu api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestMenusL() + { + _LIT( KCTitleArray,"CTitleArray::CTitleArray() invoked" ); + _LIT( KAddTitleL, "CTitleArray::AddTitleL() invoked"); + _LIT( KCTitleArrayDes, "CTitleArray::~CTitleArray() invoked" ); + // _LIT( KGetMenuType, "CEikMenuBar::GetMenuType() invoked" ); //5.2 specific + + CEikMenuBar::CTitleArray* titleArray = new ( + ELeave ) CEikMenuBar::CTitleArray(); + AssertNotNullL( titleArray, KCTitleArray ); + CleanupStack::PushL( titleArray ); + + CEikMenuBarTitle* titleBar = new (ELeave) CEikMenuBarTitle; + CleanupStack::PushL( titleBar ); + titleArray->AddTitleL( titleBar ); // ownership transferred + AssertTrueL( ETrue, KAddTitleL ); + //5.2 specific + /*CEikMenuBar* menuBar = CEikonEnv::Static()->AppUiFactory()->MenuBar(); + if(menuBar) + { + menuBar->GetMenuType(); + AssertTrueL(ETrue, KGetMenuType); + } + */ + CleanupStack::Pop( titleBar ); + CleanupStack::PopAndDestroy( titleArray ); + AssertTrueL( ETrue, KCTitleArrayDes ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestNotesL() +// notes api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestNotesL() + { + _LIT( KExecuteDlgLD1, + "CAknNoteDialog::KExecuteDlgLD( const TTimeout, \ + const TTone ,TInt ) invoked" ); + _LIT( KExecuteDlgLD2, + "CAknNoteDialog::KExecuteDlgLD( const TTone, TInt ) invoked" ); + _LIT( KExecuteDlgLD3, + "CAknNoteDialog::KExecuteDlgLD( TInt, TInt ) invoked" ); + CAknNoteDialog* noteDialog = new( ELeave ) CAknNoteDialog(); + + noteDialog->ExecuteDlgLD( R_BCTEST_MIX50PATCH_NOTE_ICON ); + AssertTrueL( ETrue, KExecuteDlgLD3 ); + noteDialog = NULL; + + noteDialog = new( ELeave ) CAknNoteDialog(); + noteDialog->ExecuteDlgLD( CAknNoteDialog::EConfirmationTone, + R_BCTEST_MIX50PATCH_NOTE_ICON ); + AssertTrueL( ETrue, KExecuteDlgLD2 ); + noteDialog = NULL; + + noteDialog = new( ELeave ) CAknNoteDialog(); + noteDialog->ExecuteDlgLD( CAknNoteDialog::EShortTimeout, + CAknNoteDialog::EConfirmationTone, R_BCTEST_MIX50PATCH_NOTE_ICON ); + AssertTrueL( ETrue, KExecuteDlgLD1 ); + noteDialog = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestMiscellTwoL() +// another miscellaneous apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestMiscellTwoL() + { + _LIT( KSetPreferredNaviDecoratorLayoutStyle , + "CAknNavigationControlContainer:: \ + SetPreferredNaviDecoratorLayoutStyle()invoked"); + _LIT( KHandleResourceChange, "CAknLocalScreenClearer:: \ + HandleResourceChange()invoked"); + _LIT( KTopContext, "CAknKeySoundSystem::TopContext()invoked"); + + // Navigation pane api + CAknNavigationControlContainer* navictlContainer = new ( ELeave ) + CAknNavigationControlContainer(); + CleanupStack::PushL( navictlContainer ); + navictlContainer->ConstructL(); + navictlContainer->SetPreferredNaviDecoratorLayoutStyle( + CAknNavigationDecorator::ENaviControlLayoutNarrow ); + AssertTrueL( ETrue, KSetPreferredNaviDecoratorLayoutStyle ); + CleanupStack::PopAndDestroy( navictlContainer ); + + // CAknLocalScreenClearer + CAknLocalScreenClearer* clearer = CAknLocalScreenClearer::NewLC(); + clearer->HandleResourceChange( KEikColorResourceChange ); + AssertTrueL( ETrue, KHandleResourceChange ); + CleanupStack::PopAndDestroy( clearer ); + + // CAknKeySoundSystem + const TInt KUid = 100; + CAknKeySoundSystem *aknsoundsystem = CAknKeySoundSystem::NewL( KUid ); + CleanupStack::PushL( aknsoundsystem ); + aknsoundsystem->TopContext(); + AssertTrueL( ETrue, KTopContext ); + CleanupStack::PopAndDestroy( aknsoundsystem ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestNotifierL() +// notifier api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestNotifierL() + { + _LIT( KMsg, "CAknPopupNotify test test test!!!!" ); + _LIT( KPopupMessageL, "CAknPopupNotify::PopupMessageL()invoked"); + CAknPopupNotify* notifier = CAknPopupNotify::NewL(); + CleanupStack::PushL( notifier ); + notifier->PopupMessageL( KMsg() ); + AssertTrueL( ETrue, KPopupMessageL ); + CleanupStack::PopAndDestroy( notifier ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestPopupsL() +// pop up dialog api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestPopupsL() + { + _LIT( KTAknPopupWindowLayoutDef, + "TAknPopupWindowLayoutDef::TAknPopupWindowLayoutDef() invoked" ); + _LIT( KFadedComponent, + "MAknFadedComponent::FadedComponent()invoked"); + _LIT( KCountFadedComponents, + "MAknFadedComponent::CountFadedComponents()invoked"); + + TAknPopupWindowLayoutDef layout; + AssertTrueL( ETrue, KTAknPopupWindowLayoutDef ); + + CBCTestFadedComponent* fadedComponent = new ( + ELeave ) CBCTestFadedComponent; + CleanupStack::PushL( fadedComponent ); + + TInt count = fadedComponent->CountFadedComponents(); + AssertTrueL( ETrue, KCountFadedComponents ); + + fadedComponent->FadedComponent( count-1 ); + AssertTrueL( ETrue, KFadedComponent ); + + CleanupStack::PopAndDestroy( fadedComponent ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestUIFrmL() +// ui framework api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestUIFrmL() + { + _LIT( KAddButtonL, "CEikButtonPanel::AddButtonL() invoked " ); + + // CEikButtonPanel + CEikButtonPanel * panel = new ( ELeave )CEikButtonPanel(); + CleanupStack::PushL( panel ); + panel->ConstructL(); + + CEikLabeledButton* button = new (ELeave) CEikLabeledButton; + CleanupStack::PushL( button ); + TResourceReader reader; + CCoeEnv::Static()->CreateResourceReaderLC( reader, R_BCTEST_MIX50PATCH_LBBUT ); + button->ConstructFromResourceL( reader ); + + // ownership transferred + panel->AddButtonL( button,EBCTestMix50PatchLabelledButton, 1 ); + AssertTrueL( ETrue, KAddButtonL ); + + CleanupStack::PopAndDestroy(); // reader internal state + CleanupStack::Pop( button ); + CleanupStack::PopAndDestroy( panel ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestQueriesL() +// queries api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestQueriesL() + { + _LIT( KHeader, + " Query dialog header "); + _LIT( KHandleQueryEditorSizeEventL, + "CAknQueryDialog::HandleQueryEditorSizeEventL()invoked"); + _LIT( KSetHeaderTextL, + "CAknQueryDialog::SetHeaderTextL()invoked"); + _LIT( KSetHeaderImageL, + "CAknQueryDialog::SetHeaderImageL()invoked"); + _LIT( KSetMediatorObserver, + "CAknListQueryDialog::SetMediatorObserver()invoked"); + _LIT( KSetMinimumAndMaximum1, + "CAknQueryControl::SetMinimumAndMaximum#1() invoked "); + _LIT( KSetMinimumAndMaximum2, + "CAknQueryControl::SetMinimumAndMaximum#2() invoked "); + _LIT( KSetMinimumAndMaximum3, + "CAknQueryControl::SetMinimumAndMaximum#3() invoked "); + + CAknQueryDialog* dialog = CAknQueryDialog::NewL(); + CleanupStack::PushL( dialog ); + + dialog->HandleQueryEditorSizeEventL( NULL, + MAknQueryControlObserver::EQueryControltSizeChanging ); + AssertTrueL( ETrue, KHandleQueryEditorSizeEventL ); + + dialog->SetHeaderTextL( KHeader() ); + AssertTrueL( ETrue, KSetHeaderTextL ); + + CEikImage* image = new( ELeave ) CEikImage; + CleanupStack::PushL( image ); // image + + CFbsBitmap* bmp = AknIconUtils::CreateIconL( + AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_speaker_active ); + CleanupStack::PushL( bmp ); + + image->SetPicture( bmp ); + dialog->SetHeaderImageL( image ); + AssertTrueL( ETrue, KSetHeaderImageL ); + + CleanupStack::Pop( bmp ); + CleanupStack::Pop( image ); + CleanupStack::PopAndDestroy( dialog ); + + CAknQueryDialog* dialog2 = CAknQueryDialog::NewL(); + dialog2->ExecuteLD( R_BCTESTAKNQUEDLG_ONELINE_DATA_QUERY, _L( "Hello" ) ); + TInt* index = new (ELeave) TInt( 1 ); + CleanupStack::PushL( index ); + + CAknListQueryDialog* listDialog = new ( + ELeave ) CAknListQueryDialog( index ); + CleanupStack::PushL( listDialog ); + + listDialog->SetMediatorObserver( NULL ); + AssertTrueL( ETrue, KSetMediatorObserver ); + + CleanupStack::PopAndDestroy( listDialog ); + CleanupStack::PopAndDestroy( index ); + + CAknQueryControl* duration = new(ELeave) CAknQueryControl(); + CleanupStack::PushL( duration ); + duration->SetContainerWindowL( *iContainer ); + TResourceReader reader; + iCoeEnv->CreateResourceReaderLC( reader, R_BCTEST_DURATION_EDWIN_CONTROL ); + duration->ConstructFromResourceL( reader ); + const TTimeIntervalSeconds time( 1 ); + + duration->SetMinimumAndMaximum( time, time ); + AssertTrueL( ETrue, KSetMinimumAndMaximum1 ); + + CleanupStack::PopAndDestroy(); + CleanupStack::PopAndDestroy( duration ); + + CAknQueryControl* number = new(ELeave) CAknQueryControl(); + CleanupStack::PushL( number ); + number->SetContainerWindowL( *iContainer ); + iCoeEnv->CreateResourceReaderLC( reader, R_BCTEST_NUMBER_EDWIN_CONTROL ); + number->ConstructFromResourceL( reader ); + + number->SetMinimumAndMaximum( 1, 2 ); + AssertTrueL( ETrue, KSetMinimumAndMaximum2 ); + + CleanupStack::PopAndDestroy(); + CleanupStack::PopAndDestroy( number ); + + CAknQueryControl* date = new(ELeave) CAknQueryControl(); + CleanupStack::PushL( date ); + date->SetContainerWindowL( *iContainer ); + + iCoeEnv->CreateResourceReaderLC( reader, R_BCTEST_DATE_EDWIN_CONTROL ); + date->ConstructFromResourceL( reader ); + + const TReal r( 1 ); + date->SetMinimumAndMaximum( r, r ); + AssertTrueL( ETrue, KSetMinimumAndMaximum3 ); + + CleanupStack::PopAndDestroy(); + CleanupStack::PopAndDestroy( date ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestScrollerL() +// scroller api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestScrollerL() + { + _LIT( KDrawBackgroundState, + "CEikScrollBarFrame::DrawBackgroundState()invoked"); + _LIT( KSetScrollBarFrameObserver, + "CEikScrollBarFrame::SetScrollBarFrameObserver()invoked"); + _LIT( KSetScrollPopupInfoTextL, + "CAknDoubleSpanScrollBar::SetScrollPopupInfoTextL()invoked"); + + CDesCArray* itemArray = new (ELeave) CDesCArrayFlat(2); + CleanupStack::PushL( itemArray ); + itemArray->AppendL( _L("scroller api test") ); + + CEikTextListBox* listBox = new (ELeave) CEikTextListBox; + CleanupStack::PushL( listBox ); + + listBox->ConstructL( iContainer ); + listBox->Model()->SetItemTextArray( itemArray ); + // ownership transferred + listBox->Model()->SetOwnershipType( ELbmOwnsItemArray ); + + CEikScrollBarFrame* scrollBarFrame = new( ELeave) CEikScrollBarFrame( + iContainer, listBox, ETrue ); + CleanupStack::PushL( scrollBarFrame ); + + TBool vState; + TBool hState; + scrollBarFrame->DrawBackgroundState( hState, vState ); + AssertTrueL( ETrue, KDrawBackgroundState ); + + scrollBarFrame->SetScrollBarFrameObserver( listBox ); + AssertTrueL( ETrue, KSetScrollBarFrameObserver ); + + CleanupStack::PopAndDestroy( scrollBarFrame ); + CleanupStack::PopAndDestroy( listBox ); + CleanupStack::Pop( itemArray ); + + _LIT( KInfoText, "scroll bar api test" ); + CAknDoubleSpanScrollBar* scrollBar = new + ( ELeave ) CAknDoubleSpanScrollBar( iContainer ); + CleanupStack::PushL( scrollBar ); + + scrollBar->SetScrollPopupInfoTextL( KInfoText ); + AssertTrueL( ETrue, KSetScrollPopupInfoTextL ); + + CleanupStack::PopAndDestroy( scrollBar ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestSearchfieldL() +// search field apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestSearchfieldL() + { + _LIT( KSetAdaptiveGridChars, + "CAknSearchField::SetAdaptiveGridChars()invoked"); + _LIT( KShowAdaptiveSearchGrid, + "CAknSearchField::ShowAdaptiveSearchGrid()invoked"); + _LIT( KSetListColumnFilterFlags, + "CAknSearchField::SetListColumnFilterFlags()invoked"); + _LIT( KListColumnFilterFlags, + "CAknSearchField::ListColumnFilterFlags()invoked"); + _LIT( KAddAdaptiveSearchTextObserverL, + "CAknSearchField::AddAdaptiveSearchTextObserverL()invoked"); + _LIT( KRemoveAdaptiveSearchTextObserver, + "CAknSearchField::RemoveAdaptiveSearchTextObserver()invoked"); + _LIT( KAdaptiveSearchEnabled, + "CAknSearchField::AdaptiveSearchEnabled()invoked"); + _LIT( KLanguageChanged, + "CAknSearchField::LanguageChanged()invoked"); + _LIT( KHandlePointerEventL, + "CAknSearchField::HandlePointerEventL()invoked"); + _LIT( KAdaptiveChars, + "Eternity"); + + const TInt KSearchFieldMaxLength = 128; + CAknSearchField* searchField = CAknSearchField::NewL( + *iContainer, CAknSearchField::ESearch, + NULL, KSearchFieldMaxLength ); + CleanupStack::PushL( searchField ); + + searchField->SetAdaptiveGridChars( KAdaptiveChars() ); + AssertTrueL( ETrue, KSetAdaptiveGridChars ); + + searchField->ShowAdaptiveSearchGrid(); + AssertTrueL( ETrue, KShowAdaptiveSearchGrid ); + + searchField->AdaptiveSearchEnabled(); + AssertTrueL( ETrue, KAdaptiveSearchEnabled ); + + + searchField->LanguageChanged(); + AssertTrueL( ETrue, KLanguageChanged ); + + TBitFlags32 flag( 256 ); + searchField->SetListColumnFilterFlags( flag ); + AssertTrueL( ETrue, KSetListColumnFilterFlags ); + + searchField->ListColumnFilterFlags(); + AssertTrueL( ETrue, KListColumnFilterFlags ); + + TPointerEvent pointerEvent; + pointerEvent.iType = TPointerEvent::EButton1Up ; + searchField->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + CBCTestSearchfieldObserver* observer = new ( + ELeave ) CBCTestSearchfieldObserver; + CleanupStack::PushL( observer ); + + searchField->AddAdaptiveSearchTextObserverL( observer ); + AssertTrueL( ETrue, KAddAdaptiveSearchTextObserverL ); + + searchField->RemoveAdaptiveSearchTextObserver( observer ); + AssertTrueL( ETrue, KRemoveAdaptiveSearchTextObserver ); + + CleanupStack::PopAndDestroy( observer ); + CleanupStack::PopAndDestroy( searchField ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestSettingPagesL() +// setting page apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestSettingPagesL() + { + _LIT( KSettingPage, + "SP Test" ); + _LIT( KVolumeWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KIntegerWriteInternalStateL, + "CAknIntegerSettingPage::WriteInternalStateL()invoked" ); + _LIT( KTextWriteInternalStateL, + "CAknTextettingPage::WriteInternalStateL()invoked" ); + _LIT( KSliderWriteInternalStateL, + "CAknSliderSettingPage::WriteInternalStateL()invoked" ); + _LIT( KWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KRadioButtonWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KNumericPasswordWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KPasswordWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KFieldWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KAlphaPasswordWriteInternalStateL, + "CAknAlphaPasswordSettingPage::WriteInternalStateL()invoked" ); + _LIT( KCheckboxWriteInternalStateL, + "CAknVolumeSettingPage::WriteInternalStateL()invoked" ); + _LIT( KMenuShowing, + "CAknSettingPage::MenuShowing()invoked"); + _LIT( KWaiting, + "CAknSettingPage::Waiting()invoked"); + _LIT( KCheckAndSetDataValidity, + "CAknSettingPage::CheckAndSetDataValidity()invoked"); + _LIT( KTextLabel, + "CAknSettingPage::TextLabel()invoked"); + _LIT( KHandlePointerEventL, + "CAknIpFieldSettingPage::HandlePointerEventL()invoked"); + _LIT( KCheckboxHandleListBoxEventL, + "CAknCheckBoxSettingPage::HandleListBoxEventL()invoked"); + _LIT( KSettingPageConstructFromResource, + "CAknSettingPage::ConstructFromResource()#2 invoked"); + _LIT( KAknSettingPage, + "CAknSettingPage::CAknSettingPage()#2 invoked"); + + + TInt volumevalue = 3; + TBuf<20> temp; + temp.Append( KSettingPage() ); + CBCTestVolumeSettingPage* volumeSettingPage = new ( + ELeave ) CBCTestVolumeSettingPage( + R_BCTEST_MIX50PATCH_VOLUME_SETTING_PAGE, volumevalue ); + + CleanupStack::PushL( volumeSettingPage ); + volumeSettingPage->ConstructL(); + + CBufFlat* buf = CBufFlat::NewL( 200 ); + CleanupStack::PushL( buf ); + + RBufWriteStream stream; + stream.Open( *buf ); + volumeSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KVolumeWriteInternalStateL ); + + TInt test = 10; + CBCTestIntegerSettingPage* integerSettingPage = new (ELeave) + CBCTestIntegerSettingPage( + R_BCTEST_MIX50PATCH_SETPAGE_TEXT_SETTING_PAGE, test ); + CleanupStack::PushL( integerSettingPage ); + integerSettingPage->ConstructL(); + + integerSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KIntegerWriteInternalStateL ); + + CBCTestTextSettingPage* textSettingPage = new ( + ELeave ) CBCTestTextSettingPage( + R_BCTEST_MIX50PATCH_SETPAGE_TEXT_SETTING_PAGE, temp ); + CleanupStack::PushL( textSettingPage ); + textSettingPage->ConstructL(); + + textSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KTextWriteInternalStateL ); + + CBCTestSliderSettingPage* sliderSettingPage = new (ELeave) + CBCTestSliderSettingPage( + R_BCTEST_MIX50PATCH_SETPAGE_SLIDER_SETTING_PAGE, test ); + CleanupStack::PushL( sliderSettingPage ); + sliderSettingPage->ConstructL(); + + sliderSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KSliderWriteInternalStateL ); + + CBCTestPatchAknSettingPage* settingPage = new( ELeave ) + CBCTestPatchAknSettingPage( R_BCTEST_MIX50PATCH_SETTING_PAGE ); + CleanupStack::PushL( settingPage ); + settingPage->ConstructL(); +// settingPage->SetFocusToEditor(); + + settingPage->MenuShowing(); + AssertTrueL( ETrue, KMenuShowing ); + + settingPage->Waiting(); + AssertTrueL( ETrue, KWaiting ); + + settingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KWriteInternalStateL ); + + settingPage->CheckAndSetDataValidity(); + AssertTrueL( ETrue, KCheckAndSetDataValidity ); + + settingPage->TextLabel(); + AssertTrueL( ETrue, KTextLabel ); + + TInt currentItem(0); + CDesCArrayFlat* array = CCoeEnv::Static()->ReadDesCArrayResourceL( + R_BCTEST_MIX50PATCH_SETPAGE_LIST_ITEM_ARRAY ); + CleanupStack::PushL( array ); + + CBCTestRadioButtonSettingPage* radioButtonSettingPage = new (ELeave) + CBCTestRadioButtonSettingPage( + R_BCTEST_MIX50PATCH_SETPAGE_RADIOBTN_SETPAGE, currentItem, array ); + CleanupStack::PushL( radioButtonSettingPage ); + radioButtonSettingPage->ConstructL(); + + radioButtonSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KRadioButtonWriteInternalStateL ); + + _LIT(KOldPassword, "TESTOLD"); + CBCTestNumericPasswordSettingPage* numericPwdSettingPage = new (ELeave) + CBCTestNumericPasswordSettingPage( + R_BCTEST_MIX50PATCH_PASSWORD_SETTING_PAGE, temp, KOldPassword); + CleanupStack::PushL( numericPwdSettingPage ); + numericPwdSettingPage->ConstructL(); + + numericPwdSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KNumericPasswordWriteInternalStateL ); + + CBCTestAlphaPasswordSettingPage* alphaPwdSettingPage = new (ELeave) + CBCTestAlphaPasswordSettingPage( + R_BCTEST_MIX50PATCH_PASSWORD_SETTING_PAGE, temp, KOldPassword); + CleanupStack::PushL( alphaPwdSettingPage ); + alphaPwdSettingPage->ConstructL(); + + alphaPwdSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KAlphaPasswordWriteInternalStateL ); + + CBCTestPasswordSettingPage* pwdSettingPage = new (ELeave) + CBCTestPasswordSettingPage( + R_BCTEST_MIX50PATCH_PASSWORD_SETTING_PAGE, temp, KOldPassword ); + CleanupStack::PushL( pwdSettingPage ); + pwdSettingPage->ConstructL(); + + pwdSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KPasswordWriteInternalStateL ); + + TInetAddr ipAddr(10); + CBCTestIpFieldSettingPage* ipFieldSettingPage = new (ELeave) + CBCTestIpFieldSettingPage( + R_BCTEST_MIX50PATCH_SETPAGE_IPADDRESS_SETTING_PAGE, ipAddr ); + CleanupStack::PushL( ipFieldSettingPage ); + ipFieldSettingPage->ConstructL(); + + TPointerEvent pointerEvent; + pointerEvent.iType = TPointerEvent::EButton1Up ; + ipFieldSettingPage->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + ipFieldSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KFieldWriteInternalStateL ); + + CSelectableItem* item = new( ELeave ) CSelectableItem( temp, EFalse ); + CleanupStack::PushL( item ); + item->ConstructL(); + CSelectionItemList* itemList = new( ELeave ) CSelectionItemList( 1 ); + CleanupStack::PushL( itemList ); + itemList->AppendL( item ); + CBCTestCheckBoxSettingPage* checkboxSettingPage = new( ELeave ) + CBCTestCheckBoxSettingPage( + R_BCTESTLIST_CHECKBOX_SETTING_PAGE, itemList ); + CleanupStack::PushL( checkboxSettingPage ); + checkboxSettingPage->ConstructL(); + + checkboxSettingPage->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KCheckboxHandleListBoxEventL ); + + checkboxSettingPage->WriteInternalStateL( stream ); + AssertTrueL( ETrue, KCheckboxWriteInternalStateL ); + + CBCTestPatchAknSettingPage *sp = new (ELeave) + CBCTestPatchAknSettingPage( R_AVKON_DEFAULT_SETTING_PAGE ); + CleanupStack::PushL( sp ); + TResourceReader reader; + iCoeEnv->CreateResourceReaderLC( reader , R_BCTEST_MIX50PATCH_SETTING_PAGE ); + sp->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KSettingPageConstructFromResource ); + CleanupStack::PopAndDestroy(); // reader + CleanupStack::PopAndDestroy( sp ); + + CAknSettingPage* sp2 = new (ELeave) CAknSettingPage( &KSettingPage, 0, 0, 0, 0 ); + AssertNotNullL( sp2, KAknSettingPage ); + delete sp2; + CleanupStack::PopAndDestroy( checkboxSettingPage ); + CleanupStack::PopAndDestroy( itemList ); + CleanupStack::PopAndDestroy( item ); + CleanupStack::PopAndDestroy( ipFieldSettingPage ); + CleanupStack::PopAndDestroy( pwdSettingPage ); + CleanupStack::PopAndDestroy( alphaPwdSettingPage ); + CleanupStack::PopAndDestroy( numericPwdSettingPage ); + CleanupStack::PopAndDestroy( radioButtonSettingPage ); + CleanupStack::PopAndDestroy( array ); + CleanupStack::PopAndDestroy( settingPage ); + CleanupStack::PopAndDestroy( sliderSettingPage ); + CleanupStack::PopAndDestroy( textSettingPage ); + CleanupStack::PopAndDestroy( integerSettingPage ); + CleanupStack::PopAndDestroy( buf ); + CleanupStack::PopAndDestroy( volumeSettingPage ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestTitlePaneL() +// title pane apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestTitlePaneL() + { + _LIT ( KSetNumberOfVisibleTextRows, + "CAknTitlePane::SetNumberOfVisibleTextRows()invoked"); + CAknTitlePane* titlePane = new (ELeave) CAknTitlePane; + CleanupStack::PushL( titlePane ); + titlePane->ConstructL(); + + TInt numOfRows = titlePane->MaxNumberOfVisibleTextRows(); + titlePane->SetNumberOfVisibleTextRows( numOfRows ); + AssertTrueL( ETrue, KSetNumberOfVisibleTextRows ); + + CleanupStack::PopAndDestroy( titlePane ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestChoiceListL() +// ChoiceListL test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAknToolbarL() + { + _LIT( KHideItemsAndDrawOnlyBackgroundWithTCoeWinPriority, + "CAknToolbar::HideItemsAndDrawOnlyBackground with TCoeWinPriority" ); + _LIT( KHideItemsAndDrawOnlyBackground, + "CAknToolbar::HideItemsAndDrawOnlyBackground" ); + _LIT( KCountFadedComponents, + "CAknToolbar::CountFadedComponents" ); + _LIT( KFadedComponent, + "CAknToolbar::FadedComponent" ); + _LIT( KPrepareForFocusLoss, + "CAknToolbar::PrepareForFocusLossL" ); + + // Test some API here + CAknToolbar *toolBar = CAknToolbar::NewL( R_BCTEST_MIX50PATCH_TOOLBAR ); + CleanupStack::PushL( toolBar ); + + toolBar->SetMopParent( iContainer ); + toolBar->HideItemsAndDrawOnlyBackground(ETrue); + AssertTrueL( ETrue, KHideItemsAndDrawOnlyBackground ); + + toolBar->HideItemsAndDrawOnlyBackground(EFalse,ECoeWinPriorityLow); + AssertTrueL( ETrue, KHideItemsAndDrawOnlyBackgroundWithTCoeWinPriority ); + + toolBar->CountFadedComponents(); + AssertTrueL( ETrue, KCountFadedComponents ); + + toolBar->FadedComponent(0); + AssertTrueL( ETrue, KFadedComponent ); + + toolBar->PrepareForFocusLossL(); + AssertTrueL( ETrue, KPrepareForFocusLoss ); + + toolBar->SetToolbarObserver( this ); + this->MAknToolbarObserver_Reserved_1(); + _LIT( KAknToolbarObserver_r_Reserved_1, \ + "MAknToolbarObserver::MAknToolbarObserver_Reserved_1" ); + AssertTrueL( ETrue, KAknToolbarObserver_r_Reserved_1 ); + + this->MAknToolbarObserver_Reserved_2(); + _LIT( KAknToolbarObserver_r_Reserved_2, \ + "MAknToolbarObserver::MAknToolbarObserver_Reserved_2" ); + AssertTrueL( ETrue, KAknToolbarObserver_r_Reserved_2 ); + + CleanupStack::PopAndDestroy( toolBar ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestAknTouchPaneL() +// touch pane api test +// --------------------------------------------------------------------------- +// +/*void CBCTestMix50PatchControlCase::TestAknTouchPaneL() + { + _LIT( KNewL, "NewL with resourceId test" ); + _LIT( KSetFepPenSupportInterface, + "CAknTouchPane::SetFepPenSupportInterface" ); + _LIT( KDraw, "CAknTouchPane::Draw" ); + + if ( !AknLayoutUtils::PenEnabled() ) + { + return; + } + + CAknTouchPane* touchPane = CAknTouchPane::NewL( R_BCTEST_MIX50PATCH_TOUCHPANE ); + CleanupStack::PushL( touchPane ); + AssertTrueL( ETrue, KNewL ); + + TRect rect = iContainer->Rect(); + + iContainer->ActivateGc();//necessary + touchPane->Draw( iContainer->SystemGc(), *iContainer, rect ); + iContainer->DeactivateGc(); + AssertTrueL( ETrue, KDraw ); + + CleanupStack::PopAndDestroy( touchPane ); + } +*/ +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestChoiceListL() +// ChoiceListL test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAknEnvL() + { + _LIT( KTxtAknEnvSplitViewActive, "CAknEnv::SplitViewActive" ); + _LIT( KAknEnvRequestCommandMediationL, + "CAknEnv::RequestCommandMediationL" ); + _LIT( KAknEnvEndCommandMediation, "CAknEnv::EndCommandMediation" ); + + CAknEnv* aknEnv = CAknEnv::Static(); + aknEnv->SplitViewActive(); + AssertTrueL( ETrue, KTxtAknEnvSplitViewActive ); + + CEikButtonGroupContainer* cba = iAvkonAppUi->Cba(); + aknEnv->RequestCommandMediationL( *cba, *this ); + AssertTrueL( ETrue, KAknEnvRequestCommandMediationL ); + + aknEnv->EndCommandMediation( *this ); + AssertTrueL( ETrue, KAknEnvEndCommandMediation ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestChoiceListL() +// ChoiceListL test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAknVolumeControlL() + { + _LIT( KTxtCAknVolumeControl, "CAknVolumeControl::CAknVolumeControl" ); + _LIT( KTxtConstructFromResourceL, "CAknVolumeControl::ConstructFromResourceL" ); + _LIT( KTxtMinimumSize, "CAknVolumeControl::MinimumSize" ); + + CAknVolumeControl* volumeCtrl = new( ELeave ) CAknVolumeControl; + CleanupStack::PushL( volumeCtrl ); + AssertNotNullL( volumeCtrl, KTxtCAknVolumeControl ); + volumeCtrl->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + CEikonEnv::Static()->CreateResourceReaderLC( reader, R_BCTEST_MIX50PATCH_SETPAGE_VOLUME ); + volumeCtrl->ConstructFromResourceL( reader ); + AssertTrueL( ETrue, KTxtConstructFromResourceL ); + CleanupStack::PopAndDestroy(); // reader + + TSize nSize = volumeCtrl->MinimumSize(); + AssertTrueL( ETrue, KTxtMinimumSize ); + + CleanupStack::PopAndDestroy( volumeCtrl ); + volumeCtrl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestImageTableItemDataL() +// Image table item data test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestImageTableItemDataL() + { + _LIT(KSetImagesL, "CAknsImageTableItemData::SetImagesL() tested"); + _LIT(KImages, "CAknsImageTableItemData::Images() tested"); + _LIT(KImageIID, "CAknsImageTableItemData::ImageIID() tested"); + _LIT(KNumberOfImages, "CAknsImageTableItemData::NumberOfImages() tested"); + +// CBCTestAknsImageItemData* itemData = new (ELeave) +// CBCTestAknsImageItemData( EAknsITImage ); +// CleanupStack::PushL( itemData ); +// +// itemData->Type(); +// AssertTrueL( ETrue, KType ); +// +// TAknsImageAttributeData attributeData; +// itemData->SetAttributesL( attributeData ); +// AssertTrueL( ETrue, KSetAttributes ); +// +// itemData->Attributes(); +// AssertTrueL( ETrue, KAttributes ); +// +// CleanupStack::PopAndDestroy( itemData ); + CAknsImageTableItemData* itemData = CAknsImageTableItemData::NewL(); + CleanupStack::PushL(itemData); + + TAknsItemID skinIdArray[] = + { + KAknsIIDQgnIndiSctClose, + KAknsIIDQgnIndiAdaptSearchBackspace + }; + + //IMPORT_C void SetImagesL (const TInt aNumberOfImages, const TAknsItemID *aImages) + itemData->SetImagesL( sizeof( skinIdArray )/sizeof(skinIdArray[0]), skinIdArray ); + AssertTrueL( ETrue, KSetImagesL ); + + itemData->Images(); + AssertTrueL( ETrue, KImages ); + + itemData->ImageIID( itemData->NumberOfImages() - 1 ); + AssertTrueL( ETrue, KNumberOfImages ); + AssertTrueL( ETrue, KImageIID ); + + CleanupStack::PopAndDestroy(); //itemData + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestMBmpItemDataL() +// masked bitmap item data test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestMBmpItemDataL() + { + _LIT(KNewL, "CAknsMaskedBitmapItemData::NewL() tested"); + _LIT(KMask, "CAknsMaskedBitmapItemData::Mask() tested"); + _LIT(KSetMask, "CAknsMaskedBitmapItemData::SetMask() tested"); + _LIT(KDestroyAndSetMask, "CAknsMaskedBitmapItemData::DestroyAndSetMask() tested"); + + CAknsMaskedBitmapItemData* bmpItemData = CAknsMaskedBitmapItemData::NewL(); + CleanupStack::PushL( bmpItemData ); + AssertTrueL( ETrue, KNewL ); + + CFbsBitmap* bitmap = new(ELeave)CFbsBitmap; + TSize screenSize = iAvkonAppUi->ApplicationRect().Size(); + bitmap->Create( screenSize, iCoeEnv->ScreenDevice()->DisplayMode() ); + bmpItemData->SetMask( bitmap ); + AssertTrueL( ETrue, KSetMask ); + + bmpItemData->Mask(); + AssertTrueL( ETrue, KMask ); + + CFbsBitmap* bitmap2 = new (ELeave)CFbsBitmap; + bitmap2->Duplicate( EMbmAvkonQgn_note_ok ); + bmpItemData->DestroyAndSetMask( bitmap2 ); + AssertTrueL( ETrue, KDestroyAndSetMask ); + + CleanupStack::PopAndDestroy( bmpItemData ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestColTableItemDataL() +// color table item data test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestColTableItemDataL() + { + _LIT(KNewL, "CAknsColorTableItemData::NewL() tested"); + _LIT(KSetColorsL, "CAknsColorTableItemData::SetColorsL() tested"); + _LIT(KColorIndexed, "CAknsColorTableItemData::ColorIndexed() tested"); + _LIT(KColorRgb, "CAknsColorTableItemData::ColorRgb() tested"); + _LIT(KGetColorL, "CAknsColorTableItemData::GetColorL() tested"); + + const TInt numOfEntries = 2; + CAknsColorTableItemData* itemData = CAknsColorTableItemData::NewL(); + CleanupStack::PushL( itemData ); + AssertTrueL( ETrue, KNewL ); + + CleanupStack::PopAndDestroy( itemData ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestBackgroundCCL() +// Background control context test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestBackgroundCCL() + { + _LIT( KNewL, "CAknsLayeredBackgroundControlContext::NewL() tested"); + _LIT( KSetLayerImage, + "CAknsLayeredBackgroundControlContext::SetLayerImage() tested"); + _LIT( KSetLayerRect, + "CAknsLayeredBackgroundControlContext::SetLayerRect() tested"); + _LIT( KLisboxNewL, "CAknsListBoxBackgroundControlContext::NewL()"); + _LIT( KSetTiledBitmap, + "CAknsListBoxBackgroundControlContext::SetTiledBitmap() tested"); + _LIT( KSetTiledRect, + "CAknsListBoxBackgroundControlContext::SetTiledRect() tested"); + _LIT( KSetBottomBitmap, + "CAknsListBoxBackgroundControlContext::SetBottomBitmap() tested"); + _LIT( KSetBottomRect, + "CAknsListBoxBackgroundControlContext::SetBottomRect() tested"); + _LIT( KSetParentContext, + "CAknsBasicBackgroundControlContext::SetParentContext() tested"); + _LIT( KControlContextOfParent, + "AknsDrawUtils::ControlContextOfParent() tested"); + _LIT( KLinearOrder, "TAknsItemID::LinearOrder"); + + TInt const layers = 2; + TRect rect( 0, 0 ,10, 10 ); + TAknsItemID skinIdArray[] = + { + KAknsIIDQgnIndiSctClose, + KAknsIIDQgnIndiAdaptSearchBackspace + }; + TInt result = TAknsItemID::LinearOrder( + KAknsIIDQgnIndiSctClose, + KAknsIIDQgnIndiAdaptSearchBackspace ); + AssertTrueL( ETrue, KLinearOrder ); + + CAknsLayeredBackgroundControlContext* cc = + CAknsLayeredBackgroundControlContext::NewL( + KAknsIIDQsnBgAreaStatus, + rect, + EFalse, + 1); + CleanupStack::PushL( cc ); + AssertNotNullL( cc, KNewL ); + CleanupStack::PopAndDestroy( cc ); + cc = NULL; + + cc = CAknsLayeredBackgroundControlContext::NewL( + KAknsIIDQsnBgAreaStatus, + rect, + EFalse, + layers + 1); + CleanupStack::PushL( cc ); + AssertNotNullL( cc, KNewL ); + + for ( TInt n = 0; n < layers; n++ ) + { + cc->SetLayerImage( n, KAknsIIDNone ); + } + AssertTrueL( ETrue, KSetLayerImage ); + + for( TInt n = 0; n < layers; n++ ) + { + cc->SetLayerRect( n, rect ); + } + AssertTrueL( ETrue, KSetLayerRect ); + CleanupStack::PopAndDestroy( cc ); + + CAknsListBoxBackgroundControlContext* listboxcc = + CAknsListBoxBackgroundControlContext::NewL( + KAknsIIDQsnBgAreaStatus, + rect, + EFalse, + KAknsIIDQgnIndiSctClose, + rect + ); + CleanupStack::PushL( listboxcc ); + AssertNotNullL( listboxcc, KLisboxNewL ); + + listboxcc->SetTiledBitmap( KAknsIIDNone ); + AssertTrueL( ETrue, KSetTiledBitmap ); + + listboxcc->SetTiledRect( rect ); + AssertTrueL( ETrue, KSetTiledRect ); + + listboxcc->SetBottomBitmap( KAknsIIDNone ); + AssertTrueL( ETrue, KSetBottomBitmap ); + + listboxcc->SetBottomRect( rect ); + AssertTrueL( ETrue, KSetBottomRect ); + + listboxcc->SetParentContext( NULL ); + AssertTrueL( ETrue, KSetParentContext ); + CleanupStack::PopAndDestroy( listboxcc ); + + AknsDrawUtils::ControlContextOfParent( iContainer ); + AssertTrueL( ETrue, KControlContextOfParent ); + + CAknsFrameBackgroundControlContext* context = + CAknsFrameBackgroundControlContext::NewL( + KAknsIIDNone, rect, rect, EFalse ); + CleanupStack::PushL(context); + + context->SetFrame( KAknsIIDQsnBgAreaStatus ); + _LIT( KSetFrame, "CAknsFrameBackgroundControlContext::SetFrame" ); + AssertTrueL( ETrue, KSetFrame ); + + TRect innerRect = TRect( 2, 2, 8, 8 ); + TRect outterRect = TRect ( 1, 1, 9, 9 ); + context->SetFrameRects( outterRect, innerRect ); + _LIT( KSetFrameRects, "CAknsFrameBackgroundControlContext::SetFrameRects" ); + AssertTrueL( ETrue, KSetFrameRects ); + + context->SetCenter( KAknsIIDNone ); + _LIT( KSetCenter, "CAknsFrameBackgroundControlContext::SetCenter" ); + AssertTrueL( ETrue, KSetCenter ); + + CleanupStack::PopAndDestroy(); //context + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestAknLayoutUtilsL() +// Akn layout utility apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAknLayoutUtilsL() + { + + CEikLabel* label = new(ELeave) CEikLabel; + CleanupStack::PushL(label); + TRect rect; + label->SetContainerWindowL( *iContainer ); + AknLayoutUtils::SAknLayoutLabel layoutLabel; + layoutLabel.iFont=0; + layoutLabel.iC=1; + layoutLabel.iL=1; + layoutLabel.iR=1; + layoutLabel.iB=1; + layoutLabel.iW=1; + layoutLabel.iJ=1; + layoutLabel.iNumberOfLinesShown=1; + + // IMPORT_C void LayoutLabel (CEikLabel *aLabel, + // const TRect &aLabelParent, + // const SAknLayoutLabel &aLayout, + // const CFont *aCustomFont=0) + AknLayoutUtils::LayoutLabel( label, rect, layoutLabel, 0 ); + _LIT( KLayoutLabel2, "AknsUtils::LayoutLabel#2" ); + AssertTrueL( ETrue, KLayoutLabel2 ); + + // IMPORT_C TRect RectFromCoords ( + // const TRect &aParent, + // TInt h, + // TInt l, + // TInt r, + // TInt B, + // TInt W, + // TInt LB=0) + rect = AknLayoutUtils::RectFromCoords( rect, 1, 1, 1, 1, 1, 1 ); + _LIT( KRectFromCoords1, "AknsUtils::RectFromCoords#1" ); + AssertTrueL( ETrue, KRectFromCoords1 ); + + CEikImage* image = new(ELeave)CEikImage; + CleanupStack::PushL( image ); + TInt i = 1; + + CCoeControl* control = new(ELeave) CCoeControl; + CleanupStack::PushL( control ); + + AknLayoutUtils::SAknLayoutControl layoutControl; + layoutControl.iC=1; + layoutControl.iL=1; + layoutControl.iR=1; + layoutControl.iB=1; + layoutControl.iW=1; + layoutControl.iH=1; + + // IMPORT_C void LayoutControl( + // CCoeControl *aControl, + // const TRect &aControlParent, + // const SAknLayoutControl &aLayout) + AknLayoutUtils::LayoutControl( control, rect, layoutControl ); + _LIT( KLayoutControl2, "AknsUtils::LayoutControl#2" ); + AssertTrueL( ETrue, KLayoutControl2 ); + + // IMPORT_C void LayoutControl ( + // CCoeControl *aControl, + // const TRect &aControlParent, + // TInt, + // TInt l, + // TInt t, + // TInt r, + // TInt b, + // TInt W, + // TInt H) + AknLayoutUtils::LayoutControl( control, rect, 1, 1, 1, 1, 1, 1, 1 ); + _LIT( KLayoutControl4, "AknsUtils::LayoutControl#4" ); + AssertTrueL( ETrue, KLayoutControl4 ); + + CEikMfne *mfne = new(ELeave)CEikMfne(); + CleanupStack::PushL( mfne ); + AknLayoutUtils::SAknLayoutMfne layoutMfne; + layoutMfne.iFont=0; + layoutMfne.iC=1; + layoutMfne.iL=1; + layoutMfne.iR=1; + layoutMfne.iB=1; + layoutMfne.iW=1; + layoutMfne.iJ=1; + + // IMPORT_C void LayoutMfne ( + // CEikMfne *aMfne, + // const TRect &aMfneParent, + // const SAknLayoutMfne &aLayout) + AknLayoutUtils::LayoutMfne( mfne, rect, layoutMfne ); + _LIT( KLayoutMfne2, "AknsUtils::LayoutMfne#2" ); + AssertTrueL( ETrue, KLayoutMfne2 ); + + // IMPORT_C void LayoutMfne ( + // CEikMfne *aMfne, + // const TRect &aMfneParent, + // TInt font, + // TInt C, + // TInt l, + // TInt r, + // TInt B, + // TInt W, + // TInt J) + AknLayoutUtils::LayoutMfne( mfne, rect, 0, 0, 0, 0, 0, 0, 0 ); + _LIT( KLayoutMfne4, "AknsUtils::LayoutMfne#4" ); + AssertTrueL( ETrue, KLayoutMfne4 ); + + CAknIntegerEdwin* edwin = CAknIntegerEdwin::NewL( 1, 2, 2 ); + CleanupStack::PushL( edwin ); + edwin->SetContainerWindowL( *iContainer ); + + // IMPORT_C void LayoutEdwin ( + // CEikEdwin *aEdwin, + // const TRect &aEdwinParent, + // TInt font, + // TInt C, + // TInt l, + // TInt r, + // TInt B, + // TInt W, + // TInt J, + // TInt aNumberOfLinesShown, + // TInt aNextLineBaseline, + // const CFont *aCustomFont=0, + // TBool aMinimizeEdwinView=EFalse ) + AknLayoutUtils::LayoutEdwin( + edwin, rect, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, EFalse ); + _LIT( KLayoutEdwin5, "AknsUtils::LayoutEdwin#5" ); + AssertTrueL( ETrue, KLayoutEdwin5 ); + + // IMPORT_C void LayoutImage ( + // CEikImage *aImage, + // const TRect &aParent, + // const SAknLayoutControl &aLayout) + AknLayoutUtils::LayoutImage( image, rect, layoutControl ); + _LIT( KLayoutImage4, "AknsUtils::LayoutImage#4" ); + AssertTrueL( ETrue, KLayoutImage4 ); + + // IMPORT_C void LayoutLabel ( + // CEikLabel *aLabel, + // const TRect &aLabelParent, + // const SAknLayoutLabel &aLayout, + // const CFont *aCustomFont=0) + AknLayoutUtils::LayoutLabel( label, rect, layoutLabel, 0 ); + _LIT( KLayoutLabel5, "AknsUtils::LayoutLabel#5" ); + AssertTrueL( ETrue, KLayoutLabel5 ); + + // IMPORT_C void LayoutEdwin ( + // CEikEdwin *aEdwin, + // const TRect &aEdwinParent, + // const SAknLayoutEdwin &aLayout, + // const CFont *aCustomFont=0, + // TBool aMinimizeEdwinView=EFalse) + AknLayoutUtils::SAknLayoutEdwin edwinLayout; + edwinLayout.iFont=0; + edwinLayout.iC=1; + edwinLayout.iL=1; + edwinLayout.iR=1; + edwinLayout.iB=1; + edwinLayout.iW=1; + edwinLayout.iJ=1; + edwinLayout.iNumberOfLinesShown=1; + AknLayoutUtils::LayoutEdwin( edwin, rect, edwinLayout, 0, EFalse ); + _LIT( KLayoutEdwin2, "AknsUtils::LayoutEdwin#2" ); + AssertTrueL( ETrue, KLayoutEdwin2 ); + + CleanupStack::PopAndDestroy( edwin ); + CleanupStack::PopAndDestroy( mfne ); + CleanupStack::PopAndDestroy( control ); + CleanupStack::PopAndDestroy( image ); + CleanupStack::PopAndDestroy( label ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestAknsUtilsL() +// Akn skin utility apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAknsUtilsL() + { + MAknsSkinInstance* skin = AknsUtils::SkinInstance(); + + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + TRgb rgb = TRgb(); + TAknsItemID skinItemID; + skinItemID.Set( 0, 0 ); + + //IMPORT_C static void CreateColorIconLC( + // MAknsSkinInstance* aInstance, const TAknsItemID& aID, + // const TAknsItemID& aColorID, const TInt aColorIndex, + // CFbsBitmap*& aBitmap, CFbsBitmap*& aMask, + // const TDesC& aFilename, + // const TInt aFileBitmapId, const TInt aFileMaskId, + // const TRgb aDefaultColor ); + AknsUtils::CreateColorIconLC( + skin, + KAknsIIDDefault, + KAknsIIDQsnIconColors, + EAknsCIQsnIconColorsCG20, + bitmap, + mask, + KAvkonBitmapFile, + 0, + 0, + rgb); + _LIT( KCreateColorIconLC, "AknsUtils::CreateColorIconLC" ); + AssertTrueL( ETrue, KCreateColorIconLC ); + + CleanupStack::PopAndDestroy(2); //mask + bitmap + mask = bitmap = NULL; + + //IMPORT_C static void CreateColorIconL( + // MAknsSkinInstance* aInstance, const TAknsItemID& aID, + // const TAknsItemID& aColorID, const TInt aColorIndex, + // CFbsBitmap*& aBitmap, CFbsBitmap*& aMask, + // const TDesC& aFilename, + // const TInt aFileBitmapId, const TInt aFileMaskId, + // const TRgb aDefaultColor ); + AknsUtils::CreateColorIconL( + skin, + KAknsIIDQgnIndiSettProtectedAdd, + KAknsIIDQsnIconColors, + EAknsCIQsnIconColorsCG13, bitmap, + mask, + KAvkonBitmapFile, + EMbmAvkonQgn_indi_sett_protected_add, + EMbmAvkonQgn_indi_sett_protected_add_mask, + rgb); + _LIT( KCreateColorIconL, "AknsUtils::CreateColorIconL" ); + AssertTrueL( ETrue, KCreateColorIconL ); + + delete mask; + delete bitmap; + mask = bitmap = NULL; + + //IMPORT_C static void CreateIconL( + // MAknsSkinInstance* aInstance, const TAknsItemID& aID, + // CFbsBitmap*& aBitmap, CFbsBitmap*& aMask, + // const TDesC& aFilename, + // const TInt aFileBitmapId, const TInt aFileMaskId ); + AknsUtils::CreateIconL( + skin, + KAknsIIDQgnIndiBatteryStrength, + bitmap, + mask, + KAvkonBitmapFile, + EMbmAvkonQgn_indi_battery_strength, + EMbmAvkonQgn_indi_battery_strength_mask); + _LIT( KCreateIconL, "AknsUtils::CreateIconL" ); + AssertTrueL( ETrue, KCreateIconL ); + + delete mask; + delete bitmap; + mask = bitmap = NULL; + + //IMPORT_C static void CreateIconL( + // MAknsSkinInstance* aInstance, const TAknsItemID& aID, + // CFbsBitmap*& aBitmap, + // const TDesC& aFilename, + // const TInt aFileBitmapId ); + AknsUtils::CreateIconL( + skin, + KAknsIIDQgnIndiBatteryStrength, + bitmap, + KAvkonBitmapFile, + EMbmAvkonQgn_indi_battery_strength); + _LIT( KCreateIconL1, "AknsUtils::CreateIconL#1" ); + AssertTrueL( ETrue, KCreateIconL1 ); + + delete bitmap; + bitmap = NULL; + + //IMPORT_C static void CreateIconLC( + // MAknsSkinInstance* aInstance, const TAknsItemID& aID, + // CFbsBitmap*& aBitmap, CFbsBitmap*& aMask, + // const TDesC& aFilename, + // const TInt aFileBitmapId, const TInt aFileMaskId ); + AknsUtils::CreateIconLC( + skin, + KAknsIIDQgnIndiBatteryStrength, + bitmap, + mask, + KAvkonBitmapFile, + EMbmAvkonQgn_indi_battery_strength, + EMbmAvkonQgn_indi_battery_strength_mask); + _LIT( KCreateIconLC, "AknsUtils::CreateIconLC" ); + AssertTrueL( ETrue, KCreateIconLC ); + + CleanupStack::PopAndDestroy(2); //mask + bitmap + mask = bitmap = NULL; + + //IMPORT_C static void CreateIconLC( + // MAknsSkinInstance* aInstance, const TAknsItemID& aID, + // CFbsBitmap*& aBitmap, + // const TDesC& aFilename, + // const TInt aFileBitmapId ); + AknsUtils::CreateIconLC( + skin, + KAknsIIDQgnIndiBatteryStrength, + bitmap, + KAvkonBitmapFile, + EMbmAvkonQgn_indi_battery_strength); + _LIT( KCreateIconLC1, "AknsUtils::CreateIconLC#1" ); + AssertTrueL( ETrue, KCreateIconLC1 ); + + CleanupStack::PopAndDestroy(); //bitmap + bitmap = NULL; + + TAknsItemID itemID = KAknsIIDNone; + + //IMPORT_C void GetCachedMaskedBitmap ( + // MAknsSkinInstance *aInstance, + // const TAknsItemID &aID, + // CFbsBitmap *&aBitmap, + // CFbsBitmap *&aMask) + AknsUtils::GetCachedMaskedBitmap( skin, itemID, bitmap, mask ); + _LIT( KGetCachedMaskedBitmap, "AknsUtils::GetCachedMaskedBitmap" ); + AssertTrueL( ETrue, KGetCachedMaskedBitmap ); + + //CleanupStack::PopAndDestroy(2); //mask + bitmap + mask = bitmap = NULL; + + TInt err = KErrNone; + TPoint point = TPoint(); + CAknQueryDialog* dialog = CAknQueryDialog::NewL(); + CleanupStack::PushL( dialog ); + + //IMPORT_C void RegisterControlPosition ( + // const CCoeControl *aControl) + AknsUtils::RegisterControlPosition( dialog ); + _LIT( KRegisterControlPosition, "AknsUtils::RegisterControlPosition" ); + AssertTrueL( ETrue, KRegisterControlPosition ); + + //IMPORT_C void DeregisterControlPosition ( + // const CCoeControl *aControl) + AknsUtils::DeregisterControlPosition( dialog ); + + //IMPORT_C void RegisterControlPosition ( + // const CCoeControl *aControl, + // const TPoint &aPoint) + AknsUtils::RegisterControlPosition( dialog, point ); + _LIT( KRegisterControlPosition1, "AknsUtils::RegisterControlPosition#1" ); + AssertTrueL( ETrue, KRegisterControlPosition1 ); + + //IMPORT_C TInt GetControlPosition ( + // const CCoeControl *aControl, + // TPoint &aScreenPos) + err = AknsUtils::GetControlPosition( dialog, point ); + _LIT( KGetControlPosition, "AknsUtils::GetControlPosition" ); + AssertTrueL( ETrue, KGetControlPosition ); + + //IMPORT_C void DeregisterControlPosition ( + // const CCoeControl *aControl) + AknsUtils::DeregisterControlPosition( dialog ); + _LIT( KDeregisterControlPosition, "AknsUtils::DeregisterControlPosition" ); + AssertTrueL( ETrue, KDeregisterControlPosition ); + + CleanupStack::PopAndDestroy( dialog ); + + //IMPORT_C void SetAvkonSkinEnabledL ( + // const TBool aEnabled) + AknsUtils::SetAvkonSkinEnabledL(EFalse); + AknsUtils::AvkonSkinEnabled(); + _LIT( KAvkonSkinEnabled, "AknsUtils::AvkonSkinEnabled" ); + AssertTrueL( ETrue, KAvkonSkinEnabled ); + + + //IMPORT_C TInt GetCachedColor ( + // MAknsSkinInstance *aInstance, + // TRgb &aRgb, + // const TAknsItemID &aID, + // const TInt aIndex) + TInt color = AknsUtils::GetCachedColor( skin, rgb, itemID, 0 ); + _LIT( KGetCachedColor, "AknsUtils::GetCachedColor" ); + AssertTrueL( ETrue, KGetCachedColor ); + + //IMPORT_C CFbsBitmap * GetCachedBitmap ( + // MAknsSkinInstance *aInstance, + // const TAknsItemID &aID) + bitmap = AknsUtils::GetCachedBitmap( NULL, itemID ); + _LIT( KGetCachedBitmap, "AknsUtils::GetCachedBitmap" ); + AssertTrueL( ETrue, KGetCachedBitmap ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestAknsDrawUtilsL() +// Akn skin utility apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAknsDrawUtilsL() + { + + TRect rect = TRect(); + MAknsSkinInstance* instance = AknsUtils::SkinInstance(); + + CWindowGc& gc = iCoeEnv->SystemGc(); + MAknsControlContext* cc = AknsDrawUtils::ControlContext( iContainer ); + + gc.Activate( *iContainer->DrawableWindow() ); + + //IMPORT_C TBool Background ( + // MAknsSkinInstance *aInstance, + // MAknsControlContext *aContext, + // const CCoeControl *aControl, + // CWindowGc &aGc, + // const TRect &aRect) + TBool output = AknsDrawUtils::Background( instance, cc, iContainer, gc, rect ); + _LIT( KBackground1, "AknsDrawUtils::Background#1" ); + AssertTrueL( ETrue, KBackground1 ); + + //IMPORT_C TBool Background ( + // MAknsSkinInstance *aInstance, + // MAknsControlContext *aContext, + // const CCoeControl *aControl, + // CWindowGc &aGc, + // const TRect &aRect, + // const TInt aDrawParam) + output = AknsDrawUtils::Background( + instance, cc, iContainer, gc, rect, KAknsDrawParamDefault ); + _LIT( KBackground2, "AknsDrawUtils::Background#2" ); + AssertTrueL( ETrue, KBackground2 ); + + //IMPORT_C TBool BackgroundBetweenRects ( + // MAknsSkinInstance *aInstance, + // MAknsControlContext *aContext, + // CWindowGc &aGc, + // const TRect &aOuterRect, + // const TRect &aInnerRect) + + TRect innerRect = rect; + innerRect.Shrink( 2, 2 ); + output = AknsDrawUtils::BackgroundBetweenRects( + instance, cc, gc, rect, innerRect ); + _LIT( KBackgroundBetweenRects, "AknsDrawUtils::BackgroundBetweenRects" ); + AssertTrueL( ETrue, KBackgroundBetweenRects ); + + //IMPORT_C TBool BackgroundBetweenRects ( + // MAknsSkinInstance *aInstance, + // MAknsControlContext *aContext, + // const CCoeControl *aControl, + // CWindowGc &aGc, + // const TRect &aOuterRect, + // const TRect &aInnerRect) + output = AknsDrawUtils::BackgroundBetweenRects( + instance, cc, iContainer, gc, rect, innerRect); + _LIT( KBackgroundBetweenRects1, "AknsDrawUtils::BackgroundBetweenRects#1" ); + AssertTrueL( ETrue, KBackgroundBetweenRects1 ); + + //IMPORT_C TBool BackgroundBetweenRects ( + // MAknsSkinInstance *aInstance, + // MAknsControlContext *aContext, + // const CCoeControl *aControl, + // CWindowGc &aGc, + // const TRect &aOuterRect, + // const TRect &aInnerRect, + // const TInt aDrawParam ) + output = AknsDrawUtils::BackgroundBetweenRects( + instance, cc, iContainer, gc, rect, innerRect, KAknsDrawParamDefault ); + _LIT( KBackgroundBetweenRects2, "AknsDrawUtils::BackgroundBetweenRects#2" ); + AssertTrueL( ETrue, KBackgroundBetweenRects2 ); + + //IMPORT_C TBool DrawBackground ( + // MAknsSkinInstance *aInstance, + // MAknsControlContext *aContext, + // const CCoeControl *aControl, + // CBitmapContext &aGc, + // const TPoint &aDstPos, + // const TRect &aControlRect, + // const TInt aDrawParam) + TPoint point = TPoint(); + output = AknsDrawUtils::DrawBackground( + instance, cc, iContainer, gc, point, rect, KAknsDrawParamDefault); + _LIT( KDrawBackground, "AknsDrawUtils::DrawBackground" ); + AssertTrueL( ETrue, KDrawBackground ); + + //IMPORT_C void DrawCachedImage ( + // MAknsSkinInstance *aInstance, + // CWindowGc &aGc, + // const TRect &aRect, + // const TAknsItemID &aID) + AknsDrawUtils::DrawCachedImage( instance, gc, rect, KAknsIIDNone ); + _LIT( KDrawCachedImagee, "AknsDrawUtils::DrawCachedImage" ); + AssertTrueL( ETrue, KDrawCachedImagee ); + + //IMPORT_C TBool DrawFrame ( + // MAknsSkinInstance *aInstance, + // CWindowGc &aGc, + // const TRect &aOuterRect, + // const TRect &aInnerRect, + // const TAknsItemID &aFrameID, + // const TAknsItemID &aCenterID) + output = AknsDrawUtils::DrawFrame( + instance, gc, rect, innerRect, KAknsIIDNone, KAknsIIDNone ); + _LIT( KDrawFrame, "AknsDrawUtils::DrawFrame" ); + AssertTrueL( ETrue, KDrawFrame ); + + gc.Deactivate(); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestDialogsL() +// Various dialogs api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestDialogsL() + { + //IMPORT_C CAknMessageQueryDialog(); + CAknMessageQueryDialog* messageDialog = new(ELeave) CAknMessageQueryDialog(); + CleanupStack::PushL( messageDialog ); + _LIT( KAknMessageQueryDialog, + "CAknMessageQueryDialog::CAknMessageQueryDialog#5" ); + AssertTrueL( ETrue, KAknMessageQueryDialog ); + CleanupStack::PopAndDestroy( messageDialog ); + + CAknQueryDialog* queryDialog = CAknQueryDialog::NewL(); + CleanupStack::PushL( queryDialog ); + + _LIT( KPrompt, "Query dialog apis test" ); + queryDialog->ExecuteLD( + R_BCTESTAKNQUEDLG_ONELINE_DATA_QUERY , KPrompt() ); + _LIT( KExecuteLD, "CAknQueryDialog::ExecuteLD#1" ); + AssertTrueL( ETrue, KExecuteLD ); + + CleanupStack::Pop( queryDialog ); + + //IMPORT_C CAknStaticNoteDialog(CEikDialog** aSelfPtr); + iStaticNoteDialog = NULL; + iStaticNoteDialog = new (ELeave) CAknStaticNoteDialog( + REINTERPRET_CAST( CEikDialog**, &iStaticNoteDialog) ); + CleanupStack::PushL( iStaticNoteDialog ); + _LIT( KAknStaticNoteDialog1, + "CAknStaticNoteDialog::CAknStaticNoteDialog#1" ); + AssertNotNullL( iStaticNoteDialog, KAknStaticNoteDialog1 ); + + iStaticNoteDialog->SetNumberOfBorders( 1 ); + _LIT( KSetNumberOfBorders, "CAknStaticNoteDialog::SetNumberOfBorders"); + AssertTrueL( ETrue, KSetNumberOfBorders ); + + CleanupStack::PopAndDestroy( iStaticNoteDialog ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestPopupsL() +// Popup control api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestPopupL() + { + CAknSinglePopupMenuStyleListBox* listbox = new(ELeave)CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL( listbox ); + + CAknPopupList* popupList = CAknPopupList::NewL( listbox, + R_AVKON_SOFTKEYS_OK_BACK, AknPopupLayouts::EMenuWindow ); + CleanupStack::PushL( popupList ); + + //IMPORT_C CAknPopupHeadingPane * Heading () const + const CAknPopupHeadingPane* heading = popupList->Heading(); + _LIT( KHeading, "CAknPopupList::Heading#1" ); + AssertTrueL( ETrue, KHeading ); + + CleanupStack::PopAndDestroy( 2 ); // popupList + listbox + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestStatesL() +// Kinds of states classes api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestStatesL() + { + TAknEditorCaseState caseState; + _LIT( KTAknEditorCaseState, + "TAknEditorCaseState::TAknEditorCaseState() invoked" ); + AssertTrueL( ETrue, KTAknEditorCaseState ); + + caseState.SetCurrentCase( 0 ); + _LIT( KSetCurrentCase, + "TAknEditorCaseState::SetCurrentCase() invoked" ); + AssertTrueL( ETrue, KSetCurrentCase ); + + CAknEdwinState *edwinState = new (ELeave) CAknEdwinState; + CleanupStack::PushL( edwinState ); + + edwinState->SetFormAccessor( NULL ); + _LIT( KSetFormAccessor, + "CAknEdwinState::SetFormAccessor() invoked" ); + AssertTrueL( ETrue, KSetFormAccessor ); + + TCursorSelection cursorSelection( 0, 0 ); + edwinState->SetInlineEditSpan( cursorSelection ); + _LIT( KSetInlineEditSpan, + "CAknEdwinState::SetInlineEditSpan() invoked" ); + AssertTrueL( ETrue, KSetInlineEditSpan ); + + edwinState->SetNumericKeymap( EAknEditorStandardNumberModeKeymap ); + _LIT( KSetNumericKeymap, "CAknEdwinState::SetNumericKeymap() invoked" ); + AssertTrueL( ETrue, KSetNumericKeymap ); + + edwinState->SetPermittedCases( 0 ); + _LIT( KSetPermittedCases, + "CAknEdwinState::SetPermittedCases() invoked" ); + AssertTrueL( ETrue, KSetPermittedCases ); + + edwinState->SetDefaultCase( 0 ); + _LIT( KSetDefaultCase, "CAknEdwinState::SetDefaultCase() invoked" ); + AssertTrueL( ETrue, KSetDefaultCase ); + + edwinState->SetPermittedInputModes( 0 ); + _LIT( KSetPermittedInputModes, + "CAknEdwinState::SetPermittedInputModes() invoked" ); + AssertTrueL( ETrue, KSetPermittedInputModes ); + + edwinState->SpecialCharacterTableResourceId(); + _LIT( KSpecialCharacterTableResourceId, + "CAknEdwinState::SpecialCharacterTableResourceId() invoked" ); + AssertTrueL( ETrue, KSpecialCharacterTableResourceId ); + + edwinState->PermittedInputModes(); + _LIT( KPermittedInputModes, "CAknEdwinState::PermittedInputModes() invoked" ); + AssertTrueL( ETrue, KPermittedInputModes ); + + edwinState->Flags(); + _LIT( KFlags, "CAknEdwinState::Flags() invoked" ); + AssertTrueL( ETrue, KFlags ); + + edwinState->ReportAknEdStateEventL( + MAknEdStateObserver::EAknEdwinStateEventStateUpdate ); + _LIT( KReportAknEdStateEventL, + "CAknEdwinState::ReportAknEdStateEventL() invoked" ); + AssertTrueL( ETrue, KReportAknEdStateEventL ); + + CleanupStack::PopAndDestroy( edwinState ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestStatesL() +// Kinds of states classes api test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestIpFieldEditorL() + { + TInetAddr minimumAddress; + TInetAddr maximumAddress; + TInetAddr initialAddress; + minimumAddress.Input( _L("1.1.1.1") ); + maximumAddress.Input( _L("255.255.255.255") ); + initialAddress.Input( _L("192.168.1.1") ); + CAknIpFieldEditor *ipFieldEditor = CAknIpFieldEditor::NewL( + minimumAddress, maximumAddress, initialAddress ); + CleanupStack::PushL( ipFieldEditor ); + + _LIT( KCAknIpFieldEditor, "CAknIpFieldEditor::CAknIpFieldEditor() invoked" ); + AssertNotNullL( ipFieldEditor, KCAknIpFieldEditor ); + + ipFieldEditor->SetContainerWindowL( *iContainer ); + TResourceReader reader; + iCoeEnv->CreateResourceReaderLC( reader, R_BCTEST_IP_FIELD ); + + // IMPORT_C TInetAddr ReadIPAddress( TResourceReader& aResourceReader ); + ipFieldEditor->ReadIPAddress( reader ); + _LIT( KReadIPAddress, "CAknIpFieldEditor::ReadIPAddress() invoked" ); + AssertNotNullL( ipFieldEditor, KReadIPAddress ); + + CleanupStack::PopAndDestroy(); // reader + CleanupStack::PopAndDestroy( ipFieldEditor ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchControlCase::TestIconArrayL() +// Icon array apis test +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestIconArrayL() + { + CAknIconArray* iconArray = new(ELeave)CAknIconArray( 5 ); + CleanupStack::PushL( iconArray ); + + TResourceReader reader; + iCoeEnv->CreateResourceReaderLC( reader, R_BCTEST_ICON_ARRAY ); + + //IMPORT_C void AppendFromResourceL ( TResourceReader &aReader ) + _LIT( KAppendFromResourceL, + "CAknIconArray::AppendFromResourceL#1() invoked"); + iconArray->AppendFromResourceL( reader ); + AssertTrueL( ETrue, KAppendFromResourceL ); + + CleanupStack::PopAndDestroy( 2 ); //reader + array + } + +// CBCTestMix50PatchControlCase::TestAdditionL() +// Test additional apis +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchControlCase::TestAdditionL() + { + + _LIT( KSetEmergencyCallSupport, + "CAknQueryDialog::SetEmergencyCallSupport()invoked" ); + _LIT( KSetEmergencyCallSupportForCBA, + "CAknQueryDialog::SetEmergencyCallSupportForCBA()invoked" ); + _LIT( KHandlePointerEventL, + "CAknColourSelectionGrid::HandlePointerEventL()invoked" ); + _LIT( KSetCursorVisible, + "CEikEdwin::SetCursorVisible()invoked" ); + _LIT( KIsEmpty, "CEikCba::IsEmpty()invoked" ); + _LIT( KEnableSCT, "CEikSecretEditor::EnableSCT()invoked" ); + + CAknQueryDialog* dialog = CAknQueryDialog::NewL(); + CleanupStack::PushL( dialog ); + + dialog->SetEmergencyCallSupport( EFalse ); + AssertTrueL( ETrue, KSetEmergencyCallSupport ); + + + dialog->SetEmergencyCallSupportForCBA( EFalse ); + AssertTrueL( ETrue, KSetEmergencyCallSupportForCBA ); + + CleanupStack::PopAndDestroy( dialog ); + + /* + //Subbu + CArrayFixFlat* array = new( ELeave ) CArrayFixFlat(1); + CleanupStack::PushL( array ); + TRgb rgb = ( KRgbRed, KRgbGreen, KRgbBlue ); + array->AppendL( rgb ); + TBool noneChosen = ETrue; + CAknColourSelectionGrid* colourSelectionGrid = + CAknColourSelectionGrid::NewL( + array, ETrue, noneChosen, rgb ); + CleanupStack::PushL( colourSelectionGrid ); + + TPointerEvent pointerEvent; + pointerEvent.iType = TPointerEvent::EButton1Up ; + colourSelectionGrid->HandlePointerEventL( pointerEvent ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + CleanupStack::PopAndDestroy( colourSelectionGrid ); + CleanupStack::PopAndDestroy( array ); + */ + + CEikEdwin* eikEdwin = new( ELeave ) CEikEdwin; + CleanupStack::PushL( eikEdwin ); + eikEdwin->ConstructL(0, 30, 100, 1); + + eikEdwin->CreateTextViewL(); + + eikEdwin->SetCursorVisible( EFalse ); + AssertTrueL( ETrue, KSetCursorVisible ); + + CleanupStack::PopAndDestroy( eikEdwin ); + + + CEikButtonGroupContainer* btnGroupContainer = + CEikButtonGroupContainer::Current(); + MEikButtonGroup* cba = btnGroupContainer->ButtonGroup(); + STATIC_CAST( CEikCba*, cba )->IsEmpty(); + AssertTrueL( ETrue, KIsEmpty ); + + CEikSecretEditor* secretEditor = new ( ELeave ) CEikSecretEditor(); + CleanupStack::PushL( secretEditor ); + + secretEditor->EnableSCT( EFalse ); + AssertTrueL( ETrue, KEnableSCT ); + CleanupStack::PopAndDestroy( secretEditor ); + + } + +//5.2 specific +// CBCTestMix50PatchControlCase::TestAknPopupUtilsL() +// Test AknPopupUtils apis +// --------------------------------------------------------------------------- +// +/*void CBCTestMix50PatchControlCase::TestAknPopupUtilsL() + { + TSize size( 10, 10 ); + TPoint point( AknPopupUtils::Position(size, ETrue) ); + point = AknPopupUtils::Position( size, ETrue ); + point = AknPopupUtils::Position( size, NULL ); + _LIT( KAknPopupUtilsPosition, "AknPopupUtils::Position functions are tested" ); + AssertTrueL( ETrue, KAknPopupUtilsPosition ); + }*/ \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchmisc.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchmisc.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,232 @@ +/* +* 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 case +* +*/ + + + +#include +#include + +#include "bctestmix50patchmisc.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestCommandButtonBase* CBCTestCommandButtonBase::NewL( ) + { + CBCTestCommandButtonBase* self = + new( ELeave ) CBCTestCommandButtonBase( ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestCommandButtonBase::CBCTestCommandButtonBase() + { + + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestCommandButtonBase::~CBCTestCommandButtonBase() + { + } + +// -------------------------------------------------------------------------- +// CBCTestCommandButtonBase::Draw +// --------------------------------------------------------------------------- +// +void CBCTestCommandButtonBase::Draw( const TRect& aRect ) const + { + CEikCommandButtonBase::Draw( aRect ); + } + +// -------------------------------------------------------------------------- +// CBCTestCommandButtonBase::WriteInternalStateL +// -------------------------------------------------------------------------- +// +void CBCTestCommandButtonBase::WriteInternalStateL( + RWriteStream& aWriteStream ) const + { + CEikButtonBase::WriteInternalStateL( aWriteStream ); + } + +// --------------------------------------------------------------------------- +// CBCTestVolumeSettingPage::CBCTestVolumeSettingPage +// --------------------------------------------------------------------------- +// +CBCTestVolumeSettingPage::CBCTestVolumeSettingPage(TInt aResourceID, TInt& aVolume) : + CAknVolumeSettingPage( aResourceID, aVolume) + { + + } + +// --------------------------------------------------------------------------- +// CBCTestIntegerSettingPage::CBCTestIntegerSettingPage +// --------------------------------------------------------------------------- +// +CBCTestIntegerSettingPage::CBCTestIntegerSettingPage( TInt aResourceId, TInt& aValue, TInt aFlags ): + CAknIntegerSettingPage( aResourceId, aValue, aFlags ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestTextSettingPage::CBCTestTextSettingPage +// --------------------------------------------------------------------------- +// +CBCTestTextSettingPage::CBCTestTextSettingPage( TInt aResourceId, TDes& aText, TInt aFlags ): + CAknTextSettingPage( aResourceId, aText, aFlags ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestSliderSettingPage::CBCTestSliderSettingPage +// --------------------------------------------------------------------------- +// +CBCTestSliderSettingPage::CBCTestSliderSettingPage( TInt aResourceId, TInt& aSliderValue ): + CAknSliderSettingPage( aResourceId, aSliderValue ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPatchAknSettingPage::CBCTestPatchAknSettingPage +// --------------------------------------------------------------------------- +// +CBCTestPatchAknSettingPage::CBCTestPatchAknSettingPage( TInt aResourceId ) + : CAknSettingPage( aResourceId ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestRadioButtonSettingPage::CBCTestRadioButtonSettingPage +// --------------------------------------------------------------------------- +// +CBCTestRadioButtonSettingPage::CBCTestRadioButtonSettingPage( TInt aResourceId, + TInt& aCurrentSelectionItem, const MDesCArray* aItemArray): + CAknRadioButtonSettingPage( aResourceId, aCurrentSelectionItem, aItemArray ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestNumericPasswordSettingPage::CBCTestNumericPasswordSettingPage +// --------------------------------------------------------------------------- +// +CBCTestNumericPasswordSettingPage::CBCTestNumericPasswordSettingPage( + TInt aResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ): + CAknNumericPasswordSettingPage(aResourceId, aNewPassword, aOldPassword) + { + } + +// --------------------------------------------------------------------------- +// CBCTestAlphaPasswordSettingPage::CBCTestAlphaPasswordSettingPage +// --------------------------------------------------------------------------- +// +CBCTestAlphaPasswordSettingPage::CBCTestAlphaPasswordSettingPage( + TInt aResourceID, + TDes& aNewPassword, + const TDesC& aOldPassword ): + CAknAlphaPasswordSettingPage( aResourceID, aNewPassword, aOldPassword ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPasswordSettingPage::CBCTestPasswordSettingPage +// --------------------------------------------------------------------------- +// +CBCTestPasswordSettingPage::CBCTestPasswordSettingPage( + TInt aResourceId, + TDes& aNewPassword, + const TDesC& aOldPassword ) : + CAknPasswordSettingPage( aResourceId, aNewPassword, aOldPassword ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestIpFieldSettingPage::CBCTestIpFieldSettingPage +// --------------------------------------------------------------------------- +// +CBCTestIpFieldSettingPage::CBCTestIpFieldSettingPage( + TInt aResourceId, + TInetAddr& aIpAddress ) + : CAknIpFieldSettingPage( aResourceId, aIpAddress ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestTimeOffsetSettingPage::CBCTestTimeOffsetSettingPage +// --------------------------------------------------------------------------- +// +CBCTestTimeOffsetSettingPage::CBCTestTimeOffsetSettingPage( TInt aResourceId, + TTimeIntervalSeconds& aTimeOffsetValue ): + CAknTimeOffsetSettingPage( aResourceId, aTimeOffsetValue ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestCheckBoxSettingPage::CBCTestCheckBoxSettingPage +// --------------------------------------------------------------------------- +// +CBCTestCheckBoxSettingPage::CBCTestCheckBoxSettingPage( TInt aResourceId, + CSelectionItemList* aItemArray ) : + CAknCheckBoxSettingPage( aResourceId, aItemArray ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestAppServiceBase::HandleServerAppExit(TInt aReason) +// --------------------------------------------------------------------------- +// +void CBCTestAppServiceBase::HandleServerAppExit( TInt aReason ) + { + MAknServerAppExitObserver::HandleServerAppExit( aReason ); + } + +// ---------------------------------------------------------------------------- +// CAknAppServiceDrv::CreateL() +// ---------------------------------------------------------------------------- +// +void CBCTestAppServiceBase::CreateL() + { + CAknAppServiceBase::CreateL(); + } + +// ---------------------------------------------------------------------------- +// CAknAppServiceDrv::ServiceL(const RMessage2& aMessage) +// ---------------------------------------------------------------------------- +// +void CBCTestAppServiceBase::ServiceL( const RMessage2& aMessage ) + { + CAknAppServiceBase::ServiceL( aMessage ); + } + +// ---------------------------------------------------------------------------- +// CAknAppServiceDrv::ServiceError(const RMessage2& aMessage,TInt aError) +// ---------------------------------------------------------------------------- +// +void CBCTestAppServiceBase::ServiceError( + const RMessage2& aMessage,TInt aError ) + { + CAknAppServiceBase::ServiceError( aMessage,aError ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchviewcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50patchviewcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,278 @@ +/* +* 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 case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include //test +#include // test + +#include +#include "bctestmix50app.h" +#include "bctestmix50patchviewcase.h" +#include "bctestmix50container.h" +#include "bctestmix50patchmisc.h" +#include "bctestmix50view.h" +#include "bctestmix50.hrh" + +// CONSTATNS + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50PatchViewCase* CBCTestMix50PatchViewCase::NewL( CBCTestMix50Container* + aContainer, CBCTestMix50View* aView ) + { + CBCTestMix50PatchViewCase* self = new( ELeave ) CBCTestMix50PatchViewCase( + aContainer, aView ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50PatchViewCase::CBCTestMix50PatchViewCase( CBCTestMix50Container* + aContainer, CBCTestMix50View* aView ) + : iView( aView ), iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMix50PatchViewCase::~CBCTestMix50PatchViewCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchViewCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, Down, Down, Down, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchViewCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::RunL( TInt aCmd ) + { + if ( aCmd != EBCTestCmdOutline4 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + + TestAknViewL(); + TestAknAppUiL(); + TestAknAppUiBaseL(); + TestAknAppServiceBaseL(); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchViewCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControlL( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestMix50PatchViewCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + + +// ----------------------------------------------------------------------------- +// CTestAknVolumeControl::TestAknViewL() +// CAknView test +// ----------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::TestAknViewL() + { + CAknViewAppUi* viewAppUi = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + viewAppUi->EnableLocalScreenClearer( EFalse); + _LIT( KEnableLocalScreenClearer, + "CAknViewAppUi::EnableLocalScreenClearer() invoked" ); + AssertTrueL( ETrue, KEnableLocalScreenClearer ); + + iView->ToolbarShownOnViewActivation(); + _LIT( KViewForToolbarShownOnViewActivation, "CAknView::ToolbarShownOnViewActivation" ); + AssertTrueL( ETrue, KViewForToolbarShownOnViewActivation ); + + iView->ShowToolbarOnViewActivation( EFalse ); + iView->ShowToolbarOnViewActivation( ETrue ); + _LIT( KViewForShowToolbarOnViewActivation, "CAknView::ShowToolbarOnViewActivation" ); + AssertTrueL( ETrue, KViewForShowToolbarOnViewActivation ); + + + CAknToolbar *toolBar = iView->Toolbar(); + iView->SetToolbar( toolBar ); + _LIT( KViewForSetToolbar, "CAknView::SetToolbar" ); + AssertTrueL( ETrue, KViewForSetToolbar ); + + iView->CreateAndSetToolbarL( R_BCTESTMIX50PATCH_TOOLBAR ); + _LIT( KViewForSCreateAndSetToolbarL, "CAknView::CreateAndSetToolbarL" ); + AssertTrueL( ETrue, KViewForSCreateAndSetToolbarL ); + iView->Toolbar()->SetToolbarVisibility( EFalse ); + } + + + +// ----------------------------------------------------------------------------- +// CTestAknVolumeControl::TestAknAppUiL() +// CAknView test +// ----------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::TestAknAppUiL() + { + CAknAppUiEx* uiex = static_cast( + CEikonEnv::Static()->EikAppUi() ); + uiex->Reserved_MtsmObject(); + _LIT( KMtsmObject, "CAknAppUi::Reserved_MtsmObject" ); + AssertTrueL( ETrue, KMtsmObject ); + + uiex->Reserved_MtsmPosition(); + _LIT( KMtsmPosition, "CAknAppUi::Reserved_MtsmPosition" ); + AssertTrueL( ETrue, KMtsmPosition ); + + CAknAppUi* AknAppUI = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + AknAppUI->SetAliasKeyCodeResolverL( this ); + _LIT( KSetAliasKeyCodeResolver, "CAknAppUi::SetAliasKeyCodeResolverL" ); + AssertTrueL( ETrue, KSetAliasKeyCodeResolver ); + + AknAppUI->KeySounds(); + _LIT( KKeySounds, "CAknAppUi::KeySounds() tested"); + AssertTrueL( ETrue, KKeySounds ); + TInt32 KeyHandle1; + TInt32 KeyHandle2; + KeyHandle1 = AknAppUI->CaptureKey( EKeyDevice8,0,0 ); + _LIT( KCaptureKey, "CAknAppUi::CaptureKey" ); + AssertTrueL( ETrue, KCaptureKey ); + + AknAppUI->CaptureKeyL( EKeyDevice9 ,0,0,KeyHandle2 ); + _LIT( KCaptureKeyL, "CAknAppUi::CaptureKeyL" ); + AssertTrueL( ETrue, KCaptureKeyL ); + + RWindowGroup& windowGroup = CCoeEnv::Static()->RootWin(); + windowGroup.CancelCaptureKey( KeyHandle1 ); + windowGroup.CancelCaptureKey( KeyHandle2 ); + + AknAppUI->HideInBackground(); + _LIT( KHideInBackground, "CAknAppUi::HideInBackground" ); + AssertTrueL( ETrue, KHideInBackground ); + TApaTaskList taskList( CEikonEnv::Static()->WsSession() ); + TApaTask task = taskList.FindApp( KUidBCTestMix50 ); + task.BringToForeground(); + } + +// ----------------------------------------------------------------------------- +// CTestAknVolumeControl::TestAknAppUiBaseL() +// CAknAppUiBase test +// ----------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::TestAknAppUiBaseL() + { + CAknAppUiBase* AknAppUIBase = static_cast + ( CEikonEnv::Static()->EikAppUi() ); + AknAppUIBase->OrientationCanBeChanged(); + _LIT( KOrientationCanBeChanged, "CAknAppUiBase::OrientationCanBeChanged" ); + AssertTrueL( ETrue, KOrientationCanBeChanged ); + + AknAppUIBase->SetKeyEventFlags( CAknAppUiBase::EDisableSendKeyShort ); + _LIT( KSetKeyEventFlags, "CAknAppUiBase::SetKeyEventFlags" ); + AssertTrueL( ETrue, KSetKeyEventFlags ); + } + +// ----------------------------------------------------------------------------- +// CTestAknVolumeControl::TestAknAppServiceBaseL() +// CAknAppService test +// ----------------------------------------------------------------------------- +// +void CBCTestMix50PatchViewCase::TestAknAppServiceBaseL() + { + CBCTestAppServiceBase* appserver = new ( ELeave ) CBCTestAppServiceBase(); + CleanupStack::PushL( appserver ); + + RMessage2 rmessage; + appserver->ServiceError( rmessage, 0 ); + _LIT( KServiceError, "CAknAppServiceBase::ServiceError" ); + AssertTrueL( ETrue, KServiceError ); + + appserver->HandleServerAppExit( -1 ); + _LIT( KHandleServerAppExit, "MAknServerAppExitObserver::HandleServerAppExit" ); + AssertTrueL( ETrue, KHandleServerAppExit ); + + //exit the application,so place the function the last of test case + //CAknEnv::ExitForegroundAppL(); + //_LIT( KAknEnvExitForegroundAppL, "CAknEnv::ExitForegroundAppL" ); + //AssertTrueL( ETrue, KAknEnvExitForegroundAppL ); + + CleanupStack::PopAndDestroy( appserver ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50view.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestmix50/src/bctestmix50view.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,155 @@ +/* +* 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 "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: view +* +*/ + + +#include +#include + +#include "bctestmix50.hrh" +#include "bctestmix50view.h" +#include "bctestmix50container.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestMix50View::NewL() +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50View* CBCTestMix50View::NewL( CBCTestUtil* aUtil ) + { + CBCTestMix50View* self = new( ELeave ) CBCTestMix50View(); + CleanupStack::PushL( self ); + self->ConstructL( aUtil ); + CleanupStack::Pop( self ); + return self; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::CBCTestMix50View() +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestMix50View::CBCTestMix50View() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::ConstructL() +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestMix50View::ConstructL( CBCTestUtil* aUtil ) + { + BaseConstructL( R_BCTESTMIX50_VIEW ); + + iContainer = new( ELeave ) CBCTestMix50Container(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::~CBCTestMix50View() +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestMix50View::~CBCTestMix50View() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::Container +// +// --------------------------------------------------------------------------- +// +CBCTestMix50Container* CBCTestMix50View::Container() + { + return iContainer; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::Id +// +// --------------------------------------------------------------------------- +// +TUid CBCTestMix50View::Id() const + { + return KBCTestMix50ViewId; + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::DoActivateL +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50View::DoActivateL( const TVwsViewId&, TUid, + const TDesC8& ) + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::DoDeactivate +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50View::DoDeactivate() + { + } + + +// --------------------------------------------------------------------------- +// CBCTestMix50View::HandleCommandL +// +// --------------------------------------------------------------------------- +// +void CBCTestMix50View::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + case EAknSoftkeyExit: + AppUi()->HandleCommandL( EEikCmdExit ); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bctestpane.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bctestpane.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* 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: Project definition file for project BCTestPane +* +*/ + + +TARGET BCTestPane.exe +TARGETTYPE exe +UID 0x0 0x2000475A + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH /sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestPane.rss +HEADER +TARGETPATH /resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctestpaneapp.cpp +SOURCE bctestpanedocument.cpp +SOURCE bctestpaneappui.cpp +SOURCE bctestpaneview.cpp +SOURCE bctestpanecontainer.cpp +SOURCE bctestpanecase.cpp + +USERINCLUDE ../Inc +USERINCLUDE ../../../bctestutil/inc + +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +SYSTEMINCLUDE . /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY bafl.lib +LIBRARY fbscli.lib +LIBRARY aknicon.lib +LIBRARY aknpictograph.lib + +START RESOURCE ../group/bctestpane_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bctestpane.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bctestpane.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,338 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME PANE + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctestpane.hrh" +#include "bctestpane.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTPANE_BMP_FNAME APP_BITMAP_DIR"\\bctestpane.mbm" + +#define BCTESTPANE_VALUE5 5 + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_apps_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctestpane_menubar_main; + cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestpane_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_view +// AVKON_VIEW for CbctestpaneView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestpane_view + { + menubar = r_bctestpane_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestpane_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctestpane_menu; + }, + MENU_TITLE + { + menu_pane = r_bctestpane_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpane_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdTitlePane; + txt = qtn_bctestpane_titlepane; + }, + MENU_ITEM + { + command = EBCTestCmdTabGroup; + txt = qtn_bctestpane_tabgroup; + }, + MENU_ITEM + { + command = EBCTestCmdStatusPane; + txt = qtn_bctestpane_statuspane; + }, + MENU_ITEM + { + command = EBCTestCmdContextPane; + txt = qtn_bctestpane_contextpane; + }, + MENU_ITEM + { + command = EBCTestCmdNaviPane; + txt = qtn_bctestpane_navipane; + }, + MENU_ITEM + { + command = EBCTestCmdDlgShutAndPicto; + txt = qtn_bctestpane_shutpicto; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestpane_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctestpane_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctestpane_menu_exit; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_title_pane +// +//----------------------------------------------------------------------------- +// +RESOURCE TITLE_PANE r_bctestpane_title_pane + { + txt = qtn_bctestpane_title_pane; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_context_pane +// +//----------------------------------------------------------------------------- +// +RESOURCE CONTEXT_PANE r_bctestpane_context_pane + { + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_tab +// +//----------------------------------------------------------------------------- +// +RESOURCE TAB r_bctestpane_tab + { + id = EBCTestTab1; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_tab1 +// +//----------------------------------------------------------------------------- +// +RESOURCE TAB r_bctestpane_tab1 + { + id = EBCTestTab1; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_battery_strength; + bmpid = EMbmAvkonQgn_indi_battery_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_tabgroup +// +//----------------------------------------------------------------------------- +// +RESOURCE TAB_GROUP r_bctestpane_tabgroup + { + tab_width = EAknTabWidthWithTwoTabs; + active = 0; + tabs = + { + TAB + { + id = 0; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_signal_strength; + bmpid = EMbmAvkonQgn_indi_signal_strength_mask; + }, + TAB + { + id = 1; + txt = qtn_bctestpane_tab; + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_battery_strength; + bmpid = EMbmAvkonQgn_indi_battery_strength_mask; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_navidecorator +// +//----------------------------------------------------------------------------- +// +RESOURCE NAVI_DECORATOR r_bctestpane_navidecorator + { + type = ENaviDecoratorLabel; + control = NAVI_LABEL + { + txt = qtn_bctestpane_navelabel; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_naviimage +// +//----------------------------------------------------------------------------- +// +RESOURCE NAVI_IMAGE r_bctestpane_naviimage + { + bmpfile = AVKON_ICON_FILE; + bmpid = EMbmAvkonQgn_indi_battery_strength; + bmpid = EMbmAvkonQgn_indi_battery_strength_mask; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_navilabel +// +//----------------------------------------------------------------------------- +// +RESOURCE NAVI_LABEL r_bctestpane_navilabel + { + txt = qtn_bctestpane_navelabel; + } + +//----------------------------------------------------------------------------- +// +// r_bctestpane_volume_indicator +// For Outline1 +// +//----------------------------------------------------------------------------- +// +RESOURCE VOLUME r_bctestpane_volume_indicator + { + flags = ESettingsVolumeControl; + value = BCTESTPANE_VALUE5; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bctestpane_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bctestpane_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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: +* +*/ +#include +#include +#include "bctestpane.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x2000475A // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = qtn_app_file; + localisable_resource_file = qtn_resource_file; + localisable_resource_id = R_BCTESTPANE_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = qtn_group_name; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,23 @@ +/* +* 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 "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: Build information file for project BCTestPane +* +*/ + + + +PRJ_MMPFILES + +BCTestPane.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpane.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpane.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 "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 headers for project BCTestPane +* +*/ + + +#ifndef BCTESTPANE_HRH +#define BCTESTPANE_HRH + +enum TBCTestPaneMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdTitlePane, + EBCTestCmdStatusPane, + EBCTestCmdContextPane, + EBCTestCmdTabGroup, + EBCTestCmdNaviPane, + EBCTestCmdDlgShutAndPicto, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestPaneIDs + { + EBCTestTab1 = 0x6100, + EBCTestTab2, + EBCTestTab3, + EBCTestTab4 + }; + +#endif // BCTESTTEMPLATE_HRH + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpane.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpane.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +/* +* 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 "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: Localization strings for project BCTestPane +* +*/ + + +// LOCALISATION STRINGS +#define qtn_apps_buf "bctestpane" +#define qtn_app_file "BctestPane" +#define qtn_resource_file "\\resource\\apps\\BCTestPane" +#define qtn_group_name "BCTest" + + +// Caption +#define qtn_apps_tavl_list "BCTESTPANE" +#define qtn_apps_tavl_grid "BCTESTPANE" + +// MenuBar +#define qtn_bctestpane_menubar "Option" +#define qtn_bctestpane_cba_next "Next" +#define qtn_bctestpane_autotest "Autotest" +#define qtn_bctestpane_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctestpane_titlepane "Test title pane" +#define qtn_bctestpane_statuspane "Test status pane" +#define qtn_bctestpane_contextpane "Test context pane" +#define qtn_bctestpane_tabgroup "Test tab group" +#define qtn_bctestpane_navipane "Test Navigation pane" +#define qtn_bctestpane_shutpicto "Test DlgShutter and Pictograph" + +// text +#define qtn_bctestpane_title_pane "Title pane" +#define qtn_bctestpane_tab "Tab0" +#define qtn_bctestpane_navelabel "Navigation" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpaneapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpaneapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +/* +* 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 "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: Application +* +*/ + + +#ifndef C_BCTESTPANEAPP_H +#define C_BCTESTPANEAPP_H + +#include + +const TUid KUidBCTestPane = { 0x2000475A }; // UID of the application. + +/** + * CBCTestPaneApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestPaneApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestPaneDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestPane ). + * @return The value of KUidBCTestPane. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTPANEAPP_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpaneappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpaneappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ +/* +* 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 "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: AppUi +* +*/ + + +#ifndef C_BCTESTPANEAPPUI_H +#define C_BCTESTPANEAPPUI_H + +#include + +class CBCTestPaneView; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestPaneAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestPaneAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestPaneAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestPaneView* iView; + + /** + * pointor to BCTesting framework. + * Own + */ + CBCTestUtil* iTestUtil; + + }; + +#endif // C_BCTESTPANEAPPUI_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpanecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpanecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,240 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTPANECASE_H +#define C_BCTESTPANECASE_H + +#include +#include +#include +#include +#include +#include + +#include "bctestcase.h" + +class CEikonEnv; +class CBCTestPaneContainer; +class CBCTestPaneTitle; +class CBCTestContextPane; +class CAknTabGroup; +class CAknNavigationControlContainer; +class CAknNavigationDecorator; +class TBCTestNaviDeObserver; + +// a helper observer +// Note that: the header file "akntitlepaneobserver.h" only available in R&D SDK, +// So we just redefined the M-interface directly here. + +/** + * Observer class for CAknNaviDecorator + */ +class TBCTestNaviDeObserver: public MAknNaviDecoratorObserver + { +public: + + virtual void HandleNaviDecoratorEventL( TInt aEventId ); + + }; + +/** +* test case for Title Pane API, Status Pane, Context Pane API, Tab API, +* Navigation Pane API +*/ +class CBCTestPaneCase: public CBCTestCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestPaneCase* NewL( CBCTestPaneContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestPaneCase(); + +// from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +// new function + + /** + * Called by conatainer to test some API related with CWindowGc + * @param a reference to CWindowGc + */ + void DrawCaseL( CWindowGc& aGc ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Release resource used in test + */ + void ReleaseCase(); + + /** + * Test functions + */ + void TestTitlePaneL(); + + void TestStatusPaneL(); + + void TestContextPaneL(); + + void TestTabGroupL(); + + void TestNaviPaneL(); + + void TestDlgShutAndPictoL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPaneCase( CBCTestPaneContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestPaneContainer* iContainer; + + /** + * Pointer to CEikonEnv. + * not own + */ + CEikonEnv* iEnv; + + /** + * Pointer to title pane class. + * own + */ + CBCTestPaneTitle* iTitle; + + /** + * Record current command + */ + TInt iCommand; + + /** + * Pointer to context pane + * own + */ + CBCTestContextPane* iContext; + + /** + * Pointer to tab group + * own + */ + CAknTabGroup* iTab; + + /** + * Pointer to navigation pane + * own + */ + CAknNavigationControlContainer* iNavi; + + /** + * Pointer to navigation decorator + * own + */ + CAknNavigationDecorator* iNaviDe; + + /** + * Implementation of MAknNaviDecoratorObserver + */ + TBCTestNaviDeObserver iNaviObserver; + + }; + +/** + * Class for testing protected API of CAknTitlePane + */ +class CBCTestPaneTitle: public CAknTitlePane + { + friend class CBCTestPaneCase; + }; + +/** + * Observer class for CAknTabGroup + */ +class TBCTestTabObserver: public MAknTabObserver + { +public: + + virtual void TabChangedL( TInt aIndex ); + + }; + +/** + * Implementation of MAknPictographAnimatorCallBack + */ +class TBCTestPictoAnimCallBack: public MAknPictographAnimatorCallBack + { +public: + + void DrawPictographArea(); + + }; + +/** + * Observer class for CAknTitlePane + */ +class TBCTestTitleObserver: public MAknTitlePaneObserver + { +public: + + void HandleTitlePaneEventL( TInt aEventID ); + + }; + +/** + * Derived class for CAknContextPane + */ +class CBCTestContextPane: public CAknContextPane + { + friend class CBCTestPaneCase; + +protected: + + TTypeUid::Ptr MopSupplyObject(TTypeUid aId); + + }; + +#endif // C_BCTESTPANECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpanecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpanecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef C_BCTESTPANECONTAINER_H +#define C_BCTESTPANECONTAINER_H + +#include + +class CBCTestPaneCase; + +/** +* container class +*/ +class CBCTestPaneContainer: public CCoeControl + { +public: + +// constructor and destructor + + /** + * C++ default constructor + */ + CBCTestPaneContainer(); + + /** + * Destructor + */ + virtual ~CBCTestPaneContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +// new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Set pane case class. + */ + void SetPaneCase( CBCTestPaneCase* aCase ); + +// from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + /** + * Pointer to case. + * Not own + */ + CBCTestPaneCase* iPaneCase; + + }; + +#endif // C_BCTESTPANECONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpanedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpanedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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: Document +* +*/ + + +#ifndef C_BCTESTPANEDOCUMENT_H +#define C_BCTESTPANEDOCUMENT_H + +#include + +class CEikAppUi; + +/** + * CBCTestPaneDocument application class. + */ +class CBCTestPaneDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestPaneDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestPaneDocument(); + +private: + +// Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestPaneDocument( CEikApplication& aApp ); + +// From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestPaneAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTEMPLATEDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpaneview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/inc/bctestpaneview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "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: View +* +*/ + + +#ifndef C_BCTESTPANEVIEW_H +#define C_BCTESTPANEVIEW_H + +#include + +const TUid KBCTestTemplateViewId = { 1 }; + +class CBCTestPaneContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestPaneView : public CAknView + { +public: + +// Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestPaneView* NewL( CBCTestUtil* aUtil ); + + /** + * dtor + */ + virtual ~CBCTestPaneView(); + +// from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestPaneView( CBCTestUtil* aUtil ); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * Not Own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestPaneContainer* iContainer; + + }; + +#endif // C_BCTESTPANEVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/sis/bctestpane.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/sis/bctestpane.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctestpane.pkg + +; Languages +&EN + +; Header +#{"UIFW_bctestpane"},(0x2000475A),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestpane.exe"- +"!:\sys\bin\bctestpane.exe" + +"\epoc32\data\z\resource\apps\bctestpane.RSC"- +"!:\resource\apps\bctestpane.RSC" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestpane_reg.RSC"- +"!:\PRIVATE\10003A3F\import\APPS\bctestpane_reg.RSC" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpaneapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpaneapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,62 @@ +/* +* 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 "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: Application +* +*/ + + +#include + +#include "BCTestPaneApp.h" +#include "BCTestPaneDocument.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestPaneApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestPaneApp::AppDllUid() const + { + return KUidBCTestPane; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestPaneApp::CreateDocumentL() +// Creates CBCTestPaneDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestPaneApp::CreateDocumentL() + { + return CBCTestPaneDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestPaneApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestPaneApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpaneappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpaneappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,84 @@ +/* +* 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 "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: AppUi +* +*/ + + +#include +#include + +#include "bctestpaneappui.h" +#include "bctestpane.hrh" +#include "bctestpaneview.h" +#include "bctestutil.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestPaneAppUi::CBCTestPaneAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestPaneAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestPaneView* view = CBCTestPaneView::NewL( iTestUtil ); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneAppUi::~CBCTestPaneAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneAppUi::~CBCTestPaneAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestPaneAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpanecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpanecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,949 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestpanecase.h" +#include "bctestpanecontainer.h" +#include "bctestpane.hrh" +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneCase* CBCTestPaneCase::NewL( + CBCTestPaneContainer* aContainer ) + { + CBCTestPaneCase* self = new( ELeave ) CBCTestPaneCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneCase::CBCTestPaneCase( + CBCTestPaneContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPaneCase::~CBCTestPaneCase() + { + delete iTitle; + delete iNaviDe; + delete iTab; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::ConstructL() + { + BuildScriptL(); + + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestPaneCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY( 3 ), TEND ); + TInt loop = EBCTestCmdMaxOutline - EBCTestCmdTitlePane; + for ( TInt i = 0; i < loop; i++ ) + { + AddTestL( LeftCBA, REP( Down, i ), KeyOK, TEND ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::RunL( TInt aCmd ) + { + iCommand = aCmd; + ReleaseCase(); + switch ( aCmd ) + { + case EBCTestCmdTitlePane: + TestTitlePaneL(); + break; + case EBCTestCmdStatusPane: + TestStatusPaneL(); + break; + case EBCTestCmdContextPane: + TestContextPaneL(); + break; + case EBCTestCmdTabGroup: + TestTabGroupL(); + break; + case EBCTestCmdNaviPane: + TestNaviPaneL(); + break; + case EBCTestCmdDlgShutAndPicto: + TestDlgShutAndPictoL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneCase::ReleaseCase +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::ReleaseCase() + { + iContainer->ResetControl(); + iContainer->SetPaneCase( NULL ); + } + +// --------------------------------------------------------------------------- +// Test CAknTitlePane +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestTitlePaneL() + { + iTitle = new( ELeave ) CBCTestPaneTitle(); + _LIT( KTitle1, "CAknTitlePane::CAknTitlePane" ); + AssertNotNullL( iTitle, KTitle1 ); + + iTitle->ConstructL(); + _LIT( KTitle2, "CAknTitlePane::ConstructL" ); + AssertTrueL( ETrue, KTitle2 ); + + TBCTestTitleObserver titleObserver; + iTitle->SetTitlePaneObserver( &titleObserver ); + _LIT( KTitle22, "CAknTitlePane::SetTitlePaneObserver" ); + AssertTrueL( ETrue, KTitle22 ); + + MAknTitlePaneObserver* mobs = &titleObserver; + TInt eve=100; + mobs->HandleTitlePaneEventL(eve); + _LIT( KHandleTitlePaneEventL, "MAknTitlePaneObserver::HandleTitlePaneEventL()!"); + AssertTrueL( ETrue, KHandleTitlePaneEventL ); + + delete iTitle; + iTitle = NULL; + + iTitle= new( ELeave ) CBCTestPaneTitle(); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TITLE_PANE ); + iTitle->SetFromResourceL( reader ); + _LIT( KTitle21, "CAknTitlePane::SetFromResorceL" ); + AssertTrueL( ETrue, KTitle21 ); + CleanupStack::PopAndDestroy(); // reader + delete iTitle; + iTitle = NULL; + + iTitle = new( ELeave ) CBCTestPaneTitle(); + iTitle->SetContainerWindowL( *iContainer ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TITLE_PANE ); + iTitle->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KTitle3, "CAknTitlePane::ConstructFromResourceL" ); + AssertTrueL( ETrue, KTitle3 ); + + _LIT( KTitleText, "iTitle text" ); + TPtrC titlePtr( KTitleText ); + + HBufC* buf = HBufC::NewLC( titlePtr.Length() ); + *buf = KTitleText; + + iTitle->SetText( buf, ETrue ); + _LIT( KTitle5, "CAknTitlePane::SetText( HBufC*, TBool )" ); + AssertTrueL( ETrue, KTitle5 ); + CleanupStack::Pop( buf ); + + HBufC* buf2 = HBufC::NewLC( titlePtr.Length() ); + *buf = KTitleText; + + iTitle->SetText( buf2 ); + _LIT( KTitle4, "CAknTitlePane::SetText" ); + AssertTrueL( ETrue, KTitle4 ); + CleanupStack::Pop( buf2 ); + + _LIT( KTitleText1, "Another iTitle" ); + TPtrC anotherText( KTitleText1 ); + iTitle->SetTextL( anotherText ); + _LIT( KTitle6, "CAknTitlePane::SetTextL" ); + AssertTrueL( ETrue, KTitle6 ); + + iTitle->SetTextL( anotherText, ETrue ); + _LIT( KTitle7, "CAknTitlePane::SetTextL( const TDesC&, TBool )" ); + AssertTrueL( ETrue, KTitle7 ); + + const TDesC* text = iTitle->Text(); + _LIT( KTitle8, "CAknTitlePane::Text" ); + AssertTrueL( ETrue, KTitle8 ); + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TSize size( 100, 80 ); + bmp->Create( size, ERgb ); + iTitle->SetPicture( bmp ); + _LIT( KTitle9, "CAknTitlePane::SetPicture" ); + AssertTrueL( ETrue, KTitle9 ); + CleanupStack::Pop( bmp ); + + iTitle->SetPictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_signal_strength, + EMbmAvkonQgn_indi_signal_strength_mask ); + _LIT( KTitle10, "CAknTitlePane::SetPictureFromFileL" ); + AssertTrueL( ETrue, KTitle10 ); + + CFbsBitmap* smallBmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( smallBmp ); + smallBmp->Create( size, ERgb ); + CFbsBitmap* smallMask = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( smallMask ); + smallMask->Create( size, ERgb ); + iTitle->SetSmallPicture( smallBmp, smallMask, ETrue ); + _LIT( KTitle11, "CAknTitlePane::SetSmallPicture" ); + AssertTrueL( ETrue, KTitle11 ); + CleanupStack::Pop( smallMask ); + CleanupStack::Pop( smallBmp ); + + iTitle->SetTextToDefaultL(); + _LIT( KTitle12, "CAknTitlePane::SetTextToDefaultL" ); + AssertTrueL( ETrue, KTitle12 ); + + iTitle->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + _LIT( KTitle15, "CAknTitlePane::HandleResourceChange" ); + AssertTrueL( ETrue, KTitle15 ); + + iTitle->PositionChanged(); + _LIT( KTitle16, "CAknTitlePane::PositionChanged" ); + AssertTrueL( ETrue, KTitle16 ); + + TInt count = iTitle->CountComponentControls(); + _LIT( KTitle17, "CAknTitlePane::PositionChanged" ); + AssertTrueL( ETrue, KTitle17 ); + + CCoeControl* ctrl = iTitle->ComponentControl( count - 1 ); + _LIT( KTitle18, "CAknTitlePane::ComponentControl" ); + AssertNotNullL( ctrl, KTitle18 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iTitle->HandlePointerEventL( event ); + _LIT( KTitle19, "CAknTitlePane::HandlePointerEventL" ); + AssertTrueL( ETrue, KTitle19 ); + + iContainer->SetPaneCase( this ); + } + +// --------------------------------------------------------------------------- +// Test status pane +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestStatusPaneL() + { + RWindowGroup& win = iEnv->RootWin(); + CEikStatusPane* status = CEikStatusPane::NewL( *iEnv, + &win, R_AVKON_STATUS_PANE ); + CleanupStack::PushL( status ); + _LIT( KStatusPane1, "CEikStatusPane::NewL" ); + AssertNotNullL( status, KStatusPane1 ); + + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_EMPTY ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_VT ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_VT_MIRRORED ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_RIGHT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_LEFT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_IDLE_SOFTKEYS_RIGHT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_IDLE_SOFTKEYS_LEFT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_RIGHT ); + status->SwitchLayoutL( R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_LEFT ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_IDLE_FLAT ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ); + status->SwitchLayoutL( R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL ); + status->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL ); + _LIT( KStatusPane16, + "Use CEikStatusPaneBase::SwitchLayoutL to test different layouts" ); + AssertTrueL( ETrue, KStatusPane16 ); + + status->MakeVisible( ETrue ); + _LIT( KStatusPane2, "CEikStatusPane::MakeVisible" ); + AssertTrueL( ETrue, KStatusPane2 ); + + status->SetDimmed( ETrue ); + status->SetDimmed( EFalse ); + _LIT( KStatusPane3, "CEikStatusPane::SetDimmed" ); + AssertTrueL( ETrue, KStatusPane3 ); + + status->SetFaded( ETrue ); + status->SetFaded( EFalse ); + _LIT( KStatusPane4, "CEikStatusPane::SetFaded" ); + AssertTrueL( ETrue, KStatusPane4 ); + + status->ApplyCurrentSettingsL(); + _LIT( KStatusPane5, "CEikStatusPane::ApplyCurrentSettingsL" ); + AssertTrueL( ETrue, KStatusPane5 ); + + status->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + status->HandleResourceChange( KEikMessageEmbedLevelChange ); + _LIT( KStatusPane6, "CEikStatusPane::HandleResourceChange" ); + AssertTrueL( ETrue, KStatusPane6 ); + + TBool changeNow = status->OkToChangeStatusPaneNow(); + _LIT( KStatusPane7, "CEikStatusPane::HandleResourceChange" ); + AssertTrueL( ETrue, KStatusPane7 ); + + status->PrepareForAppExit(); + _LIT( KStatusPane8, "CEikStatusPane::PrepareForAppExit" ); + AssertTrueL( ETrue, KStatusPane8 ); + + status->DrawNow(); + _LIT( KStatusPane9, "CEikStatusPaneBase::DrawNow" ); + AssertTrueL( ETrue, KStatusPane9 ); + + status->CEikStatusPaneBase::SetFaded( ETrue ); + _LIT( KStatusPane10, "CEikStatusPaneBase::SetFaded" ); + AssertTrueL( ETrue, KStatusPane10 ); + + status->IsFaded(); + _LIT( KStatusPane11, "CEikStatusPaneBase::IsFaded" ); + AssertTrueL( ETrue, KStatusPane11 ); + + const TInt KPaneCtrlUid = 0; + TPaneId paneId = TPaneId::Uid( KPaneCtrlUid ); + TRect rect = status->PaneRectL( paneId ); + _LIT( KStatusPane12, "CEikStatusPaneBase::PaneRectL" ); + AssertTrueL( ETrue, KStatusPane12 ); + + CEikStatusPaneBase::TPaneCapabilities capabilities = + status->PaneCapabilities( paneId ); + _LIT( KStatusPane13, "CEikStatusPaneBase::PaneCapabilities" ); + AssertTrueL( ETrue, KStatusPane13 ); + + TInt flags = 2; // KEikStatusPaneBaseVisibleBit + status->SetFlags( flags ); + _LIT( KStatusPane14, "CEikStatusPaneBase::SetFlags" ); + AssertTrueL( ETrue, KStatusPane14 ); + + CCoeControl* control = status->SwapControlL( paneId, iContainer ); + _LIT( KStatusPane15, "CEikStatusPaneBase::SwapControlL" ); + AssertTrueL( ETrue, KStatusPane15 ); + status->SwapControlL( paneId, control ); + + CleanupStack::PopAndDestroy( status ); + } + +// --------------------------------------------------------------------------- +// Test context pane +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestContextPaneL() + { + iContext = new( ELeave ) CBCTestContextPane(); + _LIT( KContextPane1, "CAknContextPane::CAknContextPane" ); + AssertNotNullL( iContext, KContextPane1 ); + + iContext->SetContainerWindowL( *iContainer ); + iContext->ConstructL(); + _LIT( KContextPane2, "CAknContextPane::ConstructL" ); + AssertTrueL( ETrue, KContextPane2 ); + + delete iContext; + iContext = NULL; + + iContext = new( ELeave ) CBCTestContextPane(); + iContext->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_CONTEXT_PANE ); + iContext->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader; + + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TSize size( 100, 80 ); + bmp->Create( size, ERgb ); + iContext->SetPicture( bmp ); + _LIT( KContextPane3, "CAknContextPane::SetPicture with CFbsBitmap" ); + AssertTrueL( ETrue, KContextPane3 ); + CleanupStack::Pop( bmp ); + CEikImage* tempImage = iContext->SwapPicture( NULL ); + delete tempImage; + bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + bmp->Create( size, ERgb ); + iContext->SetPicture( bmp ); + CleanupStack::Pop( bmp ); + + CEikImage* image = new( ELeave ) CEikImage(); + CleanupStack::PushL( image ); + image->CreatePictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_signal_strength, + EMbmAvkonQgn_indi_signal_strength_mask ); + iContext->SetPicture( image ); + _LIT( KContextPane4, "CAknContextPane::SetPicture with CEikImage" ); + AssertTrueL( ETrue, KContextPane4 ); + CleanupStack::Pop( image ); + + const CEikImage& eikImage = iContext->Picture(); + _LIT( KContextPane5, "CAknContextPane::Picture" ); + AssertTrueL( ETrue, KContextPane5 ); + + iContext->SetPictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_signal_strength, + EMbmAvkonQgn_indi_signal_strength_mask ); + _LIT( KContextPane6, "CAknContextPane::SetPictureFromFileL" ); + AssertTrueL( ETrue, KContextPane6 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_CONTEXT_PANE ); + iContext->SetFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KContextPane7, "CAknContextPane::SetFromResourceL" ); + AssertTrueL( ETrue, KContextPane7 ); + + iContext->SetPictureToDefaultL(); + _LIT( KContextPane8, "CAknContextPane::SetPictureToDefaultL" ); + AssertTrueL( ETrue, KContextPane8 ); + + CEikImage* newImage = new( ELeave ) CEikImage(); + CleanupStack::PushL( newImage ); + newImage->CreatePictureFromFileL( AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_battery_strength, + EMbmAvkonQgn_indi_battery_strength_mask ); + CleanupStack::Pop( newImage ); + CEikImage* oldImage = iContext->SwapPicture( newImage ); + delete oldImage; + _LIT( KContextPane9, "CAknContextPane::SwapPicture" ); + AssertTrueL( ETrue, KContextPane9 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iContext->HandlePointerEventL( event ); + _LIT( KContextPane10, "CAknContextPane::HandlePointerEventL" ); + AssertTrueL( ETrue, KContextPane10 ); + + iContext->HandleResourceChange( KEikColorResourceChange ); + iContext->HandleResourceChange( KAknsMessageSkinChange ); + _LIT( KContextPane11, "CAknContextPane::HandleResourceChange" ); + AssertTrueL( ETrue, KContextPane11 ); + + iContext->SetPictureToDefaultL(); + iContainer->SetControl( iContext ); + } + +// --------------------------------------------------------------------------- +// Test CAknTabGroup +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestTabGroupL() + { + iTab = CAknTabGroup::NewL( *iContainer ); + _LIT( KTab1, "CAknTabGroup::NewL" ); + AssertNotNullL( iTab, KTab1 ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TAB ); + TInt tabId = iTab->AddTabL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KTab2, "CAknTabGroup::AddTabL with resource reader" ); + AssertTrueL( ETrue, KTab2 ); + + tabId++; //defined in HRH? + _LIT( KTabText, "Tab" ); + iTab->AddTabL( EBCTestTab2, KTabText ); + _LIT( KTab3, "CAknTabGroup::AddTabL with text" ); + AssertTrueL( ETrue, KTab3 ); + + tabId++; + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + TSize size( 100, 80 ); + bmp->Create( size, ERgb ); + iTab->AddTabL( EBCTestTab3, KTabText, bmp ); + CleanupStack::Pop( bmp ); + _LIT( KTab4, "CAknTabGroup::AddTabL with text and CFbsBitmap" ); + AssertTrueL( ETrue, KTab4 ); + + tabId++; + CFbsBitmap* bmp1 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp1 ); + bmp1->Create( size, ERgb ); + iTab->AddTabL( EBCTestTab4, bmp1 ); + CleanupStack::Pop( bmp1 ); + _LIT( KTab5, "CAknTabGroup::AddTabL with CFbsBitmap" ); + AssertTrueL( ETrue, KTab5 ); + + TBCTestTabObserver observer; + iTab->SetObserver( NULL ); + iTab->SetObserver( &observer ); + _LIT( KTab22, "CAknTabGroup::TabCount" ); + AssertTrueL( ETrue, KTab22 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TAB1 ); + iTab->ReplaceTabL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KTab6, "CAknTabGroup::ReplaceTabL with resource reader" ); + AssertTrueL( ETrue, KTab6 ); + + iTab->ReplaceTabL( EBCTestTab1, KTabText ); + _LIT( KTab7, "CAknTabGroup::ReplaceTabL with text" ); + AssertTrueL( ETrue, KTab7 ); + + CFbsBitmap* bmp2 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp2 ); + bmp2->Create( size, ERgb ); + iTab->ReplaceTabL( EBCTestTab1, KTabText, bmp2 ); + CleanupStack::Pop( bmp2 ); + _LIT( KTab8, "CAknTabGroup::ReplaceTabL with text and CFbsBitmap" ); + AssertTrueL( ETrue, KTab8 ); + + CFbsBitmap* bmp3 = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp3 ); + bmp3->Create( size, ERgb ); + iTab->ReplaceTabL( EBCTestTab1, bmp3 ); + CleanupStack::Pop( bmp3 ); + _LIT( KTab9, "CAknTabGroup::ReplaceTabL with CFbsBitmap" ); + AssertTrueL( ETrue, KTab9 ); + + _LIT( KTabText1, "Replace Tab text" ); + iTab->ReplaceTabTextL( EBCTestTab2, KTabText1 ); + _LIT( KTab10, "CAknTabGroup::ReplaceTabTextL" ); + AssertTrueL( ETrue, KTab10 ); + + iTab->SetActiveTabById( EBCTestTab2 ); + _LIT( KTab12, "CAknTabGroup::SetActiveTabById" ); + AssertTrueL( ETrue, KTab12 ); + + iTab->DeleteTabL( EBCTestTab1 ); + _LIT( KTab11, "CAknTabGroup::DeleteTabL" ); + AssertTrueL( ETrue, KTab11 ); + + iTab->SetActiveTabByIndex( 0 ); + _LIT( KTab13, "CAknTabGroup::SetActiveTabByIndex" ); + AssertTrueL( ETrue, KTab13 ); + + tabId = iTab->ActiveTabId(); + _LIT( KTab14, "CAknTabGroup::ActiveTabId" ); + AssertTrueL( ETrue, KTab14 ); + + TInt tabIndex = iTab->ActiveTabIndex(); + _LIT( KTab15, "CAknTabGroup::ActiveTabId" ); + AssertTrueL( ETrue, KTab15 ); + + iTab->SetTabFixedWidthL( KTabWidthWithFourTabs ); + iTab->SetTabFixedWidthL( KTabWidthWithThreeLongTabs ); + iTab->SetTabFixedWidthL( KTabWidthWithTwoLongTabs ); + iTab->SetTabFixedWidthL( KTabWidthWithTwoLongTabs + 40 ); + iTab->SetTabFixedWidthL( 20 ); + _LIT( KTab16, "CAknTabGroup::SetTabFixedWidthL" ); + AssertTrueL( ETrue, KTab16 ); + + iTab->DimTab( tabId, ETrue ); + _LIT( KTab17, "CAknTabGroup::DimTab" ); + AssertTrueL( ETrue, KTab17 ); + + TBool isTabDimmed = iTab->IsTabDimmed( tabId ); + _LIT( KTab18, "CAknTabGroup::IsTabDimmed" ); + AssertTrueL( ETrue, KTab18 ); + + tabIndex = iTab->TabIndexFromId( tabId ); + _LIT( KTab19, "CAknTabGroup::TabIndexFromId" ); + AssertTrueL( ETrue, KTab19 ); + + tabId = iTab->TabIdFromIndex( tabIndex ); + _LIT( KTab20, "CAknTabGroup::TabIndexFromId" ); + AssertTrueL( ETrue, KTab20 ); + + TInt tabCount = iTab->TabCount(); + _LIT( KTab21, "CAknTabGroup::TabCount" ); + AssertTrueL( ETrue, KTab21 ); + + TSize minimumSize = iTab->MinimumSize(); + _LIT( KTab23, "CAknTabGroup::MinimumSize" ); + AssertTrueL( ETrue, KTab23 ); + + TKeyEvent leftArrow = { EKeyLeftArrow, EKeyLeftArrow, 0, 0 }; + TKeyEvent rightArrow = { EKeyRightArrow, EKeyRightArrow, 0, 0 }; + iTab->OfferKeyEventL( leftArrow, EEventKey ); + iTab->OfferKeyEventL( rightArrow, EEventKey ); + _LIT( KTab24, "CAknTabGroup::OfferKeyEventL" ); + AssertTrueL( ETrue, KTab24 ); + + CArrayFixFlat* colorList = new( ELeave ) + CArrayFixFlat( 4 ); + CleanupStack::PushL( colorList ); + iTab->GetColorUseListL( *colorList ); + CleanupStack::PopAndDestroy( colorList ); + _LIT( KTab25, "CAknTabGroup::GetColorUseListL" ); + AssertTrueL( ETrue, KTab25 ); + + iTab->HandleResourceChange( KAknsMessageSkinChange ); + iTab->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + _LIT( KTab26, "CAknTabGroup::HandleResourceChange" ); + AssertTrueL( ETrue, KTab26 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + iTab->HandlePointerEventL( event ); + _LIT( KTab27, "CAknTabGroup::HandlePointerEventL" ); + AssertTrueL( ETrue, KTab27 ); + + iTab->HandleControlEventL( iContainer, + MCoeControlObserver::EEventRequestFocus ); + _LIT( KTab28, "CAknTabGroup::HandleControlEventL" ); + AssertTrueL( ETrue, KTab28 ); + + iTab->HandleNaviDecoratorEventL( + MAknNaviDecoratorObserver::EAknNaviDecoratorEventLeftTabArrow); + iTab->HandleNaviDecoratorEventL( + MAknNaviDecoratorObserver::EAknNaviDecoratorEventRightTabArrow); + _LIT( KTab29, "CAknTabGroup::HandleNaviDecoratorEventL" ); + AssertTrueL( ETrue, KTab29 ); + + iTab->SetFocus( EFalse ); + _LIT( KTab30, "CAknTabGroup::FocusChanged" ); + AssertTrueL( ETrue, KTab30 ); + + tabCount = iTab->TabCount(); + iTab->SetActiveTabById( tabCount ); + //iTab->DeleteTabL( tabCount ); + + iContainer->SetControl( iTab ); //give owner ship to container + iTab=NULL; + + } + +// --------------------------------------------------------------------------- +// Test navigation pane API +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestNaviPaneL() + { + iNavi = new( ELeave ) CAknNavigationControlContainer(); + _LIT( KNavi1, "CAknNavigationControlContainer::CAknNavigationControlContainer" ); + AssertNotNullL( iNavi, KNavi1 ); + + iNavi->SetContainerWindowL( *iContainer ); + + TResourceReader reader; + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_NAVIDECORATOR ); + iNavi->ConstructFromResourceL( reader ); + CleanupStack::PopAndDestroy(); // reader + _LIT( KNavi2, "CAknNavigationControlContainer::ConstructFromResourceL" ); + AssertTrueL( ETrue, KNavi2 ); + + CAknNavigationDecorator* naviDe = iNavi->CreateTabGroupL(); + delete naviDe; + naviDe = NULL; + _LIT( KNavi3, "CAknNavigationControlContainer::CreateTabGroupL" ); + AssertTrueL( ETrue, KNavi3 ); + + TBCTestTabObserver observer; + naviDe = iNavi->CreateTabGroupL( &observer ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi4, "CAknNavigationControlContainer::CreateTabGroupL with observer" ); + AssertTrueL( ETrue, KNavi4 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TABGROUP ); + naviDe = iNavi->CreateTabGroupL( reader ); + CleanupStack::PopAndDestroy(); // reader + delete naviDe; + naviDe = NULL; + _LIT( KNavi5, "CAknNavigationControlContainer::CreateTabGroupL with resource reader" ); + AssertTrueL( ETrue, KNavi5 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_TABGROUP ); + naviDe = iNavi->CreateTabGroupL( reader, &observer ); + CleanupStack::PopAndDestroy(); // reader + delete naviDe; + naviDe = NULL; + _LIT( KNavi6, "CAknNavigationControlContainer::CreateTabGroupL with resource reader and observer" ); + AssertTrueL( ETrue, KNavi6 ); + + _LIT( KNaviLabel, "Navigation Label" ); + naviDe = iNavi->CreateNavigationLabelL( KNaviLabel ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi7, "CAknNavigationControlContainer::CreateNavigationLabelL with text" ); + AssertTrueL( ETrue, KNavi7 ); + + TSize size( 100, 80 ); + CFbsBitmap* bmp = new( ELeave ) CFbsBitmap(); + CleanupStack::PushL( bmp ); + bmp->Create( size, ERgb ); + naviDe = iNavi->CreateNavigationImageL( bmp ); + delete naviDe; + naviDe = NULL; + CleanupStack::Pop( bmp ); + _LIT( KNavi8, "CAknNavigationControlContainer::CreateNavigationImageL with CFbsBitmap" ); + AssertTrueL( ETrue, KNavi8 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_NAVIIMAGE ); + naviDe = iNavi->CreateNavigationImageL( reader ); + delete naviDe; + naviDe = NULL; + CleanupStack::PopAndDestroy(); // reader + _LIT( KNavi9, "CAknNavigationControlContainer::CreateNavigationImageL with resource reader" ); + AssertTrueL( ETrue, KNavi9 ); + + _LIT( KNaviMsgLabel, "Navigation message" ); + naviDe = iNavi->CreateMessageLabelL( KNaviMsgLabel ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi10, "CAknNavigationControlContainer::CreateMessageLabelL with text" ); + AssertTrueL( ETrue, KNavi10 ); + + iEnv->CreateResourceReaderLC( reader, R_BCTESTPANE_NAVILABEL ); + naviDe = iNavi->CreateMessageLabelL( reader ); + delete naviDe; + naviDe = NULL; + CleanupStack::PopAndDestroy(); // reader + _LIT( KNavi11, "CAknNavigationControlContainer::CreateMessageLabelL with resource reader" ); + AssertTrueL( ETrue, KNavi11 ); + + naviDe = iNavi->CreateVolumeIndicatorL( R_BCTESTPANE_VOLUME_INDICATOR ); + delete naviDe; + naviDe = NULL; + _LIT( KNavi12, "CAknNavigationControlContainer::CreateVolumeIndicatorL" ); + AssertTrueL( ETrue, KNavi12 ); + + naviDe = iNavi->CreateEditorIndicatorContainerL(); + delete naviDe; + naviDe = NULL; + _LIT( KNavi13, "CAknNavigationControlContainer::CreateEditorIndicatorContainerL" ); + AssertTrueL( ETrue, KNavi13 ); + + iNavi->PushDefaultL(); + _LIT( KNavi14, "CAknNavigationControlContainer::PushDefaultL" ); + AssertTrueL( ETrue, KNavi14 ); + + iNavi->Pop(); + _LIT( KNavi15, "CAknNavigationControlContainer::Pop" ); + AssertTrueL( ETrue, KNavi15 ); + + CAknNavigationDecorator* oldNaviDe = iNavi->Top(); + _LIT( KNavi16, "CAknNavigationControlContainer::Top" ); + AssertTrueL( ETrue, KNavi16 ); + + CAknNavigationDecorator* newNaviDe = + iNavi->CreateMessageLabelL( KNaviLabel ); + CleanupStack::PushL( newNaviDe ); + iNavi->ReplaceL( *oldNaviDe, *newNaviDe ); + _LIT( KNavi17, "CAknNavigationControlContainer::Top" ); + AssertTrueL( ETrue, KNavi17 ); + CleanupStack::PopAndDestroy( newNaviDe ); + + iNaviDe = iNavi->ResourceDecorator(); + iNavi->PushL( *iNaviDe ); + _LIT( KNavi18, "CAknNavigationControlContainer::ResourceDecorator" ); + AssertTrueL( ETrue, KNavi18 ); + + TInt colorScheme = CAknNavigationControlContainer::ColorScheme(); + _LIT( KNavi19, "CAknNavigationControlContainer::ColorScheme" ); + AssertTrueL( ETrue, KNavi19 ); + + TPointerEvent event; + event.iType = TPointerEvent::EButton1Down; + event.iModifiers = 0; + TPoint eventPos( 10, 30 ); + event.iPosition = eventPos; + event.iParentPosition = eventPos; + + iNavi->HandlePointerEventL( event ); + _LIT( KNavi20, "CAknNavigationControlContainer::HandlePointerEventL" ); + AssertTrueL( ETrue, KNavi20 ); + + CAknNaviLabel* naviLabel = new( ELeave ) CAknNaviLabel(); + CleanupStack::PushL( naviLabel ); + naviLabel->HandlePointerEventL( event ); + _LIT( KNaviLabel1, "CAknNaviLabel::HandlePointerEventL" ); + AssertTrueL( ETrue, KNaviLabel1 ); + + CAknNaviLabel::TNaviLabelType labelType = naviLabel->NaviLabelType(); + _LIT( KNaviLabel2, "CAknNaviLabel::NaviLabelType" ); + AssertTrueL( ETrue, KNaviLabel2 ); + CleanupStack::PopAndDestroy( naviLabel ); + + iNaviDe->CAknNavigationDecorator::HandlePointerEventL( event ); + _LIT( KNaviDe1, "CAknNavigationDecorator::HandlePointerEventL" ); + AssertTrueL( ETrue, KNaviDe1 ); + + TBool dimmed = iNaviDe->IsScrollButtonDimmed( + CAknNavigationDecorator::ELeftButton ); + _LIT( KNaviDe2, "CAknNavigationDecorator::IsScrollButtonDimmed" ); + AssertTrueL( ETrue, KNaviDe2 ); + + iNaviDe->SetNaviControlLayoutMode( + CAknNavigationDecorator::ENaviControlLayoutModeAutomatic); + _LIT( KNaviDe3, "CAknNavigationDecorator::SetNaviControlLayoutMode" ); + AssertTrueL( ETrue, KNaviDe3 ); + + CAknNavigationDecorator::TAknNaviControlLayoutMode mode = + iNaviDe->NaviControlLayoutMode(); + _LIT( KNaviDe4, "CAknNavigationDecorator::NaviControlLayoutMode" ); + AssertTrueL( ETrue, KNaviDe4 ); + + iNaviDe->SetNaviControlLayoutStyle( + CAknNavigationDecorator::ENaviControlLayoutNormal ); + _LIT( KNaviDe5, "CAknNavigationDecorator::SetNaviControlLayoutStyle" ); + AssertTrueL( ETrue, KNaviDe5 ); + + TBool supported = iNaviDe->NaviControlLayoutStyleSupported( + CAknNavigationDecorator::ENaviControlLayoutNarrow); + _LIT( KNaviDe6, "CAknNavigationDecorator::NaviControlLayoutStyleSupported" ); + AssertTrueL( ETrue, KNaviDe6 ); + + iNaviDe->SetNaviDecoratorObserver( &iNaviObserver ); + _LIT( KNaviDe7, "CAknNavigationDecorator::SetNaviDecoratorObserver" ); + AssertTrueL( ETrue, KNaviDe7 ); + + iContainer->SetControl( iNavi ); + } + +// --------------------------------------------------------------------------- +// Test DialogShutter and Pictograph +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::TestDlgShutAndPictoL() + { + AknDialogShutter::ShutDialogsL( *iEnv ); + _LIT( KDlgShut, "AknDialogShutter::ShutDialogsL" ); + AssertTrueL( ETrue, KDlgShut ); + + TBCTestPictoAnimCallBack animCallback; + CAknPictographInterface* picto = CAknPictographInterface::NewL( + *iContainer, animCallback ); + delete picto; + _LIT( KPictograph, "CAknPictographInterface::NewL" ); + AssertTrueL( ETrue, KPictograph ); + } + +// --------------------------------------------------------------------------- +// Test API related with CWindowGc +// --------------------------------------------------------------------------- +// +void CBCTestPaneCase::DrawCaseL( CWindowGc& aGc ) + { + if ( ( iCommand == EBCTestCmdTitlePane ) && iTitle ) + { + iTitle->PrepareContext( aGc ); + _LIT( KTitle21, "CAknTitlePane::PrepareContext" ); + AssertTrueL( ETrue, KTitle21 ); + } + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknTabObserver +// --------------------------------------------------------------------------- +// +void TBCTestNaviDeObserver::HandleNaviDecoratorEventL( TInt ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknTabObserver +// --------------------------------------------------------------------------- +// +void TBCTestTabObserver::TabChangedL( TInt ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknPictographAnimatorCallBack +// --------------------------------------------------------------------------- +// +void TBCTestPictoAnimCallBack::DrawPictographArea() + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Implementation of MAknTitlePaneObserver +// --------------------------------------------------------------------------- +// +void TBCTestTitleObserver::HandleTitlePaneEventL( TInt ) + { + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CBCTestContextPane::MopSupplyObject +// --------------------------------------------------------------------------- +// +TTypeUid::Ptr CBCTestContextPane::MopSupplyObject( TTypeUid ) + { + return TTypeUid::Null(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpanecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpanecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctestpanecontainer.h" +#include "bctestpanecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneContainer::CBCTestPaneContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPaneContainer::~CBCTestPaneContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestPaneContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + + if ( iPaneCase ) + { + TRAP_IGNORE( iPaneCase->DrawCaseL( gc ) ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestPaneContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestPaneContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneContainer::SetPaneCase +// --------------------------------------------------------------------------- +// +void CBCTestPaneContainer::SetPaneCase( CBCTestPaneCase* aCase ) + { + iPaneCase = aCase; + DrawNow(); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpanedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpanedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,62 @@ +/* +* 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 "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: Document +* +*/ + + +#include "BCTestPaneDocument.h" +#include "BCTestPaneAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestPaneDocument* CBCTestPaneDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneDocument* CBCTestPaneDocument::NewL( CEikApplication& aApp ) + { + CBCTestPaneDocument* self = new( ELeave ) CBCTestPaneDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneDocument::~CBCTestPaneDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneDocument::~CBCTestPaneDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestPaneDocument::CBCTestPaneDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestPaneDocument::CBCTestPaneDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestPaneDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestPaneDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestPaneAppUi; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpaneview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctestpane/src/bctestpaneview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,129 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctestpane.hrh" +#include +#include "bctestpaneview.h" +#include "bctestpanecontainer.h" +#include "bctestutil.h" +#include "bctestpanecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneView* CBCTestPaneView::NewL( CBCTestUtil* aUtil ) + { + CBCTestPaneView* self = new( ELeave ) CBCTestPaneView( aUtil ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestPaneView::CBCTestPaneView( CBCTestUtil* aUtil ): + iTestUtil( aUtil ) + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::ConstructL() + { + BaseConstructL( R_BCTESTPANE_VIEW ); + + iContainer = new( ELeave ) CBCTestPaneContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + // Add test case here. + _LIT( KPaneCase, "Pane case" ); + iTestUtil->AddTestCaseL( CBCTestPaneCase::NewL( iContainer ), + KPaneCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestPaneView::~CBCTestPaneView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestPaneView::Id() const + { + return KBCTestTemplateViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestPaneView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestPaneView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bctesttoolbar.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bctesttoolbar.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ +/* +* 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 "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: project specification file for the bctesttoolbar. +* +*/ + + +TARGET bctesttoolbar.exe +TARGETTYPE exe +UID 0x0 0x200089C3 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent \ + UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctesttoolbar.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctesttoolbarapp.cpp +SOURCE bctesttoolbardocument.cpp +SOURCE bctesttoolbarappui.cpp +SOURCE bctesttoolbarview.cpp +SOURCE bctesttoolbarcontainer.cpp +SOURCE bctesttoolbarcase.cpp +SOURCE bctesttoolbarderived.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../BCTESTUTIL/Inc + +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +SYSTEMINCLUDE /epoc32/include/middleware /epoc32/include /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +START RESOURCE ../group/bctesttoolbar_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bctesttoolbar.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bctesttoolbar.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,225 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME PBK2 + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctesttoolbar.hrh" +#include "bctesttoolbar.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTTOOLBAR_BMP_FNAME APP_BITMAP_DIR"\\BCTestToolBar.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestToolBar"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesttoolbar_menubar_main; + cba = r_bctesttoolbar_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesttoolbar_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\bctesttoolbar_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttoolbar_view +// AVKON_VIEW for CBCTestToolBarView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesttoolbar_view + { + menubar = r_bctesttoolbar_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttoolbar_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesttoolbar_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesttoolbar_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesttoolbar_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttoolbar_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttoolbar_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctesttoolbar_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttoolbar_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttoolbar_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesttoolbar_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesttoolbar_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctesttoolbar_cba_options_next +// description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesttoolbar_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestToolBarCbaCmdNext; + txt = qtn_bctesttoolbar_cba_next; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctesttoolbar_cmbut +// ?description +// +// ---------------------------------------------------------------------------- +// +RESOURCE CMBUT r_bctesttoolbar_cmbut + { + version=0; + behavior=0; + layout=0; // ETextRightPictureLeft|EEikCmdButShareExcess + helptxt=""; + extension=0; + txt=""; + bmpfile=""; + bmpid=0xffff; + bmpmask=0xffff; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bctesttoolbar_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bctesttoolbar_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200089C3 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestToolBar"; + localisable_resource_file = "\\resource\\apps\\BCTestToolBar"; + localisable_resource_id = R_BCTESTTOOLBAR_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestToolBar.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbar.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbar.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,39 @@ +/* +* 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 "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: BCTestToolBar resource header file +* +*/ + + +#ifndef C_BCTESTTOOLBAR_HRH +#define C_BCTESTTOOLBAR_HRH + +enum TBCTestToolBarMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestToolBarCba + { + EBCTestToolBarCbaCmdNext = 0x6300, + EBCTestToolBarCbaCmdLeftBtn, + EBCTestToolBarCbaCmdRightBtn + }; + +#endif // C_BCTESTTOOLBAR_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbar.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbar.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: bctesttoolbar localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTestToolBar" +#define qtn_apps_tavl_grid "BCTestToolBar" + +// MenuBar +#define qtn_bctesttoolbar_menubar "Option" +#define qtn_bctesttoolbar_cba_next "Next" +#define qtn_bctesttoolbar_autotest "Autotest" +#define qtn_bctesttoolbar_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctesttoolbar_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctesttoolbar_text_other_app_name "BCTestToolBar" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_BCTESTTOOLBARAPP_H +#define C_BCTESTTOOLBARAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestToolBar = { 0x200089C3 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestToolBarApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestToolBarApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestToolBarDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestToolBar ). + * @return The value of KUidBCTestToolBar. + */ + TUid AppDllUid() const; + + }; + +#endif // C_BCTESTTOOLBARAPP_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,68 @@ +/* +* 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 "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 BC for BCTestToolBar API. +* +*/ + + +#ifndef C_BCTESTTOOLBARAPPUI_H +#define C_BCTESTTOOLBARAPPUI_H + +#include + +class CBCTestToolBarView; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestToolBarAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestToolBarAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestToolBarAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestToolBarView* iView; + }; + +#endif // C_BCTESTTOOLBARAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,131 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_BCTESTTOOLBARCASE_H +#define C_BCTESTTOOLBARCASE_H + +#include + +#include "bctestcase.h" + +class CBCTestToolBarContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestToolBarCase: public CBCTestCase, + public MAknToolbarObserver + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestToolBarCase* NewL( CBCTestToolBarContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestToolBarCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +public: // from MAknToolbarObserver + + /** + * Should be used to set the properties of some toolbar components + * before it is drawn. + * @param aResourceId The resource ID for particular toolbar + * @param aToolbar The toolbar object pointer + */ + void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar ); + + /** + * Handles toolbar events for a certain toolbar item. + * @param aCommand The command ID of some toolbar item. + */ + void OfferToolbarEventL( TInt aCommand ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestToolBarCase( CBCTestToolBarContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestToolBarContainer* iContainer; + + }; + +class CBCTestToolBarObserver : public CBase, public MAknToolbarObserver +{ + public: // from MAknToolbarObserver + + /** + * Should be used to set the properties of some toolbar components + * before it is drawn. + * @param aResourceId The resource ID for particular toolbar + * @param aToolbar The toolbar object pointer + */ + //void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar ); + + /** + * Handles toolbar events for a certain toolbar item. + * @param aCommand The command ID of some toolbar item. + */ + void OfferToolbarEventL( TInt aCommand ); + //void Call(); + +}; +#endif // C_BCTESTTOOLBARCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ +/* +* 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 "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: container +* +*/ + +#ifndef C_BCTESTTOOLBARCONTAINER_H +#define C_BCTESTTOOLBARCONTAINER_H + +#include + +class CBCTestToolBarCase; + +/** +* container class +*/ +class CBCTestToolBarContainer: public CCoeControl + { + friend class CBCTestToolBarCase; +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestToolBarContainer(); + + /** + * Destructor + */ + virtual ~CBCTestToolBarContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_BCTESTTOOLBARCONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarderived.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarderived.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +/* +* 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 "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: AknToolbar derived class +* +*/ + + +#ifndef C_BCTESTTOOLBARDERIVED_H +#define C_BCTESTTOOLBARDERIVED_H + +#include + + +class CBCTestToolBarCase; +class CAknToolbar; + +class CBCTestToolBarDerived: public CAknToolbar + { + friend class CBCTestToolBarCase; +public: + virtual ~CBCTestToolBarDerived(); + }; + +#endif // C_BCTESTTOOLBARDERIVED_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbardocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbardocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTTOOLBARDOCUMENT_H +#define C_BCTESTTOOLBARDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestToolBarDocument application class. +*/ +class CBCTestToolBarDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestToolBarDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestToolBarDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestToolBarDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestToolBarAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTOOLBARDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/inc/bctesttoolbarview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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 BC for AknToolbar API. +* +*/ + + +#ifndef C_BCTESTTOOLBARVIEW_H +#define C_BCTESTTOOLBARVIEW_H + +#include + +const TUid KBCTestToolBarViewId = { 1 }; + +class CBCTestToolBarContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestToolBarView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestToolBarView* NewL(); + + /** + * dtor + */ + virtual ~CBCTestToolBarView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestToolBarView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + +private: // data + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestToolBarContainer* iContainer; + + }; + +#endif // C_BCTESTTOOLBARVIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/sis/bctesttoolbar.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/sis/bctesttoolbar.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesttoolbar.pkg + +; Languages +&EN + +; Header +#{"bctesttoolbar"},(0x200089C3),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctesttoolbar.exe"- +"!:\sys\bin\bctesttoolbar.exe" + +"\epoc32\data\z\resource\apps\bctesttoolbar.r01"- +"!:\resource\apps\bctesttoolbar.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctesttoolbar_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctesttoolbar_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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 app +* +*/ + + +// INCLUDE FILES +#include "bctesttoolbarapp.h" +#include "bctesttoolbardocument.h" +#include + +// ================= MEMBER FUNCTIONS ======================================= + +// -------------------------------------------------------------------------- +// TUid CBCTestToolBarApp::AppDllUid() +// Returns application UID. +// -------------------------------------------------------------------------- +// +TUid CBCTestToolBarApp::AppDllUid() const + { + return KUidBCTestToolBar; + } + +// -------------------------------------------------------------------------- +// CApaDocument* CBCTestToolBarApp::CreateDocumentL() +// Creates CBCTestToolBarDocument object. +// -------------------------------------------------------------------------- +// +CApaDocument* CBCTestToolBarApp::CreateDocumentL() + { + return CBCTestToolBarDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS =============================== +// +// -------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestToolBarApp. +// Returns: CApaDocument*: created application object +// -------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestToolBarApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication( NewApplication ); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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: appui +* +*/ + +#include +#include + +#include "bctesttoolbarappui.h" +#include "bctesttoolbar.hrh" +#include "bctesttoolbarview.h" + +// ======== MEMBER FUNCTIONS ======== + +// -------------------------------------------------------------------------- +// ctro do nothing +// -------------------------------------------------------------------------- +// +CBCTestToolBarAppUi::CBCTestToolBarAppUi() + { + } + +// -------------------------------------------------------------------------- +// symbian 2nd phase ctor +// -------------------------------------------------------------------------- +// +void CBCTestToolBarAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init view + CBCTestToolBarView* view = CBCTestToolBarView::NewL(); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarAppUi::~CBCTestToolBarAppUi() +// Destructor. +// -------------------------------------------------------------------------- +// +CBCTestToolBarAppUi::~CBCTestToolBarAppUi() + { + } + +// -------------------------------------------------------------------------- +// handle menu command events +// -------------------------------------------------------------------------- +// +void CBCTestToolBarAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,392 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctesttoolbarapp.h" +#include "bctesttoolbarcase.h" +#include "bctesttoolbarcontainer.h" +#include "bctesttoolbar.hrh" +#include "bctesttoolbarderived.h" + +// ======== MEMBER FUNCTIONS ======== + +// -------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarCase* CBCTestToolBarCase::NewL( + CBCTestToolBarContainer* aContainer ) + { + CBCTestToolBarCase* self = new( ELeave ) CBCTestToolBarCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// -------------------------------------------------------------------------- +// C++ default constructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarCase::CBCTestToolBarCase( + CBCTestToolBarContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// -------------------------------------------------------------------------- +// Destructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarCase::~CBCTestToolBarCase() + { + } + +// -------------------------------------------------------------------------- +// Symbian 2nd Constructor +// -------------------------------------------------------------------------- +// +void CBCTestToolBarCase::ConstructL() + { + BuildScriptL(); + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarCase::BuildScriptL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarCase::BuildScriptL() + { + // Add script as your need. + const TInt scripts[] = + { + DELAY( 5 ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) ); + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarCase::RunL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarCase::DynInitToolbarL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarCase::DynInitToolbarL( TInt /*aResourceId*/, + CAknToolbar* /*aToolbar*/ ) + { + + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarCase::OfferToolbarEventL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarCase::OfferToolbarEventL( TInt /*aCommand*/ ) + { + + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarCase::TestFunctionL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarCase::TestFunctionL() + { + // Test some API here + CAknToolbar *toolBar = + CAknToolbar::NewL( R_BCTESTTOOLBAR_CBA_OPTIONS_NEXT ); + CleanupStack::PushL( toolBar ); + + CAknButton *leftButton = + CAknButton::NewLC( NULL, NULL, NULL, + NULL, _L( "LeftButton" ), KNullDesC, + KAknButtonNoFrame, 0 ); + toolBar->AddItemL( + leftButton, EAknCtButton, EBCTestToolBarCbaCmdLeftBtn, 1 ); + _LIT( KAddItem, "CAknToolbar::AddItemL() called" ); + AssertTrueL( ETrue, KAddItem ); + CleanupStack::Pop( leftButton ); + + _LIT( KRightButton, "RightButton" ); + CAknButton *rightButton = + CAknButton::NewLC( NULL, NULL, NULL, + NULL, KRightButton, KNullDesC, + KAknButtonNoFrame, 0 ); + + toolBar->AddItemL( + rightButton, EAknCtButton, EBCTestToolBarCbaCmdRightBtn, 1, 1 ); + _LIT( KAddItem2, "CAknToolbar::AddItemL() with index called" ); + AssertTrueL( ETrue, KAddItem2 ); + + CleanupStack::Pop( rightButton ); + + + TInt count = toolBar->CountComponentControls(); + _LIT( KCount, "CAknToolbar::CountComponentControls() called" ); + AssertIntL( 2, count, KCount ); + + CCoeControl* control = toolBar->ComponentControl( 1 ); + _LIT( KComponentControl, "CAknToolbar::ComponentControl() called" ); + AssertNotNullL( control, KComponentControl ); + + CCoeControl* rightControl = + toolBar->ControlOrNull( EBCTestToolBarCbaCmdRightBtn ); + _LIT( KControlOrNull, "CAknToolbar::ControlOrNull() called" ); + AssertNotNullL( control, KControlOrNull ); + + toolBar->SetToolbarVisibility( ETrue ); + _LIT( KSetVisible, "CAknToolbar::SetToolbarVisibility() called" ); + AssertTrueL( ETrue, KSetVisible ); + + TBool isShown = toolBar->IsShown(); + _LIT( KIsShown, "CAknToolbar::IsShown() called" ); + AssertTrueL( isShown, KIsShown ); + + toolBar->SetInitialFocusedItem( EBCTestToolBarCbaCmdRightBtn ); + _LIT( KSetInitial, "CAknToolbar::SetInitialFocusedItem() called" ); + AssertTrueL( ETrue, KSetInitial ); + + toolBar->ProcessCommandL( EBCTestToolBarCbaCmdRightBtn ); + _LIT( KProcessCommand, "CAknToolbar::ProcessCommandL() called" ); + AssertTrueL( ETrue, KProcessCommand ); + + toolBar->PositionChanged(); + _LIT( KPositionChanged, "CAknToolbar::PositionChanged() called" ); + AssertTrueL( ETrue, KPositionChanged ); + + toolBar->SetFocusedItemL( EBCTestToolBarCbaCmdRightBtn ); + _LIT( KSetFocusedItem, "CAknToolbar::SetFocusedItemL() called" ); + AssertTrueL( ETrue, KSetFocusedItem ); + + TInt focusedItem = toolBar->FocusedItem(); + _LIT( KFocusedItem, "CAknToolbar::FocusedItem() called" ); + AssertIntL( EBCTestToolBarCbaCmdRightBtn, focusedItem , KFocusedItem ); + + + toolBar->SetDimmed( ETrue ); + _LIT( KSetDimmed, "CAknToolbar::SetDimmed() called" ); + AssertTrueL( ETrue, KSetDimmed ); + + toolBar->UpdateBackground(); + _LIT( KUpdateBackground, "CAknToolbar::UpdateBackground() called" ); + AssertTrueL( ETrue, KUpdateBackground ); + + toolBar->SetWithSliding( ETrue ); + _LIT( KSetWithSliding, "CAknToolbar::SetWithSliding() called" ); + AssertTrueL( ETrue, KSetWithSliding ); + + toolBar->SetEmphasis( ETrue ); + _LIT( KSetEmphasis, "CAknToolbar::SetEmphasis() called" ); + AssertTrueL( ETrue, KSetEmphasis ); + + toolBar->SetItemDimmed( EBCTestToolBarCbaCmdRightBtn, ETrue, ETrue ); + _LIT( KSetItemDimmed, "CAknToolbar::SetItemDimmed() called" ); + AssertTrueL( ETrue, KSetItemDimmed ); + + toolBar->HideItem( EBCTestToolBarCbaCmdRightBtn, ETrue, ETrue ); + _LIT( KHideItem, "CAknToolbar::HideItem() called" ); + AssertTrueL( ETrue, KHideItem ); + + toolBar->RemoveItem( EBCTestToolBarCbaCmdRightBtn ); + _LIT( KRemoveItem, "CAknToolbar::RemoveItem() called" ); + AssertTrueL( ETrue, KRemoveItem ); + + + toolBar->SetCloseOnCommand( EBCTestToolBarCbaCmdRightBtn, ETrue ); + _LIT( KSetCloseOnCommand, "CAknToolbar::SetCloseOnCommand() called" ); + AssertTrueL( ETrue, KSetCloseOnCommand ); + + toolBar->SetCloseOnAllCommands( ETrue ); + _LIT( KSetCloseOnAllCmds, "CAknToolbar::SetCloseOnAllCommands() called" ); + AssertTrueL( ETrue, KSetCloseOnAllCmds ); + + toolBar->SetOrientation( EAknOrientationVertical ); + _LIT( KSetOrientation, "CAknToolbar::SetOrientation() called" ); + AssertTrueL( ETrue, KSetOrientation ); + + TBool isSupported = toolBar->IsSupportedItemType ( EAknCtButton ); + _LIT( KIsSupported, "CAknToolbar::IsSupportedItemType() called" ); + AssertTrueL( isSupported, KIsSupported ); + + TRect rect = iContainer->Rect(); + iContainer->ActivateGc(); + toolBar->Draw( iContainer->SystemGc(), *iContainer, rect ); + iContainer->DeactivateGc(); + _LIT( KDraw, "CAknToolbar::Draw() called" ); + AssertTrueL( ETrue, KDraw ); + + TPointerEvent pointerEvent; + TPoint point; + point.iX = 5; + point.iY = 5; + pointerEvent.iModifiers = 0; + pointerEvent.iParentPosition = point; + pointerEvent.iPosition = point; + pointerEvent.iType = TPointerEvent::EButton1Up; + + toolBar->HandlePointerEventL( pointerEvent ); + _LIT( KHandlePointerEventL, "CAknToolbar::HandlePointerEventL() called" ); + AssertTrueL( ETrue, KHandlePointerEventL ); + + TKeyEvent keyEvent; + toolBar->OfferKeyEventL( keyEvent,EEventKey ); + _LIT( KOfferKeyEventL, "CAknToolbar::OfferKeyEventL() called" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + toolBar->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + _LIT( KHandleResChange, "CAknToolbar::HandleResourceChange() called" ); + AssertTrueL( ETrue, KHandleResChange ); + + toolBar->HandleControlEventL( + iContainer, CAknToolbar::EEventRequestExit ); + _LIT( KHandleControlEventL, + "CAknToolbar::HandleControlEventL() called" ); + AssertTrueL( ETrue, KHandleControlEventL ); + + TCoeInputCapabilities inputCapabilities = toolBar->InputCapabilities(); + _LIT( KInputCapabilities, "CAknToolbar::InputCapabilities() called" ); + AssertTrueL( ( inputCapabilities == TCoeInputCapabilities::EAllText ), + KInputCapabilities ); + + toolBar->SetToolbarObserver( this ); + _LIT( KSetToolbarObserver, "CAknToolbar::SetToolbarObserver() called" ); + AssertTrueL( ETrue, KSetToolbarObserver ); + + MAknToolbarObserver* observer = toolBar->ToolbarObserver(); + _LIT( KToolbarObserver, "CAknToolbar::ToolbarObserver() called" ); + AssertNotNullL( observer, KToolbarObserver ); + + TInt modifiers = toolBar->EventModifiers(); + _LIT( KEventModifiers, "CAknToolbar::EventModifiers() called" ); + AssertTrueL( ETrue, KEventModifiers ); + + CAknToolbarExtension* extn = toolBar->ToolbarExtension(); + _LIT( KToolBarExtension, "CAknToolbar::ToolBarExtension() called" ); + AssertTrueL( ETrue, KToolBarExtension ); + + toolBar->SetToolbarVisibility( EFalse, ETrue ); + _LIT( KSetToolbarVisibility2, "CAknToolbar::SetToolbarVisibility(TBool,TBool) called" ); + AssertTrueL( ETrue, KSetToolbarVisibility2 ); + + // Leaves if toolbar is shown + toolBar->DisableToolbarL( ETrue ); + _LIT( KDisableToolbar, "CAknToolbar::DisableToolbarL() called" ); + AssertTrueL( ETrue, KDisableToolbar ); + + TBool disabled = toolBar->IsToolbarDisabled(); + _LIT( KIsToolbarDisabled, "CAknToolbar::IsToolbarDisabled() called" ); + AssertTrueL( disabled, KIsToolbarDisabled ); + + TInt flags = toolBar->ToolbarFlags(); + _LIT( KToolbarFlags, "CAknToolbar::ToolbarFlags() called" ); + AssertTrueL( flags >= 0, KToolbarFlags ); + + toolBar->SetSoftkeyResourceIdL( R_AVKON_SOFTKEYS_CLOSE ); + _LIT( KSoftkeyResource, "CAknToolbar::SetSoftkeyResourceIdL() called" ); + AssertTrueL( ETrue, KSoftkeyResource ); + + + CBCTestToolBarDerived* toolBarDerived = static_cast + (CAknToolbar::NewL( R_BCTESTTOOLBAR_CBA_OPTIONS_NEXT ) ); + CleanupStack::PushL( toolBarDerived ); + toolBarDerived->SizeChanged(); + _LIT( KSizeChanged, "CAknToolbar::SizeChanged() called" ); + AssertTrueL( ETrue, KSizeChanged ); + + toolBarDerived->FocusChanged( EDrawNow ); + _LIT( KFocusChanged, "CAknToolbar::FocusChanged() called" ); + AssertTrueL( ETrue, KFocusChanged ); + + _LIT( KExtInterface, "CAknToolbar::ExtensionInterface"); + AssertTrueL( + toolBarDerived->ExtensionInterface( KUidBCTestToolBar ) == NULL, + KExtInterface ); + + TTypeUid::Ptr ptr = toolBarDerived->MopSupplyObject( CEikCba::ETypeId ); + ptr = toolBarDerived->MopSupplyObject( + CEikButtonGroupContainer::ETypeId ); + _LIT( KMopSupplyObject, "CAknToolbar::MopSupplyObject() called" ); + AssertTrueL( ETrue, KMopSupplyObject ); + + + CBCTestToolBarObserver tool; + MAknToolbarObserver* toolBarCase = &tool; + + TInt resId=100; + toolBarCase->DynInitToolbarL( resId, toolBar ); + _LIT( KDynInitToolBarL, "MAknToolBarObserver::DynInitToolBarL() tested"); + AssertTrueL( ETrue, KDynInitToolBarL ); + + TInt aCmd = 1; + toolBarCase->OfferToolbarEventL( aCmd ); + _LIT( KOfferToolbarEventL, "MAknToolBarObserver::OfferToolbarEventL() tested"); + AssertTrueL( ETrue, KOfferToolbarEventL ); + + CleanupStack::PopAndDestroy( toolBarDerived ); + + CleanupStack::PopAndDestroy( toolBar ); + } + +/*void CBCTestToolBarObserver::DynInitToolbarL(TInt resId, CAknToolbar* aToolbar ) +{ + +}*/ + +void CBCTestToolBarObserver::OfferToolbarEventL( TInt ) +{ + +} +/* +void CBCTestToolBarObserver::Call() +{ + TInt a = MAknToolbarObserver_Reserved_1(); + TInt b = MAknToolbarObserver_Reserved_2(); +}*/ \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctesttoolbarcontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// -------------------------------------------------------------------------- +// C++ default Constructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarContainer::CBCTestToolBarContainer() + { + } + +// -------------------------------------------------------------------------- +// Destructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarContainer::~CBCTestToolBarContainer() + { + ResetControl(); + } + +// -------------------------------------------------------------------------- +// Symbian 2nd Constructor +// -------------------------------------------------------------------------- +// +void CBCTestToolBarContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarContainer::Draw +// Fills the window's rectangle. +// -------------------------------------------------------------------------- +// +void CBCTestToolBarContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarContainer::CountComponentControls +// -------------------------------------------------------------------------- +// +TInt CBCTestToolBarContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarContainer::ComponentControl +// -------------------------------------------------------------------------- +// +CCoeControl* CBCTestToolBarContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarContainer::SetControl +// -------------------------------------------------------------------------- +// +void CBCTestToolBarContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarContainer::ResetControl +// -------------------------------------------------------------------------- +// +void CBCTestToolBarContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarderived.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarderived.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,29 @@ +/* +* 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 "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: AknToolbar derived class +* +*/ + + +#include "bctesttoolbarderived.h" + +// ======== MEMBER FUNCTIONS ======== + +// -------------------------------------------------------------------------- +// Destructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarDerived::~CBCTestToolBarDerived() + { + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbardocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbardocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,67 @@ +/* +* 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 "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 application +* +*/ + + +// INCLUDE FILES +#include "bctesttoolbardocument.h" +#include "bctesttoolbarappui.h" + +// ================= MEMBER FUNCTIONS ======================================= + +// -------------------------------------------------------------------------- +// CBCTestToolBarDocument* CBCTestToolBarDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// -------------------------------------------------------------------------- +// +CBCTestToolBarDocument* CBCTestToolBarDocument::NewL( + CEikApplication& aApp ) + { + CBCTestToolBarDocument* self = + new( ELeave ) CBCTestToolBarDocument( aApp ); + return self; + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarDocument::~CBCTestToolBarDocument() +// Destructor. +// -------------------------------------------------------------------------- +// +CBCTestToolBarDocument::~CBCTestToolBarDocument() + { + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarDocument::CBCTestToolBarDocument( CEikApplication& ) +// Overload constructor. +// -------------------------------------------------------------------------- +// +CBCTestToolBarDocument::CBCTestToolBarDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// -------------------------------------------------------------------------- +// CEikAppUi* CBCTestToolBarDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// -------------------------------------------------------------------------- +// +CEikAppUi* CBCTestToolBarDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestToolBarAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttoolbar/src/bctesttoolbarview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctesttoolbar.hrh" +#include +#include "bctesttoolbarview.h" +#include "bctesttoolbarcontainer.h" +#include "bctestutil.h" +#include "bctesttoolbarcase.h" + +// Constansts +_LIT( KBCTestToolBarCase, "AknToolBar test case"); + +// ======== MEMBER FUNCTIONS ======== + +// -------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarView* CBCTestToolBarView::NewL() + { + CBCTestToolBarView* self = new( ELeave ) CBCTestToolBarView(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// -------------------------------------------------------------------------- +// C++ default Constructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarView::CBCTestToolBarView() + { + } + +// -------------------------------------------------------------------------- +// Symbian 2nd Constructor +// -------------------------------------------------------------------------- +// +void CBCTestToolBarView::ConstructL() + { + BaseConstructL( R_BCTESTTOOLBAR_VIEW ); + + iContainer = new( ELeave ) CBCTestToolBarContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = CBCTestUtil::NewL(); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestToolBarCase::NewL( iContainer ), + KBCTestToolBarCase ); + } + +// -------------------------------------------------------------------------- +// Destructor +// -------------------------------------------------------------------------- +// +CBCTestToolBarView::~CBCTestToolBarView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + delete iTestUtil; + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarView::Id +// -------------------------------------------------------------------------- +// +TUid CBCTestToolBarView::Id() const + { + return KBCTestToolBarViewId; + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarView::DoActivateL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarView::DoActivateL( + const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarView::DoDeactivate +// -------------------------------------------------------------------------- +// +void CBCTestToolBarView::DoDeactivate() + { + } + +// -------------------------------------------------------------------------- +// CBCTestToolBarView::HandleCommandL +// -------------------------------------------------------------------------- +// +void CBCTestToolBarView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bctesttouchpane.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bctesttouchpane.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,82 @@ +/* +* 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 "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: project specification file for the BCTestTouchPane. +* +*/ + + +TARGET bctesttouchpane.exe +TARGETTYPE exe +UID 0x0 0x20004769 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE bctesttouchpane.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../src +SOURCE bctesttouchpaneapp.cpp +SOURCE bctesttouchpanedocument.cpp +SOURCE bctesttouchpaneappui.cpp +SOURCE bctesttouchpaneview.cpp +SOURCE bctesttouchpanecontainer.cpp +SOURCE bctesttouchpanecase.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../../bctestutil/inc + +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +SYSTEMINCLUDE .. /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY eiksrv.lib + +START RESOURCE ../group/bctesttouchpane_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bctesttouchpane.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bctesttouchpane.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,211 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TCPN + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "bctesttouchpane.hrh" +#include "bctesttouchpane.loc" +#include "bctesttouchpane.rh" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTTOUCHPANE_BMP_FNAME APP_BITMAP_DIR"\\bctesttouchpane.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = qtn_bctest_buf; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesttouchpane_menubar_main; + cba = r_bctesttouchpane_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesttouchpane_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTesttouchpane_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttouchpane_view +// AVKON_VIEW for CBCTestTouchPaneView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesttouchpane_view + { + menubar = r_bctesttouchpane_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttouchpane_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesttouchpane_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesttouchpane_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesttouchpane_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttouchpane_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttouchpane_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctesttouchpane_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttouchpane_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttouchpane_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesttouchpane_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesttouchpane_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctesttouchpane_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesttouchpane_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestTouchPaneCbaCmdNext; + txt = qtn_bctesttouchpane_cba_next; + } + }; + } + +RESOURCE BCTouchPane r_bctesttouchpane_touchpane + { + version = 1; + flags = 0; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bctesttouchpane_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bctesttouchpane_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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 "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: resources for the module +* +*/ + + +#include +#include + +#include "bctesttouchpane.loc" + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004769 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "bctesttouchpane"; + localisable_resource_file = "\\resource\\apps\\bctesttouchpane"; + localisable_resource_id = R_BCTESTTOUCHPANE_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,23 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestTouchPane.mmp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpane.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpane.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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 "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: BCTestTouchPane resource header file +* +*/ + + +#ifndef BCTESTTOUCHPANE_HRH +#define BCTESTTOUCHPANE_HRH + +enum TBCTestTouchPaneMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestTouchPaneCba + { + EBCTestTouchPaneCbaCmdNext = 0x6300 + }; + +#endif // BCTESTTOUCHPANE_HRH + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpane.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpane.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,45 @@ +/* +* 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 "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: BCTestTouchPane localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTTOUCHPANE" +#define qtn_apps_tavl_grid "BCTESTTOUCHPANE" + +// MenuBar +#define qtn_bctesttouchpane_menubar "Option" +#define qtn_bctesttouchpane_cba_next "Next" +#define qtn_bctesttouchpane_autotest "Autotest" +#define qtn_bctesttouchpane_menu_exit "Exit" + +//Name +#define qtn_bctest_buf "bctesttouchpane" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctesttouchpane_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpane.rh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpane.rh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,23 @@ +/* +* 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 "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 structure definitions for BCTestTouchPane +* +*/ + + +STRUCT BCTouchPane + { + BYTE version; + LONG flags; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpaneapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpaneapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,55 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTTOUCHPANEAPP_H +#define C_CBCTESTTOUCHPANEAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestTouchPane = { 0x20004769 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestTouchPaneApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestTouchPaneApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTouchPaneDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTouchPane ). + * @return The value of KUidBCTestTouchPane. + */ + TUid AppDllUid() const; + + }; + +#endif + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpaneappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpaneappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* 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 "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 BC for TouchPane control API. +* +*/ + + +#ifndef C_CBCTESTTOUCHPANEAPPUI_H +#define C_CBCTESTTOUCHPANEAPPUI_H + +#include + +class CBCTestTouchPaneView; +class CBCTestUtil; + +/** + * Application UI class + */ +class CBCTestTouchPaneAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * ctor + */ + CBCTestTouchPaneAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestTouchPaneAppUi(); + +private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + +private: // data + + /** + * pointor to the view. + * own + */ + CBCTestTouchPaneView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_CBCTESTTOUCHPANEAPPUI_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpanecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpanecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,118 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef C_CBCTESTTOUCHPANECASE_H +#define C_CBCTESTTOUCHPANECASE_H + +//#include +#include + +#include "bctestcase.h" + +class CBCTestTouchPaneContainer; +class CCoeControl; +class CEikonEnv; + +/** +* test case for various list classes +*/ +class CBCTestTouchPaneCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestTouchPaneCase* NewL( CBCTestTouchPaneContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestTouchPaneCase(); + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test functions + */ + void TestFunctionL(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTouchPaneCase( CBCTestTouchPaneContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + + /** + * TestAknTouchPaneL + */ + void TestAknTouchPaneL(); + +private: // data + + /** + * Pointer to CEikonEnv + * Not own + */ + CEikonEnv* iEnv; + + /** + * Pointer to container. + * not own + */ + CBCTestTouchPaneContainer* iContainer; + + }; + +/** + * BCTestObserver class + */ +class CBCTestObserver: public CBase, public MAknTouchPaneObserver + { + void HandleTouchPaneSizeChange(); + }; + +#if 0 //SDK API using Domain API Class +/** + * CBCTestFepPen class + */ + +class CBCTestFepPen: public CBase, public MAknFepPenSupportInterface + { + void ActivatePenInputL(); + void DeactivatePenInputL(); + }; +#endif +#endif // C_CBCTESTTOUCHPANECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpanecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpanecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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: container +* +*/ + + +#ifndef C_CBCTESTTOUCHPANECONTAINER_H +#define C_CBCTESTTOUCHPANECONTAINER_H + +#include + +class CBCTestTouchPaneCase; + +/** +* container class +*/ +class CBCTestTouchPaneContainer: public CCoeControl + { + friend class CBCTestTouchPaneCase; + +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestTouchPaneContainer(); + + /** + * Destructor + */ + virtual ~CBCTestTouchPaneContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControlL( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // C_CBCTESTTOUCHPANECONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpanedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpanedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,70 @@ +/* +* 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 "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 C_CBCTESTTOUCHPANEDOCUMENT_H +#define C_CBCTESTTOUCHPANEDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestTouchPaneDocument application class. +*/ +class CBCTestTouchPaneDocument : public CEikDocument + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestTouchPaneDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestTouchPaneDocument(); + +private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestTouchPaneDocument( CEikApplication& aApp ); + +private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestTouchPaneAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_CBCTESTTOUCHPANEDOCUMENT_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpaneview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/inc/bctesttouchpaneview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,101 @@ +/* +* 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 "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 BC for TouchPane control API. +* +*/ + + +#ifndef C_CBCTESTTOUCHPANEVIEW_H +#define C_CBCTESTTOUCHPANEVIEW_H + +#include + +const TUid KBCTestTouchPaneViewId = { 1 }; + +class CBCTestTouchPaneContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestTouchPaneView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestTouchPaneView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestTouchPaneView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTouchPaneView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestTouchPaneContainer* iContainer; + + }; + +#endif // C_CBCTESTTOUCHPANEVIEW_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/sis/bctesttouchpane.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/sis/bctesttouchpane.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; BCTestTouchPane-3.pkg + +; Languages +&EN + +; Header +#{"BCTestTouchPane"},(0x20004769),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\BCTestTouchPane.exe"- +"!:\sys\bin\BCTestTouchPane.exe" + +"\epoc32\data\z\resource\apps\BCTestTouchPane.r01"- +"!:\resource\apps\BCTestTouchPane.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestTouchPane_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\BCTestTouchPane_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpaneapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpaneapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ +/* +* 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 "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: Avkon TouchPane test app +* +*/ + + +// INCLUDE FILES +#include "bctesttouchpaneapp.h" +#include "bctesttouchpanedocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestTouchPaneApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestTouchPaneApp::AppDllUid() const + { + return KUidBCTestTouchPane; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestTouchPaneApp::CreateDocumentL() +// Creates CBCTestTouchPaneDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestTouchPaneApp::CreateDocumentL() + { + return CBCTestTouchPaneDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestTouchPaneApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestTouchPaneApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpaneappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpaneappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 "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 bc for touchpane control api(s) +* +*/ + + +#include +#include + +#include "bctesttouchpaneappui.h" +#include "bctesttouchpane.hrh" +#include "bctesttouchpaneview.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneAppUi::CBCTestTouchPaneAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestTouchPaneView* view = CBCTestTouchPaneView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + } + +// ---------------------------------------------------------------------------- +// CBCTestTouchPaneAppUi::~CBCTestTouchPaneAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestTouchPaneAppUi::~CBCTestTouchPaneAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestTouchPaneAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpanecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpanecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,253 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctesttouchpanecase.h" +#include "bctesttouchpanecontainer.h" +#include "bctesttouchpane.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneCase* CBCTestTouchPaneCase::NewL( + CBCTestTouchPaneContainer* aContainer ) + { + CBCTestTouchPaneCase* self = new( ELeave ) CBCTestTouchPaneCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneCase::CBCTestTouchPaneCase( + CBCTestTouchPaneContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneCase::~CBCTestTouchPaneCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneCase::ConstructL() + { + BuildScriptL(); + iEnv = CEikonEnv::Static(); + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunctionL(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneCase::TestAknTouchPaneL +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneCase::TestAknTouchPaneL() + { + + if ( ! AknLayoutUtils::PenEnabled() ) + { + return; + } + + CAknTouchPane* touchPane1 = CAknTouchPane::NewL(); + delete touchPane1; + _LIT( KNewL1, "NewL test" ); + AssertTrueL( ETrue, KNewL1 ); + + CAknTouchPane* touchPane2 = CAknTouchPane::NewL( + R_BCTESTTOUCHPANE_TOUCHPANE ); + + CleanupStack::PushL( touchPane2 ); + _LIT( KNewL2, "NewL with resourceId test" ); + AssertTrueL( ETrue, KNewL2 ); + + TRect rect = iContainer->Rect(); + touchPane2->ReduceRect( rect ); + _LIT( KReduceRect, "ReduceRect test" ); + AssertTrueL( ETrue, KReduceRect ); + + CBCTestObserver* observer = new( ELeave ) CBCTestObserver(); + CleanupStack::PushL( observer ); + touchPane2->SetObserver( observer ); + _LIT( KSetObserver, "SetObserver test" ); + AssertTrueL( ETrue, KSetObserver ); + + CAknTouchPane::TVisibilityMode vmode; + touchPane2->SetVisibilityMode(vmode); + _LIT(KSetVisibilityMode, "SetVisibility test"); + AssertTrueL( ETrue, KSetVisibilityMode ); + + touchPane2->AllowInputMethodActivation( ETrue ); + _LIT( KAllowInputMethodActivation, + "AllowInputMethodActivation test" ); + AssertTrueL( ETrue, KAllowInputMethodActivation ); + + touchPane2->SetInputMethodIconActivated( ETrue ); + _LIT( KSetInputMethodIconActivated, + "SetInputMethodIconActivated test" ); + AssertTrueL( ETrue, KSetInputMethodIconActivated ); + + touchPane2->RefreshL(); + _LIT( KRefreshL, "RefreshL test" ); + AssertTrueL( ETrue, KRefreshL ); + +#if 0 //SDK API using Domain API Class + //komala + CBCTestFepPen* interface = new( ELeave ) CBCTestFepPen(); + CleanupStack::PushL( interface ); + touchPane2->SetFepPenSupportInterface( interface ); + _LIT( KSetFepPenSupportInterface, "SetFepPenSupportInterface test" ); + AssertTrueL( ETrue, KSetFepPenSupportInterface ); + CleanupStack::PopAndDestroy( interface ); +#endif + + TInt countControls = touchPane2->CountComponentControls(); + _LIT( KCountComponentControls, "CountComponentControls test" ); + AssertTrueL( ETrue, KCountComponentControls ); + + CCoeControl* componentControl = + touchPane2->ComponentControl( 0 ); + _LIT( KComponentControl, "ComponentControl test" ); + AssertTrueL( ETrue, KComponentControl ); + + iContainer->ActivateGc(); + touchPane2->Draw( iContainer->SystemGc(), *iContainer, rect ); + iContainer->DeactivateGc(); + _LIT( KDraw, "Draw test" ); + AssertTrueL( ETrue, KDraw ); + + touchPane2->HandleControlEventL( iContainer, + CAknTouchPane::EEventRequestExit ); + _LIT( KHandleControlEventL, "HandleControlEventL test" ); + AssertTrueL( ETrue, KHandleControlEventL ); + + //TKeyEvent evt = { EKeyPause, EStdKeySpace, 0, 0 }; + TWsEvent evt; + touchPane2->HandleWsEventL( evt, iContainer ); + _LIT( KHandleWsEventL, "HandleWsEventL test" ); + AssertTrueL( ETrue, KHandleWsEventL ); + + touchPane2->HandleResourceChange( KAknsMessageSkinChange ); + touchPane2->HandleResourceChange( KEikDynamicLayoutVariantSwitch ); + _LIT( KHandleResourceChange, "HandleResourceChange test" ); + AssertTrueL( ETrue, KHandleResourceChange ); + + touchPane2->MakeVisible( ETrue ); + _LIT( KMakeVisible, "MakeVisible test" ); + AssertTrueL( ETrue, KMakeVisible ); + + TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 }; + TKeyResponse response = touchPane2->OfferKeyEventL( keyEvent,EEventNull ); + _LIT( KOfferKeyEventL, "OfferKeyEventL test" ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + CleanupStack::PopAndDestroy( observer ); + CleanupStack::PopAndDestroy( touchPane2 ); + } +// --------------------------------------------------------------------------- +// CBCTestTouchPaneCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneCase::TestFunctionL() + { + TestAknTouchPaneL(); + } + +// --------------------------------------------------------------------------- +// CBCTestObserver::HandleTouchPaneSizeChange +// --------------------------------------------------------------------------- +// +void CBCTestObserver::HandleTouchPaneSizeChange() + { + + } + + +#if 0 //SDK API using Domain API Class +// --------------------------------------------------------------------------- +// CBCTestFepPen::ActivatePenInputL +// --------------------------------------------------------------------------- +// +//komala +void CBCTestFepPen::ActivatePenInputL() + { + + } + +// --------------------------------------------------------------------------- +// CBCTestFepPen::DeactivatePenInput +// --------------------------------------------------------------------------- +// +void CBCTestFepPen::DeactivatePenInputL() + { + + } +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpanecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpanecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,115 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctesttouchpanecontainer.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneContainer::CBCTestTouchPaneContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneContainer::~CBCTestTouchPaneContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestTouchPaneContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestTouchPaneContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestTouchPaneContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestTouchPaneContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneContainer::SetControlL +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneContainer::SetControlL( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpanedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpanedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon TouchPane test application +* +*/ + + +// INCLUDE FILES +#include "bctesttouchpanedocument.h" +#include "bctesttouchpaneappui.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestTouchPaneDocument* CBCTestTouchPaneDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestTouchPaneDocument* CBCTestTouchPaneDocument::NewL( CEikApplication& aApp ) + { + CBCTestTouchPaneDocument* self = + new( ELeave ) CBCTestTouchPaneDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestTouchPaneDocument::~CBCTestTouchPaneDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestTouchPaneDocument::~CBCTestTouchPaneDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestTouchPaneDocument::CBCTestTouchPaneDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestTouchPaneDocument::CBCTestTouchPaneDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestTouchPaneDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestTouchPaneDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestTouchPaneAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpaneview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttouchpane/src/bctesttouchpaneview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,130 @@ +/* +* 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 "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: view class +* +*/ + + +#include +#include + +#include "bctesttouchpane.hrh" +#include "bctesttouchpaneview.h" +#include "bctesttouchpanecontainer.h" +#include "bctestutil.h" +#include "bctesttouchpanecase.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneView* CBCTestTouchPaneView::NewL(CBCTestUtil* aUtil) + { + CBCTestTouchPaneView* self = new( ELeave ) CBCTestTouchPaneView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneView::CBCTestTouchPaneView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTTOUCHPANE_VIEW ); + + iContainer = new( ELeave ) CBCTestTouchPaneContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + + _LIT( KTestCase, "TouchPane test case" ); + iTestUtil->AddTestCaseL( CBCTestTouchPaneCase::NewL( iContainer ), + KTestCase ); + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTouchPaneView::~CBCTestTouchPaneView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestTouchPaneView::Id() const + { + return KBCTestTouchPaneViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestTouchPaneView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestTouchPaneView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bctesttreelist.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bctesttreelist.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,83 @@ +/* +* 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 "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: project specification file for the BCTestTreeList. +* +*/ + + +TARGET BCTestTreeList.exe +TARGETTYPE exe +UID 0x0 0x200089c1 + +VENDORID 0x101FB659 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestTreeList.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +//LANG 01 + +SOURCEPATH ../Src +SOURCE bctesttreelistapp.cpp +SOURCE bctesttreelistdocument.cpp +SOURCE bctesttreelistappui.cpp +SOURCE bctesttreelistview.cpp +SOURCE bctesttreelistcontainer.cpp +SOURCE bctesttreelistcase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../../BCTESTUTIL/Inc + +#ifdef SBSV2 + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +SYSTEMINCLUDE . /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib +LIBRARY aknhlist.lib +LIBRARY aknicon.lib + +START RESOURCE ../group/bctesttreelist_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bctesttreelist.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bctesttreelist.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,195 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTestTreeList.hrh" +#include "BCTestTreeList.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE + +// MACROS + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestTreeList"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesttreelist_menubar_main; + cba = r_bctesttreelist_cba_options_back; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesttreelist_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + }; + } + +//----------------------------------------------------------------------------- +// +// r_BCTestTreeList_view +// AVKON_VIEW for CBCTestTreeListView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesttreelist_view + { + menubar = r_bctesttreelist_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_BCTestTreeList_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesttreelist_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesttreelist_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesttreelist_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_BCTestTreeList_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttreelist_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctesttreelist_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_BCTestTreeList_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttreelist_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesttreelist_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesttreelist_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_BCTestTreeList_cba_options_back +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesttreelist_cba_options_back + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EAknSoftkeyBack; + txt = text_softkey_back; + } + }; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bctesttreelist_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bctesttreelist_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x200089c1 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestTreeList"; + localisable_resource_file = "\\resource\\apps\\BCTestTreeList"; + localisable_resource_id = R_BCTESTTREELIST_LOCALISABLE_APP_INFO; + hidden = KAppIsHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestTreeList.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelist.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelist.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestTreeList resource header file +* +*/ + + +#ifndef BCTestTreeList_HRH +#define BCTestTreeList_HRH + +enum TBCTestTreeListMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestTreeListCba + { + EBCTestTreeListCbaCmdNext = 0x6300 + }; + +#endif // BCTestTreeList_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelist.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelist.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ +/* +* 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 "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: BCTestTemplate localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTTREELIST" +#define qtn_apps_tavl_grid "BCTESTTREELIST" + +// MenuBar +#define qtn_bctesttreelist_autotest "Autotest" +#define qtn_bctesttreelist_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" +#define text_softkey_back "Back" + +// outline +#define qtn_bctesttreelist_outline1 "Outline01" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestTREELISTAPP_H +#define BCTestTREELISTAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestTreeList = { 0x200089c1 }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestTemplateApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestTreeListApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTemplateDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTemplate ). + * @return The value of KUidBCTestTemplate. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTTREELISTAPPUI_H +#define C_BCTESTTREELISTAPPUI_H + +#include + +class CBCTestTreeListView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestTreeListAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestTreeListAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestTreeListAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestTreeListView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTTEMPLATEAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_TEMPLATECASE_H +#define BCTEST_TEMPLATECASE_H + +#include "bctestcase.h" + +class CBCTestTreeListContainer; +class CCoeControl; +class CAknSingleStyleTreeList; + +/** +* test case for various list classes +*/ +class CBCTestTreeListCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestTreeListCase* NewL( CBCTestTreeListContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestTreeListCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Test CAknTreeList functions + */ + void TestTreeList(); + + /** + * Test CAknSingleStyleTreeList functions + */ + void TestSingleStyleTreeList(); + + /** + * Test CAknSingleColumnStyleTreeList functions + */ + void TestSingleColumnStyleTreeList(); + + /** + * Test ScrollBar functions + */ + void TestScrollBar(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTreeListCase( CBCTestTreeListContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to container. + * not own + */ + CBCTestTreeListContainer* iContainer; + + }; + + +#endif // BCTEST_TEMPLATECASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistcontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistcontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_TREELISTCONTAINER_H +#define BCTEST_TREELISTCONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestTreeListContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestTreeListContainer(); + + /** + * Destructor + */ + virtual ~CBCTestTreeListContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + + }; + +#endif // BCTEST_TEMPLATECONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTTREELISTDOCUMENT_H +#define C_BCTESTTREELISTDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestTemplateDocument application class. +*/ +class CBCTestTreeListDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestTreeListDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestTreeListDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestTreeListDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestTemplateAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTEMPLATEDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/inc/bctesttreelistview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_TEMPLATE_VIEW_H +#define BCTEST_TEMPLATE_VIEW_H + +#include + +const TUid KBCTestTreeListViewId = { 1 }; + +class CBCTestTreeListContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestTreeListView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestTreeListView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestTreeListView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestTreeListContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTreeListView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestTreeListContainer* iContainer; + + }; + +#endif // BCTEST_TEMPLATE_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/sis/bctesttreelist.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/sis/bctesttreelist.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesttreelist.pkg + +; Languages +&EN + +; Header +#{"bctesttreelist"},(0x200089c1),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctesttreelist.exe"- +"!:\sys\bin\bctesttreelist.exe" + +"\epoc32\data\z\resource\apps\bctesttreelist.r01"- +"!:\resource\apps\bctesttreelist.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctesttreelist_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctesttreelist_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestTreeListApp.h" +#include "BCTestTreeListDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestTemplateApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestTreeListApp::AppDllUid() const + { + return KUidBCTestTreeList; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestTemplateApp::CreateDocumentL() +// Creates CBCTestTemplateDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestTreeListApp::CreateDocumentL() + { + return CBCTestTreeListDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestTemplateApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestTreeListApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctesttreelistAppUi.h" +#include "bctesttreelist.hrh" +#include "bctesttreelistview.h" +#include "bctestutil.h" +#include "bctesttreelistcase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestTreeListAppUi::CBCTestTreeListAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestTreeListAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestTreeListView* view = CBCTestTreeListView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestTreeListCase::NewL( view->Container() ), + _L("TreeList test case") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateAppUi::~CBCTestTemplateAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestTreeListAppUi::~CBCTestTreeListAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestTreeListAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,668 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "BCTestTreeListcase.h" +#include "BCTestTreeListcontainer.h" +#include "BCTestTreeList.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListCase* CBCTestTreeListCase::NewL( + CBCTestTreeListContainer* aContainer ) + { + CBCTestTreeListCase* self = new( ELeave ) CBCTestTreeListCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListCase::CBCTestTreeListCase( + CBCTestTreeListContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListCase::~CBCTestTreeListCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::BuildScriptL() + { + const TInt scripts[] = + { + DELAY( 5 ), // delay between commands is 1*0.1 seconds = 0.1 seconds + LeftCBA, + LeftCBA + }; + AddTestScriptL( scripts, sizeof( scripts )/sizeof( TInt ) ); + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestTreeList(); + TestSingleStyleTreeList(); + TestSingleColumnStyleTreeList(); + TestScrollBar(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListCase::TestTreeList() +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::TestTreeList() + { + CAknTreeList* list = CAknSingleStyleTreeList::NewLC(); + + _LIT( KAddIconL, "Class CAknTreeList function AddIconL tested" ); + _LIT( KAddIconL2, "Class CAknTreeList function AddIconL2 tested" ); + _LIT( KRemoveIconL, "Class CAknTreeList function RemoveIconL tested" ); + _LIT( KAddColorIconL, "Class CAknTreeList function AddColorIconL tested" ); + _LIT( KAssignIconL, "Class CAknTreeList function AssignIconL tested" ); + _LIT( KAssignIconL2, "Class CAknTreeList function AssignIconL2 tested" ); + _LIT( KAssignColorIconL, + "Class CAknTreeList function AssignColorIconL tested" ); + _LIT( KTabModeFunctionIndicators, + "Class CAknTreeList function TabModeFunctionIndicators tested" ); + _LIT( KEnableTabModeFunctionIndicatorsL, + "Class CAknTreeList function EnableTabModeFunctionIndicatorsL tested" ); + _LIT( KFlags, "Class CAknTreeList function Flags tested" ); + _LIT( KSetFlags, "Class CAknTreeList function SetFlags tested" ); + _LIT( KMoveItemL, "Class CAknTreeList function MoveItemL tested" ); + _LIT( KRemoveItem, "Class CAknTreeList function RemoveItem tested" ); + _LIT( KExpandNode, "Class CAknTreeList function ExpandNode tested" ); + _LIT( KCollapseNode, "Class CAknTreeList function CollapseNode tested" ); + _LIT( KIsExpanded, "Class CAknTreeList function IsExpanded tested" ); + _LIT( KSetFocusedItem, "Class CAknTreeList function SetFocusedItem tested" ); + _LIT( KSetFocusedItem2, "Class CAknTreeList function SetFocusedItem2 tested" ); + _LIT( KFocusedItem, "Class CAknTreeList function FocusedItem tested" ); + _LIT( KHighlightRect, "Class CAknTreeList function HighlightRect tested" ); + _LIT( KChildCount, "Class CAknTreeList function ChildCount tested" ); + _LIT( KChild, "Class CAknTreeList function Child tested" ); + _LIT( KParent, "Class CAknTreeList function Parent tested" ); + _LIT( KContains, "Class CAknTreeList function Contains tested" ); + _LIT( KIsNode, "Class CAknTreeList function IsNode tested" ); + _LIT( KIsLeaf, "Class CAknTreeList function IsLeaf tested" ); + _LIT( KIsMarked, "Class CAknTreeList function IsMarked tested" ); + _LIT( KSetMarked, "Class CAknTreeList function SetMarked tested" ); + _LIT( KEnableMarking, "Class CAknTreeList function EnableMarking tested" ); + _LIT( KIsEmpty, "Class CAknTreeList function IsEmpty tested" ); + _LIT( KSetNonEmpty, "Class CAknTreeList function SetNonEmpty tested" ); + _LIT( KIsPersistent, "Class CAknTreeList function IsPersistent tested" ); + _LIT( KSetPersistent, "Class CAknTreeList function SetPersistent tested" ); + //_LIT( KTabModeFunctionIndicators, + //"Class CAknTreeList function TabModeFunctionIndicators tested" ); + //_LIT( KEnableTabModeFunctionIndicatorsL, + //"Class CAknTreeList function EnableTabModeFunctionIndicatorsL tested" ); + //_LIT( KSetFocusedItem, + //"Class CAknTreeList function SetFocusedItem tested" ); + _LIT( KFocusedItemIndex, + "Class CAknTreeList function FocusedItemIndex tested" ); + _LIT( KSetEmptyTextL, "Class CAknTreeList function SetEmptyTextL tested" ); + _LIT( KOfferKeyEventL, "Class CAknTreeList function OfferKeyEventL tested" ); + _LIT( KMakeVisible, "Class CAknTreeList function MakeVisible tested" ); + _LIT( KSetDimmed, "Class CAknTreeList function SetDimmed tested" ); + _LIT( KActivateL, "Class CAknTreeList function ActivateL tested" ); + _LIT( KHandleResourceChange, + "Class CAknTreeList function HandleResourceChange tested" ); + _LIT( KInputCapabilities, + "Class CAknTreeList function InputCapabilities tested" ); + _LIT( KCountComponentControls, + "Class CAknTreeList function CountComponentControls tested" ); + _LIT( KHandlePointerEventL, + "Class CAknTreeList function HandlePointerEventL tested" ); + _LIT( KSort, "Class CAknTreeList function KSort tested" ); + _LIT( KSort2, "Class CAknTreeList function KSort2 tested" ); + _LIT( KAddObserverL, "Class CAknTreeList function AddObserverL tested" ); + _LIT( KRemoveObserver, + "Class CAknTreeList function RemoveObserver tested" ); + _LIT( KGetMarkedItemsL, + "Class CAknTreeList function RemoveObserver tested" ); + _LIT( KGetMarkedItemsL2, + "Class CAknTreeList function RemoveObserver2 tested" ); + + + + // Test missing CAknTreeList class exports here! + + + // TInt AddIconL( CFbsBitmap*, CFbsBitmap*, TBool, TScaleMode ) + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + AknIconUtils::CreateIconLC( bitmap, mask, + AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_mce_priority_high, + EMbmAvkonQgn_indi_mce_priority_high_mask ); + TInt icon = list->AddIconL( bitmap, mask, ETrue, + EAspectRatioPreserved ); + CleanupStack::Pop( 2 ); + bitmap = NULL; + mask = NULL; + AssertTrueL( ETrue, KAddIconL ); + + + + TInt icon2 = list->AddIconL( KAknsIIDQsnBgScreen, + AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_mce_priority_high, EMbmAvkonQgn_indi_mce_priority_high_mask, + EAspectRatioPreserved ); + AssertTrueL( ETrue, KAddIconL2 ); + + list->RemoveIconL( icon2 ); + AssertTrueL( ETrue, KRemoveIconL ); + + + TInt id1 = list->AddColorIconL( KAknsIIDQgnPropHlFolder, + KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG10, + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_prop_hl_folder, + EMbmAvkonQgn_prop_hl_folder_mask, KRgbWhite, + EAspectRatioNotPreserved ); + AssertTrueL( ETrue, KAddColorIconL ); + + + + + // void AssignIconL( TInt, CFbsBitmap*, CFbsBitmap*, TBool, TScaleMode ) + AknIconUtils::CreateIconLC( bitmap, mask, + AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_mce_priority_high, + EMbmAvkonQgn_indi_mce_priority_high_mask ); + list->AssignIconL( icon, bitmap, mask, ETrue, EAspectRatioNotPreserved ); + CleanupStack::Pop( 2 ); + AssertTrueL( ETrue, KAssignIconL ); + + + list->AssignIconL( AknTreeListIconID::KDefaultFileIndication, + KAknsIIDQgnPropHlFolderOpen,AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_prop_hl_folder_open, EMbmAvkonQgn_prop_hl_folder_open_mask, + EAspectRatioPreserved ); + AssertTrueL( ETrue, KAssignIconL2 ); + + + + list->AssignColorIconL( AknTreeListIconID::KDefaultFileIndication, + KAknsIIDQgnPropHlFolderOpen, + KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG10, + AknIconUtils::AvkonIconFileName(), EMbmAvkonQgn_prop_hl_folder_open, + EMbmAvkonQgn_prop_hl_folder_open_mask, KRgbWhite, + EAspectRatioPreserved ); + AssertTrueL( ETrue, KAssignColorIconL ); + + + // TBool TabModeFunctionIndicators() const + list->TabModeFunctionIndicators(); + AssertTrueL( ETrue, KTabModeFunctionIndicators ); + + // void EnableTabModeFunctionIndicatorsL( TBool ) + list->EnableTabModeFunctionIndicatorsL( ETrue ); + AssertTrueL( ETrue, KEnableTabModeFunctionIndicatorsL ); + + TUint32 flag; + // virtual void SetFlags( TUint32 aFlags ) + list->SetFlags( flag ); + AssertTrueL( ETrue, KSetFlags ); + + // TUint32 Flags() const + flag = list->Flags(); + AssertTrueL( ETrue, KFlags ); + + TInt index; + TBool mark = ETrue; + TBool draw=ETrue; + TEventCode code; + TKeyEvent event; + TKeyResponse resp; + + resp = list->OfferKeyEventL( event, code ); + AssertTrueL( ETrue, KOfferKeyEventL ); + + list->MakeVisible(mark); + AssertTrueL( ETrue, KMakeVisible ); + + list->SetDimmed(mark); + AssertTrueL( ETrue, KSetDimmed ); + + list->ActivateL(); + AssertTrueL( ETrue, KActivateL ); + + list->HandleResourceChange(index); + AssertTrueL( ETrue, KHandleResourceChange ); + + TCoeInputCapabilities caps; + caps = list->InputCapabilities(); + AssertTrueL( ETrue, KInputCapabilities ); + + index = list->CountComponentControls(); + AssertTrueL( ETrue, KCountComponentControls ); + + TRect rect; + rect = list->HighlightRect(); + AssertTrueL( ETrue, KHighlightRect ); + + index = list->FocusedItemIndex(); + AssertTrueL( ETrue, KFocusedItemIndex ); + + //TDesC text; + list->SetEmptyTextL(_L("")); + AssertTrueL( ETrue, KSetEmptyTextL ); + + list->SetPersistent(mark, mark); + AssertTrueL( ETrue, KSetPersistent ); + + TPointerEvent TPtr; + list->HandlePointerEventL(TPtr); + AssertTrueL( ETrue, KHandlePointerEventL ); + + + + MAknCustomTreeOrdering* custom; + list->Sort(custom, mark); + AssertTrueL( ETrue, KSort2 ); + + MAknTreeListObserver* obs; + list->AddObserverL(obs); + AssertTrueL( ETrue, KAddObserverL ); + + list->RemoveObserver(obs); + AssertTrueL( ETrue, KRemoveObserver ); + + TAknTreeItemID item2; + item2 = list->FocusedItem(); + AssertTrueL( ETrue, KFocusedItem ); + + + index = list->ChildCount(KAknTreeIIDRoot); + AssertTrueL( ETrue, KChildCount ); + + //item2 = list->Child(KAknTreeIIDRoot, index); + //AssertTrueL( ETrue, KChild ); + + draw = list->Contains(KAknTreeIIDRoot); + AssertTrueL( ETrue, KContains ); + + draw = list->IsNode(KAknTreeIIDRoot); + AssertTrueL( ETrue, KIsNode ); + + draw = list->IsLeaf(KAknTreeIIDRoot); + AssertTrueL( ETrue, KIsLeaf ); + + draw = list->IsMarked(KAknTreeIIDRoot); + AssertTrueL( ETrue, KIsMarked ); + + list->SetMarked(KAknTreeIIDRoot, mark, draw); + AssertTrueL( ETrue, KSetMarked ); + + list->EnableMarking(KAknTreeIIDRoot, mark); + AssertTrueL( ETrue, KEnableMarking ); + + draw = list->IsEmpty(KAknTreeIIDRoot); + AssertTrueL( ETrue, KIsEmpty ); + + list->SetNonEmpty(KAknTreeIIDRoot, mark, mark); + AssertTrueL( ETrue, KSetNonEmpty ); + + draw = list->IsPersistent(KAknTreeIIDRoot); + AssertTrueL( ETrue, KIsPersistent ); + + + draw=list->TabModeFunctionIndicators(); + AssertTrueL( ETrue, KTabModeFunctionIndicators ); + + list->EnableTabModeFunctionIndicatorsL(mark); + AssertTrueL( ETrue, KEnableTabModeFunctionIndicatorsL ); + + //TAknTreeItemID node; + list->Sort(KAknTreeIIDRoot, mark, mark); + AssertTrueL( ETrue, KSort ); + + + list->SetFocusedItem( KAknTreeIIDRoot, index, mark ); + AssertTrueL( ETrue, KSetFocusedItem2 ); + + list->SetFocusedItem(KAknTreeIIDRoot); + AssertTrueL( ETrue, KSetFocusedItem ); + + RArray nodearray; + list->GetMarkedItemsL(nodearray); + AssertTrueL( ETrue, KGetMarkedItemsL ); + + list->GetMarkedItemsL(KAknTreeIIDRoot, nodearray); + AssertTrueL( ETrue, KGetMarkedItemsL2 ); + + + + //TAknTreeItemID item1, item2; + + + list->RemoveItem( KAknTreeIIDRoot, draw ); + AssertTrueL( ETrue, KRemoveItem ); + + list->ExpandNode( KAknTreeIIDRoot, draw ); + AssertTrueL ( ETrue, KExpandNode ); + + list->CollapseNode ( KAknTreeIIDRoot, draw ); + AssertTrueL ( ETrue, KCollapseNode ); + + draw = list->IsExpanded(KAknTreeIIDRoot); + AssertTrueL(ETrue, KIsExpanded ); + + list->MoveItemL(KAknTreeIIDRoot, KAknTreeIIDNone, draw); + AssertTrueL( ETrue, KMoveItemL ); + + item2 = KAknTreeIIDRoot; + TAknTreeItemID item1; + item1 = list->Parent(item2); + AssertTrueL( ETrue, KParent ); + + + CleanupStack::PopAndDestroy( list ); + } + + +// --------------------------------------------------------------------------- +// CBCTestTreeListCase::TestSingleStyleTreeList() +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::TestSingleStyleTreeList() + { + _LIT( strNewL, "Class CAknSingleStyleTreeList function NewL tested" ); + _LIT( strNewL0, + "Class CAknSingleStyleTreeList function NewL( const CCoeControl ) tested" ); + _LIT( strNewLC, "Class CAknSingleStyleTreeList fuction NewLC tested" ); + _LIT( strNewLC0, + "Class CAknSingleStyleTreeList function NewLC( const CCoeControl ) tested" ); + _LIT( strAddNodeL, "Class CAknSingleStyleTreeList function AddNodeL tested" ); + _LIT( strAddLeafL, "Class CAknSingleStyleTreeList function AddLeafL tested" ); + _LIT( strSetTextL, "Class CAknSingleStyleTreeList function SetTextL tested" ); + _LIT( strText, "Class CAknSingleStyleTreeList function Text tested" ); + _LIT( strSetIcon, "Class CAknSingleStyleTreeList function SetIcon tested" ); + _LIT( strIcon, "Class CAknSingleStyleTreeList function Icon tested" ); + _LIT( strSortL, "Class CAknSingleStyleTreeList function SortL tested" ); + _LIT( strSetFlags, "Class CAknSingleStyleTreeList function SetFlags tested"); + + CAknSingleStyleTreeList* sList = CAknSingleStyleTreeList::NewL(); + CleanupStack::PushL( sList ); + AssertNotNullL( sList, strNewL ); + CleanupStack::PopAndDestroy( sList ); + + CAknSingleStyleTreeList* iList = CAknSingleStyleTreeList::NewL( *iContainer ); + //CleanupStack::PushL( iList ); + AssertNotNullL( iList, strNewL0 ); + //CleanupStack::PopAndDestroy( iList ); + + + CAknSingleStyleTreeList* aList = CAknSingleStyleTreeList::NewLC(); + AssertNotNullL( aList, strNewLC ); + CleanupStack::PopAndDestroy( aList ); + + CAknSingleStyleTreeList* tList = CAknSingleStyleTreeList::NewLC( *iContainer ); + AssertNotNullL( tList, strNewLC0 ); + + _LIT( KNodeText, "Node" ); + TUint32 flags = CAknSingleStyleTreeList::EPersistent; + TAknTreeItemID node = tList->AddNodeL( KAknTreeIIDRoot, + KNodeText, flags, EFalse ); + AssertTrueL( ETrue, strAddNodeL ); + + _LIT( KLeafText, "Leaf" ); + TAknTreeItemID leaf = tList->AddLeafL( node, KLeafText, flags, EFalse ); + AssertTrueL( ETrue, strAddLeafL ); + + tList->SetTextL( node, KNodeText, ETrue ); + AssertTrueL( ETrue, strSetTextL ); + TDesC text = tList->Text( node ); + AssertTrueL( ETrue, strText ); + + tList->SetIcon( leaf, + CAknSingleStyleTreeList::ELeaf, EMbmAvkonQgn_prop_battery_icon, ETrue ); + AssertTrueL( ETrue, strSetIcon ); + TInt iIcon = tList->Icon( leaf, CAknSingleStyleTreeList::ELeaf ); + AssertTrueL( ETrue, strIcon ); + + tList->SortL( CAknSingleStyleTreeList::EAscendingAlphabeticalOrdering, ETrue ); + AssertTrueL( ETrue, strSortL ); + + TUint32 flag; + tList->SetFlags( flag ); + AssertTrueL( ETrue, strSetFlags ); + CleanupStack::PopAndDestroy( tList ); + + + } + + +// --------------------------------------------------------------------------- +// CBCTestTreeListCase::TestSingleColumnStyleTreeList +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::TestSingleColumnStyleTreeList() + { + _LIT( KNewL1, "Class CAknSingleColumnStyleTreeList function NewL() tested" ); + _LIT( KNewL2, "Class CAknSingleColumnStyleTreeList function NewL( const CCoeControl& ) tested" ); + _LIT( KNewLC1, "Class CAknSingleColumnStyleTreeList function NewLC() tested" ); + _LIT( KNewLC2, "Class CAknSingleColumnStyleTreeList function NewLC( const CCoeControl& ) tested" ); + _LIT( KAddSimpleDataRowL, + "Class CAknSingleColumnStyleTreeList function AddSimpleDataRowL( TAknTreeItemID, const TDesC&, TUint32, TBool ) tested" ); + _LIT( KAddCoreDataRowL1, + "Class CAknSingleColumnStyleTreeList function AddCoreDataRowL( TAknTreeItemID, const TDesC&, const TDesC&, TUint32, TBool ) tested" ); + _LIT( KAddCoreDataRowL2, + "Class CAknSingleColumnStyleTreeList function AddCoreDataRowL( TAknTreeItemID, const TDesC&, const TDesC&, const TDesC&, TUint32, TBool ) tested" ); + _LIT( KAddSubtitleRowL, + "Class CAknSingleColumnStyleTreeList function AddSubtitleRowL( TAknTreeItemID, const TDesC&, TUint32, TBool ) tested" ); + _LIT( KText1, + "Class CAknSingleColumnStyleTreeList function Text( TAknTreeItemID ) const tested" ); + _LIT( KText2, + "Class CAknSingleColumnStyleTreeList function Text( TAknTreeItemID, TInt ) const tested" ); + _LIT( KSetTextL1, + "Class CAknSingleColumnStyleTreeList function SetTextL( TAknTreeItemID, const TDesC&, TBool ) tested" ); + _LIT( KSetTextL2, + "Class CAknSingleColumnStyleTreeList function SetTextL( TAknTreeItemID, const TDesC&, TInt, TBool ) tested" ); + _LIT( KIsEmphasised, + "Class CAknSingleColumnStyleTreeList function IsEmphasised( TAknTreeItemID ) const tested" ); + _LIT( KSetEmphasis, + "Class CAknSingleColumnStyleTreeList function SetEmphasis( TAknTreeItemID, TBool, TBool ) tested" ); + _LIT( KIsThirdColumnEnabled, + "Class CAknSingleColumnStyleTreeList function IsThirdColumnEnabled( TAknTreeItemID ) const tested" ); + _LIT( KEnableThirdColumn, + "Class CAknSingleColumnStyleTreeList function EnableThirdColumn( TAknTreeItemID, TBool, TBool ) tested" ); + _LIT( KIcon, + "Class CAknSingleColumnStyleTreeList function Icon( TAknTreeItemID, TIconType ) const tested" ); + _LIT( KSetIcon, + "Class CAknSingleColumnStyleTreeList function SetIcon( const TAknTreeItemID, const TIconType, const TInt, const TBool ) tested" ); + _LIT( KItemType, + "Class CAknSingleColumnStyleTreeList function TItemType CAknSingleColumnStyleTreeList::ItemType( TAknTreeItemID ) const tested" ); + _LIT( KHandleResourceChane, + "Class CAknSingleColumnStyleTreeList function HandleResourceChane( TInt ) tested" ); + + // static CAknSingleColumnStyleTreeList* NewL() + CAknSingleColumnStyleTreeList* list = CAknSingleColumnStyleTreeList::NewL(); + CleanupStack::PushL( list ); + AssertNotNullL( list, KNewL1 ); + CleanupStack::PopAndDestroy( list ); + list = NULL; + + // static CAknSingleColumnStyleTreeList* NewL( const CCoeControl& ) + list = CAknSingleColumnStyleTreeList::NewL( *iContainer ); + CleanupStack::PushL( list ); + AssertNotNullL( list, KNewL2 ); + CleanupStack::PopAndDestroy( list ); + list = NULL; + + // static CAknSingleColumnStyleTreeList* NewLC() + list = CAknSingleColumnStyleTreeList::NewLC(); + AssertNotNullL( list, KNewLC1 ); + CleanupStack::PopAndDestroy( list ); + list = NULL; + + // static CAknSingleColumnStyleTreeList* NewLC( const CCoeControl& ) + list = CAknSingleColumnStyleTreeList::NewLC( *iContainer ); + AssertNotNullL( list, KNewLC2 ); + + // TAknTreeItemID AddSimpleDataRowL( TAknTreeItemID, const TDesC&, + // TUint32, TBool ) + TAknTreeItemID simpleDataRow = + list->AddSimpleDataRowL( KAknTreeIIDRoot, _L("text"), NULL, EFalse ); + AssertTrueL( simpleDataRow != KAknTreeIIDNone, KAddSimpleDataRowL ); + + // TAknTreeItemID AddCoreDataRowL( TAknTreeItemID, const TDesC&, + // const TDesC&, TUint32, TBool ) + TAknTreeItemID coreDataRow1 = + list->AddCoreDataRowL( KAknTreeIIDRoot, _L( "C1" ), _L("C2"), + NULL, EFalse ); + AssertTrueL( coreDataRow1 != KAknTreeIIDNone, KAddCoreDataRowL1 ); + + // TAknTreeItemID AddCoreDataRowL( TAknTreeItemID, const TDesC&, + // const TDesC&, const TDesC&, TUint32, TBool ) + TAknTreeItemID coreDataRow2 = + list->AddCoreDataRowL( KAknTreeIIDRoot, _L( "C1" ), _L("C2"), _L("C3"), + NULL, EFalse ); + AssertTrueL( coreDataRow2 != KAknTreeIIDNone, KAddCoreDataRowL2 ); + + // TAknTreeItemID AddSubtitleRowL( TAknTreeItemID, const TDesC&, + // TUint32, TBool ) + TAknTreeItemID subtitleRow = + list->AddSubtitleRowL( KAknTreeIIDRoot, _L("subtitle"), NULL, EFalse ); + AssertTrueL( subtitleRow != KAknTreeIIDNone, KAddSubtitleRowL ); + + // const TDesC& Text( TAknTreeItemID ) const + const TDesC& text = list->Text( simpleDataRow ); + AssertTrueL( text != KNullDesC, KText1 ); + + // const TDesC& Text( TAknTreeItemID, TInt ) const + const TDesC& column = list->Text( coreDataRow1, 1 ); + AssertTrueL( column != KNullDesC, KText2 ); + + // void SetTextL( TAknTreeItemID, const TDesC&, TBool ) + list->SetTextL( subtitleRow, _L("another subtitle"), EFalse ); + AssertTrueL( ETrue, KSetTextL1 ); + + // void SetTextL( TAknTreeItemID, const TDesC& aText, TInt, TBool ) + list->SetTextL( coreDataRow2, _L("column"), 2, EFalse ); + AssertTrueL( ETrue, KSetTextL2 ); + + // TBool IsEmphasised( TAknTreeItemID ) const + list->IsEmphasised( coreDataRow1 ); + AssertTrueL( ETrue, KIsEmphasised ); + + // void SetEmphasis( TAknTreeItemID, TBool, TBool ) + list->SetEmphasis( coreDataRow1, ETrue, EFalse ); + AssertTrueL( ETrue, KSetEmphasis ); + + // TBool IsThirdColumnEnabled( TAknTreeItemID ) const + list->IsThirdColumnEnabled( coreDataRow1 ); + AssertTrueL( ETrue, KIsThirdColumnEnabled ); + + // void EnableThirdColumn( TAknTreeItemID, TBool, TBool ) + list->EnableThirdColumn( coreDataRow1, ETrue, EFalse ); + AssertTrueL( ETrue, KEnableThirdColumn ); + + // TInt Icon( TAknTreeItemID, TIconType ) const + list->Icon( coreDataRow1, CAknSingleColumnStyleTreeList::ELeaf ); + AssertTrueL( ETrue, KIcon ); + + // void SetIcon( const TAknTreeItemID, const TIconType, const TInt, + // const TBool ) + list->SetIcon( coreDataRow1, CAknSingleColumnStyleTreeList::ELeaf, + 4, EFalse ); + AssertTrueL( ETrue, KSetIcon ); + + // CAknSingleColumnStyleTreeList::TItemType ItemType( + // TAknTreeItemID aItem ) const + CAknSingleColumnStyleTreeList::TItemType type = + list->ItemType( coreDataRow1 ); + AssertIntL( CAknSingleColumnStyleTreeList::ECoreDataRow, type, + KItemType ); + + TInt icon=NULL; + list->HandleResourceChange( icon ); + AssertTrueL( ETrue, KHandleResourceChane ); + + CleanupStack::PopAndDestroy( list ); + + } + + +// --------------------------------------------------------------------------- +// CBCTestTreeListCase::TestScrollBar +// --------------------------------------------------------------------------- +// +void CBCTestTreeListCase::TestScrollBar() + { + + _LIT( strText, "Popup info Text" ); + _LIT( strPopupInfoTextL, + "Class CAknDoubleSpanScrollBar function SetScrollPopupInfoTextL tested" ); + CAknDoubleSpanScrollBar *scrbar = + new( ELeave ) CAknDoubleSpanScrollBar( iContainer ); + CleanupStack::PushL( scrbar ); + scrbar->SetScrollPopupInfoTextL( strText ); + AssertTrueL( ETrue, strPopupInfoTextL ); + CleanupStack::PopAndDestroy( scrbar ); + + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistcontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistcontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctesttreelistcontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListContainer::CBCTestTreeListContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListContainer::~CBCTestTreeListContainer() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTreeListContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestTreeListContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestTreeListContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestTreeListDocument.h" +#include "BCTestTreeListAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestTemplateDocument* CBCTestTemplateDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestTreeListDocument* CBCTestTreeListDocument::NewL( CEikApplication& aApp ) + { + CBCTestTreeListDocument* self = new( ELeave ) CBCTestTreeListDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateDocument::~CBCTestTemplateDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestTreeListDocument::~CBCTestTreeListDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateDocument::CBCTestTemplateDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestTreeListDocument::CBCTestTreeListDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestTemplateDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestTreeListDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestTreeListAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/bctesttreelist/src/bctesttreelistview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "BCTestTreeList.hrh" +#include +#include "BCTestTreeListview.h" +#include "BCTestTreeListcontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListView* CBCTestTreeListView::NewL(CBCTestUtil* aUtil) + { + CBCTestTreeListView* self = new( ELeave ) CBCTestTreeListView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListView::CBCTestTreeListView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTreeListView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTTREELIST_VIEW ); + + iContainer = new( ELeave ) CBCTestTreeListContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTreeListView::~CBCTestTreeListView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestTreeListView::Id() const + { + return KBCTestTreeListViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestTreeListView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestTreeListView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListView::Container +// --------------------------------------------------------------------------- +// +CBCTestTreeListContainer* CBCTestTreeListView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestTreeListView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestTreeListView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/group/UIFW.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/group/UIFW.bat Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +@rem +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem + +md e:\bctest + +md e:\bctest\results + + +copy C:\BCTestLog\BCTESTBUTTON_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTBUTTON.txt + +copy C:\BCTestLog\BCTestChoicelist_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTCHOICELIST.txt + +copy C:\BCTestLog\bctestmix50_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTMIX50.txt + +copy C:\BCTestLog\bctesttoolbar_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTTOOLBAR.txt + +copy C:\BCTestLog\BCTestTouchPane_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTTOUCHPANE.txt + +copy C:\BCTestLog\bctesttreelist_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTTREELIST.txt + +copy C:\BCTestLog\bctestpane_TestLog.txt e:\bctest\results\UIFW_AVKON_BCTESTPANE.txt + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/S60_SDK5.0/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +/* +* 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 "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: build information +* +*/ + + +PRJ_EXPORTS +../../bctestlauncher/group/config.xml /epoc32/winscw/c/bctestlog/config.xml + +PRJ_MMPFILES +../../bctestutil/group/bctestutil.mmp + +../../bctestlauncher/group/bctestlauncher.mmp + +../bctestbutton/group/bctestbutton.mmp +../bctestchoicelist/group/bctestchoicelist.mmp +../bctestmix50/group/bctestmix50.mmp +../bctesttoolbar/group/bctesttoolbar.mmp +../bctesttouchpane/group/bctesttouchpane.mmp +../bctesttreelist/group/bctesttreelist.mmp +../bctestpane/group/bctestpane.mmp + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/aif/bctestlauncheraif.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/aif/bctestlauncheraif.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 "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: RSS for creating the aif file for BCTestLauncher. +* +*/ + + + +// INCLUDES +#include + +// CONSTANTS + +// RESOURCE DEFINITIONS +RESOURCE AIF_DATA + { + app_uid = 0x101F84E2; + groupName="BCTest"; + caption_list= + { + CAPTION + { + code = ELangEnglish; + caption = "BCTestLauncher"; + } + }; + + num_icons = 1; + embeddability = KAppNotEmbeddable; + newfile = KAppDoesNotSupportNewFile; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/aif/bctestlaunchericon.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/aif/bctestlaunchericon.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/aif/bctestlaunchericonmask.bmp Binary file apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/aif/bctestlaunchericonmask.bmp has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* 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 "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: This is project specification file for the BCTestLauncher. +* +*/ + + + + +TARGET bctestlauncher.exe +TARGETTYPE exe +UID 0x0 0x20004743 + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent\ + UserEnvironment + +TARGETPATH sys/bin + +START RESOURCE bctestlauncher.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +LANG 01 + +#ifdef SBSV2 + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 +SOURCEPATH ../src + +SOURCE bctestlauncherapp.cpp +SOURCE bctestlauncherappui.cpp +SOURCE bctestlauncherdocument.cpp +SOURCE bctestlaunchercontainer.cpp +SOURCE bctestlauncherview.cpp +SOURCE bctestapplication.cpp +SOURCE bctestrunner.cpp +SOURCE bcteststrmlogger.cpp +SOURCE bctestconf.cpp + +USERINCLUDE . ../inc +USERINCLUDE ../../bctestutil/inc + + + +LIBRARY EUSER.LIB +LIBRARY WS32.LIB +LIBRARY CONE.LIB +LIBRARY EIKCORE.LIB +LIBRARY AVKON.LIB +LIBRARY APPARC.LIB +LIBRARY eikcoctl.lib +LIBRARY efsrv.lib +LIBRARY apgrfx.lib +LIBRARY commonengine.lib +LIBRARY CentralRepository.lib +LIBRARY bafl.lib +LIBRARY sysutil.lib +LIBRARY estor.lib + +START RESOURCE ../group/bctestlauncher_reg.rss +DEPENDS bctestlauncher.rsg +HEADER +TARGETPATH /private/10003a3f/apps +END + +// Creates Mbm file. +START BITMAP bctestlauncher_aif.mbm +HEADER +TARGETPATH /resource/apps +sourcepath ../aif +source c8 bctestlaunchericon.bmp +source c8 bctestlaunchericonmask.bmp +end + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,317 @@ +/* +* Copyright (c) 2006-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: This file contains all the resources for the BCTestLauncher. +* +*/ + + +NAME AUTO + +#include +#include +#include +#include +#include + +#include + +#include "BCTestLauncher.hrh" +#include "BCTestLauncher.loc" + +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define BCTESTLAUNCHER_BMP_FNAME APP_BITMAP_DIR"\\bctestlauncher.mbm" + +#define BCTESTLAUNCHER_LISTBOX_HEIGHT 3 +#define BCTESTLAUNCHER_LISTBOX_WIDTH 3 + +// RESOURCE DEFINITIONS +//---------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// Symbian OS requirement +// +//---------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//---------------------------------------------------------------------------- +// +// TBUF +// Symbian OS requirement +// +//---------------------------------------------------------------------------- +// +RESOURCE TBUF + { + buf = qtn_bctestlauncher_caption; + } + +//---------------------------------------------------------------------------- +// +// EIK_APP_INFO +// Symbian OS requirement +// +//---------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + status_pane = r_bctestlauncher_status_pane; + } + +// --------------------------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctestlauncher_localisable_app_info + { + short_caption = qtn_apps_tapb_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tapb_list; + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlauncher_view +// View definition +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctestlauncher_view + { + menubar = r_bctestlauncher_menubar_view; + cba = r_bctestlauncher_softkeys_run_exit; + } + +// --------------------------------------------------------------------------- +// +// r_bctestlauncher_menubar +// Menu bar (dummy) +// +// --------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctestlauncher_menubar_view + { + titles= + { + MENU_TITLE + { + menu_pane = r_bctestlauncher_main_menu; + txt = qtn_bctestlauncher_menu; + } + }; + } + +// --------------------------------------------------------------------------- +// +// r_bctestlauncher_main_menu +// Menu pane, put new applications here +// +// --------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlauncher_main_menu + { + items= + { + MENU_ITEM + { + command = ESdkVersion; + txt = qtn_bctestlauncher_sdkversion; + }, + MENU_ITEM + { + command = EAutoTestAll; + txt = qtn_bctestlauncher_all; + }, + MENU_ITEM + { + command = EAutoTestSelection; + txt = qtn_bctestlauncher_selection; + }, + MENU_ITEM + { + txt = qtn_bctestlauncher_separate; + cascade = r_bctestlauncher_separate_tests; + }, + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_bctestlauncher_exit; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlauncher_separate_tests +// Menu for separate test applications +// +//---------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctestlauncher_separate_tests + { + } + +//---------------------------------------------------------------------------- +// +// r_bctestlauncher_status_pane +// Status pane definition +// +//---------------------------------------------------------------------------- +// +RESOURCE STATUS_PANE_APP_MODEL r_bctestlauncher_status_pane + { + panes= + { + SPANE_PANE + { + id = EEikStatusPaneUidNavi; + type = EAknCtNaviPane; + resource = r_bctestlauncher_navi_decorator; + } + }; + } + +//---------------------------------------------------------------------------- +// +// r_bctestlauncher_navi_decorator +// Status pane definition of details +// +//---------------------------------------------------------------------------- +// +RESOURCE NAVI_DECORATOR r_bctestlauncher_navi_decorator + { + type = ENaviDecoratorControlTabGroup; + control = TAB_GROUP + { + tab_width = EAknTabWidthWithOneTab; + active = 0; + tabs = { + TAB + { + id = EBCTestLauncherView1Tab; + txt = qtn_bctestlauncher_view1_tab; + } + }; + }; + } + +RESOURCE CBA r_bctestlauncher_softkeys_run_exit + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = qtn_bctestlauncher_softkey_run; + }, + CBA_BUTTON + { + id=EAknCmdExit; + txt = qtn_bctestlauncher_exit; + } + }; + } + +RESOURCE TBUF40 r_bctestlauncher_title_setdraw + { + buf=qtn_bctestlauncher_title_setdraw; + } + +RESOURCE TBUF40 r_bctestlauncher_title_incdraw + { + buf=qtn_bctestlauncher_title_incdraw; + } + + +//---------------------------------------------------------------------------- +// +// r_bctestlauncher_multi_selection_query +// Resource of Multi Selection Query. +// +//---------------------------------------------------------------------------- +// +RESOURCE DIALOG r_bctestlauncher_multi_selection_query + { + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSingleGraphicPopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxMultiselectionList; + height = BCTESTLAUNCHER_LISTBOX_HEIGHT; + width = BCTESTLAUNCHER_LISTBOX_WIDTH; + }; + heading = qtn_bctestlauncher_selection_title; + }; + } + }; + } + +//---------------------------------------------------- +// +// r_bctestlauncher_sdkversion_query +// sdk version query for the application +// +//---------------------------------------------------- +// +RESOURCE DIALOG r_bctestlauncher_sdkversion_query + { + flags=EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtQuery; + id = EDataQueryDlgCIdDataQuery; + control = AVKON_DATA_QUERY + { + layout = EDataLayout; + control = + AVKON_INTEGER_EDWIN + { + min = 30; + max = 40; + }; + }; + } + }; + } +//----------------------------------------------------------------------------- +// +// r_bctestlauncher_query_caption +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF64 r_bctestlauncher_query_caption + { + buf = qtn_bctestlauncher_query_caption; + } +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher_caption.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher_caption.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2006-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: This file contains caption resource of BCTestLauncher. +* +*/ + + + +#include "bctestlauncher.loc" +#include + +RESOURCE CAPTION_DATA + { + caption = qtn_apps_tapb_list; + shortcaption = qtn_apps_tapb_grid; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bctestlauncher_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2006-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: This file contains registration info for the BCTestLauncher. +* +*/ + + +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x20004743 // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestLauncher"; + + localisable_resource_file = "\\resource\\apps\\bctestlauncher"; + localisable_resource_id = R_BCTESTLAUNCHER_LOCALISABLE_APP_INFO; + + hidden = KAppNotHidden; + embeddability = KAppNotEmbeddable; + //group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2006-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: Information required for building the BCTestLauncher +* +*/ + + + +PRJ_EXPORTS +config.xml /epoc32/winscw/c/BCTestLog/config.xml + +PRJ_MMPFILES +BCTestLauncher.mmp + +PRJ_TESTMMPFILES + +// End of file. diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config_3x.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config_3x.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config_dom32.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config_dom32.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config_dom50.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/group/config_dom50.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/StreamLogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/StreamLogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,127 @@ +/* +* 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 "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: Handles log writing. +* +*/ + + +#ifndef C_STREAMLOGGER_H +#define C_STREAMLOGGER_H + +#include // link against efsrv.lib +#include + +#define CERR StreamLogger::begin() + +/** + * usage: StreamLogger::begin()<<"your string"<FsSession(); + if ( file.Open( fs, KLogFile, EFileWrite | EFileShareAny ) + != KErrNone ) + file.Create( fs, KLogFile, EFileWrite | EFileShareAny ); + + TInt pos=0; // this must be 0 + file.Seek( ESeekEnd, pos ); + } + + ~LogFile() + { + file.Close(); + } + + RFile& operator()(){ return file; } + private: + RFile file; + }; + +public: + ~StreamLogger(){} + + static StreamLogger& begin(){ + StreamLogger* self = new (ELeave) StreamLogger; + return *self; + } + + void suicide(){ delete this; } + + StreamLogger& operator<<(const TDesC& aText) + { + LogFile file; + + HBufC8* text = HBufC8::NewL( aText.Length() ); + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + + return *this; + } + + StreamLogger& operator<<(TInt n) + { + LogFile file; + + TInt i=1; + for(TInt v=n; v!=0; ++i, v/=10){} + HBufC* text = HBufC::NewL( i ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, n ); + HBufC8* text8 = HBufC8::NewL( textPtr.Length() ); + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + + return *this; + } + + StreamLogger& cr() + { + LogFile file; + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + return *this; + } + + typedef StreamLogger& (*_Manipulator)(StreamLogger&); + StreamLogger& operator<<(_Manipulator op){ return op(*this); } + +private: + StreamLogger(){} //disable ctor +}; + +inline StreamLogger& end(StreamLogger& self){ self.suicide(); return self; } + +inline StreamLogger& endl(StreamLogger& self){ self.cr(); return self; } + +#endif //C_STREAMLOGGER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestapplication.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestapplication.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2006-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 case class, user will create own test case class by +* deriving from the class. +* +*/ + + +#ifndef C_CBCTESTAPPLICATION_H +#define C_CBCTESTAPPLICATION_H + +#include +#include + +#include "bctestlauncherdefs.h" + +class CEikonEnv; + +/** + * Test Application, represent all bc test applications. + */ +class CBCTestApplication : public CBase + { +public: // constructor + static CBCTestApplication* NewL( const TDesC& aName, + TInt aAppUID, TInt aViewUID, + TInt aTimeout = 1, TInt aVersion = 30 ); + + /** + * C++ default constructor + * @param aTimeout, in min + */ + CBCTestApplication( const TDesC& aName, TInt aAppUID, TInt aViewUID = 1, + TInt aTimeout = 1, TInt aVersion = 30 ); + + /** + * Destructor + */ + virtual ~CBCTestApplication(); + +// new funcs + + void RunL( TInt aCommand ); + const TDesC& Name(){ return iName; } + + /** + * select the application to run + */ + void Select(TBool aSelected = ETrue){ iSelected = aSelected; } + +private: + void StartAutoTest(); + void SetupL(); + void TearDown(); + void WatchDogL(); + void KeyPress( TInt aCode, TInt aScanCode ); + TInt GetFreeMem(); + +// data + + TBuf iName; + TInt iAppUID; + TInt iViewUID; + TInt iTimeout; // [min] + TInt iVersion; // 30, 31, 32 + TBool iSelected; + + /** + * point to CEikonEnv, + * not own. + */ + CEikonEnv* iEikEnv; + }; + +#endif // C_CBCTESTAPPLICATION_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestconf.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestconf.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2006-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 case class, user will create own test case class by +* deriving from the class. +* +*/ + + +#ifndef C_CBCTESTCONFIG_H +#define C_CBCTESTCONFIG_H + +#include +#include +#include + +#include "bctestlauncherdefs.h" + +/** + * BC test configurator, read all BC applications from an XML file. + */ +class CBCTestConf : public CBase + { +public: // constructor + static CBCTestConf* NewLC(); + + /** + * C++ default constructor + */ + CBCTestConf(); + + void ConstructL(); + + /** + * Destructor + */ + virtual ~CBCTestConf(); + +// new funcs + + TBool NextL(); + + const TDesC& Name(); + TInt AppUID(); + TInt ViewUID(); + TInt Timeout(); + TInt Version(); + +private: + void OpenConfigL(); + void CloseConfig(); + TBool ReadBlockDataL(); + + /** + * @return EFalse for EOF, otherwise it returns ETrue + */ + TBool ReadLineL( TDes& aLine ); + +// data + RFile iFile; + + TBuf iName; + TInt iAppUID; + TInt iViewUID; + TInt iTimeout; // [min] + TInt iVersion; // S60 30, 31, 32 + }; + +#endif // C_CBCTESTCONFIG_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncher.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncher.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2006-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: This file contains resource declarations for BCTestLauncher. +* The file can be included in C++ or resource file. +* +*/ + + + +#ifndef BCTESTLAUNCHER_HRH +#define BCTESTLAUNCHER_HRH + +// CONSTANTS + +// Enumeration +enum TProgMenuCommand // Command List in Options pane + { + ESdkVersion = 0x6001, + EAutoTestAll, + EAutoTestSelection, + EBCTestLauncherStart + }; + +enum TBCTestLauncherTabViewId + { + EBCTestLauncherView1Tab = 1 + }; + +enum + { + EDataQueryDlgCIdDataQuery = 0x6100 + }; +#endif // BCTESTLAUNCHER_HRH diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncher.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncher.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,76 @@ +/* +* Copyright (c) 2006-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: This is a localisation file for BCTestLauncher. +* A .loc file is the one and only place where the logical +* strings to be localized are defined. +* +*/ + + + +// Caption +#define qtn_apps_tapb_list "BCTestLauncher" +#define qtn_apps_tapb_grid "BCTestLauncher" + +// LOCALISATION STRINGS + +#define qtn_aktaautotester_menu "Menu" + +#define qtn_bctestlauncher_view1_tab "" +#define qtn_bctestlauncher_caption "BCTestLauncher" + + +#define qtn_bctestlauncher_softkey_run "Run" +#define qtn_bctestlauncher_exit "Exit" + +#define qtn_bctestlauncher_query_caption "Please input SDK version,eg.30,31,32,50:" +// Test applications +#define qtn_bctestlauncher_sdkversion "Set SDK version" +#define qtn_bctestlauncher_all "Full test" +#define qtn_bctestlauncher_partial "Partial test" +#define qtn_bctestlauncher_selection "Select tests" +#define qtn_bctestlauncher_selection_title "Select tests:" +#define qtn_bctestlauncher_separate "Separate tests" + +#define qtn_bctestlauncher_editor "AknAtEditor" +#define qtn_bctestlauncher_aheditor "AknAtAHEditor" +#define qtn_bctestlauncher_fastswap "AknAtFastSwap" +#define qtn_bctestlauncher_fep "AknAtFep" +#define qtn_bctestlauncher_form "AknAtForm" +#define qtn_bctestlauncher_fsw1 "AknAtFSW1" +#define qtn_bctestlauncher_fsw2 "AknAtFSW2" +#define qtn_bctestlauncher_fsw3 "AknAtFSW3" +#define qtn_bctestlauncher_fsw4 "AknAtFSW4" +#define qtn_bctestlauncher_grid "AknAtGrid" +#define qtn_bctestlauncher_layoutswitch "AknAtLayoutSwitch" +#define qtn_bctestlauncher_list "AknAtList" +#define qtn_bctestlauncher_menu "AknAtMenu" +#define qtn_bctestlauncher_mfneeditor "AknAtMfneEditor" +#define qtn_bctestlauncher_note "AknAtNote" +#define qtn_bctestlauncher_notif "AknAtNotif" +#define qtn_bctestlauncher_pbar "AknAtPbar" +#define qtn_bctestlauncher_pnumeditor "AknAtPnumEditor" +#define qtn_bctestlauncher_popfield "AknAtPopField" +#define qtn_bctestlauncher_popform "AknAtPopForm" +#define qtn_bctestlauncher_poplist "AknAtPopList" +#define qtn_bctestlauncher_query "AknAtQuery" +#define qtn_bctestlauncher_scroller "AknAtScroller" +#define qtn_bctestlauncher_sct "AknAtSct" +#define qtn_bctestlauncher_setpage "AknAtSetPage" +#define qtn_bctestlauncher_slider "AknAtSlider" +#define qtn_bctestlauncher_softkey "AknAtSoftkey" +#define qtn_bctestlauncher_spane "AknAtSpane" +#define qtn_bctestlauncher_volume "AknAtVolume" + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2006-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: Declares main application class. +* +*/ + + +#ifndef C_CBCTESTLAUNCHERAPP_H +#define C_CBCTESTLAUNCHERAPP_H + +#include + +// UID of the application +const TUid KUidBCTestLauncher = { 0x20004743 }; + +/** + * CBCTestLauncherApp application class. + * Provides factory to create concrete document object. + * + */ +class CBCTestLauncherApp : public CAknApplication + { +private: // From CApaApplication + + /** + * From CApaApplication, + * creates CBCTestLauncherDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, + * returns application's UID ( KUidBCTestLauncher ). + * @return The value of KUidBCTestLauncher. + */ + TUid AppDllUid() const; + }; + +#endif //C_CBCTESTLAUNCHERAPP_H + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherappui.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ +/* +* Copyright (c) 2006-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: Declares UI class for application. +* +*/ + + +#ifndef C_CBCTESTLAUNCHERAPPUI_H +#define C_CBCTESTLAUNCHERAPPUI_H + +#include +#include +#include +#include +#include +#include +#include + +class CBCTestLauncherContainer; +class CBCTestLauncherView; +class CBCTestRunner; + +/** + * Application UI class. + */ +class CBCTestLauncherAppUi : public CAknViewAppUi + { +public: // Constructors and destructor + + /** + * C++ default constructor. + */ + CBCTestLauncherAppUi(); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + /** + * Destructor. + */ + virtual ~CBCTestLauncherAppUi(); + + void DoCommand(); + +private: // From CEikAppUi + + /** + * From CEikAppUi, takes care of command handling. + * @param aCommand command to be handled + */ + void HandleCommandL( TInt aCommand ); + + /** + * From CEikAppUi, handles key events. + * @param aKeyEvent Event to handled. + * @param aType Type of the key event. + * @return Reponse code ( EKeyWasConsumed, EKeyWasNotConsumed ). + */ + virtual TKeyResponse HandleKeyEventL( + const TKeyEvent& aKeyEvent, TEventCode aType ); + +private: //Data + + CAknNavigationControlContainer* iNaviPane; + CBCTestLauncherContainer* iAppContainer; // Ptr to Container class + CBCTestLauncherView* iAppView; + CBCTestRunner* iRunner; // own + + }; + +#endif // C_CBCTESTLAUNCHERAPPUI_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlaunchercontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlaunchercontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2006-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: Declares container control for application. +* +*/ + + +#ifndef C_CBCTESTLAUNCHERCONTAINER_H +#define C_CBCTESTLAUNCHERCONTAINER_H + +#include +#include +#include + +#include "BCTestLauncher.hrh" + +class CAknTitlePane; + +/** + * CBCTestLauncherContainer container control class. + */ +class CBCTestLauncherContainer : public CCoeControl, + public MCoeControlObserver + { +public: // Constructors and destructor + /** + * C++ default constructor + */ + CBCTestLauncherContainer(); + + /** + * Symbian 2nd phase constructor. + * @param aRect Frame rectangle for container. + */ + void ConstructL( const TRect& aRect ); + + /** + * Destructor. + */ + virtual ~CBCTestLauncherContainer(); + +public: // New functions + + /** + * Clears the entire screen + */ + void ClearScreen(); + + /** + * Makes the status pane and cba labels visible + */ + void RestoreScreen(); + void SetSdkVersion(); + +private: // Functions from base classes + + /** + * From CoeControl,CountComponentControls. + * @return amount of component controls, + * in this application, this is the + * number of progress bars. + */ + TInt CountComponentControls() const; + + /** + * From CCoeControl,ComponentControl. + * @param aIndex each component controls in order + * @return Ptr to each component controls + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + + /** + * From CCoeControl,Draw. + * @param aRect Frame rectangle for container + */ + void Draw( const TRect& aRect ) const; + + +private : // Functions from base classes + /** + * From MCoeControlObserver + * @param aControl each component controls + * @param aEventType event type + */ + void HandleControlEventL( + CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/ ); + +private: //data + CAknTitlePane* iTitlePane; + CEikButtonGroupContainer* iCba; + + }; + +#endif // C_CBCTESTLAUNCHERCONTAINER_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherdefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherdefs.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,27 @@ +/* +* Copyright (c) 2006-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: Declares constant. +* +*/ + + +#ifndef BCTESTLAUNCHERDEFS_H +#define BCTESTLAUNCHERDEFS_H + +const TInt KNameLength = 30; + +_LIT( KSdkVerFile, "c:\\BCTestLog\\sdkversion.log" ); +#define MaxVersionValue 99 +#define MinVersionValue 30 +#endif //BCTESTLAUNCHERDEFS_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherdocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherdocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2006-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: Declares document for application. +* +*/ + + +#ifndef C_CBCTESTLAUNCHERDOCUMENT_H +#define C_CBCTESTLAUNCHERDOCUMENT_H + +#include + +class CEikAppUi; +class CBCTestLauncherAppUi; + +/** + * CBCTestLauncherDocument document class. + */ +class CBCTestLauncherDocument : public CAknDocument + { +public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CBCTestLauncherDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestLauncherDocument(); + +private: + + /** + * C++ default constructor. + * @param aApp Application class + */ + CBCTestLauncherDocument( CEikApplication& aApp ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + +private: // From CEikDocument + + /** + * From CEikDocument, + * create CBCTestLauncherAppUi "App UI" object. + * @return A pointer to the created "App UI" object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_CBCTESTLAUNCHERDOCUMENT_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestlauncherview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* Copyright (c) 2006-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: Declares view for application. +* +*/ + + +#ifndef C_CBCTESTLAUNCHERVIEW_H +#define C_CBCTESTLAUNCHERVIEW_H + +#include + +// UID of view +const TUid KViewId = { 1 }; + +class CBCTestLauncherContainer; +class CBCTestApplication; + +/** + * CBCTestLauncherView view class. + */ +class CBCTestLauncherView : public CAknView + { +public : +// Constructors and destructor + + /** + * C++ default constructor + */ + CBCTestLauncherView(RArray* aList); + + /** + * Symbian 2nd phase constructor + */ + void ConstructL(); + + /** + * Destructor + */ + virtual ~CBCTestLauncherView(); + +// From CAknView + + /** + * From CAknView, Id. + * Returns the ID of view. + * @return The ID of view. + */ + TUid Id() const; + + /** + * From CAknView, Handles the commands. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * From CAknView, Handles the clientrect. + */ + void HandleClientRectChange(); + +// New Functions + TBool SelectL(); + void Reset(); + +private: +// From CAknView + + /** + * From CAknView, Creates the Container class object. + * @param aPrevViewId ID of previous view. + * @param aCustomMessageId ID of the custom message. + * @param aCustomMessage Custom message. + */ + void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + /** + * From CAknView, Deletes the Container class object. + */ + void DoDeactivate(); + +//From MEikMenuObsever + + /** + * init menu according to the bc test applications loaded. + */ + void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); + +private: // Data + + CBCTestLauncherContainer* iContainer; // own + RArray* iSelectApps; // not own, only refer to + }; + +#endif // C_CBCTESTLAUNCHERVIEW_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestrunner.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bctestrunner.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2006-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: Handles test application runs. +* +*/ + + +#ifndef C_CBCTESTRUNNER_H +#define C_CBCTESTRUNNER_H + +#include + +class CAknAtLogWriter; +class CBCTestApplication; + +/** + * TestRunner, manage all test applications + */ +class CBCTestRunner : public CBase + { +public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CBCTestRunner* NewL(); + + /** + * Destructor. + */ + virtual ~CBCTestRunner(); + +// New methods + + /** + * Starts test application and returns after test is over + * @param aCommand, a command to indicate run full test, partial test, + * or selected test. + * @return ETrue if run sucessfully, else it will return EFalse. + */ + TBool RunL( TInt aCommand ); + + /** + * Add new BC test application to the test runner. + * @param aApp, the pointer to the bc test application. + */ + void AddTestAppL(CBCTestApplication* aApp); + + /** + * return the BC test application list + */ + RArray* Apps(); + +private: + + /** + * C++ default constructor. + */ + CBCTestRunner(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + /** + * Creates time stamp for log file + */ + void CreateTimeStamp(); + + +private: // data + + RArray iTestApps; + TBuf8<1024> iBuf; // temp storage for log writing + TBuf<50> iTempBuf; // for timestamp creating + + }; + +#endif //C_CBCTESTRUNNER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bcteststrmlogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/inc/bcteststrmlogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,103 @@ +/* +* Copyright (c) 2006-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: Handles log writing. +* +*/ + + +#ifndef C_CBCTESTSTREMLOGGER_H +#define C_CBCTESTSTREMLOGGER_H + +#include +#include + +#define LOG CBCTestStreamLogger::BeginLC() + +_LIT(KLogFileName, "c:\\bctestLog\\summary.log"); // main log file + +/** + * CBCTestLauncherApp application class. + * Provides factory to create concrete document object. + */ +class CBCTestStreamLogger : public CBase + { +public: +// Constructors and destructor + + /** + * Two-phased constructor. + */ + static CBCTestStreamLogger& BeginLC( + const TDesC& aFileName = KLogFileName ); + + /** + * Destructor. + */ + virtual ~CBCTestStreamLogger(); + +// New methods + + /** + * Suicide self + */ + void Suicide(); + + /** + * stream a string out + * @param aText, the text u want to stream out + */ + CBCTestStreamLogger& operator<<(const TDesC& aText); + + /** + * stream a number out + * @param aNum, the number u wnat to stream out + */ + CBCTestStreamLogger& operator<<(TInt aNum); + + /** + * stream out a new line + */ + CBCTestStreamLogger& CRL(); + + /** + * stream manipulator dispatcher + * @param aOp, the manipulator function pointer + */ + typedef CBCTestStreamLogger& (*Manipulator)( CBCTestStreamLogger& ); + CBCTestStreamLogger& operator<<(Manipulator aOp); + +private: + + /** + * C++ default constructor. disable it! + */ + CBCTestStreamLogger(); + + /** + * Symbian 2nd phase ctor + */ + void ConstructL(const TDesC& aFileName); + +// data + TBuf iFileName; + }; + +namespace BCTest + { + CBCTestStreamLogger& End(CBCTestStreamLogger& self); + CBCTestStreamLogger& EndLine(CBCTestStreamLogger& self); + } + +#endif //C_CBCTESTSTREMLOGGER_H + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/sis/bctestlauncher.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/sis/bctestlauncher.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,51 @@ +; +; 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: +; +; bctestlauncher3.pkg + +; Languages +&EN + +; Header +#{"Browser_BCTestLauncher"},(0x20004743),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctestlauncher.exe"- +"!:\sys\bin\bctestlauncher.exe" + +"\epoc32\data\z\resource\apps\bctestlauncher.r01"- +"!:\resource\apps\bctestlauncher.r01" + +"\epoc32\data\z\resource\apps\bctestlauncher_aif.mbm"- +"!:\resource\apps\bctestlauncher_aif.mbm" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestlauncher_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctestlauncher_reg.r01" + +"\epoc32\winscw\c\BCTestLog\config.xml"- +"C:\BCTestLog\config.xml" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestapplication.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestapplication.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,266 @@ +/* +* Copyright (c) 2006-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 case. +* +*/ + + +#include +#include +#include +#include + +#include "bctestapplication.h" +#include "bctestlauncher.hrh" +#include "bcteststrmlogger.h" + +#include +using namespace BCTest; + +const TInt KDelay = 500*1000; //500 ms +const TUid KPSUidAvkonDomainForBC = { 0x10207218 }; // Same as KPSUidAvkonDomain +const TUint32 KAknMenuOptionNoTaskSwapper = 0x10000002; + +enum TAknMenuOptionNoTaskSwapper + { + ETaskSwapper, + ENoTaskSwapper + }; + +// ================================== local functions ======================== +inline static void Wait(TInt aSec) + { + User::After(aSec*KDelay*2); + } + +inline static void Wait() + { + User::After( KDelay ); + } + +static TInt ManualSDKVersion() + { + RFs fs; + User::LeaveIfError( fs.Connect() ); + RFileReadStream readStream; + if ( readStream.Open( fs, KSdkVerFile, EFileRead ) < 0 ) + { + fs.Close(); + readStream.Release (); + return 0; + } + readStream.PushL(); + TInt ver = static_cast(readStream.ReadInt32L()); + readStream.Pop (); + readStream.Release (); + fs.Close(); + return ver; + } +static TInt SDKVersion() + { + TInt swver = 30; + TInt taskSwapper( ENoTaskSwapper ) ;// taskSwapper + TInt result = RProperty::Get( KPSUidAvkonDomainForBC, + KAknMenuOptionNoTaskSwapper, taskSwapper ); + TInt ret = RProperty::Define( KPSUidAvkonDomainForBC, + KAknMenuOptionNoTaskSwapper, RProperty::EInt ); + if (ret == KErrAlreadyExists) + { + if ( result == KErrNotFound ) + { + swver = 30; + } + else + { + if ( taskSwapper == 0 ) + { + swver = 50; + } + else + { + swver = 30; + } + } + } + else + { + RProperty::Set( KPSUidAvkonDomainForBC, + KAknMenuOptionNoTaskSwapper, ENoTaskSwapper ); + } + + return swver; + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestApplication::CBCTestApplication( + const TDesC& aName, TInt aAppUID, TInt aViewUID, + TInt aTimeout, TInt aVersion): + iName(aName), iAppUID(aAppUID), iViewUID(aViewUID), iTimeout(aTimeout), + iVersion(aVersion), + iSelected(EFalse) + { + } + +// --------------------------------------------------------------------------- +// CBCTestApplication::~CBCTestApplication() +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestApplication::~CBCTestApplication() + { + } + +// --------------------------------------------------------------------------- +// CBCTestApplication::NewL() +// +// --------------------------------------------------------------------------- +// +CBCTestApplication* CBCTestApplication::NewL( const TDesC& aName, + TInt aAppUID, TInt aViewUID, TInt aTimeout, TInt aVersion ) + { + CBCTestApplication* self= new ( ELeave ) CBCTestApplication( + aName, aAppUID, aViewUID, aTimeout, aVersion ); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestApplication::RunL. +// --------------------------------------------------------------------------- +// +void CBCTestApplication::RunL( TInt aCommand ) + { + if( iVersion > SDKVersion() ) + { + if ( iVersion > ManualSDKVersion() ) + { + return; + } + } + + if( iSelected || aCommand == EAutoTestAll ) + { + SetupL(); + StartAutoTest(); + WatchDogL(); + TearDown(); + } + else + { + User::Leave( KErrGeneral ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestApplication::SetupL. +// --------------------------------------------------------------------------- +// +void CBCTestApplication::SetupL() + { + TInt mem = GetFreeMem(); + + CEikonEnv::Static()->EikAppUi()->ActivateViewL( + TVwsViewId(TUid::Uid(iAppUID), TUid::Uid(iViewUID))); + + LOG<WsSession()); + while (taskList.FindApp(TUid::Uid(iAppUID)).Exists() && durationCount--) + { + Wait(2); //monitor every 2 seconds + } + + if ( taskList.FindApp( TUid::Uid( iAppUID ) ).Exists() ) + { + // still alive, kill it! + taskList.FindApp( TUid::Uid( iAppUID ) ).KillTask(); + // wait for application actually killed + while ( taskList.FindApp( TUid::Uid( iAppUID ) ).Exists() ) + { + Wait(); + } + User::Leave( KErrTimedOut ); + } + } + +void CBCTestApplication::TearDown() + { + LOG<WsSession().SimulateKeyEvent(event); + CEikonEnv::Static()->WsSession().Flush(); + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::GetFreeMem() +// --------------------------------------------------------------------------- +// +TInt CBCTestApplication::GetFreeMem() + { + User::CompressAllHeaps(); + TMemoryInfoV1Buf meminfo; + UserHal::MemoryInfo( meminfo ); + return meminfo().iFreeRamInBytes; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestconf.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestconf.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,270 @@ +/* +* Copyright (c) 2006-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 case. +* +*/ + + +#include +#include "bctestconf.h" +#include "bcteststrmlogger.h" + +const int KMaxLength = 255; + +_LIT( KConfFile, "c:\\bctestlog\\config.xml" ); +_LIT( KTag, "ITEM"); +_LIT( KName, "NAME"); +_LIT( KAppUID, "APPUID"); +_LIT( KViewUID, "VIEWUID"); +_LIT( KTimeout, "TIMEOUT"); +_LIT( KVersion, "VER"); + +_LIT( KLess, "<"); +_LIT( KLessSlash, ""); + +_LIT( KCDataBegin, "" ); + +// +// helper class +// +struct XMLUtil + { + static TPtrC ExtractField( const TDesC& aLine, const TDesC& aName ); + static TPtrC ExtractCData( const TDesC& aLine ); + + static TPtrC StartField( const TDesC& aName ); + static TPtrC EndField( const TDesC& aName ); + + static TInt StringToHex( const TDesC& aStr ); + static TInt StringToDec( const TDesC& aStr ); + }; + +// ======== MEMBER FUNCTIONS ======== + +TInt XMLUtil::StringToHex( const TDesC& aStr ) + { + //ex. 0x101F84E0 + _LIT( KHexPrefix, "0X" ); + TBuf < KMaxLength > str( aStr ); + str.UpperCase(); + TInt res = 0; + + if( str.Find( KHexPrefix ) == KErrNotFound ) + return 0; + + for( TInt i = 2; i < str.Length(); ++i ) + { + if( TChar( str[i] ).IsDigit() ) + { + res = ( res << 4 ) + str[i] - '0'; + } + else + { + res = ( res << 4 ) + str[i] - 'A' + 10; + } + } + return res; + } + +TInt XMLUtil::StringToDec( const TDesC& aStr ) + { + //ex. 127 + TLex lex(aStr); + TInt res=0; + return lex.Val( res )==KErrNone ? res : 0; + } + +TPtrC XMLUtil::ExtractField( const TDesC& aLine, const TDesC& aName ) + { + TBuf endTag( KLessSlash ); // endTag := + endTag += aName; + endTag += KGreater; + + TInt posBegin = aName.Length()+2; //"" length + TInt posEnd = aLine.Find( endTag ); + return ExtractCData( aLine.Mid( posBegin, ( posEnd-posBegin ) ) ); + } + +TPtrC XMLUtil::ExtractCData( const TDesC& aLine ) + { + TInt posBegin = KCDataBegin().Length(); + TInt posEnd = aLine.Find( KCDataEnd ); + return aLine.Mid( posBegin, ( posEnd - posBegin ) ); + } + +TPtrC XMLUtil::StartField( const TDesC& aName ) + { + TBuf res( KLess ); + res += aName; + res += KGreater; + return res; //res := + } + +TPtrC XMLUtil::EndField( const TDesC& aName ) + { + TBuf res( KLessSlash ); + res += aName; + res += KGreater; + return res; //res := + } + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestConf::CBCTestConf() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestConf::~CBCTestConf() + { + CloseConfig(); + } + +//static +CBCTestConf* CBCTestConf::NewLC() +{ + CBCTestConf* self= new ( ELeave) CBCTestConf(); + CleanupStack::PushL(self); + self->ConstructL(); + return self; +} + +// --------------------------------------------------------------------------- +// CBCTestConf::ConstructL. +// --------------------------------------------------------------------------- +// +void CBCTestConf::ConstructL() + { + OpenConfigL(); + } + +void CBCTestConf::OpenConfigL() + { + RFs& fs = CEikonEnv::Static()->FsSession(); + User::LeaveIfError( + iFile.Open( fs, KConfFile, EFileRead | EFileShareAny ) != KErrNone ); + } + +void CBCTestConf::CloseConfig() + { + iFile.Close(); + } + +TBool CBCTestConf::ReadLineL(TDes& aLine) + { + TBuf8<1> atom; + TBuf8<1> enter; + HBufC16* text = HBufC16::NewL( 1 ); + + for( TInt err = iFile.Read(atom); err == KErrNone + && atom.Length() > 0; err = iFile.Read( atom ) ) + { + if(atom[0] == 10 && enter[0] == 13) + { + break; + } + text->Des().Copy(atom); + aLine.Append(*text); + enter = atom; + } + + delete text; + return atom.Length()>0; + } + +TBool CBCTestConf::ReadBlockDataL() + { + while( ETrue ) + { + TBuf line; + if(!ReadLineL(line)) + { + break; + } + + if( line.Find( XMLUtil::StartField( KTag ) ) != KErrNotFound ) + { + iName = _L(""); + iAppUID = iViewUID = iTimeout =0; + } + else if( line.Find( XMLUtil::EndField( KTag ) ) != KErrNotFound ) + { + return ETrue; + } + else if( line.Find( XMLUtil::StartField( KName ) ) != KErrNotFound ) + { + iName = XMLUtil::ExtractField( line, KName ); + } + else if( line.Find( XMLUtil::StartField( KAppUID ) ) != KErrNotFound ) + { + iAppUID = XMLUtil::StringToHex( + XMLUtil::ExtractField( line, KAppUID ) ); + } + else if( line.Find( XMLUtil::StartField( KViewUID ) ) != KErrNotFound ) + { + iViewUID = XMLUtil::StringToDec( + XMLUtil::ExtractField( line, KViewUID ) ); + } + else if( line.Find( XMLUtil::StartField( KTimeout ) ) != KErrNotFound ) + { + iTimeout = XMLUtil::StringToDec( + XMLUtil::ExtractField( line, KTimeout ) ); + } + else if( line.Find( XMLUtil::StartField( KVersion ) ) != KErrNotFound ) + { + iVersion = XMLUtil::StringToDec( + XMLUtil::ExtractField( line, KVersion ) ); + } + } + return EFalse; + } + +TBool CBCTestConf::NextL() + { + return ReadBlockDataL(); + } + +const TDesC& CBCTestConf::Name() + { + return iName; + } + +TInt CBCTestConf::AppUID() + { + return iAppUID; + } + +TInt CBCTestConf::ViewUID() + { + return iViewUID; + } + +TInt CBCTestConf::Timeout() + { + return iTimeout; + } + +TInt CBCTestConf::Version() + { + return iVersion; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2006-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: Implementation of application class. +* +*/ + + +#include + +#include "bctestlauncherapp.h" +#include "bctestlauncherdocument.h" + +// ============================ MEMBER FUNCTIONS ============================= + +// --------------------------------------------------------------------------- +// CBCTestLauncherApp::AppDllUid() +// Returns application UID +// --------------------------------------------------------------------------- +// +TUid CBCTestLauncherApp::AppDllUid() const + { + return KUidBCTestLauncher; + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherApp::CreateDocumentL() +// Creates CAknAtPbarDocument object +// --------------------------------------------------------------------------- +// +CApaDocument* CBCTestLauncherApp::CreateDocumentL() + { + return CBCTestLauncherDocument::NewL( *this ); + } + +// ========================== OTHER EXPORTED FUNCTIONS ======================= + +// --------------------------------------------------------------------------- +// NewApplication() +// Constructs CBCTestLauncherApp +// Returns: CApaDocument*: created application object +// --------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestLauncherApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,172 @@ +/* +* Copyright (c) 2006-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: Implementation of application UI class. +* +*/ + + + +// INCLUDE FILES +#include +#include +#include + +#include "bctestlauncherappui.h" +#include "bctestlaunchercontainer.h" +#include "bctestlauncher.hrh" +#include "bctestlauncherview.h" +#include "bctestrunner.h" +#include "streamlogger.h" + +#include "bctestapplication.h" + +const TInt CMDNum = 32; +_LIT( KFULL, "full" ); + +// ============================ MEMBER FUNCTIONS ============================= + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestLauncherAppUi::CBCTestLauncherAppUi() + : iNaviPane( NULL ), iAppContainer( NULL ),iRunner( 0 ) + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherAppUi::ConstructL() + { + BaseConstructL(); + + // Create status pane + CEikStatusPane *sp = StatusPane(); + // Create navi pane + iNaviPane = ( CAknNavigationControlContainer* )sp->ControlL( + TUid::Uid( EEikStatusPaneUidNavi ) ); + + iRunner = CBCTestRunner::NewL(); + + iAppView = new( ELeave )CBCTestLauncherView( iRunner->Apps() ); + iAppView->ConstructL(); + AddViewL( iAppView ); + + ActivateLocalViewL( iAppView->Id() ); + SetDefaultViewL( *iAppView ); + + DoCommand(); + + } + +// Destructor +CBCTestLauncherAppUi::~CBCTestLauncherAppUi() + { + delete iAppContainer; + delete iRunner; + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherAppUi::HandleCommandL( TInt aCommand ) +// Handles command list +// --------------------------------------------------------------------------- +// +void CBCTestLauncherAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknCmdExit: + case EEikCmdExit: + case EAknSoftkeyBack: + Exit(); + break; + case ESdkVersion: + iAppView->HandleCommandL( aCommand ); + break; + case EAutoTestSelection: + if( !iAppView->SelectL() ) + { + return; + } + + default: + iRunner->RunL( aCommand ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherAppUi::HandleKeyEventL( +// const TKeyEvent& aKeyEvent, TEventCode /*aType*/ ) +// Handles key events. +// --------------------------------------------------------------------------- +// +TKeyResponse CBCTestLauncherAppUi::HandleKeyEventL( + const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/ ) + { + return EKeyWasNotConsumed; + } + +void CBCTestLauncherAppUi::DoCommand() + { + + CCommandLineArguments* args = CCommandLineArguments::NewLC(); + + if ( args->Count() == 1) + { + CleanupStack::PopAndDestroy( args ); + return; + } + + CArrayFixFlat* cmdData = new( ELeave )CArrayFixFlat( CMDNum ); + CleanupStack::PushL( cmdData ); + + HBufC* msg = HBufC::NewLC( 32 ); + for (TInt i=0; iCount(); i++) + { + msg->Des().Copy( args->Arg(i) ); + msg->Des().LowerCase(); + cmdData->AppendL( msg->Des() ); + } + + if ( ( *cmdData )[1] == KFULL ) + { + iAppView->HandleCommandL( EAutoTestAll ); + } + else + { + iAppView->Reset(); + RArray* aList = iRunner->Apps(); + + for( TInt i=0; iCount(); i++) + { + + for( TInt j=0; j<( *aList ).Count(); j++ ) + { + if( ( *cmdData )[i] == ( *aList )[j]->Name() ) + { + ( *aList )[j]->Select(); + } + } + } + iRunner->RunL( EAutoTestSelection ); + } + CleanupStack::PopAndDestroy( msg ); + CleanupStack::PopAndDestroy( cmdData ); + CleanupStack::PopAndDestroy( args ); + + iAppView->HandleCommandL( EAknCmdExit );//auto exit + + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlaunchercontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlaunchercontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,202 @@ +/* +* Copyright (c) 2006-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: Implementation of application container class. +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // StringLoader +#include // link against efsrv.lib +#include +#include +#include + +#include "bctestlauncherdefs.h" +#include "bctestlaunchercontainer.h" + +// ============================ MEMBER FUNCTIONS ============================= + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::CBCTestLauncherContainer() +// C++ default constructor can NOT contain any code, that +// might leave. +// --------------------------------------------------------------------------- +// +CBCTestLauncherContainer::CBCTestLauncherContainer() + { + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::ConstructL +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + + Window().SetShadowDisabled( EFalse ); + + CEikStatusPane *sp = + ( ( CAknAppUi* )iEikonEnv->EikAppUi() )->StatusPane(); + iTitlePane = ( CAknTitlePane * )sp->ControlL( + TUid::Uid( EEikStatusPaneUidTitle ) ); + iCba = CEikButtonGroupContainer::Current(); + + SetRect( aRect ); + ActivateL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::~CBCTestLauncherContainer +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLauncherContainer::~CBCTestLauncherContainer() + { + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::CountComponentControls() const +// amount of component controls +// --------------------------------------------------------------------------- +// +TInt CBCTestLauncherContainer::CountComponentControls() const + { + return 0; // return nbr of controls inside this container + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::ComponentControl( TInt aIndex ) const +// Returns ptr to component controls +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestLauncherContainer::ComponentControl( + TInt /*aIndex*/ ) const + { + return NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::Draw( const TRect& aRect ) const +// Draw function +// --------------------------------------------------------------------------- +// +void CBCTestLauncherContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbWhite ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + gc.Clear(); + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::HandleControlEventL( +// CCoeControl* aControl,TCoeEvent aEventType) +// --------------------------------------------------------------------------- +// +void CBCTestLauncherContainer::HandleControlEventL( + CCoeControl* /*aControl*/,TCoeEvent /*aEventType*/ ) + { + } +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::ClearScreen() +// Clears the screen. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherContainer::ClearScreen() + { + CEikStatusPaneBase* sp = + ( ( CAknAppUi* )iEikonEnv->EikAppUi() )->StatusPane(); + sp->MakeVisible( EFalse ); + iCba->MakeVisible( EFalse ); + DrawNow(); + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherContainer::RestoreScreen() +// Makes status pane and cba labels visible which ClearScreen() hides. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherContainer::RestoreScreen() + { + CEikStatusPaneBase *sp = + ( ( CAknAppUi* )iEikonEnv->EikAppUi() )->StatusPane(); + sp->MakeVisible( ETrue ); + iCba->MakeVisible( ETrue ); + DrawNow(); + } + +// ----------------------------------------------------------------------------- +// CBCTestLauncherContainer::SetSdkVersion +// Set the SDK version. +// ----------------------------------------------------------------------------- +// + void CBCTestLauncherContainer::SetSdkVersion() + { + TBuf<8> sdkVer; + CAknTextQueryDialog* verQuery = CAknTextQueryDialog::NewL( sdkVer ); + CleanupStack::PushL(verQuery); + verQuery->SetMaxLength( 2 ); + //EAknEditorSecretAlphaInputMode EAknEditorNumericInputMode + verQuery->SetDefaultInputMode( EAknEditorNumericInputMode ); + HBufC* prompt; + // Pushes prompt onto the Cleanup Stack. + prompt = StringLoader::LoadLC(R_BCTESTLAUNCHER_QUERY_CAPTION); + verQuery->SetPromptL(*prompt); + CleanupStack::PopAndDestroy(prompt); + CleanupStack::Pop(verQuery); + if (verQuery->ExecuteLD(R_AVKON_DIALOG_QUERY_VALUE_NUMBER)) + { + // write sdk version into file + RFs fs; + User::LeaveIfError( fs.Connect() ); + CleanupClosePushL( fs ); + RFileWriteStream writeStream; + writeStream.Replace( fs, KSdkVerFile, EFileWrite ); + CleanupClosePushL( writeStream ); + //writeStream.WriteL( sdkVer ); + TInt verNum; + TLex lex(sdkVer); + lex.Val(verNum); + + TBuf<120> buf; + if ( verNumMaxVersionValue ) + { + verNum = 0; + CAknInformationNote* tInfoNote = new( ELeave ) CAknInformationNote(); + buf.Format( _L( "The value should between %d and %d" ), + MinVersionValue, MaxVersionValue ); + tInfoNote->ExecuteLD( buf ); + } + + writeStream.WriteInt32L(verNum); + writeStream.CommitL (); + CleanupStack::PopAndDestroy( 2 ); + fs.Close(); + + } + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherdocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2006-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: Implements document class for application. +* +*/ + + +#include "bctestlauncherdocument.h" +#include "bctestlauncherappui.h" + +// ============================ MEMBER FUNCTIONS ============================= + +// --------------------------------------------------------------------------- +// CBCTestLauncherDocument::CBCTestLauncherDocument( CEikApplication& aApp ) +// C++ default constructor can NOT contain any code, that +// might leave. +// --------------------------------------------------------------------------- +// +CBCTestLauncherDocument::CBCTestLauncherDocument( CEikApplication& aApp ) + : CAknDocument( aApp ) + { + } + +// --------------------------------------------------------------------------- +// CAknAtPbarDocument::~CBCTestLauncherDocument +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestLauncherDocument::~CBCTestLauncherDocument() + { + } + +// --------------------------------------------------------------------------- +// CAknAtPbarDocument::ConstructL +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherDocument::ConstructL() + { + } + +// --------------------------------------------------------------------------- +// CAknAtPbarDocument::NewL +// Two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestLauncherDocument* CBCTestLauncherDocument::NewL + ( CEikApplication& aApp ) + // CBCTestLauncherApp reference + { + CBCTestLauncherDocument* self = + new( ELeave ) CBCTestLauncherDocument( aApp ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherDocument::CreateAppUiL() +// constructs CBCTestLauncherAppUi +// --------------------------------------------------------------------------- +// +CEikAppUi* CBCTestLauncherDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestLauncherAppUi; + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestlauncherview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,239 @@ +/* +* Copyright (c) 2006-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: Implementation of application view class. +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bctestlauncherview.h" +#include "bctestlaunchercontainer.h" +#include "bctestrunner.h" +#include "bctestapplication.h" +#include "streamlogger.h" + +// ============================ LOCAL FUNCTIONS ============================== +namespace BCTest + { + inline static CEikMenuPaneItem::SData& BuildItem( + const TDesC& aName, const TInt aID ) + { + static CEikMenuPaneItem::SData item; + item.iCommandId = aID; + item.iText = aName; + item.iFlags= EEikMenuItemSymbolOn; + item.iCascadeId = 0; + return item; + } + } + +// ============================ MEMBER FUNCTIONS ============================= + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::CBCTestLauncherView() +// C++ default constructor can NOT contain any code, that +// might leave. +// --------------------------------------------------------------------------- +// +CBCTestLauncherView::CBCTestLauncherView( RArray* aList ) + : iContainer( NULL ), iSelectApps( aList ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::ConstructL +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherView::ConstructL() + { + BaseConstructL( R_BCTESTLAUNCHER_VIEW ); + + //construct the app list menu + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::~CBCTestLauncherView +// Destructor. +// --------------------------------------------------------------------------- +// +CBCTestLauncherView::~CBCTestLauncherView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + + delete iContainer; + } + +// --------------------------------------------------------------------------- +// TUid CAknAtPbarView::Id() +// returns view Id. +// --------------------------------------------------------------------------- +// +TUid CBCTestLauncherView::Id() const + { + return KViewId; + } + +// --------------------------------------------------------------------------- +// CAknAtPbarView::HandleCommandL( TInt aCommand ) +// handles commands. +// --------------------------------------------------------------------------- +// +void CBCTestLauncherView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknCmdExit: + case EAknSoftkeyBack: + case EEikCmdExit: + AppUi()->HandleCommandL( EEikCmdExit ); + return; // this can never be reached + case ESdkVersion: + iContainer->SetSdkVersion(); + return; // this can never be reached + } + + TInt number = aCommand - EBCTestLauncherStart; + if( number >= 0 && number < ( *iSelectApps ).Count() ) + { + Reset(); + ( *iSelectApps )[number]->Select(); + } + + AppUi()->HandleCommandL( aCommand ); + } + +// --------------------------------------------------------------------------- +// CAknAtPbarView::HandleClientRectChange() +// +// --------------------------------------------------------------------------- +void CBCTestLauncherView::HandleClientRectChange() + { + if ( iContainer ) + { + iContainer->SetRect( ClientRect() ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::DoActivateL(...) +// +// --------------------------------------------------------------------------- +void CBCTestLauncherView::DoActivateL( + const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, + const TDesC8& /*aCustomMessage*/ ) + { + iContainer = new( ELeave ) CBCTestLauncherContainer; + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer, ECoeStackPriorityDefault ); + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::DoDeactivate() +// +// --------------------------------------------------------------------------- +void CBCTestLauncherView::DoDeactivate() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + + delete iContainer; + iContainer = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::RunSelectionL() +// +// --------------------------------------------------------------------------- +TBool CBCTestLauncherView::SelectL() + { + _LIT( KPrefix, "1\t" ); + + CListBoxView::CSelectionIndexArray* indexArray = + new( ELeave )CArrayFixFlat( ( *iSelectApps ).Count() ); + CleanupStack::PushL( indexArray ); + + CAknListQueryDialog* dlg = + new( ELeave ) CAknListQueryDialog( indexArray ); + dlg->PrepareLC(R_BCTESTLAUNCHER_MULTI_SELECTION_QUERY); + + CDesCArray* items = static_cast( static_cast< + CTextListBoxModel*>( dlg->ListBox()->Model() )->ItemTextArray() ); + items->Reset(); + for( TInt i = 0; i < ( *iSelectApps ).Count(); ++i ) + { + TBuf text( KPrefix ); + text += ( *iSelectApps )[i]->Name(); + items->AppendL( text ); + } + + TBool res = EFalse; + if ( dlg->RunLD() ) + { + Reset(); + for (TInt i = 0; i < indexArray->Count(); ++i) + { + ( *iSelectApps )[ indexArray->At( i ) ]->Select(); + } + res = ETrue; + } + + CleanupStack::PopAndDestroy(); // indexArray + return res; + } + +void CBCTestLauncherView::Reset() + { + for( TInt i = 0; i < ( *iSelectApps ).Count(); ++i ) + { + ( *iSelectApps )[i]->Select( EFalse ); + } + } + +// --------------------------------------------------------------------------- +// CBCTestLauncherView::DynInitMenuPaneL() +// +// --------------------------------------------------------------------------- +// +void CBCTestLauncherView::DynInitMenuPaneL( + TInt aResourceId, CEikMenuPane* aMenuPane ) + { + if( R_BCTESTLAUNCHER_SEPARATE_TESTS == aResourceId ) + { + for( TInt i = 0; i < ( *iSelectApps ).Count(); ++i ) + { + aMenuPane->AddMenuItemL( + BCTest::BuildItem( ( *iSelectApps )[i]->Name(), + EBCTestLauncherStart + i ) ); + } + } + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestrunner.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bctestrunner.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,158 @@ +/* +* Copyright (c) 2006-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: Base class for autotest application starters. +* +*/ + + +#include + +#include "bctestrunner.h" +#include "bctestlauncher.hrh" +#include "bctestapplication.h" +#include "bctestconf.h" +#include "bcteststrmlogger.h" + +using namespace BCTest; + +// CONSTANTS +_LIT( KTimeFormat, "%:0%J%:1%T%:2%S%:3%+B" ); + +// ============================ MEMBER FUNCTIONS ============================= + +// --------------------------------------------------------------------------- +// CBCTestRunner::NewL +// Two-phased constructor. +// --------------------------------------------------------------------------- +// +CBCTestRunner* CBCTestRunner::NewL() + { + CBCTestRunner* self = new( ELeave ) CBCTestRunner(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::CBCTestRunner() +// C++ default constructor can NOT contain any code, that +// might leave. +// --------------------------------------------------------------------------- +// +CBCTestRunner::CBCTestRunner() + { + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::~CBCTestRunner() +// --------------------------------------------------------------------------- +// +CBCTestRunner::~CBCTestRunner() + { + for ( TInt i = 0; i < iTestApps.Count(); i++ ) + { + delete iTestApps[ i ]; + } + iTestApps.Close(); + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::ConstructL +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +// +void CBCTestRunner::ConstructL( /*CAknAtLogWriter* aLogWriter*/ ) + { + CBCTestConf* conf = CBCTestConf::NewLC(); + while( conf->NextL() ) + { + AddTestAppL( CBCTestApplication::NewL( + conf->Name(), conf->AppUID(), conf->ViewUID(), + conf->Timeout(), conf->Version() ) ); + } + CleanupStack::PopAndDestroy(); //conf + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::AddTestAppL(CBCTestApplication* aApp) +// --------------------------------------------------------------------------- +// +void CBCTestRunner::AddTestAppL( CBCTestApplication* aApp ) + { + iTestApps.AppendL( aApp ); + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::RunTestL( TInt aCommand ) +// Starts test application and returns after test has been run +// --------------------------------------------------------------------------- +// +TBool CBCTestRunner::RunL( TInt aCommand ) + { + _LIT( KTEST, "test runner run." ); + LOG << KTEST << EndLine << End; + for ( TInt i = 0; i < iTestApps.Count(); ++i ) + { + TRAPD( errno, iTestApps[ i ]->RunL( aCommand ) ); + switch( errno ) + { + case KErrNone: + { + //User::After(8000000); + break; + } + case KErrNotFound: + { + _LIT( KNOTFOUND, ": not found!" ); + LOG << iTestApps[ i ]->Name() << KNOTFOUND << EndLine << End; + break; + } + case KErrTimedOut: + { + _LIT( KTIMEOUT, ": timeout." ); + LOG << iTestApps[ i ]->Name() << KTIMEOUT << EndLine << End; + break; + } + default: + break; + } + } + return ETrue; + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::CreateTimeStamp +// Creates time stamp. +// --------------------------------------------------------------------------- +// +void CBCTestRunner::CreateTimeStamp() + { + _LIT( KTIMEFAILED, "Getting time failed" ); + TTime homeTime; + homeTime.HomeTime(); + TRAPD( err, homeTime.FormatL( iTempBuf, KTimeFormat ) ); + if ( err != KErrNone ) // FormatL failed + iTempBuf = KTIMEFAILED(); + iBuf.Append( iTempBuf ); + } + +// --------------------------------------------------------------------------- +// CBCTestRunner::Apps() +// --------------------------------------------------------------------------- +// +RArray* CBCTestRunner::Apps() + { + return &iTestApps; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bcteststrmlogger.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestlauncher/src/bcteststrmlogger.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,222 @@ +/* +* Copyright (c) 2006-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: Handles log writing. +* +*/ + + +#include +#include + +#include "bcteststrmlogger.h" + +// +// helper class +// +class CLogFile: public CBase + { +public: + static CLogFile& CreateLC( const TDesC& aFileName ); + virtual ~CLogFile(); + RFile& operator()(); + +private: + RFile iFile; + }; + +//=====================Helper class Member functions========================== + +// --------------------------------------------------------------------------- +// CLogFile::CreateLC() +// --------------------------------------------------------------------------- +// +CLogFile& CLogFile::CreateLC( const TDesC& aFileName ) + { + CLogFile* self = new( ELeave ) CLogFile; + CleanupStack::PushL( self ); + + RFs& fs = CEikonEnv::Static()->FsSession(); + if ( self->iFile.Open( fs, aFileName, EFileWrite | EFileShareAny ) + != KErrNone ) + { + self->iFile.Create( fs, aFileName, EFileWrite | EFileShareAny ); + } + + TInt pos=0; // this must be 0 + self->iFile.Seek( ESeekEnd, pos ); + return *self; + } + +// --------------------------------------------------------------------------- +// CLogFile::~CLogFile() +// --------------------------------------------------------------------------- +// +CLogFile::~CLogFile() + { + iFile.Close(); + } + +// --------------------------------------------------------------------------- +// CLogFile::operator() +// --------------------------------------------------------------------------- +// +RFile& CLogFile::operator()() + { + return iFile; + } + +//=====================Member functions======================================= + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::BeginLC() +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger& CBCTestStreamLogger::BeginLC( const TDesC& aFileName ) + { + CBCTestStreamLogger* self = new( ELeave ) CBCTestStreamLogger(); + CleanupStack::PushL( self ); + self->ConstructL( aFileName ); + return *self; + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::CBCTestStreamLogger() +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger::CBCTestStreamLogger() + { + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::ConstructL() +// --------------------------------------------------------------------------- +// +void CBCTestStreamLogger::ConstructL( const TDesC& aFileName ) + { + iFileName = aFileName; + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::~CBCTestStreamLogger() +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger::~CBCTestStreamLogger() + { + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::Suicide() +// --------------------------------------------------------------------------- +// +void CBCTestStreamLogger::Suicide() + { + CleanupStack::PopAndDestroy(); //self + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::operator<<(const TDesC& aText) +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger& CBCTestStreamLogger::operator<<( const TDesC& aText ) + { + CLogFile& file = CLogFile::CreateLC( iFileName ); + HBufC8* text = NULL; + TRAPD( result, text = HBufC8::NewL( aText.Length() ) ); + if ( result != KErrNone ) + { + User::Leave( result ); + } + TPtr8 textPtr = text->Des(); + textPtr.Copy( aText ); + file().Write( *text ); + delete text; + CleanupStack::PopAndDestroy(); //file + + return *this; + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::operator<<(TInt aNum) +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger& CBCTestStreamLogger::operator<<( TInt aNum ) + { + CLogFile& file = CLogFile::CreateLC( iFileName ); + + TInt i = 1; + for( TInt v = aNum; v != 0; ++i, v /= 10 ) + { + } + HBufC* text = NULL; + TRAPD( result, text = HBufC::NewL( i ) ); + TPtr textPtr = text->Des(); + + _LIT(KFmt, "%d"); + textPtr.Format( KFmt, aNum ); + HBufC8* text8 = NULL; + TRAP( result, text8 = HBufC8::NewL( textPtr.Length() ) ); + if ( result != KErrNone ) + { + User::Leave( result ); + } + TPtr8 textPtr8 = text8->Des(); + textPtr8.Copy(*text); + + file().Write( *text8 ); + delete text; + delete text8; + CleanupStack::PopAndDestroy(); //file + + return *this; + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::CRL() +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger& CBCTestStreamLogger::CRL() + { + CLogFile& file = CLogFile::CreateLC( iFileName ); + TBuf8<2> enter; + enter.Append( 13 ); + enter.Append( 10 ); + file().Write( enter ); + CleanupStack::PopAndDestroy(); //file + return *this; + } + +// --------------------------------------------------------------------------- +// CBCTestStreamLogger::operator<<( CBCTestStreamLogger::Manipulator aOp ) +// --------------------------------------------------------------------------- +// +CBCTestStreamLogger& CBCTestStreamLogger::operator<<( + CBCTestStreamLogger::Manipulator aOp ) + { + return aOp( *this ); + } + +namespace BCTest + { + CBCTestStreamLogger& End( CBCTestStreamLogger& self ) + { + self.Suicide(); + return self; + } + + CBCTestStreamLogger& EndLine( CBCTestStreamLogger& self ) + { + self.CRL(); + return self; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bctesttemplate.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bctesttemplate.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 "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: project specification file for the BCTestTemplate. +* +*/ + + +TARGET BCTestTemplate.exe +TARGETTYPE exe +UID 0x0 0x101F84FF + +VENDORID 0x101FB657 +CAPABILITY NetworkServices LocalServices Location ReadUserData \ + WriteUserData ReadDeviceData WriteDeviceData SwEvent UserEnvironment + +TARGETPATH sys/bin + +EPOCSTACKSIZE 0x10000 +EPOCHEAPSIZE 0x10000 0x1000000 + +START RESOURCE BCTestTemplate.rss +HEADER +TARGETPATH resource/apps +END // RESOURCE + +LANG 01 + +SOURCEPATH ../Src +SOURCE bctesttemplateapp.cpp +SOURCE bctesttemplatedocument.cpp +SOURCE bctesttemplateappui.cpp +SOURCE bctesttemplateview.cpp +SOURCE bctesttemplatecontainer.cpp +SOURCE bctesttemplatecase.cpp + +USERINCLUDE . ../Inc +USERINCLUDE ../../BCTESTUTIL/Inc + +SYSTEMINCLUDE . /epoc32/include /epoc32/include/middleware /epoc32/include/osextensions /epoc32/include/domain/middleware + +LIBRARY euser.lib +LIBRARY apparc.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY eikcoctl.lib +LIBRARY avkon.lib +LIBRARY ws32.lib +LIBRARY AknSkins.lib +LIBRARY apgrfx.lib +LIBRARY bctestutil.lib +LIBRARY efsrv.lib + +START RESOURCE ../group/bctesttemplate_reg.rss +HEADER +TARGETPATH /private/10003a3f/apps +END + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bctesttemplate.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bctesttemplate.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,205 @@ +/* +* 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 "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: resources for the module +* +*/ + + +// RESOURCE IDENTIFIER +NAME TEMP + +// INCLUDES + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "BCTesttemplate.hrh" +#include "BCTesttemplate.loc" + +// CONSTANTS +#define APP_BITMAP_DIR "\\resource\\apps" +#define AVKON_BMP_FILENAME AVKON_ICON_FILE +#define bctesttemplate_BMP_FNAME APP_BITMAP_DIR"\\BCTestTemplate.mbm" + + +// MACROS + + + +// RESOURCE DEFINITIONS +//----------------------------------------------------------------------------- +// +// RSS_SIGNATURE +// +// +//----------------------------------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +//----------------------------------------------------------------------------- +// +// TBUF16 +// +// +//----------------------------------------------------------------------------- +// +RESOURCE TBUF16 + { + buf = "BCTestTemplate"; + } + +//----------------------------------------------------------------------------- +// +// EIK_APP_INFO +// +// +//----------------------------------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + menubar = r_bctesttemplate_menubar_main; + cba = r_bctesttemplate_cba_options_next; + } + +// --------------------------------------------------------- +// Provide Caption and Icon Info for Scalable UI +// +// --------------------------------------------------------- +// +RESOURCE LOCALISABLE_APP_INFO r_bctesttemplate_localisable_app_info + { + short_caption = qtn_apps_tavl_grid; + + caption_and_icon = + CAPTION_AND_ICON_INFO + { + caption = qtn_apps_tavl_list; + //number_of_icons = 2; + //icon_file = APP_BITMAP_DIR"\\BCTesttemplate_aif.mbm"; + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttemplate_view +// AVKON_VIEW for CBCTestTemplateView +// +//----------------------------------------------------------------------------- +// +RESOURCE AVKON_VIEW r_bctesttemplate_view + { + menubar = r_bctesttemplate_menubar_main; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttemplate_menubar +// MenuBar +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_bctesttemplate_menubar_main + { + titles = + { + MENU_TITLE + { + menu_pane = r_bctesttemplate_menu; + }, + MENU_TITLE + { + menu_pane = r_bctesttemplate_case_menu; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttemplate_case_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttemplate_case_menu + { + items = + { + MENU_ITEM + { + command = EBCTestCmdOutline1; + txt = qtn_bctesttemplate_outline1; + } + }; + } + +//----------------------------------------------------------------------------- +// +// r_bctesttemplate_menu +// Menu pane +// +//----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_bctesttemplate_menu + { + items = + { + MENU_ITEM + { + command = EProgCmdAutoTest; + txt = qtn_bctesttemplate_autotest; + }, + MENU_ITEM // Menu "Exit" + { + command = EAknCmdExit; + txt = qtn_bctesttemplate_menu_exit; + } + }; + } + +// ---------------------------------------------------------------------------- +// +// r_bctesttemplate_cba_options_next +// ?description +// +// ---------------------------------------------------------------------------- +// + +RESOURCE CBA r_bctesttemplate_cba_options_next + { + buttons = + { + CBA_BUTTON + { + id=EAknSoftkeyOptions; + txt = text_softkey_option; + }, + AVKON_CBA_BUTTON + { + id = EBCTestTemplateCbaCmdNext; + txt = qtn_bctesttemplate_cba_next; + } + }; + } + + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bctesttemplate_reg.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bctesttemplate_reg.rss Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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: +* +*/ +#include +#include + +UID2 KUidAppRegistrationResourceFile +UID3 0x101F84FF // application UID + +RESOURCE APP_REGISTRATION_INFO + { + app_file = "BCTestTemplate"; + localisable_resource_file = "\\resource\\apps\\BCTestTemplate"; + localisable_resource_id = R_BCTESTTEMPLATE_LOCALISABLE_APP_INFO; + hidden = KAppNotHidden; + embeddability = KAppNotEmbeddable; + group_name = "BCTest"; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +/* +* 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 "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: build information +* +*/ + + + + +PRJ_MMPFILES + +BCTestTemplate.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplate.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplate.hrh Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ +/* +* 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 "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: BCTestTemplate resource header file +* +*/ + + +#ifndef BCTESTTEMPLATE_HRH +#define BCTESTTEMPLATE_HRH + +enum TBCTestTemplateMenuCommands + { + EBCTestCmdEmptyOutline = 0x6000, + EBCTestCmdOutline1, + EBCTestCmdMaxOutline, + EProgCmdAutoTest + }; + +enum TBCTestTemplateCba + { + EBCTestTemplateCbaCmdNext = 0x6300 + }; + +#endif // BCTESTTEMPLATE_HRH + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplate.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplate.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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 "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: BCTestTemplate localise file +* +*/ + + +// LOCALISATION STRINGS + +// Caption +#define qtn_apps_tavl_list "BCTESTTEMPLATE" +#define qtn_apps_tavl_grid "BCTESTTEMPLATE" + +// MenuBar +#define qtn_bctesttemplate_menubar "Option" +#define qtn_bctesttemplate_cba_next "Next" +#define qtn_bctesttemplate_autotest "Autotest" +#define qtn_bctesttemplate_menu_exit "Exit" + +// softkey +#define text_softkey_option "Options" + +// outline +#define qtn_bctesttemplate_outline1 "Outline01" + + +#define qtn_bctestvolume_label_outline06 \ +"Press 2/8 <-, ->\nor side volume keys\nto see AknVolumePopup\n0,1 to change label" + +// Application name +#define qtn_bctestvolume_text_other_app_name "BCTestSoftkey" +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplateapp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplateapp.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,56 @@ +/* +* 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 "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: Declares main application class. +* +*/ + + +#ifndef BCTestTEMPLATEAPP_H +#define BCTestTEMPLATEAPP_H + +// INCLUDES +#include + +// CONSTANTS +const TUid KUidBCTestTemplate = { 0x101F84FF }; // UID of the application. + +// CLASS DECLARATION + +/** +* CBCTestTemplateApp application class. +* Provides factory to create concrete document object. +*/ +class CBCTestTemplateApp : public CAknApplication + { + private: // From CApaApplication + + /** + * From CApaApplication, CreateDocumentL. + * Creates CBCTestTemplateDocument document object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + + /** + * From CApaApplication, AppDllUid. + * Returns application's UID ( KUidBCTestTemplate ). + * @return The value of KUidBCTestTemplate. + */ + TUid AppDllUid() const; + + }; + +#endif + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplateappUi.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplateappUi.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,75 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef C_BCTESTTEMPLATEAPPUI_H +#define C_BCTESTTEMPLATEAPPUI_H + +#include + +class CBCTestTemplateView; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestTemplateAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + + /** + * ctor + */ + CBCTestTemplateAppUi(); + + /** + * symbian 2nd ctor + */ + void ConstructL(); + + /** + * dtor + */ + virtual ~CBCTestTemplateAppUi(); + + private: + + /** + * From CEikAppUi + */ + void HandleCommandL( TInt aCommand ); + + private: // data + + /** + * pointor to the view. + * own + */ + CBCTestTemplateView* iView; + + /** + * pointor to the BC Test framework utility. + * own + */ + CBCTestUtil* iTestUtil; + }; + +#endif // C_BCTESTTEMPLATEAPPUI_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplatecase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplatecase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,104 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#ifndef BCTEST_TEMPLATECASE_H +#define BCTEST_TEMPLATECASE_H + +#include "bctestcase.h" + +class CBCTestTemplateContainer; +class CCoeControl; + +/** +* test case for various list classes +*/ +class CBCTestTemplateCase: public CBCTestCase + { +public: // constructor and destructor + + /** + * Symbian 2nd static constructor + */ + static CBCTestTemplateCase* NewL( CBCTestTemplateContainer* aContainer ); + + /** + * Destructor + */ + virtual ~CBCTestTemplateCase(); + +public: // from CBCTestCase + + /** + * Execute corresponding test functions for UI command + * @param aCmd, UI command + */ + void RunL( TInt aCmd ); + +protected: // new functions + + /** + * Build autotest script + */ + void BuildScriptL(); + + /** + * Create control or allocate resource for test + * @param aCmd UI command, maybe you need to do some work + * for different outline + */ + void PrepareCaseL( TInt aCmd ); + + /** + * Release resource used in test + */ + void ReleaseCaseL(); + + /** + * Test functions + */ + void TestFunction(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTemplateCase( CBCTestTemplateContainer* aContainer ); + + /** + * Symbian 2nd constructor + */ + void ConstructL(); + +private: // data + + /** + * Pointer to a control, maybe you need one in your test + * own + */ + CCoeControl* iControl; + + /** + * Pointer to container. + * not own + */ + CBCTestTemplateContainer* iContainer; + + }; + +#endif // BCTEST_TEMPLATECASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplatecontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplatecontainer.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 "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: container +* +*/ + +#ifndef BCTEST_TEMPLATECONTAINER_H +#define BCTEST_TEMPLATECONTAINER_H + +#include + +/** +* container class +*/ +class CBCTestTemplateContainer: public CCoeControl + { +public: // constructor and destructor + + /** + * C++ default constructor + */ + CBCTestTemplateContainer(); + + /** + * Destructor + */ + virtual ~CBCTestTemplateContainer(); + + /** + * Symbian 2nd constructor + */ + void ConstructL( const TRect& aRect ); + +public: // new functions + + /** + * Set component control, and container will own the control + * @param aControl pointer to a control. + */ + void SetControl( CCoeControl* aControl ); + + /** + * Delete control + */ + void ResetControl(); + +public: // from CCoeControl + + /** + * Return count of component controls + */ + TInt CountComponentControls() const; + + /** + * Return pointer to component control specified by index + * @param aIndex, a index to specify a component control + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + +private: // from CCoeControl + + /** + * From CCoeControl, Draw. + * Fills the window's rectangle. + * @param aRect Region of the control to be (re)drawn. + */ + void Draw( const TRect& aRect ) const; + +private: // data + + /** + * Pointer to component control. + * own + */ + CCoeControl* iControl; + + }; + +#endif // BCTEST_TEMPLATECONTAINER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplatedocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplatedocument.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +/* +* 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 "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 C_BCTESTTEMPLATEDOCUMENT_H +#define C_BCTESTTEMPLATEDOCUMENT_H + +// INCLUDES +#include + +// CONSTANTS + +// FORWARD DECLARATIONS +class CEikAppUi; + +// CLASS DECLARATION + +/** +* CBCTestTemplateDocument application class. +*/ +class CBCTestTemplateDocument : public CEikDocument + { + public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor. + * @return Pointer to created Document class object. + * @param aApp Reference to Application class object. + */ + static CBCTestTemplateDocument* NewL( CEikApplication& aApp ); + + /** + * Destructor. + */ + virtual ~CBCTestTemplateDocument(); + + private: // Constructors + + /** + * Overload constructor. + * @param aApp Reference to Application class object. + */ + CBCTestTemplateDocument( CEikApplication& aApp ); + + private: // From CEikDocument + + /** + * From CEikDocument, CreateAppUiL. + * Creates CBCTestTemplateAppUi "App UI" object. + * @return Pointer to created AppUi class object. + */ + CEikAppUi* CreateAppUiL(); + + }; + +#endif // C_BCTESTTEMPLATEDOCUMENT_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplateview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/inc/bctesttemplateview.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,108 @@ +/* +* 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 "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 BC for Template control API. +* +*/ + + +#ifndef BCTEST_TEMPLATE_VIEW_H +#define BCTEST_TEMPLATE_VIEW_H + +#include + +const TUid KBCTestTemplateViewId = { 1 }; + +class CBCTestTemplateContainer; +class CBCTestUtil; + +/** + * Application UI class + * + * @lib bctestutil.lib + */ +class CBCTestTemplateView : public CAknView + { +public: // Constructors and destructor + + /** + * Symbian static 2nd constructor + */ + static CBCTestTemplateView* NewL(CBCTestUtil* aUtil); + + /** + * dtor + */ + virtual ~CBCTestTemplateView(); + +public: // from CAknView + + /** + * Return view Id. + */ + TUid Id() const; + + /** + * From CAknView, HandleCommandL. + * @param aCommand Command to be handled. + */ + void HandleCommandL( TInt aCommand ); + + /** + * getter of Container + */ + CBCTestTemplateContainer* Container(); + +protected: // from CAknView + + /** + * When view is activated, do something + */ + void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); + + /** + * When view is deactivated, do something + */ + void DoDeactivate(); + +private: // constructor + + /** + * C++ default constructor + */ + CBCTestTemplateView(); + + /** + * symbian 2nd ctor + */ + void ConstructL(CBCTestUtil* aUtil); + +private: // data + + /** + * pointor to the BC Test framework utility. + * not own just refer to + */ + CBCTestUtil* iTestUtil; + + /** + * pointor to the container. + * own + */ + CBCTestTemplateContainer* iContainer; + + }; + +#endif // BCTEST_TEMPLATE_VIEW_H + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/sis/bctesttemplate.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/sis/bctesttemplate.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,48 @@ +; +; 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: +; +; bctesttempalte.pkg + +; Languages +&EN + +; Header +#{"Browser_bctesttemplate"},(0x101F84FF),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +; Target +"\epoc32\release\armv5\urel\bctesttemplate.exe"- +"!:\sys\bin\bctesttemplate.exe" + +"\epoc32\data\z\resource\apps\bctesttemplate.r01"- +"!:\resource\apps\bctesttemplate.r01" + +"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctesttemplate_reg.r01"- +"!:\PRIVATE\10003A3F\import\APPS\bctesttemplate_reg.r01" + +; bctestutil must be installed +(0x20004742), 1, 10, 0, {"bctestutil.dll"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplateapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplateapp.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ +/* +* 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 "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: Avkon Template test app +* +*/ + + +// INCLUDE FILES +#include "BCTestTemplateApp.h" +#include "BCTestTemplateDocument.h" +#include + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// TUid CBCTestTemplateApp::AppDllUid() +// Returns application UID. +// ---------------------------------------------------------------------------- +// +TUid CBCTestTemplateApp::AppDllUid() const + { + return KUidBCTestTemplate; + } + +// ---------------------------------------------------------------------------- +// CApaDocument* CBCTestTemplateApp::CreateDocumentL() +// Creates CBCTestTemplateDocument object. +// ---------------------------------------------------------------------------- +// +CApaDocument* CBCTestTemplateApp::CreateDocumentL() + { + return CBCTestTemplateDocument::NewL( *this ); + } + +// ================= OTHER EXPORTED FUNCTIONS ================================= +// +// ---------------------------------------------------------------------------- +// CApaApplication* NewApplication() +// Constructs CBCTestTemplateApp. +// Returns: CApaDocument*: created application object +// ---------------------------------------------------------------------------- +// +LOCAL_C CApaApplication* NewApplication() + { + return new CBCTestTemplateApp; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplateappui.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplateappui.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,91 @@ +/* +* 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 "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 bc for template control api(s) +* +*/ + +#include +#include + +#include "bctesttemplateAppUi.h" +#include "bctesttemplate.hrh" +#include "bctesttemplateview.h" +#include "bctestutil.h" +#include "bctesttemplatecase.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// ctro do nothing +// --------------------------------------------------------------------------- +// +CBCTestTemplateAppUi::CBCTestTemplateAppUi() + { + } + +// --------------------------------------------------------------------------- +// symbian 2nd phase ctor +// --------------------------------------------------------------------------- +// +void CBCTestTemplateAppUi::ConstructL() + { + BaseConstructL(); + AknsUtils::SetAvkonSkinEnabledL( ETrue ); + + // init test util + iTestUtil = CBCTestUtil::NewL(); + + // init view + CBCTestTemplateView* view = CBCTestTemplateView::NewL(iTestUtil); + CleanupStack::PushL( view ); + AddViewL( view ); + CleanupStack::Pop( view ); + + ActivateLocalViewL( view->Id() ); + + // Add test case here. + iTestUtil->AddTestCaseL( CBCTestTemplateCase::NewL( view->Container() ), + _L("Template test case") ); + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateAppUi::~CBCTestTemplateAppUi() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestTemplateAppUi::~CBCTestTemplateAppUi() + { + delete iTestUtil; + } + +// ---------------------------------------------------------------------------- +// handle menu command events +// ---------------------------------------------------------------------------- +// +void CBCTestTemplateAppUi::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EAknSoftkeyBack: + case EEikCmdExit: + { + Exit(); + return; + } + default: + break; + } + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplatecase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplatecase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,145 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: test case +* +*/ + + +#include +#include + +#include "bctesttemplatecase.h" +#include "bctesttemplatecontainer.h" +#include "bctesttemplate.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateCase* CBCTestTemplateCase::NewL( + CBCTestTemplateContainer* aContainer ) + { + CBCTestTemplateCase* self = new( ELeave ) CBCTestTemplateCase( + aContainer ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default constructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateCase::CBCTestTemplateCase( + CBCTestTemplateContainer* aContainer ) + : iContainer( aContainer ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateCase::~CBCTestTemplateCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTemplateCase::ConstructL() + { + BuildScriptL(); + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestTemplateCase::BuildScriptL() + { + // Add script as your need. + AddTestL( DELAY(1), LeftCBA, KeyOK, TEND ); + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateCase::RunL +// --------------------------------------------------------------------------- +// +void CBCTestTemplateCase::RunL( TInt aCmd ) + { + if ( aCmd < EBCTestCmdOutline1 || aCmd > EBCTestCmdOutline1 ) + { + return; + } + // Call release before prepare to let container has time to draw the + // control created in PrepareCaseL. + ReleaseCaseL(); + PrepareCaseL( aCmd ); + switch ( aCmd ) + { + case EBCTestCmdOutline1: + TestFunction(); + break; + default: + break; + } + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateCase::PrepareCaseL +// --------------------------------------------------------------------------- +// +void CBCTestTemplateCase::PrepareCaseL( TInt aCmd ) + { + switch ( aCmd ) + { + case EBCTestCmdOutline1: + // Here is a simple demo. You should create your control + // instead of this. + iControl = new( ELeave ) CCoeControl(); + iControl->SetContainerWindowL( *iContainer ); + iControl->MakeVisible( ETrue ); + break; + default: + break; + } + // Pass the owner of iControl to iContainer. + iContainer->SetControl( iControl ); + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateCase::ReleaseCaseL +// --------------------------------------------------------------------------- +// +void CBCTestTemplateCase::ReleaseCaseL() + { + // let container delete the component control. + iContainer->ResetControl(); + iControl = NULL; + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateCase::TestLayoutDecorator +// --------------------------------------------------------------------------- +// +void CBCTestTemplateCase::TestFunction() + { + // Test some API here + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplatecontainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplatecontainer.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,116 @@ +/* +* 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 "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: container +* +*/ + + +#include "bctesttemplatecontainer.h" + +#define KAknAtListGray TRgb(0xaaaaaa) + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateContainer::CBCTestTemplateContainer() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateContainer::~CBCTestTemplateContainer() + { + ResetControl(); + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTemplateContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + ActivateL(); + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateContainer::Draw +// Fills the window's rectangle. +// ---------------------------------------------------------------------------- +// +void CBCTestTemplateContainer::Draw( const TRect& aRect ) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KAknAtListGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( aRect ); + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateContainer::CountComponentControls +// --------------------------------------------------------------------------- +// +TInt CBCTestTemplateContainer::CountComponentControls() const + { + if ( iControl ) + { + return 1; + } + else + { + return 0; + } + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateContainer::ComponentControl +// --------------------------------------------------------------------------- +// +CCoeControl* CBCTestTemplateContainer::ComponentControl( TInt ) const + { + return iControl; + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateContainer::SetControl +// --------------------------------------------------------------------------- +// +void CBCTestTemplateContainer::SetControl( CCoeControl* aControl ) + { + iControl = aControl; + if ( iControl ) + { + // You can change the position and size + iControl->SetExtent( Rect().iTl, Rect().Size() ); + iControl->ActivateL(); + DrawNow(); + } + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateContainer::ResetControl +// --------------------------------------------------------------------------- +// +void CBCTestTemplateContainer::ResetControl() + { + delete iControl; + iControl = NULL; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplatedocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplatedocument.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,65 @@ +/* +* 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 "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: Avkon Template test application +* +*/ + + +// INCLUDE FILES +#include "BCTestTemplateDocument.h" +#include "BCTestTemplateAppUi.h" + +// ================= MEMBER FUNCTIONS ========================================= + +// ---------------------------------------------------------------------------- +// CBCTestTemplateDocument* CBCTestTemplateDocument::NewL( CEikApplication& ) +// Symbian OS two-phased constructor. +// ---------------------------------------------------------------------------- +// +CBCTestTemplateDocument* CBCTestTemplateDocument::NewL( CEikApplication& aApp ) + { + CBCTestTemplateDocument* self = new( ELeave ) CBCTestTemplateDocument( aApp ); + return self; + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateDocument::~CBCTestTemplateDocument() +// Destructor. +// ---------------------------------------------------------------------------- +// +CBCTestTemplateDocument::~CBCTestTemplateDocument() + { + } + +// ---------------------------------------------------------------------------- +// CBCTestTemplateDocument::CBCTestTemplateDocument( CEikApplication& ) +// Overload constructor. +// ---------------------------------------------------------------------------- +// +CBCTestTemplateDocument::CBCTestTemplateDocument( CEikApplication& aApp ) + : CEikDocument( aApp ) + { + } + +// ---------------------------------------------------------------------------- +// CEikAppUi* CBCTestTemplateDocument::CreateAppUiL() +// Constructs CBCTestVolumeAppUi. +// ---------------------------------------------------------------------------- +// +CEikAppUi* CBCTestTemplateDocument::CreateAppUiL() + { + return new( ELeave ) CBCTestTemplateAppUi; + } + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplateview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctesttemplate/src/bctesttemplateview.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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: view class +* +*/ + + +#include + +#include "bctesttemplate.hrh" +#include +#include "bctesttemplateview.h" +#include "bctesttemplatecontainer.h" +#include "bctestutil.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Symbian 2nd static Constructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateView* CBCTestTemplateView::NewL(CBCTestUtil* aUtil) + { + CBCTestTemplateView* self = new( ELeave ) CBCTestTemplateView(); + CleanupStack::PushL( self ); + self->ConstructL(aUtil); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateView::CBCTestTemplateView() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestTemplateView::ConstructL(CBCTestUtil* aUtil) + { + BaseConstructL( R_BCTESTTEMPLATE_VIEW ); + + iContainer = new( ELeave ) CBCTestTemplateContainer(); + iContainer->SetMopParent( this ); + iContainer->ConstructL( ClientRect() ); + AppUi()->AddToStackL( *this, iContainer ); + iContainer->MakeVisible( ETrue ); + + iTestUtil = aUtil; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestTemplateView::~CBCTestTemplateView() + { + if ( iContainer ) + { + AppUi()->RemoveFromStack( iContainer ); + } + delete iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateView::Id +// --------------------------------------------------------------------------- +// +TUid CBCTestTemplateView::Id() const + { + return KBCTestTemplateViewId; + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateView::DoActivateL +// --------------------------------------------------------------------------- +// +void CBCTestTemplateView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateView::DoDeactivate +// --------------------------------------------------------------------------- +// +void CBCTestTemplateView::DoDeactivate() + { + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateView::Container +// --------------------------------------------------------------------------- +// +CBCTestTemplateContainer* CBCTestTemplateView::Container() + { + return iContainer; + } + +// --------------------------------------------------------------------------- +// CBCTestTemplateView::HandleCommandL +// --------------------------------------------------------------------------- +// +void CBCTestTemplateView::HandleCommandL( TInt aCommand ) + { + switch ( aCommand ) + { + case EProgCmdAutoTest: + iTestUtil->RunL(); + break; + default: + if ( aCommand > EBCTestCmdEmptyOutline && + aCommand < EBCTestCmdMaxOutline ) + { + iTestUtil->RunL( aCommand ); + } + break; + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/BMARMV5/bctestutilU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/BMARMV5/bctestutilU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,40 @@ +EXPORTS + _ZN11CBCTestCase14AddTestScriptLEPKii @ 1 NONAME + _ZN11CBCTestCase4RunLEi @ 2 NONAME + _ZN11CBCTestCase8AddTestLEiz @ 3 NONAME + _ZN11CBCTestCaseC1Ev @ 4 NONAME + _ZN11CBCTestCaseC2Ev @ 5 NONAME + _ZN11CBCTestCaseD0Ev @ 6 NONAME + _ZN11CBCTestCaseD1Ev @ 7 NONAME + _ZN11CBCTestCaseD2Ev @ 8 NONAME + _ZN11CBCTestUtil12AddTestCaseLEP11CBCTestCaseRK7TDesC16 @ 9 NONAME + _ZN11CBCTestUtil4NewLEv @ 10 NONAME + _ZN11CBCTestUtil4RunLEi @ 11 NONAME + _ZN11CBCTestUtil4RunLEv @ 12 NONAME + _ZN11CBCTestUtilD0Ev @ 13 NONAME + _ZN11CBCTestUtilD1Ev @ 14 NONAME + _ZN11CBCTestUtilD2Ev @ 15 NONAME + _ZN13CBCTestAssert10AssertIntLEiiRK7TDesC16 @ 16 NONAME + _ZN13CBCTestAssert11AssertTrueLEiRK7TDesC16 @ 17 NONAME + _ZN13CBCTestAssert14AssertNotNullLEPvRK7TDesC16 @ 18 NONAME + _ZN13CBCTestAssert9WriteLogLERK7TDesC16 @ 19 NONAME + _ZN13CBCTestAssertC1Ev @ 20 NONAME + _ZN13CBCTestAssertC2Ev @ 21 NONAME + _ZN13CBCTestAssertD0Ev @ 22 NONAME + _ZN13CBCTestAssertD1Ev @ 23 NONAME + _ZN13CBCTestAssertD2Ev @ 24 NONAME + _ZTI11CBCTestCase @ 25 NONAME ; ## + _ZTI11CBCTestUtil @ 26 NONAME ; ## + _ZTI12CBCTestSuite @ 27 NONAME ; ## + _ZTI13CBCTestAssert @ 28 NONAME ; ## + _ZTI13CBCTestLogger @ 29 NONAME ; ## + _ZTI14CBCTestEndCase @ 30 NONAME ; ## + _ZTI16CBCTestKeyFeeder @ 31 NONAME ; ## + _ZTV11CBCTestCase @ 32 NONAME ; ## + _ZTV11CBCTestUtil @ 33 NONAME ; ## + _ZTV12CBCTestSuite @ 34 NONAME ; ## + _ZTV13CBCTestAssert @ 35 NONAME ; ## + _ZTV13CBCTestLogger @ 36 NONAME ; ## + _ZTV14CBCTestEndCase @ 37 NONAME ; ## + _ZTV16CBCTestKeyFeeder @ 38 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/bwins/bctestutilU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/bwins/bctestutilU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ +EXPORTS + ??0CBCTestAssert@@QAE@XZ @ 1 NONAME ; CBCTestAssert::CBCTestAssert(void) + ??0CBCTestCase@@QAE@XZ @ 2 NONAME ; CBCTestCase::CBCTestCase(void) + ??1CBCTestAssert@@UAE@XZ @ 3 NONAME ; CBCTestAssert::~CBCTestAssert(void) + ??1CBCTestCase@@UAE@XZ @ 4 NONAME ; CBCTestCase::~CBCTestCase(void) + ??1CBCTestUtil@@UAE@XZ @ 5 NONAME ; CBCTestUtil::~CBCTestUtil(void) + ?AddTestCaseL@CBCTestUtil@@QAEXPAVCBCTestCase@@ABVTDesC16@@@Z @ 6 NONAME ; void CBCTestUtil::AddTestCaseL(class CBCTestCase *, class TDesC16 const &) + ?AddTestL@CBCTestCase@@QAAXHZZ @ 7 NONAME ; void CBCTestCase::AddTestL(int, ...) + ?AddTestScriptL@CBCTestCase@@QAEXPBHH@Z @ 8 NONAME ; void CBCTestCase::AddTestScriptL(int const *, int) + ?AssertIntL@CBCTestAssert@@QAEXHHABVTDesC16@@@Z @ 9 NONAME ; void CBCTestAssert::AssertIntL(int, int, class TDesC16 const &) + ?AssertNotNullL@CBCTestAssert@@QAEXPAXABVTDesC16@@@Z @ 10 NONAME ; void CBCTestAssert::AssertNotNullL(void *, class TDesC16 const &) + ?AssertTrueL@CBCTestAssert@@QAEXHABVTDesC16@@@Z @ 11 NONAME ; void CBCTestAssert::AssertTrueL(int, class TDesC16 const &) + ?NewL@CBCTestUtil@@SAPAV1@XZ @ 12 NONAME ; class CBCTestUtil * CBCTestUtil::NewL(void) + ?RunL@CBCTestCase@@UAEXH@Z @ 13 NONAME ; void CBCTestCase::RunL(int) + ?RunL@CBCTestUtil@@QAEXH@Z @ 14 NONAME ; void CBCTestUtil::RunL(int) + ?RunL@CBCTestUtil@@QAEXXZ @ 15 NONAME ; void CBCTestUtil::RunL(void) + ?WriteLogL@CBCTestAssert@@QAEXABVTDesC16@@@Z @ 16 NONAME ; void CBCTestAssert::WriteLogL(class TDesC16 const &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/group/bctestutil.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/group/bctestutil.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2006-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: Project definition file for project bctestutil +* +*/ + +TARGET bctestutil.dll +TARGETTYPE dll +UID 0x1000008d 0x20004742 + +CAPABILITY ALL -TCB +VENDORID 0x101FB657 + +SOURCEPATH ../src +SOURCE bctestLogger.cpp +SOURCE bctestAssert.cpp +SOURCE bctestcase.cpp +SOURCE bctestsuite.cpp +SOURCE bctestutil.cpp +SOURCE bctestKeyFeeder.cpp +SOURCE bctestEndCase.cpp + +#ifdef SBSV2 + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#else // SBSV2 not defined + USERINCLUDE ../inc + #if defined(__S60_) + APP_LAYER_SYSTEMINCLUDE + #else // __S60_ not defined + SYSTEMINCLUDE /epoc32/include + #endif // __S60_ +#endif // SBSV2 + +LIBRARY efsrv.lib +LIBRARY ws32.lib +LIBRARY fbscli.lib +LIBRARY euser.lib +LIBRARY cone.lib +LIBRARY eikcore.lib +LIBRARY aknnotify.lib +LIBRARY commonengine.lib +LIBRARY avkon.lib +LIBRARY CentralRepository.lib +LIBRARY sysutil.lib +LIBRARY estor.lib + +#if defined(WINS) && !defined(WINSB) + deffile ../BWINS/bctestutil.def +#elif defined(WINSB) + deffile ../BWINSB/bctestutil.def +#elif defined(ARM) + deffile ../BMARM/bctestutil.def +#elif defined(ARMCC) + deffile ../BMARMV5/bctestutil.def +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +/* +* 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 "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: This file provides the information required for building the +* : whole AknAtAutoTestDLL. +* +*/ + + + +//PRJ_PLATFORMS +//WINS THUMB WINSCW +//#if defined(ARMCC) +//armv5 +//#endif + +PRJ_EXPORTS +release_note.txt /epoc32/winscw/c/BCTestLog/release_note.txt + +PRJ_MMPFILES +bctestutil.mmp + +// End of File diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/arabicstrings.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/arabicstrings.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,170 @@ +/* +* Copyright (c) 2003 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: sample strings for arabic testing +* +*/ + + +#ifndef ARABIC_STRINGS_LOC +#define ARABIC_STRINGS_LOC + +/* random snippet of real arabic text in unicode hex format +<0xfeff><0x0648><0x062a><0x062a><0x0639><0x0631><0x0636>" "<0x062c><0x064a> +<0x062a><0x064a><0x0646><0x0645><0x064a><0x0643><0x064a>" "<0x0645><0x0646> +<0x0630>" "<0x0623><0x0633><0x0627><0x0628><0x064a><0x0639>" "<0x0644><0x0627> +<0x0646><0x062a><0x0642><0x0627><0x062f><0x0627><0x062a>" "<0x0628><0x0633> +<0x0628><0x0628>" "<0x0641><0x0636><0x064a><0x062d><0x0629> \"<0x0639><0x0631> +<0x0627><0x0642>" "<0x063a><0x064a><0x062a>\"". "<0x0648><0x0641><0x064a>" " +<0x0627><0x0644><0x062d><0x0645><0x0644><0x0629>" "<0x0627><0x0644><0x0627> +<0x0646><0x062a><0x062e><0x0627><0x0628><0x064a><0x0629>" "<0x0623><0x062e> +<0x0630>" "<0x0639><0x0644><0x064a><0x0647><0x0627>" "<0x0625><0x062e><0x0641> +<0x0627><0x0621>" "<0x0645><0x0639><0x0644><0x0648><0x0645><0x0627><0x062a>" " +<0x0633><0x0631><0x064a><0x0629>" "<0x0645><0x0646>" "<0x0648><0x0632><0x0627> +<0x0631><0x0629>" "<0x0627><0x0644><0x062e><0x0627><0x0631><0x062c><0x064a> +<0x0629>" "<0x0639><0x0646>" "<0x0644><0x0642><0x0627><0x0621>" "<0x0628> +<0x064a><0x0646>" "<0x0627><0x0644><0x0631><0x0626><0x064a><0x0633>" "<0x0627> +<0x0644><0x0623><0x0645><0x064a><0x0631><0x0643><0x064a>" "<0x062c><0x0648> +<0x0631><0x062c>" "<0x0628><0x0648><0x0634>" "<0x0645><0x0639>" "<0x0644> +<0x064a><0x0628><0x0648><0x0646><0x0646>" "<0x0641><0x064a>" "<0x0648> +<0x0627><0x0634><0x0646><0x0637><0x0646>" "<0x0641><0x064a>" "<0x062f> +<0x064a><0x0633><0x0645><0x0628><0x0631/>" "<0x0643><0x0627><0x0646> +<0x0648><0x0646>" "<0x0627><0x0644><0x0623><0x0648><0x0644>" 2002." +*/ + +/* another random snippet +<0x0648><0x062a><0x0634><0x064a><0x0631>" "<0x0647><0x0630><0x0647>" " +<0x0627><0x0644><0x0648><0x062b><0x0627><0x0626><0x0642>" "<0x0625><0x0644> +<0x0649>" "<0x0623><0x0646>" "<0x0644><0x064a><0x0628><0x0648><0x0646> +<0x0646>" "<0x0623><0x0639><0x0631><0x0628>" "<0x0644><0x0644><0x0628> +<0x064a><0x062a>" "<0x0627><0x0644><0x0623><0x0628><0x064a><0x0636>" " +<0x0639><0x0646>" "<0x062f><0x0639><0x0645><0x0647>" "<0x0644><0x062a> +<0x062f><0x062e><0x0644>" "<0x0623><0x0645><0x064a><0x0631><0x0643><0x064a> +" "<0x0641><0x064a>" "<0x0627><0x0644><0x0639><0x0631><0x0627><0x0642>" " +<0x062f><0x0648><0x0646>" "<0x0627><0x0633><0x062a><0x0634><0x0627><0x0631> +<0x0629>" "<0x062d><0x0643><0x0648><0x0645><0x062a><0x0647><0x060c>" " +<0x0641><0x064a>" "<0x0648><0x0642><0x062a>" "<0x0643><0x0627><0x0646> +<0x062a>" "<0x0641><0x064a><0x0647>" "<0x063a><0x0627><0x0644><0x0628> +<0x064a><0x0629>" "<0x0645><0x0646>" "<0x0627><0x0644><0x0641><0x0646> +<0x0644><0x0646><0x062f><0x064a><0x064a><0x0646>" "<0x062a><0x0639> +<0x0627><0x0631><0x0636>" "<0x0630><0x0644><0x0643>"." +*/ + +/* 3rd sample of arabic text +<0x0648><0x0642><0x062f>" "<0x0627><0x0633><0x062a><0x062e><0x062f> +<0x0645><0x062a>" "<0x062c><0x064a><0x062a><0x064a><0x0646><0x0645> +<0x064a><0x0643><0x064a>" "<0x062c><0x0632><0x0621><0x0627>" " +<0x0645><0x0646>" "<0x0647><0x0630><0x0647>" "<0x0627><0x0644><0x0645> +<0x0639><0x0644><0x0648><0x0645><0x0627><0x062a>" "<0x0644><0x0644> +<0x062a><0x0642><0x062f><0x0645>" "<0x0639><0x0644><0x0649>" "<0x0645> +<0x0646><0x0627><0x0641><0x0633><0x0647><0x0627>" "<0x0648><0x0641> +<0x0627><0x0632><0x062a>" "<0x0641><0x064a>" "<0x0627><0x0644><0x0646> +<0x0647><0x0627><0x064a><0x0629>" "<0x0641><0x064a>" "<0x0627><0x0644> +<0x0627><0x0646><0x062a><0x062e><0x0627><0x0628><0x0627><0x062a>" "<0x0628> +<0x0641><0x0627><0x0631><0x0642>" "<0x0628><0x0633><0x064a><0x0637.>" " +<0x0648><0x0646><0x0641><0x062a>" "<0x0628><0x0639><0x062f>" "<0x0630> +<0x0644><0x0643>" "<0x0627><0x0637><0x0644><0x0627><0x0639><0x0647><0x0627> +" "<0x0639><0x0644><0x0649>" "<0x0627><0x0644><0x0648><0x062b><0x0627> +<0x0626><0x0642>" "<0x0627><0x0644><0x0633><0x0631><0x064a><0x0629><0x060c> +" "<0x0625><0x0644><0x0627>" "<0x0623><0x0646>" "<0x0627><0x0644><0x0634> +<0x0647><0x0627><0x062f><0x0627><0x062a>" "<0x0627><0x0644><0x062a><0x064a> +" "<0x0643><0x0634><0x0641><0x062a>" "<0x0641><0x064a>" "<0x0627><0x0644> +<0x0623><0x0633><0x0627><0x0628><0x064a><0x0639>" "<0x0627><0x0644><0x0623> +<0x062e><0x064a><0x0631><0x0629>" "<0x0644><0x0645>" "<0x062a><0x0643> +<0x0646>" "<0x0644><0x0635><0x0627><0x0644><0x062d><0x0647><0x0627>"." +*/ + + +/* fourth sample +<0x0648><0x062c><0x0627><0x0621><0x062a>" "<0x0627><0x0633><0x062a><0x0642> +<0x0627><0x0644><0x0629>" "<0x062c><0x064a><0x062a><0x064a><0x0646><0x0645> +<0x064a><0x0643><0x064a>" "<0x0645><0x0641><0x0627><0x062c><0x0623><0x0629> +" "<0x0644><0x0633><0x0643><0x0627><0x0646>" "<0x0641><0x0646><0x0644><0x0646> +<0x062f><0x0627>" "<0x0627><0x0644><0x0628><0x0627><0x0644><0x063a>" "<0x0639> +<0x062f><0x062f><0x0647><0x0645 5.2>" "<0x0645><0x0644><0x0627><0x064a> +<0x064a><0x0646>" "<0x0646><0x0633><0x0645><0x0629>" "<0x0648><0x0627> +<0x0644><0x0630><0x064a><0x0646>" "<0x064a><0x0641><0x062a><0x062e><0x0631> +<0x0648><0x0646>" "<0x0644><0x0623><0x0646><0x0641><0x0633><0x0647><0x0645> +" "<0x0628><0x0627><0x0644><0x0627><0x0633><0x062a><0x0642><0x0631><0x0627> +<0x0631>" "<0x0648><0x0627><0x0644><0x062a><0x0639><0x0627><0x0641><0x064a> +" "<0x0645><0x0646>" "<0x0631><0x0643><0x0648><0x062f>" "<0x0641><0x064a> +" "<0x0623><0x0648><0x0627><0x0626><0x0644>" "<0x0627><0x0644><0x062a> +<0x0633><0x0639><0x064a><0x0646><0x0627><0x062a>" "<0x0644><0x064a><0x0635> +<0x0628><0x062d>" "<0x0627><0x0642><0x062a><0x0635><0x0627><0x062f><0x0647> +<0x0645>" "<0x0623><0x062d><0x062f>" "<0x0623><0x0642><0x0648><0x0649>" " +<0x0627><0x0644><0x0627><0x0642><0x062a><0x0635><0x0627><0x062f><0x064a> +<0x0627><0x062a>" "<0x0641><0x064a>" "<0x0627><0x0644><0x0627><0x062a><0x062d> +<0x0627><0x062f>" "<0x0627><0x0644><0x0623><0x0648><0x0631><0x0648><0x0628> +<0x064a><0x0645><0x0646>" "<0x062c><0x0647><0x0629>" "<0x0623><0x062e> +<0x0631><0x0649><0x060c>" "<0x062e><0x0631><0x062c>" "<0x0627><0x0644> +<0x0645><0x063a><0x0631><0x0628><0x064a>" "<0x064a><0x0648><0x0646><0x0633> +*/ + + +/* text from 2nd sample */ +#define qtn_arabic_text \ + <0x0648><0x062a><0x0634><0x064a><0x0631>" "<0x0647><0x0630><0x0647>" "\ + <0x0627><0x0644><0x0648><0x062b><0x0627><0x0626><0x0642>" "<0x0625><0x0644>\ + <0x0649>" "<0x0623><0x0646>" "<0x0644><0x064a><0x0628><0x0648><0x0646> + +/* medium length snippet of text from samples */ +#define qtn_arabic_medium <0x0648><0x0642><0x062f>" "\ + <0x0627><0x0633><0x062a><0x062e><0x062f><0x0645><0x062a> + +/* meaningless arabic strings, 4 same characters each */ +#define qtn_arabic_short <0x062A><0x062A><0x062A><0x062A> +#define qtn_arabic_short0 <0x062B><0x062B><0x062B><0x062B> +#define qtn_arabic_short1 <0x062C><0x062C><0x062C><0x062C> +#define qtn_arabic_short2 <0x062D><0x062D><0x062D><0x062D> +#define qtn_arabic_short3 <0x062E><0x062E><0x062E><0x062E> +#define qtn_arabic_short4 <0x062F><0x062F><0x062F><0x062F> +#define qtn_arabic_short5 <0x0622><0x0622><0x0622><0x0622> +#define qtn_arabic_short6 <0x0623><0x0623><0x0623><0x0623> +#define qtn_arabic_short7 <0x0624><0x0624><0x0624><0x0624> +#define qtn_arabic_short8 <0x0625><0x0625><0x0625><0x0625> +#define qtn_arabic_short9 <0x0626><0x0626><0x0626><0x0626> + +/* some latin text inserted in arabic snippet */ +#define qtn_arabic_and_latin "Little latin text"\ + <0x0645><0x063a><0x0631><0x0628><0x064a>\ + "And some more"\ + <0x064a><0x0648><0x0646><0x0633>\ + +/* same arabic text as previous snippet, shorter latin parts */ +#define qtn_arabic_latin_medium \ + <0x0645><0x063a><0x0631><0x0628><0x064a>\ + "And some latin"\ + <0x064a><0x0648><0x0646><0x0633>\ + +/* short arabic & latin texts - arabic parts again 4 same chars each */ +#define qtn_arabic_latin_short <0x0632><0x0632>"short" <0x0632><0x0632> +#define qtn_arabic_latin_short0 <0x0633><0x0633>"latin" <0x0633><0x0633> +#define qtn_arabic_latin_short1 <0x0634><0x0634>" text" <0x0634><0x0634> +#define qtn_arabic_latin_short2 <0x0635><0x0635>"text " <0x0635><0x0635> +#define qtn_arabic_latin_short3 <0x0636><0x0636>" and " <0x0636><0x0636> +#define qtn_arabic_latin_short4 <0x0637><0x0637>" some" <0x0637><0x0637> +#define qtn_arabic_latin_short5 <0x0638><0x0638>"more " <0x0638><0x0638> +#define qtn_arabic_latin_short6 <0x0639><0x0639>" or " <0x0639><0x0639> +#define qtn_arabic_latin_short7 <0x063a><0x063a>" less "<0x063A><0x063a> +#define qtn_arabic_latin_short8 <0x063b><0x063b>" or " <0x063B><0x063b> +#define qtn_arabic_latin_short9 <0x063c><0x063c>" most "<0x063C><0x063c> + +// arabic numerals 1234567890 +#define qtn_arabic_nums <0x0661><0x0662><0x0663><0x0664><0x0665>\ + <0x0666><0x0667><0x0668><0x0669><0x0660> +// for softkeys +#define qtn_arabic_ok <0x0645><0x0648><0x0627><0x0641><0x0642> +#define qtn_arabic_cancel <0x0625><0x0644><0x063a><0x0627><0x0621> + + +#endif // ARABIC_STRINGS_LOC diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/autotestcommands.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/autotestcommands.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,81 @@ +/* +* 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 "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: Defines commands used in autotesting +* +*/ + +#ifndef AUTOTESTCOMMANDS_H +#define AUTOTESTCOMMANDS_H + +// Language enumerations would overlap with command enumerations --> +// start commands somewhere else + +enum TAutotestCommands + { + LeftCBA = 2000, + RightCBA, + KeyOK, + Up, + Down, + Left, + Right, + Key1, + Key2, + Key3, + Key4, + Key5, + Key6, + Key7, + Key8, + Key9, + Key0, + KeyAsterisk, + KeyHash, + KeyApplication, + KeyPhoneSend, + KeyPhoneEnd, + KeyPower, + KeyVoice, + KeyBackspace, + KeyABC, + GripOpen, + GripClose, + REPEAT, // command and count must follow repeat + WAITCOMMAND, // count must follow wait + SETTICKCOUNT, // sets time between commands (in 0.1 second intervals) + JUSTKEYDOWN, // next command is key down press + JUSTKEYUP, // next command is key up press + + //for touch screen support + PointerDown, + PointerUp, + PointerMove + }; + +#define REP(command, count) REPEAT, command, count +#define WAIT(count) WAITCOMMAND, count +#define DELAY(count) SETTICKCOUNT, count +#define KEYDOWN(keypress) JUSTKEYDOWN, keypress +#define KEYUP(keypress) JUSTKEYUP, keypress + +// for localization support +#define IFDISPLANG(aLanguage) IfDispLanguage, aLanguage, +#define ELSE Else, +#define ENDIF EndIf, +#define POINTERDOWN(x,y) PointerDown, x, y +#define POINTERUP(x,y) PointerUp, x, y +#define POINTERMOVE(x,y) PointerMove, x, y +#define TEND -1 + +#endif //AUTOTESTCOMMANDS_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestassert.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestassert.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,139 @@ +/* +* 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 "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: Assert tool for checking test result +* +*/ + + +#ifndef C_CBCTESTASSERT_H +#define C_CBCTESTASSERT_H + +#include +#include + +class CBCTestLogger; + +/** + * CBCTestAssert + */ +class CBCTestAssert: public CBase + { +public: + +// constructor and destructor + + /** + * C++ default constructor. + */ + IMPORT_C CBCTestAssert(); + + /** + * Destructor. + */ + IMPORT_C virtual ~CBCTestAssert(); + +// exported functions + + /** + * Assert tool functions. Using to verify the return value of tested API. + * @param aExpect, the expected value. + * @param aActual, the actual value. + * @param aComments, one sentence of comments. + */ + IMPORT_C void AssertIntL( TInt aExpect, TInt aActual, + const TDesC& aComments = KNullDesC ); + + IMPORT_C void AssertTrueL( TBool aActual, + const TDesC& aComments = KNullDesC ); + + IMPORT_C void AssertNotNullL( TAny* aActual, + const TDesC& aComments = KNullDesC ); + + /** + * Write one sentence of log. + * @param aLogText + */ + IMPORT_C void WriteLogL( const TDesC& aLogText ); + +// new functions + + /** + * Set a pointer to logger. + * @param aLogger, a pointer to a logger object. + */ + void SetLogger( CBCTestLogger* aLogger ); + + /** + * Clear test statistic data. i.e. iTestCount and iFailedCount + */ + void ClearTestSummary(); + + /** + * Get test statistic data. + */ + void GetTestSummary( TInt& aTestCount, TInt& aFailedCount ) const; + +protected: + +// declaration + + /** + * The type of assert function. + */ + enum TAssertType + { + EAssertInt, + EAssertTrue, + EAssertNotNull, + EAssertEnd + }; + + struct SAssertParam + { + TInt intValue; + TAny* ptValue; + }; + +// new functions + + /** + * Wrtie log of assert result. + * @param aType, what type of value has been checked. + * @param aSuccess, whether the test passed. + * @param aComments, comments about the assert. + */ + void AssertLogL( TAssertType aType, TBool aSuccess, + const TDesC& aComments, SAssertParam* param = NULL ); + +private: // data + + /** + * Used to write log. + * Not own. + */ + CBCTestLogger* iLogger; + + /** + * How many asserts failed totally. + */ + TInt iFailedCount; + + /** + * How many assert done totally. + */ + TInt iTestCount; + + }; + +#endif // C_CBCTESTASSERT_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,158 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Test case class, user will create own test case class by +* deriving from the class. +* +*/ + + +#ifndef C_CBCTESTCASE_H +#define C_CBCTESTCASE_H + +#include "bctestassert.h" +#include "AutotestCommands.h" + +const TInt KNameLength = 50; + +/** + * Test case class, user will derive own test case from the class + */ +class CBCTestCase : public CBCTestAssert + { +public: + +// declaration + + /** + * Test case type + * EEndCase means the case is an instance of CBCTestEndCase + */ + enum TTestCaseType + { + ENormalCase, + EEndCase + }; + +// constructor + + /** + * C++ default constructor + */ + IMPORT_C CBCTestCase(); + + /** + * Destructor + */ + IMPORT_C virtual ~CBCTestCase(); + +// exported new functions + + /** + * Add script commands to the test case. + * @param aCmd, script command + */ + IMPORT_C void AddTestL( TInt aCmd, ... ); + + /** + * Add a series of commands defined in a TInt array to the test case + * @param aCmdArray, an array stored script commands + * @param aCmdCount, the count of script commands stored in aCmdArray. + */ + IMPORT_C void AddTestScriptL( const TInt* aCmdArray, TInt aCmdCount ); + +// exported virtual functions + + /** + * Do actual test work specified by parameter, here the functions is not + * implemented. User have to override it. + * @param, a value to a test command. + */ + IMPORT_C virtual void RunL( TInt ); + +// new functions + + /** + * Return iTestScripts. + */ + TInt* TestScripts(); + + /** + * Return the count of script commands stored in the test case. + */ + TInt ScriptCount(); + + /** + * Set name of test case + */ + void SetName( const TDesC& aName ); + + /** + * Get name of test case + */ + TDesC& Name(); + + /** + * Set type of test case. + */ + void SetType( TInt aType ); + + /** + * Get type of test case. + */ + TInt Type(); + +protected: + +// new functions + + /** + * Add a TInt to iTestScripts, and dynamically expand the array + * when necessary. + * @param aCmd, a script command. + */ + void AppendL( TInt aCmd ); + +private: // data + + /** + * Array to store script commands. Use TInt* for combining several + * TInt array together easily. And copying memory is not needed by + * the way. + * Own. + */ + TInt* iTestScripts; + + /** + * Record the count of script commands stored in iTestScripts. + */ + TInt iScriptCount; + + /** + * Record the maximum size of iTestScripts. + */ + TInt iMaxSize; + + /** + * The name of test case. + */ + TBuf iName; + + /** + * The type of test case, using the value ETestCaseType. + */ + TInt iType; + + }; + +#endif // C_CBCTESTCASE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestendcase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestendcase.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* 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 "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 utility, an interface of BCTest framework. +* +*/ + +#ifndef C_CBCTESTENDCASE_H +#define C_CBCTESTENDCASE_H + +#include "bctestcase.h" + +/** + * End case class, suite will add the case to the end of case array, with the + * case, test application will automatically exit. + */ +class CBCTestEndCase: public CBCTestCase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd phase constructor + */ + static CBCTestEndCase* NewL(); + + /** + * Destructor + */ + virtual ~CBCTestEndCase(); + +// new functions + + /** + * Build automatic test script. + */ + void BuildScriptL(); + +private: + +// constructor + + /** + * C++ default constructor + */ + CBCTestEndCase(); + + /** + * Symbian 2nd phase constructor + */ + void ConstructL(); + + }; + +#endif // C_CBCTESTENDCASE_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestkeyfeeder.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestkeyfeeder.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,184 @@ +/* +* 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 "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: Emulate key or pointer event. +* +*/ + + +#ifndef C_CBCTESTKEYFEEDER_H +#define C_CBCTESTKEYFEEDER_H + +#include + +#include "bctestutil.h" + +class CBCTestSuite; +class CEikonEnv; + +/** + * CBCTestKeyFeeder for autotests + */ +class CBCTestKeyFeeder : public CBase + { +public: + +// Constructors and destructor + + /** + * C++ default constructor. + */ + CBCTestKeyFeeder(); + + /** + * Destructor. + */ + virtual ~CBCTestKeyFeeder(); + +// New functions + + /** + * Periodic function called every 0.1 seconds + * The function is a callback used by CPeriodic, so it have + * to conform to demanded format, it has to return TInt. + * @param aThis Pointer to this (CBCTestKeyFeeder) + * @return Always return 0 + */ + static TInt PeriodicKeyFeederL(TAny* aThis); + + /** + * Handles autotest commands (big switch case) + */ + void HandleAutoCommandL(); + + /** + * Pauses timer temporarily + */ + void PauseTimer(); + + /** + * Resumes timer + */ + void ResumeTimer(); + + /* + * Start auto test + * @param aAutoTest, a structure containes autotest scripts of every + * test case. + */ + void StartAutoTestL(SAutoTest* aAutoTest); + + /** + * Set test suite pointer, key feeder will pass some event to suite to + * handle durint automatic test process. + */ + void SetSuite( CBCTestSuite* aSuite ); + +private: + +// new functions + + /** + * Simulates key down press using window server + * @param aScanCode + */ + void KeyDown(TInt aScanCode); + + /** + * Simulates key down press using window server + * @param aScanCode + */ + void KeyUp(TInt aScanCode); + + /** + * Simulates key press using window server + * @param aScanCode + */ + void KeyPress(TInt aCode, TInt aScanCode); + + /** + * Simulates pointer event + * @param aEvent + */ + void PointerEvent(TRawEvent& aEvent); + +private: //data + + /** + * Not Own. + */ + CBCTestSuite* iSuite; + + /** + * Not Own. + */ + CEikonEnv* iEikEnv; + + /** + * For changing delays between key feeds + */ + TInt iTickCount; + TInt iTickCounter; + + /** + * active object + */ + CPeriodic* iPeriodic; + + /** + * Not Own. + */ + SAutoTest* iAutoTest; + + /** + * Not Own. + */ + const TInt* iScriptCommands; + + TInt iScriptIndex; + TInt iIndex; + + TInt iWaitCount; + TInt iRepeat; + TInt iCommand; + TInt iRepeatCommand; + + /** + * for key down presses + */ + TBool iKeyDown; + + /** + * for key up presses + */ + TBool iKeyUp; + + /** + * State of modifier keys + */ + TUint iModifiers; + TUint iOldModifiers; + + TInt iOutlineCount; + + TBool iTimerPaused; + + /** + * conditional sequence support + */ + TBool iDoElse; + TInt iIfCount; + + }; + +#endif // C_CBCTESTKEYFEEDER_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestlogger.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestlogger.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,153 @@ +/* +* 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 "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: Write log +* +*/ + + +#ifndef C_CBCTESTLOGGER_H +#define C_CBCTESTLOGGER_H + +#include +#include +#include +#include + +class CEikonEnv; + +const TInt KLogNameLength = 64; +const TInt KLogBufferLength = 512; + +_LIT( KLogRow80,"--------------------\r\n" ); +_LIT( KLogLine, "\r\n" ); +_LIT( KLogTwoLine, "\r\n\r\n" ); + +/** + * Log class. The class will use CEikonEnv::Static, so we have to have the + * App to use the class. + */ +class CBCTestLogger: public CBase + { +public: + +// constructor and destructor + + /** + * Symbian second phase constructor + */ + static CBCTestLogger* NewL( CEikonEnv* aEikonEnv ); + + /** + * Destructor + */ + virtual ~CBCTestLogger(); + +// new functions + + /** + * Write custom text to log file. + * @param aLogText, custom text. + */ + void WriteLogL(const TDesC& aLogText); + + /** + * Write custom text to main log file. + * @param aLogText, custom text + */ + void WriteMainLogL( const TDesC& aLogText ); + + /** + * Get the buffer for formated text. + */ + TDes& Buffer(); + + /** + * Creates time stamp for log file + * @param aBuf, the time stamp will be appended to aBuf. + */ + void CreateTimeStamp( TDes& aBuf ); + + /** + * Get the caption of application + */ + const TDesC& AppCaption(); + +protected: + +// constructor + + /** + * C++ default constructor + */ + CBCTestLogger( CEikonEnv* aEikonEnv ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + +// new functions + + /** + * Write text to file. + * @param aFile a reference of RFile to an opened file + * @param aText the text to be written + */ + void WriteToFileL( RFile& aFile, const TDesC& aText ); + +private: + + /** + * Create main log file. If the file is existed and has been modifed + * recently, new log will be appended to the end of the file. If the + * file is existed and has not been modified in recent two days, the + * file will be replaced. + */ + void CreateMainLogL(); + + /** + * @return EFalse for EOF, otherwise it returns ETrue + */ + TBool ReadLineL( RFile& aFile, TDes& aLine ); + +private: // data + + /** + * log file for autotest results + */ + TBuf iAtLogFileName; + + /** + * temp storage for log writing + */ + TBuf iBuf; + + /** + * log file + */ + RFile iAtLogFile; + + /** + * not own + */ + CEikonEnv* iEikEnv; + + /** + * The caption of application + */ + TApaAppCaption iCaption; + + }; + +#endif // C_CBCTESTLOGGER_H \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestsuite.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestsuite.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,120 @@ +/* +* 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 "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 suite. +* +*/ + +#ifndef C_CBCTESTSUITE_H +#define C_CBCTESTSUITE_H + +#include +#include "bctestutil.h" + +class CEikonEnv; +class CBCTestCase; +class CBCTestLogger; +//class TApaAppCaption + +enum TBCTestEvent + { + ETestCaseStart, + ETestCaseEnd, + ETestCaseNoScript, + ETestCaseUnbalancedIf + }; + +/** +* Test suite class. +*/ +class CBCTestSuite : public CBase + { +public: + +// constructor + /** + * C++ default constructor. + * @param aLogger, pointer to log project + */ + CBCTestSuite( CBCTestLogger* aLogger ); + + /** + * Destructor. + */ + virtual ~CBCTestSuite(); + +// new functions + + /** + * Execute a test work specified by aCmd + * @param aCmd, a value to test command. + */ + void RunL(int aCmd); + + /** + * Add a test case and the name of it. + * @param aTestCase, pointer to a test case, test suite will own it. + * @param aName, name of the test case. + */ + void AddTestCaseL(CBCTestCase* aTestCase, const TDesC& aName ); + + /** + * Build a parameter for automatic test process. + * @param aAutoTest, structure storing automatic test information, out. + */ + void BuildScriptsL(SAutoTest* aAutoTest); + + /** + * Handke test event, such as case start, case end, ... + * @param aEvent, enum for event type + * @param aPrarm, index to relative test case. + */ + void HandleTestEventL( TBCTestEvent aEvent, TInt aParam ); + +protected: + +// new functions + + /** + * Creates test case start and end separators to log file + * @param aScriptIndex, script index + * @param aStart, whether start a test case. + */ + void WriteTestCaseLogL( TInt aScriptIndex, TBool aStart ); + + /** + * When start auto test, write some general information + */ + void WriteStartLogL(); + + /** + * When all test completed, write summary information. + */ + void WriteSummaryLogL(); + +private: // data + + /** + * An array storing pointer to test case. + */ + RArray iTestCases; + + /** + * write log + * Not own + */ + CBCTestLogger* iLogger; + + }; + +#endif // C_CBCTESTSUITE_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/bctestutil.h Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,134 @@ +/* +* 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 "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 utility, an interface of BCTest framework. +* +*/ + +#ifndef C_CBCTESTUTIL_H +#define C_CBCTESTUTIL_H + +#include +#include +#include + +class CEikonEnv; +class CBCTestKeyFeeder; +class CBCTestCase; +class CBCTestSuite; +class CBCTestLogger; + +// Struct to be used as parameter passing +struct SAutoTest + { + TInt** scripts; + TInt* countArray; + RArray nameArray; + TInt scriptCount; + }; + +// Panics +_LIT( KBCTestUtilPanicText, "BCTestUtilDLL" ); + +enum TBCTestUtilPanics + { + EBCTestUtilNoSuchVariant = 1, + EBCTestUtilUnbalacedIfOrEndif, + EBCTestUtilNestedIf, + EBCTestUtilTooManyEndifs + }; + +/** + * Test utility class. + */ +class CBCTestUtil: public CBase + { +public: + +// constructor and destructor + + /** + * Symbian 2nd phase constructor. + */ + IMPORT_C static CBCTestUtil* NewL(); + + /** + * Destructor. + */ + IMPORT_C virtual ~CBCTestUtil(); + +// new functions + + /** + * start the runner engine, test scripts will be feed to the + * application continuously. + */ + IMPORT_C void RunL(); + + /** + * run according to the specified UI event, this will invoke a mapping + * from UI-event to test cases in test suite + * @param aCmd, a test command. + */ + IMPORT_C void RunL( TInt aCmd ); + + /** + * Add test case to test suite. It will call CTestSuite::AddTestCaseL + * directly. A interface for user. + * @param aTestCase, pointer to a test case. + * @param aName, name of the test case. + */ + IMPORT_C void AddTestCaseL( CBCTestCase* aTestCase, const TDesC& aName ); + +private: // constructor + + /** + * C++ default constructor. + */ + CBCTestUtil(); + + /** + * Symbian 2nd constructor. + */ + void ConstructL(); + +private: // data + + /** + * A parameter for automatic test + */ + SAutoTest iAutoTest; + + /** + * Own + */ + CBCTestLogger* iLogger; + + /** + * Not own + */ + CEikonEnv* iEikEnv; + + /** + * Own + */ + CBCTestSuite* iTestSuite; + + /** + * Own + */ + CBCTestKeyFeeder* iKeyFeeder; + + }; + +#endif // C_CBCTESTUTIL_H diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/chinesestrings.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/inc/chinesestrings.loc Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2003 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: sample strings for arabic testing +* +*/ + + +#ifndef CHINESE_STRINGS_LOC +#define CHINESE_STRINGS_LOC + +/* meaningless chinese strings +<0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F> +<0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D> +<0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57> +<0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F> +<0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D> +<0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57> +<0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F> +<0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D> +<0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57> +<0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57> + +<0x54C8><0x7F57>","<0x5F53><0x4F60><0x80FD><0x6CE8><0x610F><0x5230><0x65F6>"," +<0x6211><0x662F><0x4E00><0x5168><0x7403><0x6027><0x4FE1><0x606F><0x95EE><0x9898>"." +<0x6211><0x975E><0x5E38><0x51C9><0x6210><0x5206><0x662F>","<0x4F60><0x4E0D><0x601D> +<0x8003><0x5417>"?"<0x4E00><0x4FE1><0x76D6><0x7684><0x5DE5><0x4EBA><0x4E3E><0x884C> +<0x8BB8><0x591A><0x6587><0x672C><0x548C><0x5B83><0x968F><0x7740><0x4E00><0x5F62><0x8C61> +<0x6709><0x4E00><0x76D6><0x7684><0x5DE5><0x4EBA><0x7684><0x5DE5><0x4EBA>"." +*/ + +/* meaningless chinese strings, 4 same characters each */ +#define qtn_chinese_short <0x957F><0x540D><0x5B57><0x957F> +#define qtn_chinese_short1 <0x540D><0x5B57><0x957F><0x957F> +#define qtn_chinese_short2 <0x5F53><0x4F60><0x80FD><0x6CE8> +#define qtn_chinese_short3 <0x540D><0x5B57><0x957F><0x540D> +#define qtn_chinese_short4 <0x76D6><0x7684><0x5DE5><0x4EBA> +#define qtn_chinese_short5 <0x5B57><0x957F><0x540D><0x5B57> +#define qtn_chinese_short6 <0x76D6><0x7684><0x5DE5><0x4EBA> +#define qtn_chinese_short7 <0x548C><0x5B83><0x968F><0x7740> +#define qtn_chinese_short8 <0x5B57><0x957F><0x5B57><0x957F> +#define qtn_chinese_short9 <0x76D6><0x7684><0x5DE5><0x4EBA> + +#define qtn_chinese_medium <0x4E00><0x4FE1><0x76D6>" "\ + <0x968F><0x7740><0x4E00><0x5F62><0x8C61> +#define qtn_chinese_medium1 <0x4E00><0x5168><0x7403><0x6027><0x4FE1><0x606F><0x95EE><0x9898>\ + " "<0x540D><0x5B57><0x957F><0x540D><0x5B57>" "<0x957F><0x540D><0x5B57> +#define qtn_chinese_medium2 <0x6709><0x4E00><0x76D6><0x7684>" "\ + <0x4FE1><0x76D6><0x7684><0x5DE5><0x4EBA>" "\ + <0x957F><0x540D><0x5B57><0x957F><0x540D><0x5B57> + +// for softkeys +#define qtn_chinese_ok <0x540D><0x5B57> +#define qtn_chinese_cancel <0x5B57><0x957F><0x540D><0x5B57> + +#endif // CHINESE_STRINGS_LOC diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/sis/bctestutil.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/sis/bctestutil.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,44 @@ +; +; 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: +; +; BCTestUtil-3.pkg + +; Languages +;&EN + +; Header +#{"Browser_BCTestUtil"},(0x20004742),1,0,0,TYPE=SA + +; List of localised vendor names +%{"Vendor-EN"} + +; The non-localised, globally unique vendor name (mandatory) +:"Nokia OY" + +;Supports Series 60 v 3.0 +;This line indicates that this installation is for the Series 60 platform v3.0 +;This line must appear _exactly_ as shown below in the sis file +;If this line is missing or incorrect, the sis file will not be able +;to be installed on Series 60 v3.0 platforms +(0x101F7961), 0, 0, 0, {"Series60ProductID"} + +;Key and certificate +*"rd-key.pem","rd.cer" + +; Target +"\epoc32\release\armv5\urel\BCTestUtil.dll"-"!:\sys\bin\BCTestUtil.dll" + +"\epoc32\winscw\c\BCTestLog\release_note.txt"- +"C:\BCTestLog\release_note.txt" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestassert.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestassert.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,175 @@ +/* +* 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 "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: Assert tool for checking test result and write log. +* +*/ + + +#include "bctestassert.h" +#include "bctestlogger.h" + +_LIT( KFailedTest, "Failed test "); +_LIT( KTestSucceed, "Test succeeded." ); +_LIT( KTrueFail, "Return value is false." ); +_LIT( KNotNullFail, "Verified pointer is NULL." ); +_LIT( KIntFailFormat, "Return value is not expected. It is %d." ); +_LIT( KCommentFormat, "%d. %s. " ); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +EXPORT_C CBCTestAssert::CBCTestAssert() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +EXPORT_C CBCTestAssert::~CBCTestAssert() + { + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::SetLogger +// Setor for iLogger. +// --------------------------------------------------------------------------- +// +void CBCTestAssert::SetLogger( CBCTestLogger* aLogger ) + { + if ( aLogger ) + { + iLogger = aLogger; + } + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::AssertLogL +// Write assert result to log file. +// --------------------------------------------------------------------------- +// +void CBCTestAssert::AssertLogL( TAssertType aType, TBool aSuccess, + const TDesC& aComments, SAssertParam* aParam ) + { + if ( !iLogger || aType >= EAssertEnd || aType < EAssertInt ) + { + return; + } + + iTestCount++; + TDes& buf = iLogger->Buffer(); + buf.Zero(); + + if ( !aSuccess ) + { + buf.Append( KFailedTest ); + iFailedCount++; + } + buf.AppendFormat( + TPtrC( KCommentFormat ), iTestCount, aComments.Ptr() ); + if ( !aSuccess ) + { + switch ( aType ) + { + case EAssertInt: + if ( aParam ) + { + buf.AppendFormat( + TPtrC( KIntFailFormat ), aParam->intValue ); + } + break; + case EAssertTrue: + buf.Append( KTrueFail ); + break; + case EAssertNotNull: + buf.Append( KNotNullFail ); + break; + default: + break; + } + } + else + { + buf.Append( KTestSucceed ); + } + iLogger->CreateTimeStamp( buf ); + iLogger->WriteLogL( buf ); + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::AssertIntL +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestAssert::AssertIntL( TInt aExpect, TInt aActual, const TDesC& aComments ) + { + SAssertParam param; + param.intValue = aActual; + AssertLogL( EAssertInt, ( aExpect == aActual ), aComments, ¶m ); + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::AssertTrueL +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestAssert::AssertTrueL( TBool aActual, const TDesC& aComments ) + { + AssertLogL( EAssertTrue, aActual, aComments ); + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::AssertNotNullL +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestAssert::AssertNotNullL( TAny* aActual, const TDesC& aComments ) + { + AssertLogL( EAssertNotNull, ( aActual != NULL ), aComments ); + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::WriteLogL +// Write a sentence of information to log file. +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestAssert::WriteLogL( const TDesC& aLogText ) + { + TDes& buf = iLogger->Buffer(); + buf.Zero(); + buf.Append( aLogText ); + buf.Append( KLogLine ); + iLogger->WriteLogL( buf ); + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::GetTestSummary +// --------------------------------------------------------------------------- +// +void CBCTestAssert::GetTestSummary( TInt& aTestCount, + TInt& aFailedCount ) const + { + aTestCount = iTestCount; + aFailedCount = iFailedCount; + } + +// --------------------------------------------------------------------------- +// CBCTestAssert::ClearTestSummary +// --------------------------------------------------------------------------- +// +void CBCTestAssert::ClearTestSummary() + { + iTestCount = 0; + iFailedCount = 0; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestcase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestcase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,183 @@ +/* +* 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 "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Test case. +* +*/ + +#include "bctestcase.h" + +const TInt KInitSize = 20; +const TInt KGranularity = 5; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +EXPORT_C CBCTestCase::CBCTestCase() + : iType( ENormalCase ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +EXPORT_C CBCTestCase::~CBCTestCase() + { + delete [] iTestScripts; + } + +// --------------------------------------------------------------------------- +// CBCTestCase::RunL. +// User needs to override this function. +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestCase::RunL( TInt ) + { + } + +// --------------------------------------------------------------------------- +// CBCTestCase::AppendL +// Append a command to iTestScripts. +// --------------------------------------------------------------------------- +// +void CBCTestCase::AppendL(TInt aCmd) + { + if ( !iTestScripts ) + { + iScriptCount = 0; + iMaxSize = KInitSize; + iTestScripts = new( ELeave ) TInt[iMaxSize]; + } + if ( iScriptCount == iMaxSize ) + { + iMaxSize += KGranularity; + TInt* tempArray = new( ELeave ) TInt[iMaxSize]; + for ( TInt i=0; i +#include +#include +#include "bctestendcase.h" + +#include +const TUid KPSUidAvkonDomainForBC = { 0x10207218 }; // Same as KPSUidAvkonDomain +const TUint32 KAknMenuOptionNoTaskSwapper = 0x10000002; +enum TAknMenuOptionNoTaskSwapper + { + ETaskSwapper, + ENoTaskSwapper + }; +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestEndCase::CBCTestEndCase() + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestEndCase::~CBCTestEndCase() + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd constructor +// --------------------------------------------------------------------------- +// +CBCTestEndCase* CBCTestEndCase::NewL() + { + CBCTestEndCase* self = new( ELeave ) CBCTestEndCase(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// Symbian 2nd constructor +// --------------------------------------------------------------------------- +// +void CBCTestEndCase::ConstructL() + { + BuildScriptL(); + } + +static TInt SDKVersion() + { + TInt swver = 30; + TInt taskSwapper( ENoTaskSwapper ) ;// taskSwapper + TInt result = RProperty::Get( KPSUidAvkonDomainForBC, + KAknMenuOptionNoTaskSwapper, taskSwapper ); + TInt ret = RProperty::Define( KPSUidAvkonDomainForBC, + KAknMenuOptionNoTaskSwapper, RProperty::EInt ); + + if (ret == KErrAlreadyExists) + { + if ( result == KErrNotFound ) + { + swver = 30; + } + else + { + if ( taskSwapper == 0 ) + { + swver = 50; + } + else + { + swver = 30; + } + } + } + else + { + RProperty::Set( KPSUidAvkonDomainForBC, + KAknMenuOptionNoTaskSwapper, ENoTaskSwapper ); + } + return swver; //default version + } + +// --------------------------------------------------------------------------- +// CBCTestEndCase::BuildScriptL +// --------------------------------------------------------------------------- +// +void CBCTestEndCase::BuildScriptL() + { + TInt sdkver = SDKVersion(); + if ( sdkver == 32 || sdkver == 50 ) + { + AddTestL( LeftCBA, Up, Up, LeftCBA, TEND ); + } + else + { + AddTestL( LeftCBA, Up, LeftCBA, TEND ); + } + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestkeyfeeder.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestkeyfeeder.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,440 @@ +/* +* 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 "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: Emulate key and pointer event. +* +*/ + +#include + +#include "AutotestCommands.h" // test commands are defined in here +#include "bctestkeyfeeder.h" +#include "bctestlogger.h" +#include "bctestsuite.h" + +const TInt KInitDelay = 1000000; // 1 second +const TInt KInterval = 100000; // 1/10 second +const TInt KTickCount = 10; // default one second between key feeds +const TText KKey1 = '1'; +const TText KKey2 = '2'; +const TText KKey3 = '3'; +const TText KKey4 = '4'; +const TText KKey5 = '5'; +const TText KKey6 = '6'; +const TText KKey7 = '7'; +const TText KKey8 = '8'; +const TText KKey9 = '9'; +const TText KKey0 = '0'; +const TText KKeyAsterisk = '*'; +const TText KKeyHash = '#'; + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// C++ default constructor +// ----------------------------------------------------------------------------- +// +CBCTestKeyFeeder::CBCTestKeyFeeder() + { + } + +// ----------------------------------------------------------------------------- +// Destructor +// ----------------------------------------------------------------------------- +// +CBCTestKeyFeeder::~CBCTestKeyFeeder() + { + if ( iPeriodic ) + { + iPeriodic->Cancel(); + delete iPeriodic; + } + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::StartAutoTestL +// Initialize member variables and start timer. +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::StartAutoTestL( SAutoTest* aAutoTest ) + { + if ( aAutoTest ) + { + iAutoTest = aAutoTest; + iScriptCommands = iAutoTest->scripts[0]; + } + if ( !iAutoTest || !iScriptCommands ) + { + return; + } + + iSuite->HandleTestEventL( ETestCaseStart, iScriptIndex ); + + iPeriodic=CPeriodic::NewL( CActive::EPriorityHigh ); + // Start periodic function after 1 seconds and after that call + // it every 1/10th of second + iPeriodic->Start( KInitDelay, KInterval, TCallBack( PeriodicKeyFeederL, this ) ); + + // member variables don't need to be cleared before use, + // but do it anyway - just in case + iIndex = 0; + iScriptIndex = 0; + iCommand = 0; + iRepeatCommand = 0; + iRepeat = 0; + iWaitCount = 0; + + iTickCount = KTickCount; + iTickCounter = iTickCount; + + iKeyUp = EFalse; + iKeyDown = EFalse; + + // ensure sane values for conditional stuff + iIfCount = 0; + + if ( !iEikEnv ) + { + iEikEnv = CEikonEnv::Static(); + } + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::PeriodicKeyFeeder +// This method is called every 0.1 seconds, calls HandleAutoCommand +// ----------------------------------------------------------------------------- +// +TInt CBCTestKeyFeeder::PeriodicKeyFeederL( TAny* aThis ) + { + CBCTestKeyFeeder* feeder = + static_cast( aThis ); + + feeder->HandleAutoCommandL(); + return 0; + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::HandleAutoCommand +// Does the actual key feeding +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::HandleAutoCommandL() + { + if ( iTimerPaused ) // timer paused, do nothing + { + return; + } + if ( iTickCounter > 0 ) + { + iTickCounter--; + return; // tick count not yet full, do nothing + } + iTickCounter=iTickCount; // reset tick counter and continue + + //commands in one script done + if ( iIndex >= iAutoTest->countArray[iScriptIndex] ) + { + iSuite->HandleTestEventL( ETestCaseEnd, iScriptIndex ); + iScriptIndex++; + TBool continueRun = ETrue; + if ( iScriptIndex >= iAutoTest->scriptCount ) // all scripts done + { + continueRun = EFalse; + } + else + { + iScriptCommands = iAutoTest->scripts[iScriptIndex]; + iIndex = 0; + if ( !iScriptCommands ) + { + iSuite->HandleTestEventL( ETestCaseNoScript, iScriptIndex ); + iIndex = iAutoTest->countArray[iScriptIndex]; + } + else + { + iSuite->HandleTestEventL( ETestCaseStart, iScriptIndex ); + } + } + + if ( iIfCount != 0 ) + { + iSuite->HandleTestEventL( ETestCaseUnbalancedIf, iScriptIndex - 1 ); + iIfCount = 0; + } + + if ( !continueRun ) + { + iPeriodic->Cancel(); // stop periodic timer + } + + return; + } + + if ( iWaitCount > 0 ) // still waiting (WAIT command) + { + iWaitCount--; + return; // waiting - do nothing + } + + if ( iRepeat == 0 ) // not repeating, parse next command + { + iCommand = iScriptCommands[iIndex]; + iIndex++; + } + else // still doing REPEAT + { + iCommand = iRepeatCommand; // command being repeated + iRepeat--; + } + + switch ( iCommand ) + { + case LeftCBA: + KeyPress( EKeyDevice0, EStdKeyDevice0 ); + break; + case RightCBA: + KeyPress( EKeyDevice1, EStdKeyDevice1 ); + break; + case KeyOK: + KeyPress( EKeyDevice3, EStdKeyDevice3 ); + break; + case Up: + KeyPress( EKeyUpArrow, EStdKeyUpArrow ); + break; + case Down: + KeyPress( EKeyDownArrow, EStdKeyDownArrow ); + break; + case Left: + KeyPress( EKeyLeftArrow, EStdKeyLeftArrow ); + break; + case Right: + KeyPress( EKeyRightArrow, EStdKeyRightArrow ); + break; + case Key1: + KeyPress( KKey1, KKey1 ); + break; + case Key2: + KeyPress( KKey2, KKey2 ); + break; + case Key3: + KeyPress( KKey3, KKey3 ); + break; + case Key4: + KeyPress( KKey4, KKey4 ); + break; + case Key5: + KeyPress( KKey5, KKey5 ); + break; + case Key6: + KeyPress( KKey6, KKey6 ); + break; + case Key7: + KeyPress( KKey7, KKey7 ); + break; + case Key8: + KeyPress( KKey8, KKey8 ); + break; + case Key9: + KeyPress( KKey9, KKey9 ); + break; + case Key0: + KeyPress( KKey0, KKey0 ); + break; + case KeyAsterisk: + KeyPress( KKeyAsterisk, EStdKeyNkpAsterisk ); + break; + case KeyHash: + KeyPress( KKeyHash, EStdKeyHash ); + break; + case KeyApplication: + KeyPress( EKeyApplication, EStdKeyApplication0 ); + break; + case KeyPhoneSend: + KeyPress( EKeyPhoneSend, EStdKeyYes ); + break; + case KeyPhoneEnd: + KeyPress( EKeyPhoneEnd, EStdKeyNo ); + break; + case KeyPower: + KeyPress( EKeyPowerOff, EStdKeyDevice2 ); + break; + case KeyVoice: + KeyPress( EKeySide, EStdKeyDevice6 ); + break; + case KeyBackspace: + KeyPress( EKeyBackspace, EStdKeyBackspace ); + break; + case KeyABC: // may not work as ABC key, should work as shift, tough + KeyPress( EStdKeyRightShift, EStdKeyRightShift ); + break; + case GripOpen: + KeyPress( EKeyGripOpen, EStdKeyDevice4 ); + break; + case GripClose: + KeyPress( EKeyGripClose, EStdKeyDevice5 ); + break; + case REPEAT: // one round missed because no commands executed + iRepeatCommand = iScriptCommands[iIndex++]; + iRepeat = iScriptCommands[iIndex++]; + break; + case WAITCOMMAND: + iWaitCount = iScriptCommands[iIndex++]; + break; + case SETTICKCOUNT: + iTickCount = iScriptCommands[iIndex++]; + iTickCounter = iTickCount; + break; + case JUSTKEYDOWN: + iKeyDown = ETrue; + break; + case JUSTKEYUP: + iKeyUp = ETrue; + break; + case PointerDown: + { + TInt pointerX = iScriptCommands[iIndex++]; + TInt pointerY = iScriptCommands[iIndex++]; + TRawEvent event; + event.Set( TRawEvent::EButton1Down, pointerX, pointerY ); + PointerEvent( event ); + } + break; + case PointerUp: + { + TInt pointerX = iScriptCommands[iIndex++]; + TInt pointerY = iScriptCommands[iIndex++]; + TRawEvent event; + event.Set( TRawEvent::EButton1Up, pointerX, pointerY ); + PointerEvent( event ); + } + break; + case PointerMove: + { + TInt pointerX = iScriptCommands[iIndex++]; + TInt pointerY = iScriptCommands[iIndex++]; + TRawEvent event; + event.Set( TRawEvent::EPointerMove, pointerX, pointerY ); + PointerEvent( event ); + break; + } + default: + break; + } + } + +/******************* autotest key feeder implementations **********************/ + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::KeyDown +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::KeyDown( TInt aScanCode ) + { + if ( aScanCode == EStdKeyRightShift ) + { + iOldModifiers = iEikEnv->WsSession().GetModifierState(); + iModifiers = EModifierShift | iOldModifiers; + } + + TRawEvent event; + event.Set( TRawEvent::EKeyDown, aScanCode ); + iEikEnv->WsSession().SimulateRawEvent( event ); + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::KeyUp +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::KeyUp( TInt aScanCode ) + { + if ( aScanCode == EStdKeyRightShift ) + { + iModifiers = iOldModifiers; + } + + TRawEvent event; + event.Set( TRawEvent::EKeyUp, aScanCode ); + iEikEnv->WsSession().SimulateRawEvent( event ); + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::KeyPress +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::KeyPress( TInt aCode, TInt aScanCode ) + { + User::ResetInactivityTime();// Reset user inactivity timers + + if ( iKeyDown ) // Long key press -> do just key down + { + KeyDown( aScanCode ); + iKeyDown = EFalse; + return; // ends key press + } + + if ( iKeyUp ) // Ends long key press -> do just key up + { + KeyUp( aScanCode ); + iKeyUp = EFalse; + return; // ends key press + } + + // there seems to be no keycode for abc-key, simulate by pressing + // key down and up + if ( aCode == EStdKeyRightShift ) + { + KeyDown( aCode ); + KeyUp( aCode ); + return; + } + + // Do normal key press + TKeyEvent event = { aCode, aScanCode, iModifiers, 0 }; + iEikEnv->WsSession().SimulateKeyEvent( event ); + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::PauseTimer +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::PauseTimer() + { + iTimerPaused = ETrue; + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::ResumeTimer +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::ResumeTimer() + { + iTimerPaused = EFalse; + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::PointerEvent +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::PointerEvent( TRawEvent& aEvent ) + { + iEikEnv->WsSession().SimulateRawEvent( aEvent ); + } + +// ----------------------------------------------------------------------------- +// CBCTestKeyFeeder::SetSuite +// ----------------------------------------------------------------------------- +// +void CBCTestKeyFeeder::SetSuite( CBCTestSuite* aSuite ) + { + iSuite = aSuite; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestlogger.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestlogger.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,303 @@ +/* +* 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 "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: Write logger. +* +*/ + + +#include +#include +#include + +#include "bctestlogger.h" + +_LIT( KPathBase, "c:\\BCTestLog\\" ); // directory for test results in FFS +_LIT( KTimeFormat, "%:0%J%:1%T%:2%S%:3%+B" ); +_LIT( KBCTestLogEnd, "_TestLog.txt" ); // end of auto test log filename +_LIT( KDateTimeFormat, "%-B%/0%1%/1%2%/2%3%/3 %:0%J%:1%T%:2%S%:3%+B" ); +_LIT( KMainLog, "c:\\BCTestLog\\BCTestLog.txt" ); // main log file + +_LIT( KGeneralLogInfo, "Log file for automated test's results created " ); +_LIT( KTimeLogStart, " -- " ); +_LIT( KTimeLogEnd, " --\r\n" ); +_LIT( KGetTimeFailed, "Getting time failed" ); +_LIT( KVersionFile, "c:\\bctestlog\\release_note.txt" ); +_LIT( KLineEnd, "\r\n\n" ); +_LIT( KVersion, "Version of BC tester:" ); + +const TInt KTheMaxInterval = 2; +const TInt KTempBufferLenth = 128; +const int KMaxLength = 255; + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// static Constructor +// --------------------------------------------------------------------------- +// +CBCTestLogger* CBCTestLogger::NewL( CEikonEnv* aEikonEnv ) + { + CBCTestLogger* self = new( ELeave ) CBCTestLogger( aEikonEnv ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CBCTestLogger::CBCTestLogger( CEikonEnv* aEikonEnv ): iEikEnv( aEikonEnv ) + { + } + +// --------------------------------------------------------------------------- +// private Constructor +// --------------------------------------------------------------------------- +// +CBCTestLogger::~CBCTestLogger() + { + iAtLogFile.Close(); + } + +// --------------------------------------------------------------------------- +// ConstructL, 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestLogger::ConstructL() + { + TInt err = KErrNone; + + iEikEnv = CEikonEnv::Static(); + RFs tempServer = iEikEnv->FsSession(); + + // \BCTestLog directory created if doesn't exist + err = tempServer.MkDir( KPathBase ); + if ( err == KErrAlreadyExists || err == KErrNone ) + { + err = KErrNone; // Directory already exists - no error + } + else + { + User::Leave(err); + } + + // Read version of bc test from realease_note.txt. + RFile vFile; + User::LeaveIfError( + vFile.Open( tempServer, KVersionFile, EFileRead | EFileShareAny ) != KErrNone ); + + TBuf versionLine; + ReadLineL( vFile, versionLine); + vFile.Close(); + + // Create autotest results log filename + iAtLogFileName = KPathBase; + iAtLogFileName.Append( AppCaption() ); + iAtLogFileName.Append( KBCTestLogEnd ); + + // Open log file for autotest results. + // If the file already exists, replace it. + err = iAtLogFile.Replace( tempServer, + iAtLogFileName, + EFileWrite | EFileStreamText ); + + if (err != KErrNone) + { + User::Leave( err ); + } + + iBuf.Zero(); + // Write version of bc tester in log file. + iBuf.Append( KVersion ); + iBuf.Append( versionLine ); + iBuf.Append( KLineEnd ); + iBuf.Append( KGeneralLogInfo ); + TTime homeTime; + homeTime.HomeTime(); + TBuf tempBuf; + homeTime.FormatL( tempBuf, KDateTimeFormat ); + iBuf.Append( tempBuf ); + iBuf.Append( KLogTwoLine ); + WriteToFileL( iAtLogFile, iBuf ); + + CreateMainLogL(); + } + +// --------------------------------------------------------------------------- +// CBCTestLogger::CreateMainLogL +// --------------------------------------------------------------------------- +// +void CBCTestLogger::CreateMainLogL() + { + RFile mainFile; + RFs tempServer = iEikEnv->FsSession(); + TInt err = mainFile.Create( tempServer, KMainLog, + EFileWrite | EFileStreamText ); + if ( err != KErrNone ) + { + if ( err == KErrAlreadyExists ) + { + TInt errnum = mainFile.Open( tempServer, KMainLog, + EFileRead | EFileStreamText ); + if ( errnum != KErrNone ) + { + return; + } + } + } + CleanupClosePushL( mainFile ); + + if ( err == KErrNone ) + { + WriteToFileL( mainFile, iBuf ); + } + else if ( err == KErrAlreadyExists ) + { + TTime modifiedTime; + TTime homeTime; + homeTime.HomeTime(); + err = mainFile.Modified( modifiedTime ); + if ( err == KErrNone ) + { + TTimeIntervalDays days = homeTime.DaysFrom( modifiedTime ); + TInt interval = days.Int(); + if ( interval >= KTheMaxInterval || interval <= -KTheMaxInterval ) + { + mainFile.Close(); + mainFile.Replace( tempServer, KMainLog, + EFileWrite | EFileStreamText ); + WriteToFileL( mainFile, iBuf ); + } + } + } + + CleanupStack::PopAndDestroy( &mainFile ); + } + +// --------------------------------------------------------------------------- +// CBCTestLogger::WriteLogL +// Write text to log file. +// --------------------------------------------------------------------------- +// +void CBCTestLogger::WriteLogL( const TDesC& aLogText ) + { + WriteToFileL( iAtLogFile, aLogText ); + } + +// ----------------------------------------------------------------------------- +// CBCTestLogger::CreateTimeStamp +// Creates time stamp. +// ----------------------------------------------------------------------------- +// +void CBCTestLogger::CreateTimeStamp( TDes& aBuf ) + { + TTime homeTime; + homeTime.HomeTime(); + + aBuf.Append( KTimeLogStart ); + TBuf tempBuf; + TRAPD( err, homeTime.FormatL( tempBuf, KTimeFormat ) ); + if ( err != KErrNone ) // FormatL failed + { + tempBuf.Zero(); + tempBuf.Append( KGetTimeFailed ); + } + aBuf.Append( tempBuf ); + aBuf.Append( KTimeLogEnd ); + } + +// ----------------------------------------------------------------------------- +// CBCTestLogger::Buffer +// Return reference to iBuf. +// ----------------------------------------------------------------------------- +// +TDes& CBCTestLogger::Buffer() + { + return iBuf; + } + +// ----------------------------------------------------------------------------- +// CBCTestLogger::WriteMainLogL +// Appends given text to main log file (if exists). +// ----------------------------------------------------------------------------- +// +void CBCTestLogger::WriteMainLogL(const TDesC& aLogText) + { + TBuf mainLogFileName; // main log file + mainLogFileName = KMainLog; + RFile mainLogFile; + + // Open log file for writing. + TInt err = mainLogFile.Open( iEikEnv->FsSession(), + mainLogFileName, + EFileWrite | EFileStreamText | EFileShareAny); + + if (err != KErrNone) + { + return; // log file couldn't be opened, do nothing + } + CleanupClosePushL( mainLogFile ); + TInt Pos = 0; + mainLogFile.Seek( ESeekEnd,Pos ); + + WriteToFileL( mainLogFile, aLogText ); + + mainLogFile.Flush(); + mainLogFile.Close(); + CleanupStack::PopAndDestroy( &mainLogFile ); + } + +// ----------------------------------------------------------------------------- +// Get the caption of application +// ----------------------------------------------------------------------------- +// +const TDesC& CBCTestLogger::AppCaption() + { + return iEikEnv->EikAppUi()->Application()->AppCaption();; + } + +// ----------------------------------------------------------------------------- +// Write unicode text to file +// ----------------------------------------------------------------------------- +// +void CBCTestLogger::WriteToFileL( RFile& aFile, const TDesC& aText ) + { + TPtrC8 buf( (TUint8*)aText.Ptr(), aText.Size() ); + aFile.Write( buf ); + } + +TBool CBCTestLogger::ReadLineL(RFile& aFile, TDes& aLine) + { + TBuf8<1> atom; + TBuf8<1> enter; + HBufC16* text = HBufC16::NewL( 1 ); + + for( TInt err = aFile.Read(atom); err == KErrNone + && atom.Length() > 0; err = aFile.Read( atom ) ) + { + if(atom[0] == 10 && enter[0] == 13) + { + break; + } + text->Des().Copy(atom); + aLine.Append(*text); + enter = atom; + } + + delete text; + return atom.Length()>0; + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestsuite.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestsuite.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,323 @@ +/* +* 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 "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 suite. +* +*/ + + +#include +#include +#include +#include + +#include "bctestlogger.h" +#include "bctestsuite.h" +#include "bctestcase.h" +#include "bctestendcase.h" + +_LIT( KLeaveLog, "\r\n\r\nTest case %s leaved. Leave reason is %d." ); +_LIT( KNoCommandsInCase, + "No automatic test commands defined in test case %s!\r\n" ); +_LIT( KUnbalancedIf, + "Unbalanced ifs/endifs in test case %s!\r\n\r\n" ); +_LIT( KCaseStartLog, ", case %d start " ); +_LIT( KCaseEndLog, ", case %d end " ); +_LIT( KUnnamedCase, "Unnamed case" ); +_LIT( KStartInfo, + " Total %d cases will be tested in the application. \r\n\r\n\r\n" ); +_LIT( KCompletedTest, "%s completed testing work." ); +_LIT( KSummary, "\r\nSummary:\r\nTotal %d cases were tested.\r\nThere are \ +%d cases including failed tests.\r\nTotal %d asserted tests and %d \ +failed tests.\r\n" ); +_LIT( KSummaryFailLog, "Those cases including failed tests are " ); +_LIT( KSummaryComma, ", " ); +_LIT( KSummaryDot, ". " ); +_LIT( KSummaryFailFormat, "case %d"); + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestSuite::CBCTestSuite( CBCTestLogger* aLogger ) + : iLogger( aLogger ) + { + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBCTestSuite::~CBCTestSuite() + { + for ( TInt i=0; iRunL(aCmd) ); + if ( errno != KErrNone ) + { + TDes& buf = iLogger->Buffer(); + buf.AppendFormat( + TPtrC( KLeaveLog ), iTestCases[i]->Name().Ptr(), errno ); + iLogger->CreateTimeStamp( buf ); + buf.Append( KLogLine ); + iLogger->WriteLogL( buf ); + } + } + } + +// --------------------------------------------------------------------------- +// CBCTestSuite::AddTestCaseL +// Add a test case pointer and name of the test case. +// --------------------------------------------------------------------------- +// +void CBCTestSuite::AddTestCaseL( CBCTestCase* aTestCase, const TDesC& aName ) + { + aTestCase->SetLogger( iLogger ); + aTestCase->SetName( aName ); + iTestCases.AppendL( aTestCase ); + } + +// --------------------------------------------------------------------------- +// CBCTestSuite::AddTestCaseL +// Build parameter of automatic test. +// --------------------------------------------------------------------------- +// +void CBCTestSuite::BuildScriptsL( SAutoTest* aAutoTest ) + { + if ( !aAutoTest ) + { + return; + } + TInt type = iTestCases[iTestCases.Count() - 1]->Type(); + if ( type != CBCTestCase::EEndCase ) + { + CBCTestEndCase* endCase = CBCTestEndCase::NewL(); + CleanupStack::PushL( endCase ); + endCase->SetType( CBCTestCase::EEndCase ); + AddTestCaseL( endCase, KNullDesC ); + CleanupStack::Pop( endCase ); + } + + aAutoTest->scriptCount = iTestCases.Count(); + aAutoTest->countArray = new( ELeave ) TInt[aAutoTest->scriptCount]; + aAutoTest->scripts = new( ELeave ) TInt*[aAutoTest->scriptCount]; + + for ( TInt i=0; i< aAutoTest->scriptCount; i++ ) + { + aAutoTest->countArray[i] = iTestCases[i]->ScriptCount(); + aAutoTest->scripts[i] = iTestCases[i]->TestScripts(); + aAutoTest->nameArray.Append( iTestCases[i]->Name() ); + } + } + +// ----------------------------------------------------------------------------- +// CBCTestSuite::HandleTestEvent +// ----------------------------------------------------------------------------- +// +void CBCTestSuite::HandleTestEventL( TBCTestEvent aEvent, TInt aParam ) + { + TInt scriptIndex = aParam; + if ( scriptIndex < 0 || scriptIndex >= iTestCases.Count() ) + { + return; + } + switch ( aEvent ) + { + case ETestCaseStart: + { + iTestCases[scriptIndex]->ClearTestSummary(); + if ( scriptIndex == 0) + { + WriteStartLogL(); + } + WriteTestCaseLogL( scriptIndex, ETrue ); + } + break; + case ETestCaseEnd: + { + WriteTestCaseLogL( scriptIndex, EFalse ); + // The end case is not considered by user. So the test case + // before end case is actually the fianl case. + TInt actualCaseCount = iTestCases.Count() - 1; + // The last index is actualCaseCount - 1 + if ( scriptIndex == actualCaseCount - 1 ) + { + WriteSummaryLogL(); + } + } + break; + case ETestCaseNoScript: + { + TDes& buf = iLogger->Buffer(); + buf.Zero(); + buf.AppendFormat( TPtrC( KNoCommandsInCase ), + iTestCases[scriptIndex]->Name().Ptr() ); + iLogger->WriteLogL( buf ); + } + break; + case ETestCaseUnbalancedIf: + { + TDes& buf = iLogger->Buffer(); + buf.Zero(); + buf.AppendFormat( TPtrC( KUnbalancedIf ), + iTestCases[scriptIndex]->Name().Ptr() ); + iLogger->WriteLogL( buf ); + } + break; + default: + break; + } + } + +// ----------------------------------------------------------------------------- +// CBCTestSuite::WriteTestCaseLogL +// Creates test case log start (and end) separator. +// ----------------------------------------------------------------------------- +// +void CBCTestSuite::WriteTestCaseLogL( TInt aScriptIndex, TBool aStart ) + { + if ( !iLogger ) + { + return; + } + + TDes& buf = iLogger->Buffer(); + buf.Zero(); // reset buffer + TInt type = iTestCases[aScriptIndex]->Type(); + if ( type == CBCTestCase::EEndCase ) + { + buf.Append( KLogTwoLine ); + iLogger->WriteLogL( buf ); + return; + } + TDesC& name = iTestCases[aScriptIndex]->Name(); + buf.Append( KLogRow80 ); // first separator row + if ( name.Length() > 0 ) + { + buf.Append( name ); + } + else + { + buf.Append( KUnnamedCase ); + } + + if ( aStart ) + { + buf.AppendFormat( TPtrC( KCaseStartLog ), aScriptIndex + 1 ); + } + else + { + buf.AppendFormat( TPtrC( KCaseEndLog ), aScriptIndex + 1 ); + } + iLogger->CreateTimeStamp( buf ); + buf.Append( KLogRow80 ); + if ( !aStart ) // insert some empty lines + { + buf.Append( KLogTwoLine ); + } + iLogger->WriteLogL( buf ); + } + +// ----------------------------------------------------------------------------- +// CBCTestSuite::WriteStartLogL +// ----------------------------------------------------------------------------- +// +void CBCTestSuite::WriteStartLogL() + { + if ( !iLogger ) + { + return; + } + + TDes& buf = iLogger->Buffer(); + buf.Zero(); + buf.AppendFormat( TPtrC( KStartInfo ), iTestCases.Count() - 1 ); + iLogger->WriteLogL( buf ); + } + +// ----------------------------------------------------------------------------- +// CBCTestSuite::WriteSummaryLogL +// ----------------------------------------------------------------------------- +// +void CBCTestSuite::WriteSummaryLogL() + { + TDes& buf = iLogger->Buffer(); + + // write main log + buf.Zero(); + const TDesC& appCaption = iLogger->AppCaption(); + buf.AppendFormat( KCompletedTest, appCaption.Ptr() ); + iLogger->CreateTimeStamp( buf ); + iLogger->WriteMainLogL( buf ); + + // write summary log + TInt testCount = 0; + TInt failCases = 0; + TInt failCount = 0; + TInt* failedInfo = new( ELeave ) TInt[iTestCases.Count()]; + CleanupStack::PushL( failedInfo ); + for( TInt i=0; iGetTestSummary( count, failedInfo[i] ); + testCount += count; + if ( failedInfo[i] > 0) + { + failCases++; + failCount += failedInfo[i]; + } + } + + buf.Zero(); + buf.AppendFormat( TPtrC( KSummary ), iTestCases.Count() - 1, failCases, + testCount, failCount ); + + if ( failCases > 0 ) + { + buf.Append( KSummaryFailLog ); + TInt failRecord = 0; + for( TInt i=0; i 0) + { + if ( failRecord > 0) + { + buf.Append( KSummaryComma ); + } + buf.AppendFormat( TPtrC( KSummaryFailFormat ), i + 1 ); + failRecord++; + } + } + buf.Append( KSummaryDot ); + buf.Append( KLogTwoLine ); + } + CleanupStack::PopAndDestroy( failedInfo ); + iLogger->WriteLogL( buf ); + iLogger->WriteMainLogL( buf ); + } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestutil.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/apps/bctestutil/src/bctestutil.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,110 @@ +/* +* 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 "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 utility, the interface of test framework. +* +*/ + +#include + +#include "bctestutil.h" +#include "bctestsuite.h" +#include "bctestlogger.h" +#include "bctestkeyfeeder.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ default Constructor +// --------------------------------------------------------------------------- +// +CBCTestUtil::CBCTestUtil() + { + } + +// --------------------------------------------------------------------------- +// 2nd Constructor +// --------------------------------------------------------------------------- +// +void CBCTestUtil::ConstructL() + { + CEikonEnv* eikonEnv = CEikonEnv::Static(); + + iLogger = CBCTestLogger::NewL( eikonEnv ); + iTestSuite = new( ELeave ) CBCTestSuite( iLogger ); + iKeyFeeder = new( ELeave ) CBCTestKeyFeeder(); + iKeyFeeder->SetSuite( iTestSuite ); + + iAutoTest.scripts = NULL; + iAutoTest.countArray = NULL; + iAutoTest.scriptCount = 0; + } + +// --------------------------------------------------------------------------- +// static ConstructL +// --------------------------------------------------------------------------- +// +EXPORT_C CBCTestUtil* CBCTestUtil::NewL() + { + CBCTestUtil* util = new( ELeave ) CBCTestUtil(); + CleanupStack::PushL( util ); + util->ConstructL(); + CleanupStack::Pop( util ); + return util; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +EXPORT_C CBCTestUtil::~CBCTestUtil() + { + delete iKeyFeeder; + delete [] iAutoTest.countArray; + delete [] iAutoTest.scripts; + iAutoTest.nameArray.Close(); + delete iTestSuite; + delete iLogger; + } + +// --------------------------------------------------------------------------- +// CBCTestUtil::RunL +// Execute automatic test. +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestUtil::RunL() + { + iTestSuite->BuildScriptsL( &iAutoTest ); + iKeyFeeder->StartAutoTestL( &iAutoTest ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtil::RunL +// Execute a command specified by the command. +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestUtil::RunL( TInt aCmd ) + { + iTestSuite->RunL( aCmd ); + } + +// --------------------------------------------------------------------------- +// CBCTestUtil::AddTestCaseL +// Add test case to test suite. +// --------------------------------------------------------------------------- +// +EXPORT_C void CBCTestUtil::AddTestCaseL( CBCTestCase* aTestCase, const TDesC& aName ) + { + iTestSuite->AddTestCaseL( aTestCase, aName ); + } + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/group/bld.inf Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,149 @@ +/* +* 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 "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: build information +* +*/ + + + +//#include + + +PRJ_EXPORTS +../sis/UIFW.bat /epoc32/winscw/c/UIFW.bat + +PRJ_MMPFILES + + + +#include "../apps/bctestutil/group/bld.inf" + +#include "../apps/bctestlauncher/group/bld.inf" + + + +#ifdef __SERIES60_30__ + +#include "../apps/S60_SDK3.0/bctestbuttons/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestsliderandicons/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestaknsound/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestappfrm/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestcmdlg/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestdocandinit/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctesteditor/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctesteh/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctesteikbctrl/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctesteikfrm/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestfontinput/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestform/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestgrids/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestimage/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestkeylock/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestlabelinfoindicators/group/bld.inf" + +gnumakefile ../apps/S60_SDK3.0/bctestlist/group/icons_list.mk +#include "../apps/S60_SDK3.0/bctestlist/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestmenu/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestmisccontrol/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestnote/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestnotifier/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestpane/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestpopups/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestprivateuifrm/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestptieng/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestquery/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestscreenclearer/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestscrollerbar/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestsearchfield/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestserverapp/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestsettingpage/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestskins/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestutilities/group/bld.inf" + +#include "../apps/S60_SDK3.0/bctestvolume/group/bld.inf" + +#endif + + +#ifdef __SERIES60_31__ + +#include "../apps/S60_SDK3.1/bctestocr/group/bld.inf" + +#include "../apps/S60_SDK3.1/bctestmisc/group/bld.inf" + +#include "../apps/S60_SDK3.1/bctestlocation/group/bld.inf" + +#endif + +#ifdef __S60_32__ + +#include "../apps/S60_SDK3.2/bctestuniteditor/group/bld.inf" + +#include "../apps/S60_SDK3.2/bctestmisc32/group/bld.inf" + +#include "../apps/S60_SDK3.2/bctestlocalizer/group/bld.inf" + +#include "../apps/S60_SDK3.2/bctestpreviewpopup/group/bld.inf" + +#include "../apps/S60_SDK3.2/bctestservicehandler/group/bld.inf" + +#endif + + +#ifdef __S60_50__ + +//#include "../apps/S60_SDK5.0/bctestbutton/group/bld.inf" + +#include "../apps/S60_SDK5.0/bctestchoicelist/group/bld.inf" + +#include "../apps/S60_SDK5.0/bctestmix50/group/bld.inf" + +//#include "../apps/S60_SDK5.0/bctesttoolbar/group/bld.inf" + +#include "../apps/S60_SDK5.0/bctesttouchpane/group/bld.inf" + +#include "../apps/S60_SDK5.0/bctesttreelist/group/bld.inf" + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/rom_files/bcdrivers_Uifw_30.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/rom_files/bcdrivers_Uifw_30.iby Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,225 @@ +/* +* Copyright (c) 2004 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: IBY file for BcTestDrivers Binaries +* +*/ + + + +#ifndef __UIFW_IBY__ +#define __UIFW_IBY__ + + +//bctestutil.dll +file=ABI_DIR\BUILD_DIR\bctestutil.dll SHARED_LIB_DIR\bctestutil.dll + + +//bctestlauncher +S60_APP_RESOURCE(bctestlauncher) +S60_APP_AIF_RSC(bctestlauncher) +data=EPOCROOT##Epoc32\data\Z\Resource\Apps\bctestlauncher_aif.mbm \APP_RESOURCE_DIR\BCTestLauncher_aif.mbm + +S60_APP_EXE(bctestlauncher) +data=EPOCROOT##Epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestLauncher_reg.RSC \PRIVATE\10003A3F\import\APPS\BCTestLauncher_reg.RSC +data=EPOCROOT##Epoc32\winscw\c\BCTestLog\config.xml \BCTestLog\config.xml + + + + +//bctestaknsound +S60_APP_RESOURCE(bctestaknsound) +S60_APP_AIF_RSC(bctestaknsound) +S60_APP_BITMAP(bctestaknsound) +S60_APP_EXE(bctestaknsound) + +//bctestappfrm +S60_APP_RESOURCE(bctestappfrm) +S60_APP_AIF_RSC(bctestappfrm) +S60_APP_EXE(bctestappfrm) + +//bctestbuttons +S60_APP_RESOURCE(bctestbuttons) +S60_APP_AIF_RSC(bctestbuttons) +S60_APP_BITMAP(bctestbuttons) +S60_APP_EXE(bctestbuttons) + +//bctestcmdlg +S60_APP_RESOURCE(bctestcmdlg) +S60_APP_AIF_RSC(bctestcmdlg) +S60_APP_EXE(bctestcmdlg) + +//bctestdocandinit +S60_APP_RESOURCE(bctestdocandinit) +S60_APP_AIF_RSC(bctestdocandinit) +S60_APP_EXE(bctestdocandinit) + +//bctesteditor +S60_APP_RESOURCE(bctesteditor) +S60_APP_AIF_RSC(bctesteditor) +S60_APP_EXE(bctesteditor) + +//bctesteh +S60_APP_RESOURCE(bctesteh) +S60_APP_AIF_RSC(bctesteh) +S60_APP_EXE(bctesteh) + +//bctesteikbctrl +S60_APP_RESOURCE(bctesteikbctrl) +S60_APP_AIF_RSC(bctesteikbctrl) +S60_APP_BITMAP(bctesteikbctrl) +S60_APP_EXE(bctesteikbctrl) + +//bctesteikfrm +S60_APP_RESOURCE(bctesteikfrm) +S60_APP_AIF_RSC(bctesteikfrm) +S60_APP_EXE(bctesteikfrm) + +//bctestfontinput +S60_APP_RESOURCE(bctestfontinput) +S60_APP_AIF_RSC(bctestfontinput) +S60_APP_EXE(bctestfontinput) + +//bctestform +S60_APP_RESOURCE(bctestform) +S60_APP_AIF_RSC(bctestform) +S60_APP_EXE(bctestform) + +//bctestgrids +S60_APP_RESOURCE(bctestgrids) +S60_APP_AIF_RSC(bctestgrids) +S60_APP_EXE(bctestgrids) + +//bctestimage +S60_APP_RESOURCE(bctestimage) +S60_APP_AIF_RSC(bctestimage) +S60_APP_EXE(bctestimage) + +//bctestkeylock +S60_APP_RESOURCE(bctestkeylock) +S60_APP_AIF_RSC(bctestkeylock) +S60_APP_EXE(bctestkeylock) + +//bctestlabelinfoindicators +S60_APP_RESOURCE(bctestlabelinfoindicators) +S60_APP_AIF_RSC(bctestlabelinfoindicators) +S60_APP_EXE(bctestlabelinfoindicators) + +//bctestlist +//data=EPOCROOT##Epoc32\data\Z\Resource\Apps\bctestList.mif \APP_RESOURCE_DIR\bctestlist.mif +S60_APP_RESOURCE(bctestlist) +S60_APP_AIF_RSC(bctestlist) +//S60_APP_AIF_ICONS (bctestlist) +S60_APP_BITMAP(bctestlist) +S60_APP_EXE(bctestlist) + +//bctestmenu +S60_APP_RESOURCE(bctestmenu) +S60_APP_AIF_RSC(bctestmenu) +S60_APP_EXE(bctestmenu) + +//bctestmisccontrol +S60_APP_RESOURCE(bctestmisccontrol) +S60_APP_AIF_RSC(bctestmisccontrol) +S60_APP_BITMAP(bctestmisccontrol) +S60_APP_EXE(bctestmisccontrol) + +//bctestnote +S60_APP_RESOURCE(bctestnote) +S60_APP_AIF_RSC(bctestnote) +S60_APP_BITMAP(bctestnote) + +S60_APP_EXE(bctestnote) + +//bctestnotifier +S60_APP_RESOURCE(bctestnotifier) +S60_APP_AIF_RSC(bctestnotifier) +S60_APP_EXE(bctestnotifier) + +//bctestpane +S60_APP_RESOURCE(bctestpane) +S60_APP_AIF_RSC(bctestpane) +S60_APP_EXE(bctestpane) + +//bctestpopups +S60_APP_RESOURCE(bctestpopups) +S60_APP_AIF_RSC(bctestpopups) +S60_APP_BITMAP(bctestpopups) +S60_APP_EXE(bctestpopups) + +//bctestprivateuifrm +S60_APP_RESOURCE(bctestprivateuifrm) +S60_APP_AIF_RSC(bctestprivateuifrm) +S60_APP_EXE(bctestprivateuifrm) + +//bctestptieng +S60_APP_RESOURCE(bctestptieng) +S60_APP_AIF_RSC(bctestptieng) +S60_APP_EXE(bctestptieng) + +//bctestquery +S60_APP_RESOURCE(bctestquery) +S60_APP_AIF_RSC(bctestquery) +S60_APP_EXE(bctestquery) + +//bctestscreenclearer +S60_APP_RESOURCE(bctestscreenclearer) +S60_APP_AIF_RSC(bctestscreenclearer) +S60_APP_BITMAP(bctestscreenclearer) +S60_APP_EXE(bctestscreenclearer) + +//bctestscrollerbar +S60_APP_RESOURCE(bctestscroller) +S60_APP_AIF_RSC(bctestscroller) +S60_APP_EXE(bctestscroller) + +//bctestsearchfield +S60_APP_RESOURCE(bctestsearchfield) +S60_APP_AIF_RSC(bctestsearchfield) +S60_APP_EXE(bctestsearchfield) + +//bctestserverapp +S60_APP_RESOURCE(bctestserverapp) +S60_APP_AIF_RSC(bctestserverapp) +S60_APP_EXE(bctestserverapp) + +//bctestsettingpage +S60_APP_RESOURCE(bctestsettingpage) +S60_APP_AIF_RSC(bctestsettingpage) +S60_APP_BITMAP(bctestsettingpage) +S60_APP_EXE(bctestsettingpage) + +//bctestskins +S60_APP_RESOURCE(bctestskins) +S60_APP_AIF_RSC(bctestskins) +S60_APP_EXE(bctestskins) + +//bctestsliderandicons +S60_APP_RESOURCE(bctestsliderandicons) +S60_APP_AIF_RSC(bctestsliderandicons) +S60_APP_EXE(bctestsliderandicons) + +//bctestutilities +S60_APP_RESOURCE(bctestutilities) +S60_APP_AIF_RSC(bctestutilities) +S60_APP_EXE(bctestutilities) + +//bctestvolume +S60_APP_RESOURCE(bctestvolume) +S60_APP_AIF_RSC(bctestvolume) +S60_APP_BITMAP(bctestvolume) +S60_APP_EXE(bctestvolume) + +data=\epoc32\winscw\c\UIFW.bat \UIFW.bat + +#endif \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/rom_files/bcdrivers_Uifw_31.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/rom_files/bcdrivers_Uifw_31.iby Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,240 @@ +/* +* Copyright (c) 2004 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: IBY file for BcTestDrivers Binaries +* +*/ + + + +#ifndef __UIFW_IBY__ +#define __UIFW_IBY__ + + +//bctestutil.dll +file=ABI_DIR\BUILD_DIR\bctestutil.dll SHARED_LIB_DIR\bctestutil.dll + + +//bctestlauncher +S60_APP_RESOURCE(bctestlauncher) +S60_APP_AIF_RSC(bctestlauncher) +data=EPOCROOT##Epoc32\data\Z\Resource\Apps\bctestlauncher_aif.mbm \APP_RESOURCE_DIR\BCTestLauncher_aif.mbm + +S60_APP_EXE(bctestlauncher) +data=EPOCROOT##Epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestLauncher_reg.RSC \PRIVATE\10003A3F\import\APPS\BCTestLauncher_reg.RSC +data=EPOCROOT##Epoc32\winscw\c\BCTestLog\config.xml \BCTestLog\config.xml + + + + +//bctestaknsound +S60_APP_RESOURCE(bctestaknsound) +S60_APP_AIF_RSC(bctestaknsound) +S60_APP_BITMAP(bctestaknsound) +S60_APP_EXE(bctestaknsound) + +//bctestappfrm +S60_APP_RESOURCE(bctestappfrm) +S60_APP_AIF_RSC(bctestappfrm) +S60_APP_EXE(bctestappfrm) + +//bctestbuttons +S60_APP_RESOURCE(bctestbuttons) +S60_APP_AIF_RSC(bctestbuttons) +S60_APP_BITMAP(bctestbuttons) +S60_APP_EXE(bctestbuttons) + +//bctestcmdlg +S60_APP_RESOURCE(bctestcmdlg) +S60_APP_AIF_RSC(bctestcmdlg) +S60_APP_EXE(bctestcmdlg) + +//bctestdocandinit +S60_APP_RESOURCE(bctestdocandinit) +S60_APP_AIF_RSC(bctestdocandinit) +S60_APP_EXE(bctestdocandinit) + +//bctesteditor +S60_APP_RESOURCE(bctesteditor) +S60_APP_AIF_RSC(bctesteditor) +S60_APP_EXE(bctesteditor) + +//bctesteh +S60_APP_RESOURCE(bctesteh) +S60_APP_AIF_RSC(bctesteh) +S60_APP_EXE(bctesteh) + +//bctesteikbctrl +S60_APP_RESOURCE(bctesteikbctrl) +S60_APP_AIF_RSC(bctesteikbctrl) +S60_APP_BITMAP(bctesteikbctrl) +S60_APP_EXE(bctesteikbctrl) + +//bctesteikfrm +S60_APP_RESOURCE(bctesteikfrm) +S60_APP_AIF_RSC(bctesteikfrm) +S60_APP_EXE(bctesteikfrm) + +//bctestfontinput +S60_APP_RESOURCE(bctestfontinput) +S60_APP_AIF_RSC(bctestfontinput) +S60_APP_EXE(bctestfontinput) + +//bctestform +S60_APP_RESOURCE(bctestform) +S60_APP_AIF_RSC(bctestform) +S60_APP_EXE(bctestform) + +//bctestgrids +S60_APP_RESOURCE(bctestgrids) +S60_APP_AIF_RSC(bctestgrids) +S60_APP_EXE(bctestgrids) + +//bctestimage +S60_APP_RESOURCE(bctestimage) +S60_APP_AIF_RSC(bctestimage) +S60_APP_EXE(bctestimage) + +//bctestkeylock +S60_APP_RESOURCE(bctestkeylock) +S60_APP_AIF_RSC(bctestkeylock) +S60_APP_EXE(bctestkeylock) + +//bctestlabelinfoindicators +S60_APP_RESOURCE(bctestlabelinfoindicators) +S60_APP_AIF_RSC(bctestlabelinfoindicators) +S60_APP_EXE(bctestlabelinfoindicators) + +//bctestlist +//data=EPOCROOT##Epoc32\data\Z\Resource\Apps\bctestList.mif \APP_RESOURCE_DIR\bctestlist.mif +S60_APP_RESOURCE(bctestlist) +S60_APP_AIF_RSC(bctestlist) +//S60_APP_AIF_ICONS (bctestlist) +S60_APP_BITMAP(bctestlist) +S60_APP_EXE(bctestlist) + +//bctestmenu +S60_APP_RESOURCE(bctestmenu) +S60_APP_AIF_RSC(bctestmenu) +S60_APP_EXE(bctestmenu) + +//bctestmisccontrol +S60_APP_RESOURCE(bctestmisccontrol) +S60_APP_AIF_RSC(bctestmisccontrol) +S60_APP_BITMAP(bctestmisccontrol) +S60_APP_EXE(bctestmisccontrol) + +//bctestnote +S60_APP_RESOURCE(bctestnote) +S60_APP_AIF_RSC(bctestnote) +S60_APP_BITMAP(bctestnote) + +S60_APP_EXE(bctestnote) + +//bctestnotifier +S60_APP_RESOURCE(bctestnotifier) +S60_APP_AIF_RSC(bctestnotifier) +S60_APP_EXE(bctestnotifier) + +//bctestpane +S60_APP_RESOURCE(bctestpane) +S60_APP_AIF_RSC(bctestpane) +S60_APP_EXE(bctestpane) + +//bctestpopups +S60_APP_RESOURCE(bctestpopups) +S60_APP_AIF_RSC(bctestpopups) +S60_APP_BITMAP(bctestpopups) +S60_APP_EXE(bctestpopups) + +//bctestprivateuifrm +S60_APP_RESOURCE(bctestprivateuifrm) +S60_APP_AIF_RSC(bctestprivateuifrm) +S60_APP_EXE(bctestprivateuifrm) + +//bctestptieng +S60_APP_RESOURCE(bctestptieng) +S60_APP_AIF_RSC(bctestptieng) +S60_APP_EXE(bctestptieng) + +//bctestquery +S60_APP_RESOURCE(bctestquery) +S60_APP_AIF_RSC(bctestquery) +S60_APP_EXE(bctestquery) + +//bctestscreenclearer +S60_APP_RESOURCE(bctestscreenclearer) +S60_APP_AIF_RSC(bctestscreenclearer) +S60_APP_BITMAP(bctestscreenclearer) +S60_APP_EXE(bctestscreenclearer) + +//bctestscrollerbar +S60_APP_RESOURCE(bctestscroller) +S60_APP_AIF_RSC(bctestscroller) +S60_APP_EXE(bctestscroller) + +//bctestsearchfield +S60_APP_RESOURCE(bctestsearchfield) +S60_APP_AIF_RSC(bctestsearchfield) +S60_APP_EXE(bctestsearchfield) + +//bctestserverapp +S60_APP_RESOURCE(bctestserverapp) +S60_APP_AIF_RSC(bctestserverapp) +S60_APP_EXE(bctestserverapp) + +//bctestsettingpage +S60_APP_RESOURCE(bctestsettingpage) +S60_APP_AIF_RSC(bctestsettingpage) +S60_APP_BITMAP(bctestsettingpage) +S60_APP_EXE(bctestsettingpage) + +//bctestskins +S60_APP_RESOURCE(bctestskins) +S60_APP_AIF_RSC(bctestskins) +S60_APP_EXE(bctestskins) + +//bctestsliderandicons +S60_APP_RESOURCE(bctestsliderandicons) +S60_APP_AIF_RSC(bctestsliderandicons) +S60_APP_EXE(bctestsliderandicons) + +//bctestutilities +S60_APP_RESOURCE(bctestutilities) +S60_APP_AIF_RSC(bctestutilities) +S60_APP_EXE(bctestutilities) + +//bctestvolume +S60_APP_RESOURCE(bctestvolume) +S60_APP_AIF_RSC(bctestvolume) +S60_APP_BITMAP(bctestvolume) +S60_APP_EXE(bctestvolume) + +//bctestlocation +S60_APP_RESOURCE(bctestlocation) +S60_APP_AIF_RSC(bctestlocation) +S60_APP_EXE(bctestlocation) + +//bctestmisc +S60_APP_RESOURCE(bctestmisc) +S60_APP_AIF_RSC(bctestmisc) +S60_APP_EXE(bctestmisc) + +//bctestocr +S60_APP_RESOURCE(bctestocr) +S60_APP_AIF_RSC(bctestocr) +S60_APP_EXE(bctestocr) + +data=\epoc32\winscw\c\UIFW.bat \UIFW.bat + +#endif \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/rom_files/bcdrivers_Uifw_32.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/rom_files/bcdrivers_Uifw_32.iby Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,265 @@ +/* +* Copyright (c) 2004 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: IBY file for BcTestDrivers Binaries +* +*/ + + + +#ifndef __UIFW_IBY__ +#define __UIFW_IBY__ + + +//bctestutil.dll +file=ABI_DIR\BUILD_DIR\bctestutil.dll SHARED_LIB_DIR\bctestutil.dll + + +//bctestlauncher +S60_APP_RESOURCE(bctestlauncher) +S60_APP_AIF_RSC(bctestlauncher) +data=EPOCROOT##Epoc32\data\Z\Resource\Apps\bctestlauncher_aif.mbm \APP_RESOURCE_DIR\BCTestLauncher_aif.mbm + +S60_APP_EXE(bctestlauncher) +data=EPOCROOT##Epoc32\data\z\PRIVATE\10003A3F\APPS\BCTestLauncher_reg.RSC \PRIVATE\10003A3F\import\APPS\BCTestLauncher_reg.RSC +data=EPOCROOT##Epoc32\winscw\c\BCTestLog\config.xml \BCTestLog\config.xml + + + + +//bctestaknsound +S60_APP_RESOURCE(bctestaknsound) +S60_APP_AIF_RSC(bctestaknsound) +S60_APP_BITMAP(bctestaknsound) +S60_APP_EXE(bctestaknsound) + +//bctestappfrm +S60_APP_RESOURCE(bctestappfrm) +S60_APP_AIF_RSC(bctestappfrm) +S60_APP_EXE(bctestappfrm) + +//bctestbuttons +S60_APP_RESOURCE(bctestbuttons) +S60_APP_AIF_RSC(bctestbuttons) +S60_APP_BITMAP(bctestbuttons) +S60_APP_EXE(bctestbuttons) + +//bctestcmdlg +S60_APP_RESOURCE(bctestcmdlg) +S60_APP_AIF_RSC(bctestcmdlg) +S60_APP_EXE(bctestcmdlg) + +//bctestdocandinit +S60_APP_RESOURCE(bctestdocandinit) +S60_APP_AIF_RSC(bctestdocandinit) +S60_APP_EXE(bctestdocandinit) + +//bctesteditor +S60_APP_RESOURCE(bctesteditor) +S60_APP_AIF_RSC(bctesteditor) +S60_APP_EXE(bctesteditor) + +//bctesteh +S60_APP_RESOURCE(bctesteh) +S60_APP_AIF_RSC(bctesteh) +S60_APP_EXE(bctesteh) + +//bctesteikbctrl +S60_APP_RESOURCE(bctesteikbctrl) +S60_APP_AIF_RSC(bctesteikbctrl) +S60_APP_BITMAP(bctesteikbctrl) +S60_APP_EXE(bctesteikbctrl) + +//bctesteikfrm +S60_APP_RESOURCE(bctesteikfrm) +S60_APP_AIF_RSC(bctesteikfrm) +S60_APP_EXE(bctesteikfrm) + +//bctestfontinput +S60_APP_RESOURCE(bctestfontinput) +S60_APP_AIF_RSC(bctestfontinput) +S60_APP_EXE(bctestfontinput) + +//bctestform +S60_APP_RESOURCE(bctestform) +S60_APP_AIF_RSC(bctestform) +S60_APP_EXE(bctestform) + +//bctestgrids +S60_APP_RESOURCE(bctestgrids) +S60_APP_AIF_RSC(bctestgrids) +S60_APP_EXE(bctestgrids) + +//bctestimage +S60_APP_RESOURCE(bctestimage) +S60_APP_AIF_RSC(bctestimage) +S60_APP_EXE(bctestimage) + +//bctestkeylock +S60_APP_RESOURCE(bctestkeylock) +S60_APP_AIF_RSC(bctestkeylock) +S60_APP_EXE(bctestkeylock) + +//bctestlabelinfoindicators +S60_APP_RESOURCE(bctestlabelinfoindicators) +S60_APP_AIF_RSC(bctestlabelinfoindicators) +S60_APP_EXE(bctestlabelinfoindicators) + +//bctestlist +//data=EPOCROOT##Epoc32\data\Z\Resource\Apps\bctestList.mif \APP_RESOURCE_DIR\bctestlist.mif +S60_APP_RESOURCE(bctestlist) +S60_APP_AIF_RSC(bctestlist) +//S60_APP_AIF_ICONS (bctestlist) +S60_APP_BITMAP(bctestlist) +S60_APP_EXE(bctestlist) + +//bctestmenu +S60_APP_RESOURCE(bctestmenu) +S60_APP_AIF_RSC(bctestmenu) +S60_APP_EXE(bctestmenu) + +//bctestmisccontrol +S60_APP_RESOURCE(bctestmisccontrol) +S60_APP_AIF_RSC(bctestmisccontrol) +S60_APP_BITMAP(bctestmisccontrol) +S60_APP_EXE(bctestmisccontrol) + +//bctestnote +S60_APP_RESOURCE(bctestnote) +S60_APP_AIF_RSC(bctestnote) +S60_APP_BITMAP(bctestnote) + +S60_APP_EXE(bctestnote) + +//bctestnotifier +S60_APP_RESOURCE(bctestnotifier) +S60_APP_AIF_RSC(bctestnotifier) +S60_APP_EXE(bctestnotifier) + +//bctestpane +S60_APP_RESOURCE(bctestpane) +S60_APP_AIF_RSC(bctestpane) +S60_APP_EXE(bctestpane) + +//bctestpopups +S60_APP_RESOURCE(bctestpopups) +S60_APP_AIF_RSC(bctestpopups) +S60_APP_BITMAP(bctestpopups) +S60_APP_EXE(bctestpopups) + +//bctestprivateuifrm +S60_APP_RESOURCE(bctestprivateuifrm) +S60_APP_AIF_RSC(bctestprivateuifrm) +S60_APP_EXE(bctestprivateuifrm) + +//bctestptieng +S60_APP_RESOURCE(bctestptieng) +S60_APP_AIF_RSC(bctestptieng) +S60_APP_EXE(bctestptieng) + +//bctestquery +S60_APP_RESOURCE(bctestquery) +S60_APP_AIF_RSC(bctestquery) +S60_APP_EXE(bctestquery) + +//bctestscreenclearer +S60_APP_RESOURCE(bctestscreenclearer) +S60_APP_AIF_RSC(bctestscreenclearer) +S60_APP_BITMAP(bctestscreenclearer) +S60_APP_EXE(bctestscreenclearer) + +//bctestscrollerbar +S60_APP_RESOURCE(bctestscroller) +S60_APP_AIF_RSC(bctestscroller) +S60_APP_EXE(bctestscroller) + +//bctestsearchfield +S60_APP_RESOURCE(bctestsearchfield) +S60_APP_AIF_RSC(bctestsearchfield) +S60_APP_EXE(bctestsearchfield) + +//bctestserverapp +S60_APP_RESOURCE(bctestserverapp) +S60_APP_AIF_RSC(bctestserverapp) +S60_APP_EXE(bctestserverapp) + +//bctestsettingpage +S60_APP_RESOURCE(bctestsettingpage) +S60_APP_AIF_RSC(bctestsettingpage) +S60_APP_BITMAP(bctestsettingpage) +S60_APP_EXE(bctestsettingpage) + +//bctestskins +S60_APP_RESOURCE(bctestskins) +S60_APP_AIF_RSC(bctestskins) +S60_APP_EXE(bctestskins) + +//bctestsliderandicons +S60_APP_RESOURCE(bctestsliderandicons) +S60_APP_AIF_RSC(bctestsliderandicons) +S60_APP_EXE(bctestsliderandicons) + +//bctestutilities +S60_APP_RESOURCE(bctestutilities) +S60_APP_AIF_RSC(bctestutilities) +S60_APP_EXE(bctestutilities) + +//bctestvolume +S60_APP_RESOURCE(bctestvolume) +S60_APP_AIF_RSC(bctestvolume) +S60_APP_BITMAP(bctestvolume) +S60_APP_EXE(bctestvolume) + +//bctestlocation +S60_APP_RESOURCE(bctestlocation) +S60_APP_AIF_RSC(bctestlocation) +S60_APP_EXE(bctestlocation) + +//bctestmisc +S60_APP_RESOURCE(bctestmisc) +S60_APP_AIF_RSC(bctestmisc) +S60_APP_EXE(bctestmisc) + +//bctestocr +S60_APP_RESOURCE(bctestocr) +S60_APP_AIF_RSC(bctestocr) +S60_APP_EXE(bctestocr) + +//bctestuniteditor +S60_APP_RESOURCE(bctestuniteditor) +S60_APP_AIF_RSC(bctestuniteditor) +S60_APP_EXE(bctestuniteditor) + +//bctestmisc32 +S60_APP_RESOURCE(bctestmisc32) +S60_APP_AIF_RSC(bctestmisc32) +S60_APP_EXE(bctestmisc32) + +//bctestlocalizer +S60_APP_RESOURCE(bctestlocalizer) +S60_APP_AIF_RSC(bctestlocalizer) +S60_APP_EXE(bctestlocalizer) + +//bctestpreviewpopup +S60_APP_RESOURCE(bctestpreviewpopup) +S60_APP_AIF_RSC(bctestpreviewpopup) +S60_APP_EXE(bctestpreviewpopup) + +//bctestservicehandler +S60_APP_RESOURCE(bctestservicehandler) +S60_APP_AIF_RSC(bctestservicehandler) +S60_APP_EXE(bctestservicehandler) + +data=\epoc32\winscw\c\UIFW.bat \UIFW.bat + +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/sis/UIFW.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/sis/UIFW.bat Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,113 @@ +@rem +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem + +md e:\bctest + +md e:\bctest\results + +copy C:\BCTestLog\BCTESTAKNSOUND_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTAKNSOUND.txt + +copy C:\BCTestLog\BCTESTAPPFRM_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTAPPFRM.txt + +copy C:\BCTestLog\BCTESTBUTTONS_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTBUTTONS.txt + +copy C:\BCTestLog\BCTESTCMDLG_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTCMDLG.txt + +copy C:\BCTestLog\BCTESTDOCANDINIT_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTDOCANDINIT.txt + +copy C:\BCTestLog\BCTESTEditor_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEditor.txt + +copy C:\BCTestLog\BCTESTEH_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEH.txt + +copy C:\BCTestLog\BCTESTEIKBCTRL_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEIKBCTRL.txt + +copy C:\BCTestLog\BCTESTEIKFRM_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEIKFRM.txt + +copy C:\BCTestLog\BCTESTFONTINPUT_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTFONTINPUT.txt + +copy C:\BCTestLog\BCTESTFORM_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTFORM.txt + +copy C:\BCTestLog\BCTESTGRIDS_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTGRIDS.txt + +copy C:\BCTestLog\BCTESTIMAGE_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTIMAGE.txt + +copy C:\BCTestLog\BCTESTKeyLock_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTKeyLock.txt + +copy C:\BCTestLog\BCTESTLABELINFOINDICATORS_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTLABELINFOINDICATORS.txt + +copy C:\BCTestLog\BCTestLIST_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTestLIST.txt + +copy C:\BCTestLog\BCTESTMenu_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMenu.txt + +copy C:\BCTestLog\BCTESTMISCCONTROL_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMISCCONTRO.txt + +copy C:\BCTestLog\BCTESTNOTE_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTNOTE.txt + +copy C:\BCTestLog\BCTESTNOTIFIER_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTNOTIFIER.txt + +copy C:\BCTestLog\BCTESTPANE_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPANE.txt + +copy C:\BCTestLog\BCTESTPOPUPS_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPOPUPS.txt + +copy C:\BCTestLog\BCTESTPRIVATEUIFRM_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPRIVATEUIFRM.txt + +copy C:\BCTestLog\BCTestQuery_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTestQuery.txt + +copy C:\BCTestLog\BCTESTSCREENCLEARER_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSCREENCLEARER.txt + +copy C:\BCTestLog\BCTESTscroller_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTscroller.txt + +copy C:\BCTestLog\BCTESTSEARCHFIELD_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSEARCHFIELD.txt + +copy C:\BCTestLog\BCTESTSERVERAPP_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSERVERAPP.txt + +copy C:\BCTestLog\BCTESTSETTINGPAGE_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSETTINGPAGE.txt + +copy C:\BCTestLog\BCTESTSKINS_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSKINS.txt + +copy C:\BCTestLog\BCTESTSLIDERANDICONS_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSLIDERANDICONS.txt + +copy C:\BCTestLog\BCTestUtilities_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTestUtilities.txt + +copy C:\BCTestLog\BCTESTVOLUME_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTVOLUME.txt + +copy C:\BCTestLog\BCTESTMISC_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMISC.txt + +copy C:\BCTestLog\BCTESTOCR_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTOCR.txt + +copy C:\BCTestLog\BCTESTLOCATION_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTLOCATION.txt + +copy C:\BCTestLog\bctestuniteditor_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTUNITEDITOR.txt + +copy C:\BCTestLog\BCTESTmisc32_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMISC32.txt + +copy C:\BCTestLog\bctestlocalizer_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTLOCALIZER.txt + +copy C:\BCTestLog\BCTestPreviewPopup_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPREVIEWPOPUP.txt + +copy C:\BCTestLog\BCTestServiceHandler_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSERVICEHANDLER.txt + +copy C:\BCTestLog\BCTESTBUTTON_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTBUTTON.txt + +copy C:\BCTestLog\BCTESTChoicelist_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTCHOICELIST.txt + +copy C:\BCTestLog\BCTESTMix50_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMIX50.txt + +copy C:\BCTestLog\BCTESTToolbar_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTTOOLBAR.txt + +copy C:\BCTestLog\BCTESTTouchpane_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTTOUCHPANE.txt + +copy C:\BCTestLog\BCTESTTREELIST_TestLog.txt e:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTTREELIST.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/classicui/uifw/sis/Uifw.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/classicui/uifw/sis/Uifw.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,340 @@ + + +UIFW API +UIFW + +The tests involve the UIFW APIs + + + +bctestbuttons + + + 1 + C:\BCTestLog\BCTESTBUTTONS_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTBUTTONS.txt + + +bctesteditor + + + 1 + C:\BCTestLog\BCTESTEditor_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEditor.txt + + +bctesteikbctrl + + + 3 + C:\BCTestLog\BCTESTEIKBCTRL_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEIKBCTRL.txt + + +bctestform + + + 1 + C:\BCTestLog\BCTESTFORM_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTFORM.txt + + +bctestlist + + + 10 + C:\BCTestLog\BCTestLIST_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTestLIST.txt + + +bctestnote + + + 8 + C:\BCTestLog\BCTESTNOTE_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTNOTE.txt + + +bctestscreenclearer + + + 1 + C:\BCTestLog\BCTESTSCREENCLEARER_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSCREENCLEARER.txt + + +bctestsearchfield + + + 1 + C:\BCTestLog\BCTESTSEARCHFIELD_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSEARCHFIELD.txt + + +bctestutilities + + + 1 + C:\BCTestLog\BCTestUtilities_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTestUtilities.txt + + +bctestaknsound + + + 2 + C:\BCTestLog\BCTESTAKNSOUND_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTAKNSOUND.txt + + +bctestquery + + + 3 + C:\BCTestLog\BCTestQuery_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTestQuery.txt + + +bctestpopups + + + 4 + C:\BCTestLog\BCTESTPOPUPS_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPOPUPS.txt + + +bctestsettingpage + + + 1 + C:\BCTestLog\BCTESTSETTINGPAGE_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSETTINGPAGE.txt + + +bctestappfrm + + + 10 + C:\BCTestLog\BCTESTAPPFRM_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTAPPFRM.txt + + +bctesteikfrm + + + 4 + C:\BCTestLog\BCTESTEIKFRM_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEIKFRM.txt + + +bctestskins + + + 5 + C:\BCTestLog\BCTESTSKINS_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSKINS.txt + + +bctestgrids + + + 3 + C:\BCTestLog\BCTESTGRIDS_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTGRIDS.txt + + +bctestimage + + + 1 + C:\BCTestLog\BCTESTIMAGE_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTIMAGE.txt + + +bctestprivateuifrm + + + 1 + C:\BCTestLog\BCTESTPRIVATEUIFRM_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPRIVATEUIFRM.txt + + +bctestmisccontrol + + + 3 + C:\BCTestLog\BCTESTMISCCONTROL_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMISCCONTRO.txt + + +bctestpane + + + 1 + C:\BCTestLog\BCTESTPANE_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPANE.txt + + +bctestlabelinfoindicators + + + 1 + C:\BCTestLog\BCTESTLABELINFOINDICATORS_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTLABELINFOINDICATORS.txt + + +bctestsliderandicons + + + 2 + C:\BCTestLog\BCTESTSLIDERANDICONS_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSLIDERANDICONS.txt + + +bctestcmdlg + + + 6 + C:\BCTestLog\BCTESTCMDLG_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTCMDLG.txt + + +bctestserverapp + + + 1 + C:\BCTestLog\BCTESTSERVERAPP_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSERVERAPP.txt + + +bctestnotifier + + + 1 + C:\BCTestLog\BCTESTNOTIFIER_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTNOTIFIER.txt + + +bctestmenu + + + 1 + C:\BCTestLog\BCTESTMenu_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMenu.txt + + +bctesteh + + + 1 + C:\BCTestLog\BCTESTEH_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTEH.txt + + +bctestdocandinit + + + 1 + C:\BCTestLog\BCTESTDOCANDINIT_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTDOCANDINIT.txt + + +bctestocr + + + 1 + C:\BCTestLog\BCTESTOCR_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTOCR.txt + + +bctestmisc + + + 1 + C:\BCTestLog\BCTESTMISC_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMISC.txt + + +bctestfontinput + + + 2 + C:\BCTestLog\BCTESTFONTINPUT_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTFONTINPUT.txt + + +bctestscroller + + + 1 + C:\BCTestLog\BCTESTscroller_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTscroller.txt + + +bctestvolume + + + 3 + C:\BCTestLog\BCTESTVOLUME_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTVOLUME.txt + + +bctestlocation + + + 1 + C:\BCTestLog\BCTESTLOCATION_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTLOCATION.txt + + +bctestuniteditor + + + 1 + C:\BCTestLog\bctestuniteditor_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTUNITEDITOR.txt + + +bctestlocalizer + + + 1 + C:\BCTestLog\BCTestLocalizer_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTLOCALIZER.txt + + +bctestmisc32 + + + 2 + C:\BCTestLog\BCTESTMISC32_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMISC32.txt + + +bctestmix50 + + + 4 + C:\BCTestLog\BCTESTMIX50_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTMIX50.txt + + +bctestpreviewpopup + + + 1 + C:\BCTestLog\BCTestPreviewPopup_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTPREVIEWPOPUP.txt + + +bctestservicehandler + + + 1 + C:\BCTestLog\BCTESTSERVICEHANDLER_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTSERVICEHANDLER.txt + + +bctestkeylock + + + 1 + C:\BCTestLog\BCTESTKEYLOCK_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTKEYLOCK.txt + + +bctestbutton + + + 1 + C:\BCTestLog\BCTESTBUTTON_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTBUTTON.txt + + +bctestchoicelist + + + 1 + C:\BCTestLog\BCTESTCHOICELIST_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTCHOICELIST.txt + + +bctesttoolbar + + + 1 + C:\BCTestLog\BCTESTTOOLBAR_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTTOOLBAR.txt + + +bctesttouchpane + + + 1 + C:\BCTestLog\BCTESTTOUCHPANE_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTTOUCHPANE.txt + + +bctesttreelist + + + 1 + C:\BCTestLog\BCTESTTREELIST_TestLog.txte:\bctest\results\CLASSICUI_UIFW_AVKON_BCTESTTREELIST.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/group/DRMHelper.bat --- a/apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/group/DRMHelper.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_DRMHelper.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results -md c:\logs\testframework\BCTestDRMHelperLib - -DrmPreconfig.exe - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestDRMHelper.cfg -engineini c:\TestFramework\TestFramework.ini -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\DRM_Helper.txt - -LogFileReader.exe c:\logs\TestFramework\DRM\DRM_Preconfig.txt e:\BCTest\results\DRM_Helper.txt diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/group/DRMHelper.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/group/DRMHelper.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,20 @@ + + +DRM Helper API +STIF + +The tests involve the DRM Helper API + + + + +C:\TestFramework\TestFramework_DRMHelper.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestDRMHelper.cfg -engineini C:\TestFramework\TestFramework.ini + + + 64 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Drm_Helper.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/sis/Drm_DRMHelper.pkg --- a/apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/sis/Drm_DRMHelper.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"BCTestDRMHelperLib"},(0x20015A5C),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestDRMHelperLib.dll"-"!:\sys\bin\BCTestDRMHelperLib.dll" -"\epoc32\winscw\c\data\Others\video_interval1h.dcf"-"c:\Data\others\video_interval1h.dcf" -"\epoc32\winscw\c\data\DRM\video_interval1h.ro"-"e:\drm\video_interval1h.ro" -"\epoc32\winscw\c\data\Others\sd_S60FBT_005.dcf"-"c:\Data\others\sd_S60FBT_005.dcf" -"\epoc32\winscw\c\data\Others\sd_S60FBT_015.dcf"-"c:\Data\others\sd_S60FBT_015.dcf" -"\epoc32\winscw\c\data\Others\129-allthatshewants.odf"-"c:\Data\others\129-allthatshewants.odf" -"\epoc32\winscw\c\data\DRM\sd_S60FBT_015.ro"-"e:\DRM\sd_S60FBT_015.ro" -"\epoc32\winscw\c\data\Others\sd_water003.dcf"-"c:\Data\others\sd_water003.dcf" -"\epoc32\winscw\c\data\DRM\sd_water.ro"-"e:\DRM\sd_water.ro" -"\Epoc32\winscw\c\testframework\TestFramework_DRMHelper.ini"-"!:\TestFramework\TestFramework_DRMHelper.ini" -"\Epoc32\winscw\c\testframework\tcBCTestDRMHelper.cfg"-"!:\TestFramework\tcBCTestDRMHelper.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestDRMHelper.cfg"-"!:\TestFramework\UI_BCTestDRMHelper.cfg" -"\epoc32\winscw\c\DRMHelper.bat"-"!:\DRMHelper.bat" -"..\preconfigautomation\data\DrmPreconfig.exe"-"!:\sys\bin\DrmPreconfig.exe" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/sis/Drm_DRMHelper.sis Binary file apicompatanamdw/bcdrivers/mw/drm/drm_helper_api/sis/Drm_DRMHelper.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/Bmarm/DRM_CAFU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/Bmarm/DRM_CAFU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/Bwins/DRM_CAFU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/Bwins/DRM_CAFU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/EABI/DRM_CAFU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/EABI/DRM_CAFU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/group/DRMCAF.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/group/DRMCAF.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +DRM CAF API +STIF + +The tests involve the DRM Content Access Framework API + + + +C:\TestFramework\TestFramework_DRMCAF.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\DRM_CAF.cfg -engineini C:\TestFramework\TestFramework.ini + + + 53 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Drm_CAF.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/group/DRM_CAF.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/group/DRM_CAF.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,61 @@ +; +; 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: +; +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000),1,1,0,TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + +; Logo +; None + +; Package signature - Optional +; None + +; Start of Package body + +; Condition blocks +; None + +; Options list +; None + +; Install files +"\epoc32\release\armv5\udeb\DRM_CAF.dll" - "!:\Sys\Bin\DRM_CAF.dll" + +; Embedded SIS +; None + +; End of Package body + +; PKG dependencies +; None + +; PKG capabilities +; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/group/drmcaf.bat --- a/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/DRM_CAF/group/drmcaf.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_DRMCAF.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testscripter -config C:\TestFramework\DRM_CAF.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\DRM_CAF.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/sis/Drm_DRMCAF.pkg --- a/apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/sis/Drm_DRMCAF.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MM_DRMCAF"},(0x20015B21),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\epoc32\winscw\c\content-noenc-trunc.odf"-"!:\content-noenc-trunc.odf" -"\Epoc32\winscw\c\content.odf"-"!:\content.odf" -"\Epoc32\winscw\c\content.txt"-"!:\content.txt" -"\Epoc32\winscw\c\content-noenc.odf"-"!:\content-noenc.odf" -"\Epoc32\winscw\c\content.dcf"-"!:\content.dcf" - - -"\Epoc32\Release\armv5\urel\DRM_CAF.dll"-"!:\sys\bin\DRM_CAF.dll" -"\Epoc32\Release\armv5\urel\BCDRMCAFCAPS.exe"-"!:\sys\bin\BCDRMCAFCAPS.exe" -"\Epoc32\winscw\c\testframework\TestFramework_DRMCAF.ini"-"!:\TestFramework\TestFramework_DRMCAF.ini" -"\Epoc32\winscw\c\testframework\DRM_CAF.cfg"-"!:\TestFramework\DRM_CAF.cfg" -"\epoc32\winscw\c\drmcaf.bat"-"!:\drmcaf.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/sis/Drm_DRMCAF.sis Binary file apicompatanamdw/bcdrivers/mw/drm/oma_drm_caf_agent_api/sis/Drm_DRMCAF.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipclient/sis/symbian_sipclient.SIS Binary file apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipclient/sis/symbian_sipclient.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipclient/sis/symbian_sipclient.pkg --- a/apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipclient/sis/symbian_sipclient.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ -; -; Copyright (c) 2005-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: -; -; -; Install file for t_sipclientapi.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"t_sipclientapi"},(0x20003711),1,0,0 - -;%{"Vendor-EN"} -;:"Nokia" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"\epoc32\release\armv5\urel\t_sipclientapi.exe"-"!:\sys\bin\t_sipclientapi.exe" -"\epoc32\release\armv5\urel\sipclientresolverplugin.dll"-"!:\sys\bin\sipclientresolverplugin.dll" -"\epoc32\data\z\resource\plugins\sipclientresolverplugin.rsc"-"!:\resource\plugins\sipclientresolverplugin.rsc" -"\epoc32\data\z\private\10003a3f\import\apps\t_sipclientapi_reg.rsc"-"!:\private\10003a3f\import\apps\t_sipclientapi_reg.rsc" - -"\epoc32\winscw\c\sip\sipclient\recv.bat"-"!:\sip\sipclient\recv.bat" -"\epoc32\winscw\c\sip\sipclient\send.bat"-"!:\sip\sipclient\send.bat" -"\epoc32\winscw\c\sip\sipclient\t_sipclient.bat"-"!:\sip\sipclient\t_sipclient.bat" - - -"\epoc32\winscw\c\sip\sipclient\receive-sip-request-slave.script"-"!:\sip\sipclient\receive-sip-request-slave.script" -"\epoc32\winscw\c\sip\sipclient\receive-sip-request-slave.ini"-"!:\sip\sipclient\receive-sip-request-slave.ini" -"\epoc32\winscw\c\sip\sipclient\send-sip-request-master.script"-"!:\sip\sipclient\send-sip-request-master.script" -"\epoc32\winscw\c\sip\sipclient\send-sip-request-master.ini"-"!:\sip\sipclient\send-sip-request-master.ini" -"\epoc32\winscw\c\sip\sipclient\t_csip.script"-"!:\sip\sipclient\t_csip.script" -"\epoc32\winscw\c\sip\sipclient\t_csip.ini"-"!:\sip\sipclient\t_csip.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipconnection.script"-"!:\sip\sipclient\t_csipconnection.script" -"\epoc32\winscw\c\sip\sipclient\t_csipconnection.ini"-"!:\sip\sipclient\t_csipconnection.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipconnection-ne.script"-"!:\sip\sipclient\t_csipconnection-ne.script" -"\epoc32\winscw\c\sip\sipclient\t_csipconnection-ne.ini"-"!:\sip\sipclient\t_csipconnection-ne.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipdialog.script"-"!:\sip\sipclient\t_csipdialog.script" -"\epoc32\winscw\c\sip\sipclient\t_csipdialog.ini"-"!:\sip\sipclient\t_csipdialog.ini" -"\epoc32\winscw\c\sip\sipclient\t_csiphttpdigest.script"-"!:\sip\sipclient\t_csiphttpdigest.script" -"\epoc32\winscw\c\sip\sipclient\t_csiphttpdigest.ini"-"!:\sip\sipclient\t_csiphttpdigest.ini" -"\epoc32\winscw\c\sip\sipclient\t_csiphttpdigest-ne.script"-"!:\sip\sipclient\t_csiphttpdigest-ne.script" -"\epoc32\winscw\c\sip\sipclient\t_csiphttpdigest-ne.ini"-"!:\sip\sipclient\t_csiphttpdigest-ne.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipreferdialogassoc.script"-"!:\sip\sipclient\t_csipreferdialogassoc.script" -"\epoc32\winscw\c\sip\sipclient\t_csipreferdialogassoc.ini"-"!:\sip\sipclient\t_csipreferdialogassoc.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipreferdialogassoc-ne.script"-"!:\sip\sipclient\t_csipreferdialogassoc-ne.script" -"\epoc32\winscw\c\sip\sipclient\t_csipreferdialogassoc-ne.ini"-"!:\sip\sipclient\t_csipreferdialogassoc-ne.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipresponseelements.script"-"!:\sip\sipclient\t_csipresponseelements.script" -"\epoc32\winscw\c\sip\sipclient\t_csipresponseelements.ini"-"!:\sip\sipclient\t_csipresponseelements.ini" -"\epoc32\winscw\c\sip\sipclient\t_csiprequestelements.script"-"!:\sip\sipclient\t_csiprequestelements.script" -"\epoc32\winscw\c\sip\sipclient\t_csiprequestelements.ini"-"!:\sip\sipclient\t_csiprequestelements.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipmessageelements.script"-"!:\sip\sipclient\t_csipmessageelements.script" -"\epoc32\winscw\c\sip\sipclient\t_csipmessageelements.ini"-"!:\sip\sipclient\t_csipmessageelements.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipmessageelements-ne.script"-"!:\sip\sipclient\t_csipmessageelements-ne.script" -"\epoc32\winscw\c\sip\sipclient\t_csipmessageelements-ne.ini"-"!:\sip\sipclient\t_csipmessageelements-ne.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipregistrationbinding.script"-"!:\sip\sipclient\t_csipregistrationbinding.script" -"\epoc32\winscw\c\sip\sipclient\t_csipregistrationbinding.ini"-"!:\sip\sipclient\t_csipregistrationbinding.ini" -"\epoc32\winscw\c\sip\sipclient\t_csipregistrationbinding-ne.script"-"!:\sip\sipclient\t_csipregistrationbinding-ne.script" -"\epoc32\winscw\c\sip\sipclient\t_csipregistrationbinding-ne.ini"-"!:\sip\sipclient\t_csipregistrationbinding-ne.ini" -"\epoc32\winscw\c\sip\sipclient\t_csiprefresh.script"-"!:\sip\sipclient\t_csiprefresh.script" -"\epoc32\winscw\c\sip\sipclient\t_csiprefresh.ini"-"!:\sip\sipclient\t_csiprefresh.ini" -"\epoc32\winscw\c\sip\sipclient\t_csiprefresh-ne.script"-"!:\sip\sipclient\t_csiprefresh-ne.script" -"\epoc32\winscw\c\sip\sipclient\t_csiprefresh-ne.ini"-"!:\sip\sipclient\t_csiprefresh-ne.ini" - - -"\epoc32\winscw\c\sip\sipclient\r001.bat"-"!:\sip\sipclient\r001.bat" -"\epoc32\winscw\c\sip\sipclient\r002.bat"-"!:\sip\sipclient\r002.bat" -"\epoc32\winscw\c\sip\sipclient\r003.bat"-"!:\sip\sipclient\r003.bat" -"\epoc32\winscw\c\sip\sipclient\r004.bat"-"!:\sip\sipclient\r004.bat" -"\epoc32\winscw\c\sip\sipclient\r005.bat"-"!:\sip\sipclient\r005.bat" -"\epoc32\winscw\c\sip\sipclient\r006.bat"-"!:\sip\sipclient\r006.bat" -"\epoc32\winscw\c\sip\sipclient\r007.bat"-"!:\sip\sipclient\r007.bat" -"\epoc32\winscw\c\sip\sipclient\r101.bat"-"!:\sip\sipclient\r101.bat" -"\epoc32\winscw\c\sip\sipclient\r102.bat"-"!:\sip\sipclient\r102.bat" -"\epoc32\winscw\c\sip\sipclient\r103.bat"-"!:\sip\sipclient\r103.bat" -"\epoc32\winscw\c\sip\sipclient\r104.bat"-"!:\sip\sipclient\r104.bat" -"\epoc32\winscw\c\sip\sipclient\r105.bat"-"!:\sip\sipclient\r105.bat" -"\epoc32\winscw\c\sip\sipclient\r106.bat"-"!:\sip\sipclient\r106.bat" -"\epoc32\winscw\c\sip\sipclient\r107.bat"-"!:\sip\sipclient\r107.bat" - -"\epoc32\winscw\c\sip\sipclient\s001.bat"-"!:\sip\sipclient\s001.bat" -"\epoc32\winscw\c\sip\sipclient\s002.bat"-"!:\sip\sipclient\s002.bat" -"\epoc32\winscw\c\sip\sipclient\s003.bat"-"!:\sip\sipclient\s003.bat" -"\epoc32\winscw\c\sip\sipclient\s004.bat"-"!:\sip\sipclient\s004.bat" -"\epoc32\winscw\c\sip\sipclient\s005.bat"-"!:\sip\sipclient\s005.bat" -"\epoc32\winscw\c\sip\sipclient\s006.bat"-"!:\sip\sipclient\s006.bat" -"\epoc32\winscw\c\sip\sipclient\s007.bat"-"!:\sip\sipclient\s007.bat" -"\epoc32\winscw\c\sip\sipclient\s101.bat"-"!:\sip\sipclient\s101.bat" -"\epoc32\winscw\c\sip\sipclient\s102.bat"-"!:\sip\sipclient\s102.bat" -"\epoc32\winscw\c\sip\sipclient\s103.bat"-"!:\sip\sipclient\s103.bat" -"\epoc32\winscw\c\sip\sipclient\s104.bat"-"!:\sip\sipclient\s104.bat" -"\epoc32\winscw\c\sip\sipclient\s105.bat"-"!:\sip\sipclient\s105.bat" -"\epoc32\winscw\c\sip\sipclient\s106.bat"-"!:\sip\sipclient\s106.bat" -"\epoc32\winscw\c\sip\sipclient\s107.bat"-"!:\sip\sipclient\s107.bat" - -"\epoc32\winscw\c\sip\sipclient\r001.script"-"!:\sip\sipclient\r001.script" -"\epoc32\winscw\c\sip\sipclient\r002.script"-"!:\sip\sipclient\r002.script" -"\epoc32\winscw\c\sip\sipclient\r003.script"-"!:\sip\sipclient\r003.script" -"\epoc32\winscw\c\sip\sipclient\r004.script"-"!:\sip\sipclient\r004.script" -"\epoc32\winscw\c\sip\sipclient\r005.script"-"!:\sip\sipclient\r005.script" -"\epoc32\winscw\c\sip\sipclient\r006.script"-"!:\sip\sipclient\r006.script" -"\epoc32\winscw\c\sip\sipclient\r007.script"-"!:\sip\sipclient\r007.script" -"\epoc32\winscw\c\sip\sipclient\r101.script"-"!:\sip\sipclient\r101.script" -"\epoc32\winscw\c\sip\sipclient\r102.script"-"!:\sip\sipclient\r102.script" -"\epoc32\winscw\c\sip\sipclient\r103.script"-"!:\sip\sipclient\r103.script" -"\epoc32\winscw\c\sip\sipclient\r104.script"-"!:\sip\sipclient\r104.script" -"\epoc32\winscw\c\sip\sipclient\r105.script"-"!:\sip\sipclient\r105.script" -"\epoc32\winscw\c\sip\sipclient\r106.script"-"!:\sip\sipclient\r106.script" -"\epoc32\winscw\c\sip\sipclient\r107.script"-"!:\sip\sipclient\r107.script" - -"\epoc32\winscw\c\sip\sipclient\s001.script"-"!:\sip\sipclient\s001.script" -"\epoc32\winscw\c\sip\sipclient\s002.script"-"!:\sip\sipclient\s002.script" -"\epoc32\winscw\c\sip\sipclient\s003.script"-"!:\sip\sipclient\s003.script" -"\epoc32\winscw\c\sip\sipclient\s004.script"-"!:\sip\sipclient\s004.script" -"\epoc32\winscw\c\sip\sipclient\s005.script"-"!:\sip\sipclient\s005.script" -"\epoc32\winscw\c\sip\sipclient\s006.script"-"!:\sip\sipclient\s006.script" -"\epoc32\winscw\c\sip\sipclient\s007.script"-"!:\sip\sipclient\s007.script" -"\epoc32\winscw\c\sip\sipclient\s101.script"-"!:\sip\sipclient\s101.script" -"\epoc32\winscw\c\sip\sipclient\s102.script"-"!:\sip\sipclient\s102.script" -"\epoc32\winscw\c\sip\sipclient\s103.script"-"!:\sip\sipclient\s103.script" -"\epoc32\winscw\c\sip\sipclient\s104.script"-"!:\sip\sipclient\s104.script" -"\epoc32\winscw\c\sip\sipclient\s105.script"-"!:\sip\sipclient\s105.script" -"\epoc32\winscw\c\sip\sipclient\s106.script"-"!:\sip\sipclient\s106.script" -"\epoc32\winscw\c\sip\sipclient\s107.script"-"!:\sip\sipclient\s107.script" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipcodec/sis/symbian_sipcodec.SIS Binary file apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipcodec/sis/symbian_sipcodec.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipcodec/sis/symbian_sipcodec.pkg --- a/apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipcodec/sis/symbian_sipcodec.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -; -; Copyright (c) 2005-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: -; -; -; Install file for t_sipcodecapi.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"SIP Codec API"},(0x20003712),1,0,0 - -;%{"Vendor-EN"} -;:"Nokia" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"\epoc32\release\armv5\urel\t_sipcodecapi.exe"-"!:\sys\bin\t_sipcodecapi.exe" -;"\epoc32\data\z\private\10003a3f\import\apps\t_sipcodecapi_reg.rsc"-"!:\private\10003a3f\import\apps\t_sipcodecapi_reg.rsc" -"..\group\code.bat"-"!:\sip\sipcodec\code.bat" - - -"\epoc32\winscw\c\sip\sipcodec\t_sipstrings.script"-"!:\sip\sipcodec\t_sipstrings.script" -"\epoc32\winscw\c\sip\sipcodec\t_sipstrings.ini"-"!:\sip\sipcodec\t_sipstrings.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipcallidheader.script"-"!:\sip\sipcodec\t_csipcallidheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipcallidheader.ini"-"!:\sip\sipcodec\t_csipcallidheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipaddress.script"-"!:\sip\sipcodec\t_csipaddress.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipaddress.ini"-"!:\sip\sipcodec\t_csipaddress.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipcseqheader.script"-"!:\sip\sipcodec\t_csipcseqheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipcseqheader.ini"-"!:\sip\sipcodec\t_csipcseqheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipextensionheader.script"-"!:\sip\sipcodec\t_csipextensionheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipextensionheader.ini"-"!:\sip\sipcodec\t_csipextensionheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csiprackheader.script"-"!:\sip\sipcodec\t_csiprackheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csiprackheader.ini"-"!:\sip\sipcodec\t_csiprackheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipalloweventsheader.script"-"!:\sip\sipcodec\t_csipalloweventsheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipalloweventsheader.ini"-"!:\sip\sipcodec\t_csipalloweventsheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipreplytoheader.script"-"!:\sip\sipcodec\t_csipreplytoheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipreplytoheader.ini"-"!:\sip\sipcodec\t_csipreplytoheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csiprefertoheader.script"-"!:\sip\sipcodec\t_csiprefertoheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csiprefertoheader.ini"-"!:\sip\sipcodec\t_csiprefertoheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csiptimestampheader.script"-"!:\sip\sipcodec\t_csiptimestampheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csiptimestampheader.ini"-"!:\sip\sipcodec\t_csiptimestampheader.ini" - -"\epoc32\winscw\c\sip\sipcodec\t_csipfromheader.script"-"!:\sip\sipcodec\t_csipfromheader.script" -"\epoc32\winscw\c\sip\sipcodec\t_csipfromheader.ini"-"!:\sip\sipcodec\t_csipfromheader.ini" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipprofile/sis/symbian_sipprofile.SIS Binary file apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipprofile/sis/symbian_sipprofile.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipprofile/sis/symbian_sipprofile.pkg --- a/apicompatanamdw/bcdrivers/mw/ipappprotocols/sip/sipprofile/sis/symbian_sipprofile.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -; -; Copyright (c) 2005-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: -; -; -; -; Install file for t_sipprofileapi.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"SIP Profile API"},(0x20003710),1,0,0 - -;%{"Vendor-EN"} -;:"Nokia" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"\epoc32\release\armv5\urel\t_sipprofileapi.exe"-"!:\sys\bin\t_sipprofileapi.exe" - -"\epoc32\winscw\c\sip\sipprofile\pro.bat"-"!:\sip\sipprofile\pro.bat" - -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofile.script"-"!:\sip\sipprofile\t_csipmanagedprofile.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofile.ini"-"!:\sip\sipprofile\t_csipmanagedprofile.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofile-ne.script"-"!:\sip\sipprofile\t_csipmanagedprofile-ne.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofile-ne.ini"-"!:\sip\sipprofile\t_csipmanagedprofile-ne.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofileregistry.script"-"!:\sip\sipprofile\t_csipprofileregistry.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofileregistry.ini"-"!:\sip\sipprofile\t_csipprofileregistry.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofileregistry-ne.script"-"!:\sip\sipprofile\t_csipprofileregistry-ne.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofileregistry-ne.ini"-"!:\sip\sipprofile\t_csipprofileregistry-ne.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofileregistry.script"-"!:\sip\sipprofile\t_csipmanagedprofileregistry.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofileregistry.ini"-"!:\sip\sipprofile\t_csipmanagedprofileregistry.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofileregistry-ne.script"-"!:\sip\sipprofile\t_csipmanagedprofileregistry-ne.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipmanagedprofileregistry-ne.ini"-"!:\sip\sipprofile\t_csipmanagedprofileregistry-ne.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofile-ne.script"-"!:\sip\sipprofile\t_csipprofile-ne.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofile-ne.ini"-"!:\sip\sipprofile\t_csipprofile-ne.ini" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofile.script"-"!:\sip\sipprofile\t_csipprofile.script" -"\epoc32\winscw\c\sip\sipprofile\t_csipprofile.ini"-"!:\sip\sipprofile\t_csipprofile.ini" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/bmarm/cmmgrbcu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/bmarm/cmmgrbcu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/bwins/cmmgrbcu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/bwins/cmmgrbcu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/eabi/cmmgrbcu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/eabi/cmmgrbcu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/group/abld.bat --- a/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/group/abld.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -@rem -@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -@ECHO OFF - -REM Bldmake-generated batch file - ABLD.BAT -REM ** DO NOT EDIT ** - -perl -S ABLD.PL "\ext\tools\oemrndtools\bctools\bcdrivers\mw\ipconnmgmt\bc\group\\" %1 %2 %3 %4 %5 %6 %7 %8 %9 -if errorlevel==1 goto CheckPerl -goto End - -:CheckPerl -perl -v >NUL -if errorlevel==1 echo Is Perl, version 5.003_07 or later, installed? -goto End - -:End diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/init/ConSet.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/init/ConSet.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,20 @@ + + +Connection Settings API +STIF + +The tests involve the IpConnection Connection Settings API + + + +C:\private\10202be9\persists\cccccc00.cre +C:\TestFramework\TestFramework_connset.iniC:\TestFramework\TestFramework.ini + -testmodule cmmgrbc -engineini C:\TestFramework\TestFramework.ini + + + 34 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\IPConnMgmt_ConnectionSettings.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/internal/ConnSet/sis/ConnSet_EKA2.SIS Binary file apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/internal/ConnSet/sis/ConnSet_EKA2.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/sis/ipconn_connset.pkg --- a/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/sis/ipconn_connset.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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: -; -; -; Install files for cmmanager's BC test application in RnD -; - -; Supported languages -&EN - -; Package header -#{"Conn Settings API"}, (0x2001246F), 1, 2, 3, TYPE=SA - -; Series 60 v3.0 -[0x101f7961], *, *, *, {"Series60ProductID"} - -; Localised vendor name -%{"Nokia Test EN"} -; Unique vendor name -:"Nokia" - -;Files to install -; ConnectionSettings -"/epoc32/release/armv5/urel/cmmgrbc.dll"-"!:/sys/bin/cmmgrbc.dll" -"/epoc32/winscw/c/testframework/testframework_cmmgrbc.ini"-"!:/testframework/testframework_cmmgrbc.ini" - -"/epoc32/winscw/c/testCS.bat"-"!:/testCS.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/sis/ipconn_connset.sis Binary file apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_api/sis/ipconn_connset.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/Bmarm/BCConnSettingsUITestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/Bmarm/BCConnSettingsUITestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/Bwins/BCConnSettingsUITestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/Bwins/BCConnSettingsUITestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/EABI/BCConnSettingsUITestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/EABI/BCConnSettingsUITestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/data/ConSetUI.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/data/ConSetUI.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Connection Settings UI API +STIF + +The tests involve the IpConnection Connection Settings UI API + + + +C:\TestFramework\TestFramework_connsetui.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config c:\testframework\tcConnSet.cfg -engineini C:\TestFramework\TestFramework.ini + + + 4 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\IPConnMgmt_ConnectionSettingsUI.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/sis/IpConn_ConnSetUI.pkg --- a/apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/sis/IpConn_ConnSetUI.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +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: -; -; -; Install files for cmmanager's BC test application in RnD -; - -; Supported languages -&EN - -; Package header -#{"BCConnSettingsUITest"}, (0x2001246C), 1, 2, 3, TYPE=SA - -; Series 60 v3.0 -[0x101f7961], *, *, *, {"Series60ProductID"} - -; Localised vendor name -%{"Nokia Test EN"} -; Unique vendor name -:"Nokia" - -;Files to install -; BCConnSettingsUITest -; -"\epoc32\release\armv5\urel\BCConnSettingsUITest.dll"-"!:\sys\bin\BCConnSettingsUITest.dll" -"\epoc32\winscw\c\TestFramework\tcConnSet.cfg"-"!:\TestFramework\tcConnSet.cfg" -"\epoc32\winscw\c\TestFramework\UI_ConnSet.cfg"-"!:\TestFramework\UI_ConnSet.cfg" -"\epoc32\winscw\c\TestFramework\TestFramework_connsetui.ini"-"!:\TestFramework\TestFramework_connsetui.ini" -"\epoc32\winscw\c\testcsui.bat"-"!:\testcsui.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/sis/IpConn_ConnSetUI.sis Binary file apicompatanamdw/bcdrivers/mw/ipconnmgmt/connection_settings_ui_api/sis/IpConn_ConnSetUI.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/bmarm/econnprefbcu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/bmarm/econnprefbcu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/bwins/econnprefbcu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/bwins/econnprefbcu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/eabi/econnprefbcu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/eabi/econnprefbcu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/group/ConPref.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/group/ConPref.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +ExtendedConnPref API +STIF + +The tests involve the IpConnection Extended Conn Pref API + + + + -testmodule econnprefbc + + + 9 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\IpConnMgmt_ConnPref.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/sis/IpConn_ConnPref.pkg --- a/apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/sis/IpConn_ConnPref.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +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: -; Installation file for Extended Connection Preferences API binary -; compability tests (STIF). -; - -; Languages -&EN - -; Package header -#{"EConnPref BC test"},(0x10282CA5),1,0,0,TYPE=SA - -; Series60 product id -; S60 v3.0 0x101F7961 -; S60 v3.1 0x102032BE -; S60 v3.2 0x102752AE -; S60 v5.0 0x1028315F -; S60 v5.1 0x10283160 - -[0x101F7A9B], 3, *, *, {"Series60ProductID"} - -; Localised Vendor name -%{"Nokia"} -; Unique Vendor name -:"Nokia Corporation" - -; Logo -; None - -; Package signature - Optional -; None - -; Start of Package body - -; Condition blocks -; None - -; Options list -; None - -; Install files -"/epoc32/release/armv5/urel/econnprefbc.dll"-"!:/sys/bin/econnprefbc.dll" -"/Epoc32/winscw/c/testframework/TestFramework_connpref.ini"-"!:\TestFramework\TestFramwork_connpref.ini" -"/epoc32/winscw/c/connpref.bat"-"!:\connpref.bat" -; None - -; End of Package body - -; PKG dependencies -; None - -; PKG capabilities -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/sis/IpConn_ConnPref.sis Binary file apicompatanamdw/bcdrivers/mw/ipconnmgmt/extended_connpref_api/sis/IpConn_ConnPref.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/Bmarm/BCBlidTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/Bmarm/BCBlidTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/Bwins/BCBlidTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/Bwins/BCBlidTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/EABI/BCBlidTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/EABI/BCBlidTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/group/Blid.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/group/Blid.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Blid App Satellite Info API +STIF + +The tests involve the Location Blid Application Satellite Info API + + + +C:\TestFramework\TestFramework_locblid.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcLmkBlid.cfg -engineini C:\TestFramework\TestFramework.ini + + + 4 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\LocationSrv_Blid.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/group/blid.bat --- a/apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/group/blid.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_locblid.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcLmkBlid.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\LocationSrv_Blid.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/sis/LocSrv_Blid.pkg --- a/apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/sis/LocSrv_Blid.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"loc_blid"},(0x20015B23),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCBlidTest.dll"-"!:\sys\bin\BCBlidTest.dll" -"\Epoc32\winscw\c\testframework\TestFramework_locblid.ini"-"!:\TestFramework\TestFramework_locblid.ini" -"\Epoc32\winscw\c\testframework\tcLmkBlid.cfg"-"!:\TestFramework\tcLmkBlid.cfg" -"\Epoc32\winscw\c\testframework\UI_BCBlid.cfg"-"!:\TestFramework\UI_BCBlid.cfg" -"\epoc32\winscw\c\blid.bat"-"!:\blid.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/sis/LocSrv_Blid.sis Binary file apicompatanamdw/bcdrivers/mw/locationsrv/blid_application_satellite_info_api/sis/LocSrv_Blid.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/bmarm/testlandmarksapiU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/bmarm/testlandmarksapiU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/bwins/testlandmarksapiU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/bwins/testlandmarksapiU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/conf/lm.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/conf/lm.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Landmarks API +STIF + +The tests involve the Location Landmarks API + + + +C:\TestFramework\TestFramework_Landmarks.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config c:\testframework\testlandmarksapi.cfg -engineini C:\TestFramework\TestFramework.ini + + + 116 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\LocationSrv_Landmarks.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/eabi/testlandmarksapiU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/eabi/testlandmarksapiU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,21 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI19CTestPosLmOperation @ 2 NONAME ; ## + _ZTI24CTestPosLandmarkDatabase @ 3 NONAME ; ## + _ZTV19CTestPosLmOperation @ 4 NONAME ; ## + _ZTV24CTestPosLandmarkDatabase @ 5 NONAME ; ## + _ZTI16CTestPosLandmark @ 6 NONAME + _ZTI22CTestPosLandmarkParser @ 7 NONAME + _ZTI22CTestPosLmItemIterator @ 8 NONAME + _ZTI23CTestPosLandmarkEncoder @ 9 NONAME + _ZTI24CTestPosLandmarkCategory @ 10 NONAME + _ZTI25CTestPosLmCategoryManager @ 11 NONAME + _ZTI27CTestPosLmPartialReadParams @ 12 NONAME + _ZTV16CTestPosLandmark @ 13 NONAME + _ZTV22CTestPosLandmarkParser @ 14 NONAME + _ZTV22CTestPosLmItemIterator @ 15 NONAME + _ZTV23CTestPosLandmarkEncoder @ 16 NONAME + _ZTV24CTestPosLandmarkCategory @ 17 NONAME + _ZTV25CTestPosLmCategoryManager @ 18 NONAME + _ZTV27CTestPosLmPartialReadParams @ 19 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/group/testlandmarksapi.mmp --- a/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/group/testlandmarksapi.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/group/testlandmarksapi.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -66,7 +66,8 @@ SYSTEMINCLUDE /epoc32/include/internal #endif // __S60_ #endif // SBSV2 - +SYSTEMINCLUDE /epoc32/include/platform +SYSTEMINCLUDE /epoc32/include/mw LIBRARY euser.lib LIBRARY stiftestinterface.lib LIBRARY eposlandmarks.lib diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/sis/LocSrv_landmarks.pkg --- a/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/sis/LocSrv_landmarks.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +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: -; -; -; Installation file for Landmarks API Test module -; -;Languages -&EN -; -; UID is the app's UID -; -#{"LandmarksAPI_Test"},(0xE0000001),3,0,0,TYPE=SA -; -; Localised Vendor name -%{"Nokia-EN"} - -; Unique Vendor name -:"Nokia" - -;Supports Series 60 v 3.0 -;This line indicates that this installation is for the Series 60 platform v3.0 -;This line must appear _exactly_ as shown below in the sis file -;If this line is missing or incorrect, the sis file will not be able -;to be installed on Series 60 v3.0 platforms -[0x101F6F88], 0, 0, 0, {"Series60ProductID"} -; -; - -; File to install - -; Install LandmarksAPI test binaries here -"\epoc32\release\armv5\urel\testlandmarksapi.dll"-"!:\sys\bin\testlandmarksapi.dll" -"..\conf\testlandmarksapi.cfg" - "C:\testframework\testlandmarksapi.cfg" -"..\conf\testframework.ini" - "C:\testframework\testframework_Landmarks.ini" -"..\conf\lm.bat" - "C:\lm.bat" - -; Initial Set of Data files -"..\data_c\smiltemplate.mif" - "C:\testing\data\smiltemplate.mif" -"..\data_c\testEposLmImport.lmx" - "C:\testing\data\testEposLmImport.lmx" -"..\data_c\testEposLmImportCollection.lmx" - "C:\testing\data\testEposLmImportCollection.lmx" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/sis/LocSrv_landmarks.sis Binary file apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/sis/LocSrv_landmarks.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/src/testcposlandmarkdatabase.cpp --- a/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/src/testcposlandmarkdatabase.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_api/src/testcposlandmarkdatabase.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -750,9 +750,13 @@ // Set Input file parser->SetInputFileL( importFilePtr ); // Import landmarks to DB + iLog->Log(_L("Before ImportLandmarks ")); CPosLmOperation* operation = lmkDatabase->ImportLandmarksL( *parser, CPosLandmarkDatabase::EDefaultOptions ); + iLog->Log(_L("After ImportLandmarks ")); CleanupStack::PushL( operation ); - operation->ExecuteL(); + iLog->Log(_L("Before ExecuteL ")); + TRAPD(error,operation->ExecuteL()); + iLog->Log(_L("After ExecuteL ")); iLog->Log(_L("ImportLandmarks successful")); CleanupStack::PopAndDestroy( 3, lmkDatabase ); ReleaseLandmarkResources(); @@ -787,7 +791,7 @@ indexArray.AppendL( 1 ); CPosLmOperation* operation = lmkDatabase->ImportLandmarksL( *parser, indexArray, CPosLandmarkDatabase::EDefaultOptions ); CleanupStack::PushL( operation ); - operation->ExecuteL(); + TRAPD(error,operation->ExecuteL()); iLog->Log(_L("ImportSelectedLandmarks successful")); CleanupStack::PopAndDestroy( 3, lmkDatabase ); ReleaseLandmarkResources(); @@ -817,7 +821,7 @@ // Import landmarks to DB CPosLmOperation* operation = lmkDatabase->ImportLandmarksL( *parser, CPosLandmarkDatabase::EDefaultOptions ); CleanupStack::PushL( operation ); - operation->ExecuteL(); + TRAPD(error,operation->ExecuteL()); // Get iterator for imported landmarks CPosLmItemIterator* iterator = lmkDatabase->ImportedLandmarksIteratorL( operation ); CleanupStack::PushL( iterator ); diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/bmarm/testdbmanagementapiU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/bmarm/testdbmanagementapiU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/bwins/testdbmanagementapiU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/bwins/testdbmanagementapiU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/conf/lmdb.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/conf/lmdb.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Landmarks Database Management API +STIF + +The tests involve the Location Landmarks Database Management API + + + +C:\TestFramework\TestFramework_lmdbmanagement.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config c:\testframework\testdbmanagementapi.cfg -engineini C:\TestFramework\TestFramework.ini + + + 36 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\LocationSrv_LandmarksDBManagement.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/eabi/testdbmanagementapiU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/eabi/testdbmanagementapiU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI22CTestPosLmDatabaseInfo @ 2 NONAME + _ZTI25CTestPosLmDatabaseManager @ 3 NONAME + _ZTV22CTestPosLmDatabaseInfo @ 4 NONAME + _ZTV25CTestPosLmDatabaseManager @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/sis/LocSrv_LmkDBMgmt.pkg --- a/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/sis/LocSrv_LmkDBMgmt.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +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: -; -; -; Installation file for Landmarks Database Management API Test module -; -;Languages -&EN -; -; UID is the app's UID -; -#{"LandmarksDatabaseManagementAPI_Test"},(0xE0000002),3,0,0,TYPE=SA -; -; Localised Vendor name -%{"Nokia-EN"} - -; Unique Vendor name -:"Nokia" - -;Supports Series 60 v 3.0 -;This line indicates that this installation is for the Series 60 platform v3.0 -;This line must appear _exactly_ as shown below in the sis file -;If this line is missing or incorrect, the sis file will not be able -;to be installed on Series 60 v3.0 platforms -[0x101F6F88], 0, 0, 0, {"Series60ProductID"} -; -; - -; File to install - -; Install LandmarksAPI test binaries here -"\epoc32\release\armv5\urel\testdbmanagementapi.dll"-"!:\sys\bin\testdbmanagementapi.dll" -"..\conf\testdbmanagementapi.cfg" - "C:\testframework\testdbmanagementapi.cfg" -"..\conf\testframework.ini" - "C:\testframework\TestFramework_lmdbmanagement.ini" -"..\conf\lmdb.bat" - "C:\lmdb.bat" - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/sis/LocSrv_LmkDBMgmt.sis Binary file apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_database_management_api/sis/LocSrv_LmkDBMgmt.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/bwins/testlmksearchapiu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/bwins/testlmksearchapiu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/conf/lms.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/conf/lms.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Landmarks Search API +STIF + +The tests involve the Location Landmarks Search API + + + +C:\TestFramework\TestFramework_lmsearch.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config c:\testframework\testlmksearchapi.cfg -engineini C:\TestFramework\TestFramework.ini + + + 102 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\LocationSrv_LandmarksSearch.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/eabi/testlmksearchapiu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/eabi/testlmksearchapiu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI17CTestPosLmkSearch @ 2 NONAME ; ## + _ZTI21CTestPosLmDisplayData @ 3 NONAME ; ## + _ZTI21CTestPosLmDisplayItem @ 4 NONAME ; ## + _ZTI22CTestPosLmAreaCriteria @ 5 NONAME ; ## + _ZTI22CTestPosLmTextCriteria @ 6 NONAME ; ## + _ZTI23CTestPosLmMultiDbSearch @ 7 NONAME ; ## + _ZTI24CTestPosLmIdListCriteria @ 8 NONAME ; ## + _ZTI25CTestPosLmCatNameCriteria @ 9 NONAME ; ## + _ZTI25CTestPosLmNearestCriteria @ 10 NONAME ; ## + _ZTI26CTestPosLmCategoryCriteria @ 11 NONAME ; ## + _ZTI27CTestPosLmCompositeCriteria @ 12 NONAME ; ## + _ZTV17CTestPosLmkSearch @ 13 NONAME ; ## + _ZTV21CTestPosLmDisplayData @ 14 NONAME ; ## + _ZTV21CTestPosLmDisplayItem @ 15 NONAME ; ## + _ZTV22CTestPosLmAreaCriteria @ 16 NONAME ; ## + _ZTV22CTestPosLmTextCriteria @ 17 NONAME ; ## + _ZTV23CTestPosLmMultiDbSearch @ 18 NONAME ; ## + _ZTV24CTestPosLmIdListCriteria @ 19 NONAME ; ## + _ZTV25CTestPosLmCatNameCriteria @ 20 NONAME ; ## + _ZTV25CTestPosLmNearestCriteria @ 21 NONAME ; ## + _ZTV26CTestPosLmCategoryCriteria @ 22 NONAME ; ## + _ZTV27CTestPosLmCompositeCriteria @ 23 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/sis/LocSrv_LmkSearch.pkg --- a/apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/sis/LocSrv_LmkSearch.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +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: -; -; -; Installation file for Landmarks Search API Test module -; -;Languages -&EN -; -; UID is the app's UID -; -#{"LandmarksSearchAPI_Test"},(0xE0000003),3,0,0,TYPE=SA -; -; Localised Vendor name -%{"Nokia-EN"} - -; Unique Vendor name -:"Nokia" - -;Supports Series 60 v 3.0 -;This line indicates that this installation is for the Series 60 platform v3.0 -;This line must appear _exactly_ as shown below in the sis file -;If this line is missing or incorrect, the sis file will not be able -;to be installed on Series 60 v3.0 platforms -[0x101F6F88], 0, 0, 0, {"Series60ProductID"} -; -; - -; File to install - -; Install LandmarksAPI test binaries here -"\epoc32\release\armv5\urel\testlmksearchapi.dll"-"!:\sys\bin\testlmksearchapi.dll" -"..\conf\testlmksearchapi.cfg" - "C:\testframework\testlmksearchapi.cfg" -"..\conf\testframework.ini" - "C:\testframework\testframework_lmsearch.ini" -"..\conf\lms.bat" - "C:\lms.bat" - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/sis/LocSrv_LmkSearch.sis Binary file apicompatanamdw/bcdrivers/mw/locationsrv/landmarks_search_api/sis/LocSrv_LmkSearch.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/Bmarm/lbtbctestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/Bmarm/lbtbctestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/Bwins/lbtbctestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/Bwins/lbtbctestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/EABI/lbtbctestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/EABI/lbtbctestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI17CLbtEventObserver @ 2 NONAME + _ZTI20CTriggerFireObserver @ 3 NONAME + _ZTV17CLbtEventObserver @ 4 NONAME + _ZTV20CTriggerFireObserver @ 5 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/Lt.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/Lt.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Location Triggering API +STIF + +The tests involve the Location Triggering API + + + +c:\TestFramework\TestFramework_LT.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\lbtbctest.cfg -engineini C:\TestFramework\TestFramework.ini + + + 145 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Locationsrv_LocTriggering.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/lbtbctest.mmp --- a/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/lbtbctest.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/lbtbctest.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -68,13 +68,13 @@ #endif // __S60_ #endif // SBSV2 -LIBRARY eposmodset.lib +//LIBRARY eposmodset.lib LIBRARY euser.lib LIBRARY estor.lib LIBRARY stiftestinterface.lib LIBRARY stiftestengine.lib LIBRARY lbt.lib -LIBRARY lbtmanager.lib +//LIBRARY lbtmanager.lib LIBRARY lbs.lib LIBRARY centralrepository.lib LIBRARY flogger.lib diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/testLT.bat --- a/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/group/testLT.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy c:\TestFramework\TestFramework_LT.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testscripter -config C:\TestFramework\lbtbctest.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\LocationSrv_LocTriggering.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/sis/LocSrv_Triggering.pkg --- a/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/sis/LocSrv_Triggering.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +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: -; -; -; Installation file for STIF -; - -; Languages -&EN - -; Provide value for uid -#{"lbtbctest"},(0x06BC6CD6),0,1,0,TYPE=SA - -; Series60 product id for S60 3.0 -[0x101F7961], 0, 0, 0, {"Series60ProductID"} - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -; Logo -; None - -; Package signature - Optional -; None - -; Start of Package body - -; Condition blocks -; None - -; Options list -; None - -; Install files -"\epoc32\release\armv5\urel\lbtbctest.dll" - "!:\Sys\Bin\lbtbctest.dll" -"\epoc32\winscw\c\TestFramework\lbtbctest.cfg"-"C:\TestFramework\lbtbctest.cfg" -"\Epoc32\winscw\c\testframework\Testframework_LT.ini"-"!:\TestFramework\Testframework_LT.ini" -"\epoc32\winscw\c\testLT.bat"-"!:\testLT.bat" -"\epoc32\winscw\c\system\data\simu_move2.sps"-"C:\system\data\simu_move2.sps" -; Embedded SIS -; None - -; End of Package body - -; PKG dependencies -; None - -; PKG capabilities -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/sis/LocSrv_Triggering.sis Binary file apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/sis/LocSrv_Triggering.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/src/lbtbctestBlocks.cpp --- a/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/src/lbtbctestBlocks.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/src/lbtbctestBlocks.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -23,7 +23,7 @@ #include #include "AsynOperationAO.h" #include -#include + #include @@ -1090,8 +1090,8 @@ lbt.DeleteTriggerL(trigId); - CLbtTriggerInfo* trigEntry=NULL; - TRAPD(error,trigEntry=lbt.GetTriggerLC(trigId);CleanupStack::PopAndDestroy();); + //CLbtTriggerInfo* trigEntry=NULL; + TRAPD(error,lbt.GetTriggerLC(trigId);CleanupStack::PopAndDestroy();); CleanupStack::PopAndDestroy( notifier ); CleanupStack::PopAndDestroy( trig ); CleanupStack::PopAndDestroy( &lbt ); @@ -1248,8 +1248,8 @@ notifier->DeleteFilteredTriggers(lbt,areaFilter,wait); wait->Start(); - CLbtTriggerInfo* trigEntry=NULL; - trigEntry=lbt.GetTriggerLC(trigId1); + //CLbtTriggerInfo* trigEntry=NULL; + lbt.GetTriggerLC(trigId1); CleanupStack::PopAndDestroy( areaFilter ); CleanupStack::PopAndDestroy( notifier ); @@ -1467,9 +1467,9 @@ lbt.DeleteTriggersL(filter); CleanupStack::PopAndDestroy( filter ); - CLbtTriggerInfo* Triginfo; - - TRAPD(error, Triginfo= lbt.GetTriggerLC(trigId1);CleanupStack::PopAndDestroy( );); + //CLbtTriggerInfo* Triginfo; + + TRAPD(error, lbt.GetTriggerLC(trigId1);CleanupStack::PopAndDestroy( );); if(error==KErrNotFound) { @@ -1663,8 +1663,8 @@ AssertTrueL( KErrNone==notifier->GetError(),_L("wrong error code")); - CLbtTriggerInfo* trigEntry=NULL; - TRAPD(err,trigEntry=lbt.GetTriggerLC(trigId1);CleanupStack::Pop();); + //CLbtTriggerInfo* trigEntry=NULL; + TRAPD(err,lbt.GetTriggerLC(trigId1);CleanupStack::Pop();); if(err==KErrNotFound) { // CleanupStack::PopAndDestroy( observer ); @@ -6094,7 +6094,7 @@ TInt Clbtbctest::TestRlbtGetFiredTriggersL( CStifItemParser& /*aItem*/ ) { - _LIT( KSimulationFile,"c:\\system\\data\\simu_move1.sps" ); + //_LIT( KSimulationFile,"c:\\system\\data\\simu_move1.sps" ); RLbtServer lbtserver; RLbt lbt; @@ -6103,12 +6103,7 @@ CleanupClosePushL( lbtserver ); User::LeaveIfError( lbt.Open(lbtserver)); CleanupClosePushL( lbt ); - CRepository* repository = CRepository::NewLC(KCRUidSimulationPSY); - - User::LeaveIfError(repository->Set(KCRKeySimPSYSimulationFile, KSimulationFile)); - iLog->Log(_L("Simulation input file set ")); - CleanupStack::PopAndDestroy(repository); - + //Construct a startup trigger CLbtStartupTrigger* trig = CLbtStartupTrigger::NewL(); diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/src/testlbtclasses.cpp --- a/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/src/testlbtclasses.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/locationsrv/location_triggering_api/src/testlbtclasses.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -25,11 +25,7 @@ #include #include "AsynOperationAO.h" #include -#include -#include -#include -#include -#include // CPosModuleUpdate + // Constant Declarations @@ -63,43 +59,7 @@ } } -void TTestlbtclasses::EnableSimPSYL() - { - CPosModules* db = CPosModules::OpenL(); - CleanupStack::PushL( db ); - - // List entries - CPosModuleIdList* idList = db->ModuleIdListLC(); - CPosModuleUpdate* updateParams = CPosModuleUpdate::NewLC(); - - // Get the display name and status of each installed positioning plug-in - for (TInt i = 0; i < idList->Count(); i++) - { - // get PSY info - TPositionModuleInfo moduleInfo; - db->GetModuleInfoL( (*idList)[i], moduleInfo ); - - if ( moduleInfo.IsAvailable() ) - { - // read PSY’s name - TBuf moduleName; - moduleInfo.GetModuleName( moduleName ); - TPositionModuleId id = moduleInfo.ModuleId(); - - updateParams->SetUpdateAvailability( EFalse ); - db->UpdateModuleL( id, *updateParams ); - - } - } - TPositionModuleId id2 = {0x101F7A81}; - updateParams->SetUpdateAvailability( ETrue ); - db->UpdateModuleL( id2, *updateParams ); - - CleanupStack::PopAndDestroy( updateParams ); - - CleanupStack::PopAndDestroy( idList ); - CleanupStack::PopAndDestroy( db ); - } + // --------------------------------------------------------------------------- // Test case for setting & getting requestor @@ -3321,7 +3281,7 @@ { iLog->Log(_L("Entering Test1")); - EnableSimPSYL(); + //EnableSimPSYL(); // _LIT( KSimulationFile,"c:\\system\\data\\simu_move2.sps" ); RLbtServer lbtserver; diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/eabi/SendUIAPITestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/eabi/SendUIAPITestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/SendUIAPITest.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/SendUIAPITest.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,9081 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + WINSCW UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\bwins +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\winscw\UDEB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathSymbian_Support\Win32-x86 Support\Libraries\Win32 SDK +PathFormatWindows +PathRootCodeWarrior +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathSymbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs +PathFormatWindows +PathRootCodeWarrior +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Pathepoc32\release\winscw\udeb\epoc.exe +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameWINSCW UDEB + OutputDirectory + Pathepoc32\release\winscw\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPath + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\winscw\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\winscw\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\release\winscw\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\release\winscw\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFileSymbian_OS.hrh + CompilerXMLDescriptorMetrowerks x86 Compiler + Macros__SYMBIAN32__,__S60_50__,__S60_3X__,__SERIES60_3X__,__CW32__,__WINS__,__WINSCW__,__DLL__,_DEBUG,_UNICODE,__SUPPORT_CPP_EXCEPTIONS__, + CodeTESTfalse + EnableSWICfalse + Arguments-wchar_t off -align 4 -warnings on -w nohidevirtual, nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -O0 -inline off -nostdinc + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameSendUIAPITest.cppWindowsTextDebug +NameSendUIAPITestBlocks.cppWindowsTextDebug +NameSendUIAPITest_UID_.cppWindowsText +Nameeuser.libWindowsLibraryDebug +Namestiftestinterface.libWindowsLibraryDebug +Namestiftestengine.libWindowsLibraryDebug +NameSENDUI.libWindowsLibraryDebug +Namecone.libWindowsLibraryDebug +Nameecom.libWindowsLibraryDebug +Namebafl.libWindowsLibraryDebug +Nameeikcore.libWindowsLibraryDebug +Nameetext.libWindowsLibraryDebug +Nameefsrv.libWindowsLibraryDebug +Nameestor.libWindowsLibraryDebug +NameSendUIAPITest.hWindowsText +NameSendUIAPITestWINSCWUDEB.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +NameSendUIAPITest_UID_.cppWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITest.hWindows +NameSendUIAPITestWINSCWUDEB.cwlinkWindows + + + WINSCW UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\bwins +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\winscw\UREL +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathSymbian_Support\Win32-x86 Support\Libraries\Win32 SDK +PathFormatWindows +PathRootCodeWarrior +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathSymbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs +PathFormatWindows +PathRootCodeWarrior +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Pathepoc32\release\winscw\urel\epoc.exe +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameWINSCW UREL + OutputDirectory + Pathepoc32\release\winscw\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPath + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\winscw\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\winscw\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\release\winscw\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\release\winscw\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFileSymbian_OS.hrh + CompilerXMLDescriptorMetrowerks x86 Compiler + Macros__SYMBIAN32__,__S60_50__,__S60_3X__,__SERIES60_3X__,__CW32__,__WINS__,__WINSCW__,__DLL__,NDEBUG,_UNICODE,__SUPPORT_CPP_EXCEPTIONS__, + CodeTESTfalse + EnableSWICfalse + Arguments-wchar_t off -align 4 -warnings on -w nohidevirtual, nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -O4,s -nostdinc + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibrary +NameSendUIAPITest.cppWindowsText +NameSendUIAPITestBlocks.cppWindowsText +NameSendUIAPITest_UID_.cppWindowsText +Nameeuser.libWindowsLibrary +Namestiftestinterface.libWindowsLibrary +Namestiftestengine.libWindowsLibrary +NameSENDUI.libWindowsLibrary +Namecone.libWindowsLibrary +Nameecom.libWindowsLibrary +Namebafl.libWindowsLibrary +Nameeikcore.libWindowsLibrary +Nameetext.libWindowsLibrary +Nameefsrv.libWindowsLibrary +Nameestor.libWindowsLibrary +NameSendUIAPITestWINSCWUREL.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +NameSendUIAPITest_UID_.cppWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestWINSCWUREL.cwlinkWindows + + + ARM4 UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\bmarm +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\arm4\UREL +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARM4 UREL + OutputDirectory + Pathepoc32\release\arm4\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\arm4\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\arm4\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFileSymbian_OS.hrh + CompilerXMLDescriptorMetrowerks x86 Compiler + Macros + CodeTESTfalse + EnableSWICfalse + Arguments-s -fomit-frame-pointer -O -march=armv4 + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{00010000}.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameEDLL.LIBWindowsLibrary +NameSendUIAPITest.cppWindowsText +NameSendUIAPITestBlocks.cppWindowsText +NameEDLLSTUB.LIBWindowsLibrary +NameEGCC.LIBWindowsLibrary +Nameeuser.libWindowsLibrary +Namestiftestinterface.libWindowsLibrary +Namestiftestengine.libWindowsLibrary +NameSENDUI.libWindowsLibrary +Namecone.libWindowsLibrary +Nameecom.libWindowsLibrary +Namebafl.libWindowsLibrary +Nameeikcore.libWindowsLibrary +Nameetext.libWindowsLibrary +Nameefsrv.libWindowsLibrary +Nameestor.libWindowsLibrary +NameSendUIAPITestARM4UREL.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +NameEDLLSTUB.LIBWindows +NameEGCC.LIBWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestARM4UREL.cwlinkWindows + + + ARM4 UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\bmarm +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\arm4\UDEB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARM4\UREL +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARM4 UDEB + OutputDirectory + Pathepoc32\release\arm4\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\arm4\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\arm4\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFileSymbian_OS.hrh + CompilerXMLDescriptorMetrowerks x86 Compiler + Macros + CodeTESTfalse + EnableSWICfalse + Arguments-O -march=armv4 + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{00010000}.lib + canDebugtrue + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameSendUIAPITest.cppWindowsTextDebug +NameSendUIAPITestBlocks.cppWindowsTextDebug +NameEDLLSTUB.LIBWindowsLibraryDebug +NameEGCC.LIBWindowsLibraryDebug +Nameeuser.libWindowsLibraryDebug +Namestiftestinterface.libWindowsLibraryDebug +Namestiftestengine.libWindowsLibraryDebug +NameSENDUI.libWindowsLibraryDebug +Namecone.libWindowsLibraryDebug +Nameecom.libWindowsLibraryDebug +Namebafl.libWindowsLibraryDebug +Nameeikcore.libWindowsLibraryDebug +Nameetext.libWindowsLibraryDebug +Nameefsrv.libWindowsLibraryDebug +Nameestor.libWindowsLibraryDebug +NameSendUIAPITestARM4UDEB.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +NameEDLLSTUB.LIBWindows +NameEGCC.LIBWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestARM4UDEB.cwlinkWindows + + + ARMV5 UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\eabi +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\armv5\UREL +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\rvct2_2 +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARMV5 UREL + OutputDirectory + Pathepoc32\release\armv5\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFilervct2_2.h + CompilerXMLDescriptorARM RVCT2_2 + Macros + CodeTESTfalse + EnableSWICfalse + Arguments --diag_suppress 66,161,611,654,997,1152,1300,1464,1488,6318,6331 --diag_error 1267 --thumb --fpu softvfp --exceptions --exceptions_unwind -D__MARM_THUMB__ -D__MARM_INTERWORK__ --cpu 5T --enum_is_int -Ono_known_library --fpmode ieee_no_fenv --export_all_vtbl --no_vfe --apcs /inter --dllimport_runtime -c -DNDEBUG -D_UNICODE -D__SYMBIAN32__ -D__S60_50__ -D__S60_3X__ -D__SERIES60_3X__ -D__ARMCC__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__ARMCC_2__ -D__ARMCC_2_2__ -D__MARM_ARMV5__ -D__DLL__ -DNDEBUG -D_UNICODE -D__SUPPORT_CPP_EXCEPTIONS__ -D__PRODUCT_INCLUDE__=\"Symbian_OS.hrh\" + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{000a0000}.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibrary +NameSendUIAPITest.cppWindowsText +NameSendUIAPITestBlocks.cppWindowsText +Nameeuser.libWindowsLibrary +Namestiftestinterface.libWindowsLibrary +Namestiftestengine.libWindowsLibrary +NameSENDUI.libWindowsLibrary +Namecone.libWindowsLibrary +Nameecom.libWindowsLibrary +Namebafl.libWindowsLibrary +Nameeikcore.libWindowsLibrary +Nameetext.libWindowsLibrary +Nameefsrv.libWindowsLibrary +Nameestor.libWindowsLibrary +NameSendUIAPITestARMV5UREL.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestARMV5UREL.cwlinkWindows + + + ARMV5 UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\eabi +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\armv5\UDEB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\rvct2_2 +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARMV5 UDEB + OutputDirectory + Pathepoc32\release\armv5\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFilervct2_2.h + CompilerXMLDescriptorARM RVCT2_2 + Macros + CodeTESTfalse + EnableSWICfalse + Arguments --diag_suppress 66,161,611,654,997,1152,1300,1464,1488,6318,6331 --diag_error 1267 --thumb --fpu softvfp --exceptions --exceptions_unwind -D__MARM_THUMB__ -D__MARM_INTERWORK__ --cpu 5T --enum_is_int -Ono_known_library --fpmode ieee_no_fenv --export_all_vtbl --no_vfe --apcs /inter --dllimport_runtime -c -D_DEBUG -D_UNICODE -D__SYMBIAN32__ -D__S60_50__ -D__S60_3X__ -D__SERIES60_3X__ -D__ARMCC__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__ARMCC_2__ -D__ARMCC_2_2__ -D__MARM_ARMV5__ -D__DLL__ -D_DEBUG -D_UNICODE -D__SUPPORT_CPP_EXCEPTIONS__ -D__PRODUCT_INCLUDE__=\"Symbian_OS.hrh\" + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{000a0000}.lib + canDebugtrue + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameSendUIAPITest.cppWindowsTextDebug +NameSendUIAPITestBlocks.cppWindowsTextDebug +Nameeuser.libWindowsLibraryDebug +Namestiftestinterface.libWindowsLibraryDebug +Namestiftestengine.libWindowsLibraryDebug +NameSENDUI.libWindowsLibraryDebug +Namecone.libWindowsLibraryDebug +Nameecom.libWindowsLibraryDebug +Namebafl.libWindowsLibraryDebug +Nameeikcore.libWindowsLibraryDebug +Nameetext.libWindowsLibraryDebug +Nameefsrv.libWindowsLibraryDebug +Nameestor.libWindowsLibraryDebug +NameSendUIAPITestARMV5UDEB.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestARMV5UDEB.cwlinkWindows + + + ARMV5_ABIV1 UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\eabi +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\armv5\UREL +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\rvct2_2 +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARMV5_ABIV1 UREL + OutputDirectory + Pathepoc32\release\armv5_abiv1\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5_abiv1\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5_abiv1\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFilervct2_2.h + CompilerXMLDescriptorARM RVCT2_2 + Macros + CodeTESTfalse + EnableSWICfalse + Arguments --diag_suppress 66,161,611,654,997,1152,1300,1464,1488,6318,6331 --diag_error 1267 --thumb --fpu softvfp --exceptions --exceptions_unwind -D__MARM_THUMB__ -D__MARM_INTERWORK__ --cpu 5T --enum_is_int -Ono_known_library --fpmode ieee_no_fenv --export_all_vtbl --no_vfe --apcs /inter --dllimport_runtime -c -DNDEBUG -D_UNICODE -D__SYMBIAN32__ -D__S60_50__ -D__S60_3X__ -D__SERIES60_3X__ -D__ARMCC__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__ARMCC_2__ -D__ARMCC_2_2__ -D__MARM_ARMV5__ -D__DLL__ -DNDEBUG -D_UNICODE -D__SUPPORT_CPP_EXCEPTIONS__ -D__PRODUCT_INCLUDE__=\"Symbian_OS.hrh\" + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{000a0000}.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibrary +NameSendUIAPITest.cppWindowsText +NameSendUIAPITestBlocks.cppWindowsText +Nameeuser.libWindowsLibrary +Namestiftestinterface.libWindowsLibrary +Namestiftestengine.libWindowsLibrary +NameSENDUI.libWindowsLibrary +Namecone.libWindowsLibrary +Nameecom.libWindowsLibrary +Namebafl.libWindowsLibrary +Nameeikcore.libWindowsLibrary +Nameetext.libWindowsLibrary +Nameefsrv.libWindowsLibrary +Nameestor.libWindowsLibrary +NameSendUIAPITestARMV5_ABIV1UREL.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestARMV5_ABIV1UREL.cwlinkWindows + + + ARMV5_ABIV1 UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\eabi +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\armv5\UDEB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\rvct2_2 +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARMV5_ABIV1 UDEB + OutputDirectory + Pathepoc32\release\armv5_abiv1\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5_abiv1\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\armv5_abiv1\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFilervct2_2.h + CompilerXMLDescriptorARM RVCT2_2 + Macros + CodeTESTfalse + EnableSWICfalse + Arguments --diag_suppress 66,161,611,654,997,1152,1300,1464,1488,6318,6331 --diag_error 1267 --thumb --fpu softvfp --exceptions --exceptions_unwind -D__MARM_THUMB__ -D__MARM_INTERWORK__ --cpu 5T --enum_is_int -Ono_known_library --fpmode ieee_no_fenv --export_all_vtbl --no_vfe --apcs /inter --dllimport_runtime -c -D_DEBUG -D_UNICODE -D__SYMBIAN32__ -D__S60_50__ -D__S60_3X__ -D__SERIES60_3X__ -D__ARMCC__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__ARMCC_2__ -D__ARMCC_2_2__ -D__MARM_ARMV5__ -D__DLL__ -D_DEBUG -D_UNICODE -D__SUPPORT_CPP_EXCEPTIONS__ -D__PRODUCT_INCLUDE__=\"Symbian_OS.hrh\" + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{000a0000}.lib + canDebugtrue + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameSendUIAPITest.cppWindowsTextDebug +NameSendUIAPITestBlocks.cppWindowsTextDebug +Nameeuser.libWindowsLibraryDebug +Namestiftestinterface.libWindowsLibraryDebug +Namestiftestengine.libWindowsLibraryDebug +NameSENDUI.libWindowsLibraryDebug +Namecone.libWindowsLibraryDebug +Nameecom.libWindowsLibraryDebug +Namebafl.libWindowsLibraryDebug +Nameeikcore.libWindowsLibraryDebug +Nameetext.libWindowsLibraryDebug +Nameefsrv.libWindowsLibraryDebug +Nameestor.libWindowsLibraryDebug +NameSendUIAPITestARMV5_ABIV1UDEB.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +Nameeuser.libWindows +Namestiftestinterface.libWindows +Namestiftestengine.libWindows +NameSENDUI.libWindows +Namecone.libWindows +Nameecom.libWindows +Namebafl.libWindows +Nameeikcore.libWindows +Nameetext.libWindows +Nameefsrv.libWindows +Nameestor.libWindows +NameSendUIAPITestARMV5_ABIV1UDEB.cwlinkWindows + + + GCCE UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\eabi +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\armv5\UREL +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\gcce +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathC:\Program Files\CSL Arm Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\include +PathFormatWindows +PathRootAbsolute +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameGCCE UREL + OutputDirectory + Pathepoc32\release\gcce\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\gcce\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\gcce\urel +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFilegcce.h + CompilerXMLDescriptorARM GCCE + Macros + CodeTESTfalse + EnableSWICfalse + Arguments-O2 -fno-unit-at-a-time -fexceptions -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -march=armv5t -mapcs -mthumb-interwork -pipe -nostdinc -c -mthumb -msoft-float -D__MARM_THUMB__ -D__MARM_INTERWORK__ -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__S60_50__ -D__S60_3X__ -D__SERIES60_3X__ -D__GCCE__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__DLL__ -DNDEBUG -D_UNICODE -D__SUPPORT_CPP_EXCEPTIONS__ -D__MARM_ARMV5__ -D__PRODUCT_INCLUDE__=\"Symbian_OS.hrh\" + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{000a0000}.dso + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibrary +NameSendUIAPITest.cppWindowsText +NameSendUIAPITestBlocks.cppWindowsText +Nameeuser.dsoWindowsLibrary +Namestiftestinterface.dsoWindowsLibrary +Namestiftestengine.dsoWindowsLibrary +NameSENDUI.dsoWindowsLibrary +Namecone.dsoWindowsLibrary +Nameecom.dsoWindowsLibrary +Namebafl.dsoWindowsLibrary +Nameeikcore.dsoWindowsLibrary +Nameetext.dsoWindowsLibrary +Nameefsrv.dsoWindowsLibrary +Nameestor.dsoWindowsLibrary +Nameusrt2_2.libWindowsLibrary +Namedfpaeabi.dsoWindowsLibrary +Namedfprvct2_2.dsoWindowsLibrary +Namedrtaeabi.dsoWindowsLibrary +Namescppnwdl.dsoWindowsLibrary +Namedrtrvct2_2.dsoWindowsLibrary +NameEDLLSTUB.LIBWindowsLibrary +NameSendUIAPITestGCCEUREL.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +Nameeuser.dsoWindows +Namestiftestinterface.dsoWindows +Namestiftestengine.dsoWindows +NameSENDUI.dsoWindows +Namecone.dsoWindows +Nameecom.dsoWindows +Namebafl.dsoWindows +Nameeikcore.dsoWindows +Nameetext.dsoWindows +Nameefsrv.dsoWindows +Nameestor.dsoWindows +Nameusrt2_2.libWindows +Namedfpaeabi.dsoWindows +Namedfprvct2_2.dsoWindows +Namedrtaeabi.dsoWindows +Namescppnwdl.dsoWindows +Namedrtrvct2_2.dsoWindows +NameEDLLSTUB.LIBWindows +NameSendUIAPITestGCCEUREL.cwlinkWindows + + + GCCE UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +Path50psdk\send_ui_api\inc +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\eabi +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Path50psdk\send_ui_api\src +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\internal +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\armv5\UDEB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\release\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\gcce +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathC:\Program Files\CSL Arm Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\include +PathFormatWindows +PathRootAbsolute +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameGCCE UDEB + OutputDirectory + Pathepoc32\release\gcce\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\gcce\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + Pathepoc32\release\gcce\udeb +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + SymbianResourcesMMPFileLocation + Path50psdk\send_ui_api\group +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesBinaryOutputLocation + Pathepoc32\data +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + SymbianResourcesHeaderFileOutputLocation + Pathepoc32\include +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_5th_Edition_SDK_v0.9 + + + + PrefixFilegcce.h + CompilerXMLDescriptorARM GCCE + Macros + CodeTESTfalse + EnableSWICfalse + Arguments -fexceptions -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -march=armv5t -mapcs -mthumb-interwork -pipe -nostdinc -c -mthumb -msoft-float -D__MARM_THUMB__ -D__MARM_INTERWORK__ -D_DEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__S60_50__ -D__S60_3X__ -D__SERIES60_3X__ -D__GCCE__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__DLL__ -D_DEBUG -D_UNICODE -D__SUPPORT_CPP_EXCEPTIONS__ -D__MARM_ARMV5__ -D__PRODUCT_INCLUDE__=\"Symbian_OS.hrh\" + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileSendUIAPITest.dll + LinkCmdLine + SymbianImportLibrarySendUIAPITest{000a0000}.dso + canDebugtrue + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameSendUIAPITest.mmpWindowsText +NameSendUIAPITestu.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameSendUIAPITest.cppWindowsTextDebug +NameSendUIAPITestBlocks.cppWindowsTextDebug +Nameeuser.dsoWindowsLibraryDebug +Namestiftestinterface.dsoWindowsLibraryDebug +Namestiftestengine.dsoWindowsLibraryDebug +NameSENDUI.dsoWindowsLibraryDebug +Namecone.dsoWindowsLibraryDebug +Nameecom.dsoWindowsLibraryDebug +Namebafl.dsoWindowsLibraryDebug +Nameeikcore.dsoWindowsLibraryDebug +Nameetext.dsoWindowsLibraryDebug +Nameefsrv.dsoWindowsLibraryDebug +Nameestor.dsoWindowsLibraryDebug +Nameusrt2_2.libWindowsLibraryDebug +Namedfpaeabi.dsoWindowsLibraryDebug +Namedfprvct2_2.dsoWindowsLibraryDebug +Namedrtaeabi.dsoWindowsLibraryDebug +Namescppnwdl.dsoWindowsLibraryDebug +Namedrtrvct2_2.dsoWindowsLibraryDebug +NameEDLLSTUB.LIBWindowsLibraryDebug +NameSendUIAPITestGCCEUDEB.cwlinkWindowsText + + +NameSendUIAPITest.mmpWindows +NameSendUIAPITestu.defWindows +NameEDLL.LIBWindows +NameSendUIAPITest.cppWindows +NameSendUIAPITestBlocks.cppWindows +Nameeuser.dsoWindows +Namestiftestinterface.dsoWindows +Namestiftestengine.dsoWindows +NameSENDUI.dsoWindows +Namecone.dsoWindows +Nameecom.dsoWindows +Namebafl.dsoWindows +Nameeikcore.dsoWindows +Nameetext.dsoWindows +Nameefsrv.dsoWindows +Nameestor.dsoWindows +Nameusrt2_2.libWindows +Namedfpaeabi.dsoWindows +Namedfprvct2_2.dsoWindows +Namedrtaeabi.dsoWindows +Namescppnwdl.dsoWindows +Namedrtrvct2_2.dsoWindows +NameEDLLSTUB.LIBWindows +NameSendUIAPITestGCCEUDEB.cwlinkWindows + + +Build AllLinkerNone +TargetnameBuild All + + + +WINSCW UDEB +WINSCW UREL +ARM4 UDEB +ARM4 UREL +ARMV5 UDEB +ARMV5 UREL +ARMV5_ABIV1 UDEB +ARMV5_ABIV1 UREL +GCCE UDEB +GCCE UREL + + + +WINSCW UDEB +WINSCW UREL +ARM4 UDEB +ARM4 UREL +ARMV5 UDEB +ARMV5 UREL +ARMV5_ABIV1 UDEB +ARMV5_ABIV1 UREL +GCCE UDEB +GCCE UREL +Build All + + + WINSCW UDEBNameSendUIAPITest.mmpWindows +Source +WINSCW UDEBNameSendUIAPITestu.defWindows +WINSCW UDEBNameSendUIAPITest.cppWindows +WINSCW UDEBNameSendUIAPITestBlocks.cppWindows +WINSCW UDEBNameSendUIAPITest_UID_.cppWindows +ARMV5 URELNameSendUIAPITestu.defWindows + +Headers +WINSCW UDEBNameSendUIAPITest.hWindows + +Link +WINSCW UDEBNameSendUIAPITestWINSCWUDEB.cwlinkWindows +WINSCW URELNameSendUIAPITestWINSCWUREL.cwlinkWindows +ARM4 URELNameSendUIAPITestARM4UREL.cwlinkWindows +ARM4 UDEBNameSendUIAPITestARM4UDEB.cwlinkWindows +ARMV5 URELNameSendUIAPITestARMV5UREL.cwlinkWindows +ARMV5 UDEBNameSendUIAPITestARMV5UDEB.cwlinkWindows +ARMV5_ABIV1 URELNameSendUIAPITestARMV5_ABIV1UREL.cwlinkWindows +ARMV5_ABIV1 UDEBNameSendUIAPITestARMV5_ABIV1UDEB.cwlinkWindows +GCCE URELNameSendUIAPITestGCCEUREL.cwlinkWindows +GCCE UDEBNameSendUIAPITestGCCEUDEB.cwlinkWindows + +Libraries +WINSCW +WINSCW UDEBNameEDLL.LIBWindows +WINSCW UDEBNameeuser.libWindows +WINSCW UDEBNamestiftestinterface.libWindows +WINSCW UDEBNamestiftestengine.libWindows +WINSCW UDEBNameSENDUI.libWindows +WINSCW UDEBNamecone.libWindows +WINSCW UDEBNameecom.libWindows +WINSCW UDEBNamebafl.libWindows +WINSCW UDEBNameeikcore.libWindows +WINSCW UDEBNameetext.libWindows +WINSCW UDEBNameefsrv.libWindows +WINSCW UDEBNameestor.libWindows +WINSCW URELNameEDLL.LIBWindows + +ARM4 +ARM4 URELNameEDLL.LIBWindows +ARM4 URELNameEDLLSTUB.LIBWindows +ARM4 URELNameEGCC.LIBWindows +ARM4 URELNameeuser.libWindows +ARM4 URELNamestiftestinterface.libWindows +ARM4 URELNamestiftestengine.libWindows +ARM4 URELNameSENDUI.libWindows +ARM4 URELNamecone.libWindows +ARM4 URELNameecom.libWindows +ARM4 URELNamebafl.libWindows +ARM4 URELNameeikcore.libWindows +ARM4 URELNameetext.libWindows +ARM4 URELNameefsrv.libWindows +ARM4 URELNameestor.libWindows +ARM4 UDEBNameEDLL.LIBWindows +ARM4 UDEBNameEDLLSTUB.LIBWindows +ARM4 UDEBNameEGCC.LIBWindows + +ARMV5 +ARMV5 URELNameEDLL.LIBWindows +ARMV5 URELNameeuser.libWindows +ARMV5 URELNamestiftestinterface.libWindows +ARMV5 URELNamestiftestengine.libWindows +ARMV5 URELNameSENDUI.libWindows +ARMV5 URELNamecone.libWindows +ARMV5 URELNameecom.libWindows +ARMV5 URELNamebafl.libWindows +ARMV5 URELNameeikcore.libWindows +ARMV5 URELNameetext.libWindows +ARMV5 URELNameefsrv.libWindows +ARMV5 URELNameestor.libWindows +ARMV5 UDEBNameEDLL.LIBWindows + +ARMV5_ABIV1 +ARMV5_ABIV1 URELNameEDLL.LIBWindows +ARMV5_ABIV1 URELNameeuser.libWindows +ARMV5_ABIV1 URELNamestiftestinterface.libWindows +ARMV5_ABIV1 URELNamestiftestengine.libWindows +ARMV5_ABIV1 URELNameSENDUI.libWindows +ARMV5_ABIV1 URELNamecone.libWindows +ARMV5_ABIV1 URELNameecom.libWindows +ARMV5_ABIV1 URELNamebafl.libWindows +ARMV5_ABIV1 URELNameeikcore.libWindows +ARMV5_ABIV1 URELNameetext.libWindows +ARMV5_ABIV1 URELNameefsrv.libWindows +ARMV5_ABIV1 URELNameestor.libWindows +ARMV5_ABIV1 UDEBNameEDLL.LIBWindows + +GCCE +GCCE URELNameEDLL.LIBWindows +GCCE URELNameeuser.dsoWindows +GCCE URELNamestiftestinterface.dsoWindows +GCCE URELNamestiftestengine.dsoWindows +GCCE URELNameSENDUI.dsoWindows +GCCE URELNamecone.dsoWindows +GCCE URELNameecom.dsoWindows +GCCE URELNamebafl.dsoWindows +GCCE URELNameeikcore.dsoWindows +GCCE URELNameetext.dsoWindows +GCCE URELNameefsrv.dsoWindows +GCCE URELNameestor.dsoWindows +GCCE URELNameusrt2_2.libWindows +GCCE URELNamedfpaeabi.dsoWindows +GCCE URELNamedfprvct2_2.dsoWindows +GCCE URELNamedrtaeabi.dsoWindows +GCCE URELNamescppnwdl.dsoWindows +GCCE URELNamedrtrvct2_2.dsoWindows +GCCE URELNameEDLLSTUB.LIBWindows +GCCE UDEBNameEDLL.LIBWindows +GCCE UDEBNameusrt2_2.libWindows +GCCE UDEBNameEDLLSTUB.LIBWindows + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/Sendui.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/Sendui.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Send UI API +STIF + +The tests involve the Messaging Send UI API + + + +C:\TestFramework\TestFramework_sendui.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config c:\testframework\ui_SendUIAPITest.cfg -engineini C:\TestFramework\TestFramework.ini + + + 10 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\MessagingMW_SendUI.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/sendui.bat --- a/apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/sendui.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_sendui.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testscripter -config C:\TestFramework\ui_SendUIAPITest.cfg -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\MessagingMW_SendUI.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/ui_SendUIAPITest.cfg --- a/apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/group/ui_SendUIAPITest.cfg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ - -[Test] -title SendUIAPITest-MessageData Object Creation -create SendUIAPITest Testobject -Testobject MessageDataNewL -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest-Set and Check MessageData Subject -create SendUIAPITest Testobject -Testobject MessageDataSetSubjectL Automation -Testobject MessageDataSubject Automation -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest-MessageData Add Attachment -create SendUIAPITest Testobject -Testobject MessageDataAppendAttachmentL Attachment.txt -Testobject MessageDataAttachmentArray -Testobject MessageDataClearAttachmentArray 0 -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest-MessageData AppendToAddressArray -create SendUIAPITest Testobject -Testobject MessageDataAppendToAddressL addressone aliasone -Testobject MessageDataToAddressArray 1 -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest-AppendCCAddress -create SendUIAPITest Testobject -Testobject MessageDataAppendCcAddressL ccAddressone ccAliasone -Testobject MessageDataCcAddressArray 1 -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest-AppendBCCAddress -create SendUIAPITest Testobject -Testobject MessageDataAppendBccAddressL bccAddress bccAliasone -Testobject MessageDataBccAddressArray 1 -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest-Set and Check Message Boby text -create SendUIAPITest Testobject -Testobject MessageDataSetBodyTextL Bodytext -Testobject MessageDataBodyText 8 -Testobject MessageDataAppendAttachmentHandleL Attachment.txt -Testobject MessageDataAttachmentHandleArray 1 -Testobject MessageDataDataType -Testobject MessageDataClearAddresses -Testobject MessageDataExternalizeLnInternalizeL SubjectOne SubjectTwo -Testobject MessageDataSetOpaqueDataL 5 -Testobject MessageDataOpaqueDataL 5 -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest- Message Address APIs -create SendUIAPITest Testobject -Testobject MessageAddressNewL -Testobject MessageAddressSetAddressL addressonedesc -Testobject MessageAddressAddress addressonedesc -Testobject MessageAddressSetAliasL aliasdesc -Testobject MessageAddressAlias aliasdesc -Testobject MessageAddressExternalizeL -Testobject MessageAddressSetAddressL addresstwodesc -Testobject MessageAddressInternalizeL -Testobject MessageAddressAddress addressonedesc -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest- TSendingCapabilities APIs -create SendUIAPITest Testobject -Testobject TSendingCapabilities -delete TestObject -[Endtest] - -[Test] -title SendUIAPITest- SendingServiceInfo APIs -create SendUIAPITest Testobject -Testobject SendingServiceInfoCopyLC -Testobject SendingServiceInfoSetTechnologyTypeId -Testobject SendingServiceInfoServiceID -Testobject SendingServiceInfoServiceProviderID -Testobject SendingServiceInfoServiceCapabilities -delete TestObject -[Endtest] \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/sis/MsgMw_sendui.pkg --- a/apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/sis/MsgMw_sendui.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"msg_sendui"},(0x200184B4),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -;Files to install -; -"\epoc32\release\armv5\urel\SendUIAPITest.dll"-"C:\sys\bin\SendUIAPITest.dll" -"\Epoc32\winscw\c\testframework\ui_SendUIAPITest.cfg"-"C:\TestFramework\ui_SendUIAPITest.cfg" -"\Epoc32\winscw\c\testframework\TestFramework_sendui.ini"-"C:\TestFramework\TestFramework_sendui.ini" -"..\Data\MMC\SendUIAPITest\Attachment.txt"-"e:\testing\data\SendUIAPITest\Attachment.txt" -"..\group\sendui.bat"-"!:\sendui.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/sis/MsgMw_sendui.sis Binary file apicompatanamdw/bcdrivers/mw/messagingmw/BCTForSendUIAPI/sis/MsgMw_sendui.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/Bmarm/BCTestContentManagementU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/Bmarm/BCTestContentManagementU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/Bwins/BCTestContentManagementU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/Bwins/BCTestContentManagementU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/EABI/BCTestContentManagementU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/EABI/BCTestContentManagementU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI16BCTestMediaFetch @ 2 NONAME ; ## + _ZTV16BCTestMediaFetch @ 3 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/group/ConMgmt.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/group/ConMgmt.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Media Fetch API +STIF + +The tests involve the MetDatSrv Media Fetch API + + + +C:\TestFramework\TestFramework_MMConMgmt.iniC:\TestFramework\TestFramework.ini + -testmodule testcombiner -config C:\TestFramework\tcBCTestContentManagement.cfg -engineini C:\TestFramework\TestFramework.ini + + + 12 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\MetadataSrv_MediaFetch.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/group/conmgmt.bat --- a/apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/group/conmgmt.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_MMConMgmt.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule testcombiner -config C:\TestFramework\tcBCTestContentManagement.cfg -engineini C:\TestFramework\TestFramework.ini -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\MetadataSrv_MediaFetch.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/sis/MetDatSrv_ConMgmt.pkg --- a/apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/sis/MetDatSrv_ConMgmt.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"MM_ConMgmt"},(0x20015B19),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTestContentManagement.dll"-"!:\sys\bin\BCTestContentManagement.dll" -"\Epoc32\winscw\c\testframework\TestFramework_MMConMgmt.ini"-"!:\TestFramework\TestFramework_MMConMgmt.ini" -"\Epoc32\winscw\c\testframework\TestFramework_MMConMgmt_std.ini"-"!:\TestFramework\TestFramework_MMConMgmt_std.ini" -"\Epoc32\winscw\c\testframework\tcBCTestContentManagement.cfg"-"!:\TestFramework\tcBCTestContentManagement.cfg" -"\Epoc32\winscw\c\testframework\UI_BCTestContentManagement.cfg"-"!:\TestFramework\UI_BCTestContentManagement.cfg" -"\epoc32\winscw\c\conmgmt.bat"-"!:\conmgmt.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/sis/MetDatSrv_ConMgmt.sis Binary file apicompatanamdw/bcdrivers/mw/metadatasrv/media_fetch_api/sis/MetDatSrv_ConMgmt.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/Brctl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/Brctl.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,17 @@ + + +Browser Control API +BrowserCtrl + +The tests involve the Browser Control API + + + + + + 66 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Web_BrowserControl.log + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/Web_BrowserControl.pkg --- a/apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/Web_BrowserControl.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +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: -; -; -; Installation file for BrCtlBCTest Application - -;Languages -&EN - -;Header -#{"Browser_BrCtlBCTest"},(0xA0000181),1,0,0,TYPE=SA - -;Localised Vendor name -%{"Vendor-EN"} - -;Unique Vendor name -:"Vendor" - -;Supports Series 60 v 3.0 -[0x101F7961], 0 , 0, 0, {"Series60ProductID"} - -; Browser Control Sample App -"\epoc32\release\armv5\urel\BrCtlBCTest.exe" -"!:\sys\bin\BrCtlBCTest.exe" - -; Browser resources and bitmaps -"\epoc32\data\z\resource\apps\BrCtlBCTest.rsc" -"!:\Resource\apps\BrCtlBCTest.rsc" -"\epoc32\data\z\private\10003a3f\import\apps\BrCtlBCTest_reg.RSC" -"!:\private\10003a3f\import\apps\BrCtlBCTest_reg.rsc" -"\epoc32\data\z\resource\apps\BrCtlBCTest_AIF.mif" -"!:\Resource\apps\BrCtlBCTest_AIF.mif" - -; Sample html pages -"\epoc32\winscw\c\BrCtlTest\loadtest.html" - "!:\BrCtlTest\loadtest.html" -"\epoc32\winscw\c\BrCtlTest\loadtest.saved" - "!:\BrCtlTest\loadtest.saved" -"\epoc32\winscw\c\Logs\BrCtlBCTest\BrCtlBCTest.log" - "!:\Logs\BrCtlBCTest\BrCtlBCTest.log" -"\epoc32\winscw\c\brctl.bat"-"!:\brctl.bat" - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/Web_BrowserControl.sis Binary file apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/Web_BrowserControl.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/brctl.bat --- a/apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/brctl.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/web/browser_control_api/sis/brctl.bat Fri Sep 17 09:37:58 2010 +0100 @@ -17,5 +17,4 @@ md e:\bctest md e:\bctest\results - copy c:\logs\BrCtlBCTest\BrCtlBCTest.log e:\bctest\results\Web_BrowserControl.log \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/BWINSCW/NPPLUGINAPITESTU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/BWINSCW/NPPLUGINAPITESTU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + ?ImplementationGroupProxy@@YAPBUTImplementationProxy@@AAH@Z @ 1 NONAME ; struct TImplementationProxy const * ImplementationGroupProxy(int &) + ?InitializeFuncs@@YAFPAU_NPPluginFuncs@@@Z @ 2 NONAME ; short InitializeFuncs(struct _NPPluginFuncs *) + ?NPP_GetMIMEDescription@@YAPBVTDesC16@@XZ @ 3 NONAME ; class TDesC16 const * NPP_GetMIMEDescription(void) + ?NPP_GetValue@@YAFPAXW4NPPVariable@@0@Z @ 4 NONAME ; short NPP_GetValue(void *, enum NPPVariable, void *) + ?NPP_Shutdown@@YAXXZ @ 5 NONAME ; void NPP_Shutdown(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/EABI/NPPLUGINAPITESTU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/EABI/NPPLUGINAPITESTU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,11 @@ +EXPORTS + _Z24ImplementationGroupProxyRi @ 1 NONAME + _Z12NPP_GetValuePv11NPPVariableS_ @ 2 NONAME + _Z12NPP_Shutdownv @ 3 NONAME + _Z15InitializeFuncsP14_NPPluginFuncs @ 4 NONAME + _Z22NPP_GetMIMEDescriptionv @ 5 NONAME + _ZTI14CPluginAPIInst @ 6 NONAME ; ## + _ZTI18CPluginAPIEcomMain @ 7 NONAME ; ## + _ZTV14CPluginAPIInst @ 8 NONAME ; ## + _ZTV18CPluginAPIEcomMain @ 9 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/Web_BrowserPluginAPI.pkg --- a/apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/Web_BrowserPluginAPI.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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: -; -; PluginAPIBCTest.pkg -; -;Languages -&EN -;Header -#{"Browser_PluginAPIBCTest"},(0xA000018C),1,0,0 - -;Supports S60 v 3.0 -[0x101F7961], 0, 0, 0, {"S60ProductID"} - -;Localised Vendor name -%{"Nokia Corporation"} - -;Unique Vendor name -:"Nokia Corporation" - -; BitmapGraphics -"\epoc32\release\armv5\urel\NPPluginAPITest.dll"-"!:\sys\bin\NPPluginAPITest.dll" -"\epoc32\data\Z\Resource\Plugins\NPPluginAPITest.RSC"-"!:\Resource\plugins\NPPluginAPITest.rsc" -"\epoc32\data\Z\Resource\apps\allbitmaps.mbm"-"!:\PluginAPITest\allbitmaps.mbm" -"\epoc32\winscw\c\pluginapitest\plugin.html"-"!:\PluginAPITest\plugin.html" -"\epoc32\winscw\c\Logs\PluginAPI\PluginAPI.log"-"!:\Logs\PluginAPI\PluginAPI.log" -"\epoc32\winscw\c\plg.bat"-"!:\plg.bat" - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/Web_BrowserPluginAPI.sis Binary file apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/Web_BrowserPluginAPI.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/plg.bat --- a/apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/plg.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/plg.bat Fri Sep 17 09:37:58 2010 +0100 @@ -16,6 +16,5 @@ md e:\bctest -md e:\bctest\results\ - +md e:\bctest\results\ copy c:\logs\PluginAPI\PluginAPI.log e:\bctest\results\Web_BrowserPluginAPI.log diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/plg.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/browser_plugin_api/sis/plg.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,17 @@ + + +Browser Plugin API +BrowserPlugin + +The tests involve the Browser Plugin API + + + + + + 28 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Browser_PluginAPI.log + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/download_manager_api/Bwins/DownloadMgrBCTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/download_manager_api/Bwins/DownloadMgrBCTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int SetRequirements(class CTestModuleParam * &, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/download_manager_api/EABI/DownloadMgrBCTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/download_manager_api/EABI/DownloadMgrBCTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME ; CODE + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME ; CODE + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/download_manager_api/sis/DwMgr.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/download_manager_api/sis/DwMgr.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Download Manager API +STIF + +The tests involve the Browser Download Manager API + + + +c:\testframework\testframework_dwmgr.inic:\testframework\testframework.ini + -testmodule DownloadMgrBCTest -engineini c:\testframework\testframework.ini + + + 48 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Web_DownloadMgrEngine.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/download_manager_api/sis/Web_DownloadMgr.pkg --- a/apicompatanamdw/bcdrivers/mw/web/download_manager_api/sis/Web_DownloadMgr.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +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: -; -; -; Installation file for DownloadMgrBCTest STIF module - -;Languages -&EN - -;Header -#{"Browser_DownloadMgrBCTest"},(0x10282C93),1,0,0 - -;Localised Vendor name -%{"Nokia Corporation"} - -;Unique Vendor name -:"Nokia Corporation" - -;Supports Series 60 v 3.0 -[0x101F7961], 0, 0, 0, {"Series60ProductID"} - -; DownloadMgrBCTest module -"\epoc32\release\armv5\urel\DownloadMgrBCTest.dll" -"!:\sys\bin\DownloadMgrBCTest.dll" -"\epoc32\winscw\c\DwMgr.bat"-"!:\DwMgr.bat" -"\epoc32\winscw\c\testframework\testframework_dwmgr.ini"-"!:\testframework\testframework_dwmgr.ini" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/download_manager_api/sis/Web_DownloadMgr.sis Binary file apicompatanamdw/bcdrivers/mw/web/download_manager_api/sis/Web_DownloadMgr.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/Bmarm/FavouritesBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/favourites_api/Bmarm/FavouritesBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/Bwins/FavouritesBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/favourites_api/Bwins/FavouritesBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/EABI/FavouritesBCTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/favourites_api/EABI/FavouritesBCTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,8 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI23TFavouritesItemTestData @ 3 NONAME ; ## + _ZTI25CFavouritesDbTestObserver @ 4 NONAME ; ## + _ZTV23TFavouritesItemTestData @ 5 NONAME ; ## + _ZTV25CFavouritesDbTestObserver @ 6 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/group/FavouritesBCTest.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/favourites_api/group/FavouritesBCTest.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5504 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + WINSCW UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +PathBrowser\FavouritesBCTest\inc +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\BWINS +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\src +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +PathEPOC32\include +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\include\internal +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathSymbian_Support\Win32-x86 Support\Libraries\Win32 SDK +PathFormatWindows +PathRootCodeWarrior +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + PathEPOC32\RELEASE\WINSCW\UDEB\epoc.exe +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameWINSCW UDEB + OutputDirectory + PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPath + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + PrefixFileSymbian_OS_v9.1.hrh + CompilerXMLDescriptorMetrowerks x86 Compiler + Macros__SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__CW32__,__WINS__,__WINSCW__,__DLL__,_DEBUG,_UNICODE,__SUPPORT_CPP_EXCEPTIONS__ + CodeTESTfalse + EnableSWICfalse + Arguments-wchar_t off -align 4 -warnings on -w nohidevirtual, nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -O0 -inline off -nostdinc + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileFavouritesBCTest.dll + LinkCmdLine + SymbianImportLibraryFavouritesBCTest.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameFavouritesBCTest.mmpWindowsText +NameFavouritesBCTestU.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameFavouritesBCTest.cppWindowsTextDebug +NameFavouritesItemTestCases.cppWindowsTextDebug +NameFavouritesItemListTestCases.cppWindowsTextDebug +NameFavouritesDbTestCases.cppWindowsTextDebug +NameFavouritesWapApTestCases.cppWindowsTextDebug +NameFavouritesDbIncrementalTestCases.cppWindowsTextDebug +NameFavouritesFileTestCases.cppWindowsTextDebug +NameFavouritesSessionTestCases.cppWindowsTextDebug +NameFavouritesNotifierTestCases.cppWindowsTextDebug +NameFavouritesItemTestData.cppWindowsTextDebug +NameFavouritesDbTestObserver.cppWindowsTextDebug +NameFavouritesBCTest_UID_.cppWindowsText +Nameeuser.libWindowsLibraryDebug +Nameefsrv.libWindowsLibraryDebug +Namefavouritesengine.libWindowsLibraryDebug +Nameestor.libWindowsLibraryDebug +Namestiftestinterface.libWindowsLibraryDebug +NameFavouritesBCTest.hWindowsText +NameFavouritesDbTestObserver.hWindowsText +NameFavouritesItemTestData.hWindowsText +NameFavouritesBCTestWINSCWUDEB.cwlinkWindowsText + + +NameFavouritesBCTest.mmpWindows +NameFavouritesBCTestU.defWindows +NameEDLL.LIBWindows +NameFavouritesBCTest.cppWindows +NameFavouritesItemTestCases.cppWindows +NameFavouritesItemListTestCases.cppWindows +NameFavouritesDbTestCases.cppWindows +NameFavouritesWapApTestCases.cppWindows +NameFavouritesDbIncrementalTestCases.cppWindows +NameFavouritesFileTestCases.cppWindows +NameFavouritesSessionTestCases.cppWindows +NameFavouritesNotifierTestCases.cppWindows +NameFavouritesItemTestData.cppWindows +NameFavouritesDbTestObserver.cppWindows +NameFavouritesBCTest_UID_.cppWindows +Nameeuser.libWindows +Nameefsrv.libWindows +Namefavouritesengine.libWindows +Nameestor.libWindows +Namestiftestinterface.libWindows +NameFavouritesBCTest.hWindows +NameFavouritesDbTestObserver.hWindows +NameFavouritesItemTestData.hWindows +NameFavouritesBCTestWINSCWUDEB.cwlinkWindows + + + WINSCW UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +PathBrowser\FavouritesBCTest\inc +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\BWINS +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\src +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +PathEPOC32\include +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\include\internal +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\WINSCW\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\WINSCW\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathSymbian_Support\Win32-x86 Support\Libraries\Win32 SDK +PathFormatWindows +PathRootCodeWarrior +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + PathEPOC32\RELEASE\WINSCW\UREL\epoc.exe +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameWINSCW UREL + OutputDirectory + PathEPOC32\RELEASE\WINSCW\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pch++ + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp1 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNameE32Main + TempBPType1 + + + Enabledfalse + ConnectionName + DownloadPath + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + MWDebugger_X86_Exceptions + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\WINSCW\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\WINSCW\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\RELEASE\WINSCW\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\RELEASE\WINSCW\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + PrefixFileSymbian_OS_v9.1.hrh + CompilerXMLDescriptorMetrowerks x86 Compiler + Macros__SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__CW32__,__WINS__,__WINSCW__,__DLL__,NDEBUG,_UNICODE,__SUPPORT_CPP_EXCEPTIONS__ + CodeTESTfalse + EnableSWICfalse + Arguments-wchar_t off -align 4 -warnings on -w nohidevirtual, nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -O4,s -nostdinc + CIAArgs + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileFavouritesBCTest.dll + LinkCmdLine + SymbianImportLibraryFavouritesBCTest.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameFavouritesBCTest.mmpWindowsText +NameFavouritesBCTestU.defWindowsText +NameEDLL.LIBWindowsLibrary +NameFavouritesBCTest.cppWindowsText +NameFavouritesItemTestCases.cppWindowsText +NameFavouritesItemListTestCases.cppWindowsText +NameFavouritesDbTestCases.cppWindowsText +NameFavouritesWapApTestCases.cppWindowsText +NameFavouritesDbIncrementalTestCases.cppWindowsText +NameFavouritesFileTestCases.cppWindowsText +NameFavouritesSessionTestCases.cppWindowsText +NameFavouritesNotifierTestCases.cppWindowsText +NameFavouritesItemTestData.cppWindowsText +NameFavouritesDbTestObserver.cppWindowsText +NameFavouritesBCTest_UID_.cppWindowsText +Nameeuser.libWindowsLibrary +Nameefsrv.libWindowsLibrary +Namefavouritesengine.libWindowsLibrary +Nameestor.libWindowsLibrary +Namestiftestinterface.libWindowsLibrary +NameFavouritesBCTestWINSCWUREL.cwlinkWindowsText + + +NameFavouritesBCTest.mmpWindows +NameFavouritesBCTestU.defWindows +NameEDLL.LIBWindows +NameFavouritesBCTest.cppWindows +NameFavouritesItemTestCases.cppWindows +NameFavouritesItemListTestCases.cppWindows +NameFavouritesDbTestCases.cppWindows +NameFavouritesWapApTestCases.cppWindows +NameFavouritesDbIncrementalTestCases.cppWindows +NameFavouritesFileTestCases.cppWindows +NameFavouritesSessionTestCases.cppWindows +NameFavouritesNotifierTestCases.cppWindows +NameFavouritesItemTestData.cppWindows +NameFavouritesDbTestObserver.cppWindows +NameFavouritesBCTest_UID_.cppWindows +Nameeuser.libWindows +Nameefsrv.libWindows +Namefavouritesengine.libWindows +Nameestor.libWindows +Namestiftestinterface.libWindows +NameFavouritesBCTestWINSCWUREL.cwlinkWindows + + + ARMV5 UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +PathBrowser\FavouritesBCTest\inc +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\EABI +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\src +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +PathEPOC32\include +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\include\internal +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\rvct2_2 +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARMV5 UREL + OutputDirectory + PathEPOC32\RELEASE\ARMV5\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmp + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp2 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNamemain + TempBPType0 + + + Enabledfalse + ConnectionNameSymbian MetroTrk + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\ARMV5\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\ARMV5\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + PrefixFilervct2_2.h + CompilerXMLDescriptorARM RVCT2_2 + Macros__SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__ARMCC__,__EPOC32__,__MARM__,__EABI__,__ARMCC_2__,__ARMCC_2_2__,__MARM_ARMV5__,__DLL__,NDEBUG,_UNICODE,__SUPPORT_CPP_EXCEPTIONS__,__PRODUCT_INCLUDE__=\"Symbian_OS_v9.1.hrh\" + CodeTESTfalse + EnableSWICfalse + Arguments -O2 --diag_suppress 66,161,611,654,997,1152,1300,1464,1488,6318,6331 --diag_error 1267 --thumb --fpu softvfp --exceptions --exceptions_unwind -D__MARM_THUMB__ -D__MARM_INTERWORK__ --cpu 5T --enum_is_int -Ono_known_library --fpmode ieee_no_fenv --export_all_vtbl --no_vfe --apcs /inter --dllimport_runtime + CIAArgs-x c++ -D__CIA__ + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileFavouritesBCTest.dll + LinkCmdLine + SymbianImportLibraryFavouritesBCTest{000a0000}.lib + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameFavouritesBCTest.mmpWindowsText +NameFavouritesBCTestU.defWindowsText +NameEDLL.LIBWindowsLibrary +NameFavouritesBCTest.cppWindowsText +NameFavouritesItemTestCases.cppWindowsText +NameFavouritesItemListTestCases.cppWindowsText +NameFavouritesDbTestCases.cppWindowsText +NameFavouritesWapApTestCases.cppWindowsText +NameFavouritesDbIncrementalTestCases.cppWindowsText +NameFavouritesFileTestCases.cppWindowsText +NameFavouritesSessionTestCases.cppWindowsText +NameFavouritesNotifierTestCases.cppWindowsText +NameFavouritesItemTestData.cppWindowsText +NameFavouritesDbTestObserver.cppWindowsText +Nameeuser.libWindowsLibrary +Nameefsrv.libWindowsLibrary +Namefavouritesengine.libWindowsLibrary +Nameestor.libWindowsLibrary +Namestiftestinterface.libWindowsLibrary +NameFavouritesBCTestARMV5UREL.cwlinkWindowsText + + +NameFavouritesBCTest.mmpWindows +NameFavouritesBCTestU.defWindows +NameEDLL.LIBWindows +NameFavouritesBCTest.cppWindows +NameFavouritesItemTestCases.cppWindows +NameFavouritesItemListTestCases.cppWindows +NameFavouritesDbTestCases.cppWindows +NameFavouritesWapApTestCases.cppWindows +NameFavouritesDbIncrementalTestCases.cppWindows +NameFavouritesFileTestCases.cppWindows +NameFavouritesSessionTestCases.cppWindows +NameFavouritesNotifierTestCases.cppWindows +NameFavouritesItemTestData.cppWindows +NameFavouritesDbTestObserver.cppWindows +Nameeuser.libWindows +Nameefsrv.libWindows +Namefavouritesengine.libWindows +Nameestor.libWindows +Namestiftestinterface.libWindows +NameFavouritesBCTestARMV5UREL.cwlinkWindows + + + ARMV5 UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +PathBrowser\FavouritesBCTest\inc +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\EABI +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\src +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +PathEPOC32\include +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\include\internal +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\rvct2_2 +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameARMV5 UDEB + OutputDirectory + PathEPOC32\RELEASE\ARMV5\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmp + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp2 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNamemain + TempBPType0 + + + Enabledfalse + ConnectionNameSymbian MetroTrk + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\ARMV5\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\ARMV5\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + PrefixFilervct2_2.h + CompilerXMLDescriptorARM RVCT2_2 + Macros__SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__ARMCC__,__EPOC32__,__MARM__,__EABI__,__ARMCC_2__,__ARMCC_2_2__,__MARM_ARMV5__,__DLL__,_DEBUG,_UNICODE,__SUPPORT_CPP_EXCEPTIONS__,__PRODUCT_INCLUDE__=\"Symbian_OS_v9.1.hrh\" + CodeTESTfalse + EnableSWICfalse + Arguments -O0 --diag_suppress 66,161,611,654,997,1152,1300,1464,1488,6318,6331 --diag_error 1267 --thumb --fpu softvfp --exceptions --exceptions_unwind -D__MARM_THUMB__ -D__MARM_INTERWORK__ --cpu 5T --enum_is_int -Ono_known_library --fpmode ieee_no_fenv --export_all_vtbl --no_vfe --apcs /inter --dllimport_runtime + CIAArgs-x c++ -D__CIA__ + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileFavouritesBCTest.dll + LinkCmdLine + SymbianImportLibraryFavouritesBCTest{000a0000}.lib + canDebugtrue + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameFavouritesBCTest.mmpWindowsText +NameFavouritesBCTestU.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameFavouritesBCTest.cppWindowsTextDebug +NameFavouritesItemTestCases.cppWindowsTextDebug +NameFavouritesItemListTestCases.cppWindowsTextDebug +NameFavouritesDbTestCases.cppWindowsTextDebug +NameFavouritesWapApTestCases.cppWindowsTextDebug +NameFavouritesDbIncrementalTestCases.cppWindowsTextDebug +NameFavouritesFileTestCases.cppWindowsTextDebug +NameFavouritesSessionTestCases.cppWindowsTextDebug +NameFavouritesNotifierTestCases.cppWindowsTextDebug +NameFavouritesItemTestData.cppWindowsTextDebug +NameFavouritesDbTestObserver.cppWindowsTextDebug +Nameeuser.libWindowsLibraryDebug +Nameefsrv.libWindowsLibraryDebug +Namefavouritesengine.libWindowsLibraryDebug +Nameestor.libWindowsLibraryDebug +Namestiftestinterface.libWindowsLibraryDebug +NameFavouritesBCTestARMV5UDEB.cwlinkWindowsText + + +NameFavouritesBCTest.mmpWindows +NameFavouritesBCTestU.defWindows +NameEDLL.LIBWindows +NameFavouritesBCTest.cppWindows +NameFavouritesItemTestCases.cppWindows +NameFavouritesItemListTestCases.cppWindows +NameFavouritesDbTestCases.cppWindows +NameFavouritesWapApTestCases.cppWindows +NameFavouritesDbIncrementalTestCases.cppWindows +NameFavouritesFileTestCases.cppWindows +NameFavouritesSessionTestCases.cppWindows +NameFavouritesNotifierTestCases.cppWindows +NameFavouritesItemTestData.cppWindows +NameFavouritesDbTestObserver.cppWindows +Nameeuser.libWindows +Nameefsrv.libWindows +Namefavouritesengine.libWindows +Nameestor.libWindows +Namestiftestinterface.libWindows +NameFavouritesBCTestARMV5UDEB.cwlinkWindows + + + GCCE UREL + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +PathBrowser\FavouritesBCTest\inc +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\EABI +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\src +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +PathEPOC32\include +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\include\internal +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\gcce +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathC:\Program Files\CSL Arm Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\include +PathFormatWindows +PathRootAbsolute +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameGCCE UREL + OutputDirectory + PathEPOC32\RELEASE\GCCE\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmp + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp2 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNamemain + TempBPType0 + + + Enabledfalse + ConnectionNameSymbian MetroTrk + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\GCCE\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\GCCE\UREL +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + PrefixFilegcce.h + CompilerXMLDescriptorARM GCCE + Macros__SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__GCCE__,__EPOC32__,__MARM__,__EABI__,__MARM_ARMV5__,__DLL__,NDEBUG,_UNICODE,__GCCE__,__SUPPORT_CPP_EXCEPTIONS__,__PRODUCT_INCLUDE__=\"Symbian_OS_v9.1.hrh\" + CodeTESTfalse + EnableSWICfalse + Arguments-march=armv5t -mthumb-interwork -mapcs -msoft-float -fexceptions -pipe -nostdinc -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas + CIAArgs-x c++ -D__CIA__ + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileFavouritesBCTest.dll + LinkCmdLine + SymbianImportLibraryFavouritesBCTest{000a0000}.dso + canDebugfalse + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameFavouritesBCTest.mmpWindowsText +NameFavouritesBCTestU.defWindowsText +NameEDLL.LIBWindowsLibrary +NameFavouritesBCTest.cppWindowsText +NameFavouritesItemTestCases.cppWindowsText +NameFavouritesItemListTestCases.cppWindowsText +NameFavouritesDbTestCases.cppWindowsText +NameFavouritesWapApTestCases.cppWindowsText +NameFavouritesDbIncrementalTestCases.cppWindowsText +NameFavouritesFileTestCases.cppWindowsText +NameFavouritesSessionTestCases.cppWindowsText +NameFavouritesNotifierTestCases.cppWindowsText +NameFavouritesItemTestData.cppWindowsText +NameFavouritesDbTestObserver.cppWindowsText +Nameeuser.dsoWindowsLibrary +Nameefsrv.dsoWindowsLibrary +Namefavouritesengine.dsoWindowsLibrary +Nameestor.dsoWindowsLibrary +Namestiftestinterface.dsoWindowsLibrary +Nameusrt2_2.libWindowsLibrary +Namedfpaeabi.dsoWindowsLibrary +Namedfprvct2_2.dsoWindowsLibrary +Namedrtaeabi.dsoWindowsLibrary +Namescppnwdl.dsoWindowsLibrary +Namedrtrvct2_2.dsoWindowsLibrary +NameEDLLSTUB.LIBWindowsLibrary +NameFavouritesBCTestGCCEUREL.cwlinkWindowsText + + +NameFavouritesBCTest.mmpWindows +NameFavouritesBCTestU.defWindows +NameEDLL.LIBWindows +NameFavouritesBCTest.cppWindows +NameFavouritesItemTestCases.cppWindows +NameFavouritesItemListTestCases.cppWindows +NameFavouritesDbTestCases.cppWindows +NameFavouritesWapApTestCases.cppWindows +NameFavouritesDbIncrementalTestCases.cppWindows +NameFavouritesFileTestCases.cppWindows +NameFavouritesSessionTestCases.cppWindows +NameFavouritesNotifierTestCases.cppWindows +NameFavouritesItemTestData.cppWindows +NameFavouritesDbTestObserver.cppWindows +Nameeuser.dsoWindows +Nameefsrv.dsoWindows +Namefavouritesengine.dsoWindows +Nameestor.dsoWindows +Namestiftestinterface.dsoWindows +Nameusrt2_2.libWindows +Namedfpaeabi.dsoWindows +Namedfprvct2_2.dsoWindows +Namedrtaeabi.dsoWindows +Namescppnwdl.dsoWindows +Namedrtrvct2_2.dsoWindows +NameEDLLSTUB.LIBWindows +NameFavouritesBCTestGCCEUREL.cwlinkWindows + + + GCCE UDEB + + + + UserSourceTrees + + + AlwaysSearchUserPathstrue + InterpretDOSAndUnixPathsfalse + RequireFrameworkStyleIncludesfalse + SourceRelativeIncludesfalse + UserSearchPaths + +SearchPath +PathBrowser\FavouritesBCTest\inc +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\EABI +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathBrowser\FavouritesBCTest\src +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + SystemSearchPaths + +SearchPath +PathEPOC32\include +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\include\internal +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathEPOC32\RELEASE\ARMV5\LIB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\gcce +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +Pathepoc32\include\variant +PathFormatWindows +PathRoots60 S60_3rd_MR_3 +Recursivefalse +FrameworkPathfalse +HostFlagsAll + +SearchPath +PathC:\Program Files\CSL Arm Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\include +PathFormatWindows +PathRootAbsolute +Recursivefalse +FrameworkPathfalse +HostFlagsAll + + + + MWRuntimeSettings_WorkingDirectory + MWRuntimeSettings_CommandLine + MWRuntimeSettings_HostApplication + Path + PathFormatGeneric + PathRootAbsolute + + MWRuntimeSettings_EnvVars + + + LinkerSymbian Linker v2 + PreLinker + PostLinkerSymbian Installer v2 + TargetnameGCCE UDEB + OutputDirectory + PathEPOC32\RELEASE\GCCE\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SaveEntriesUsingRelativePathsfalse + + + FileMappings + + FileTypeTEXT + FileExtension._i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension._ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.c + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cc + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cfg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cia + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.cpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cwlink + Compiler + EditLanguageXML + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.cxx + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.def + Compiler + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.h + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.hrh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.i + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.iby + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ii + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.inf + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ini + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.inl + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.loc + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ciacpp + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmp + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.mmpi + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.pkg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.policy + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.ra + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.resources + CompilerSymbian Resource v2 + EditLanguageXML + Precompiletrue + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.rh + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rls + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rss + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.rsg + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.s + CompilerSymbian Compiler v2 + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileTypeTEXT + FileExtension.script + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileTypeTEXT + FileExtension.txt + Compiler + EditLanguageC/C++ + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMaketrue + + + FileExtension.a + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.lib + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.dso + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + FileExtension.o + CompilerSymbian Object Importer v2 + EditLanguage + Precompilefalse + Launchablefalse + ResourceFilefalse + IgnoredByMakefalse + + + + + CacheModDatestrue + DumpBrowserInfofalse + CacheSubprojectstrue + UseThirdPartyDebuggerfalse + BrowserGenerator2 + DebuggerAppPath + Path + PathFormatGeneric + PathRootAbsolute + + DebuggerCmdLineArgs + DebuggerWorkingDir + Path + PathFormatGeneric + PathRootAbsolute + + CodeCompletionPrefixFileName + CodeCompletionMacroFileName + + + ConsoleEncoding0 + LogSystemMessagestrue + AutoTargetDLLsPopUp2 + StopAtWatchpointstrue + PauseWhileRunningfalse + PauseInterval5 + PauseUIFlags0 + AltExePath + Path + PathFormatWindows + PathRootAbsolute + + StopAtTempBPOnLaunchfalse + CacheSymbolicstrue + TempBPFunctionNamemain + TempBPType0 + + + Enabledfalse + ConnectionNameSymbian MetroTrk + DownloadPathC:\sys\bin\ + LaunchRemoteAppfalse + RemoteAppPath + CoreID0 + JTAGClockSpeed8000 + IsMultiCorefalse + OSDownloadfalse + UseGlobalOSDownloadfalse + OSDownloadConnectionName + OSDownloadPath + AltDownloadfalse + AltDownloadConnectionName + + + OtherExecutables + + + AnalyzerConnectionName + + + CustomColor1 + Red0 + Green32767 + Blue0 + + CustomColor2 + Red0 + Green32767 + Blue0 + + CustomColor3 + Red0 + Green32767 + Blue0 + + CustomColor4 + Red0 + Green32767 + Blue0 + + + + ProcessorGeneric + BraekPoinType_II0 + UseInitFile0 + UseConfigFile0 + IDexecutable1 + IDinitialized1 + IDuninitialized0 + IDconstant1 + SDexecutable1 + SDinitialized1 + SDuninitialized0 + SDconstant1 + VerifyMemWrites0 + ShowMPC107regs0 + InitializationFile + ConfigurationFile + BreakpointType1 + WatchpointType1 + TargetOS1 + RTOSPluginName + ByteOrderType0 + CodeTest SYMBIAN Instrumenter + 0200020000000100000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000433A5C0000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000637466696C657300000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000636F6465746573742E6964620000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 0000000000000000000000000000000000000000000000000000000000000000 + 000000000000000000000000 + + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\GCCE\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianInstallationOutputFilenameApplication.sis + SymbianInstallationOutputLocation + Path + PathFormatWindows + PathRootProject + + SymbianInstallationContentSearchLocation + PathEPOC32\RELEASE\GCCE\UDEB +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianInstallationPassword + SymbianInstallationCreateStubFilefalse + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + SymbianResourcesMMPFileLocation + PathBrowser\FavouritesBCTest\group +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesBinaryOutputLocation + PathEPOC32\DATA +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + SymbianResourcesHeaderFileOutputLocation + PathEPOC32\INCLUDE +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + FileList + + + ProcessorGeneric + UseInitFile0 + UseConfigFile0 + ResetTarget1 + InitializationFile + Path + PathFormatGeneric + PathRootAbsolute + + ConfigurationFile + Path + PathFormatGeneric + PathRootAbsolute + + TargetOS1 + RTOSPluginName + + + ShowCommandLinefalse + SymbianEpocToolsPath + Path +PathFormatWindows +PathRoots60 S60_3rd_MR_3 + + + + PrefixFilegcce.h + CompilerXMLDescriptorARM GCCE + Macros__SYMBIAN32__,__SERIES60_30__,__SERIES60_3X__,__GCCE__,__EPOC32__,__MARM__,__EABI__,__MARM_ARMV5__,__DLL__,_DEBUG,_UNICODE,__GCCE__,__SUPPORT_CPP_EXCEPTIONS__,__PRODUCT_INCLUDE__=\"Symbian_OS_v9.1.hrh\" + CodeTESTfalse + EnableSWICfalse + Arguments -O0 -march=armv5t -mthumb-interwork -mapcs -msoft-float -fexceptions -pipe -nostdinc -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas + CIAArgs-x c++ -D__CIA__ + + + Parse Log Filefalse + Log File Path + Path + PathFormatWindows + PathRootAbsolute + + Symbian SDK Folder + Path + PathFormatWindows + PathRootAbsolute + + Log Unresolved Modulesfalse + Log Unresolved Sym Filesfalse + Debug Non-XIP Executablesfalse + + + Start Address0x00000000 + Run From Start Addressfalse + Download Imagefalse + OS Image Path + Path + PathFormatWindows + PathRootAbsolute + + Download Address0x00000000 + Ask Firstfalse + Debug Bootromfalse + Bootrom Sym File + Path + PathFormatWindows + PathRootAbsolute + + + + LinkOutputFileFavouritesBCTest.dll + LinkCmdLine + SymbianImportLibraryFavouritesBCTest{000a0000}.dso + canDebugtrue + canRunfalse + + + CommandLinebuildrom -D_DEBUG devkit lubbock techview -olubbock_gui.img + OutputPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + DisplayMessagestrue + + + TargetArchitectureWINSCW + LogMessagesfalse + SuppressWarningsfalse + GenerateSymbolicsfalse + CompilerPrefix + CompilerCmdLine + SymbianImportLibraryPath + PathC:\ + PathFormatWindows + PathRootAbsolute + + + + Gnu Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + Epoc32 Tools Path + PathC:\ + PathFormatWindows + PathRootAbsolute + + + +NameFavouritesBCTest.mmpWindowsText +NameFavouritesBCTestU.defWindowsText +NameEDLL.LIBWindowsLibraryDebug +NameFavouritesBCTest.cppWindowsTextDebug +NameFavouritesItemTestCases.cppWindowsTextDebug +NameFavouritesItemListTestCases.cppWindowsTextDebug +NameFavouritesDbTestCases.cppWindowsTextDebug +NameFavouritesWapApTestCases.cppWindowsTextDebug +NameFavouritesDbIncrementalTestCases.cppWindowsTextDebug +NameFavouritesFileTestCases.cppWindowsTextDebug +NameFavouritesSessionTestCases.cppWindowsTextDebug +NameFavouritesNotifierTestCases.cppWindowsTextDebug +NameFavouritesItemTestData.cppWindowsTextDebug +NameFavouritesDbTestObserver.cppWindowsTextDebug +Nameeuser.dsoWindowsLibraryDebug +Nameefsrv.dsoWindowsLibraryDebug +Namefavouritesengine.dsoWindowsLibraryDebug +Nameestor.dsoWindowsLibraryDebug +Namestiftestinterface.dsoWindowsLibraryDebug +Nameusrt2_2.libWindowsLibraryDebug +Namedfpaeabi.dsoWindowsLibraryDebug +Namedfprvct2_2.dsoWindowsLibraryDebug +Namedrtaeabi.dsoWindowsLibraryDebug +Namescppnwdl.dsoWindowsLibraryDebug +Namedrtrvct2_2.dsoWindowsLibraryDebug +NameEDLLSTUB.LIBWindowsLibraryDebug +NameFavouritesBCTestGCCEUDEB.cwlinkWindowsText + + +NameFavouritesBCTest.mmpWindows +NameFavouritesBCTestU.defWindows +NameEDLL.LIBWindows +NameFavouritesBCTest.cppWindows +NameFavouritesItemTestCases.cppWindows +NameFavouritesItemListTestCases.cppWindows +NameFavouritesDbTestCases.cppWindows +NameFavouritesWapApTestCases.cppWindows +NameFavouritesDbIncrementalTestCases.cppWindows +NameFavouritesFileTestCases.cppWindows +NameFavouritesSessionTestCases.cppWindows +NameFavouritesNotifierTestCases.cppWindows +NameFavouritesItemTestData.cppWindows +NameFavouritesDbTestObserver.cppWindows +Nameeuser.dsoWindows +Nameefsrv.dsoWindows +Namefavouritesengine.dsoWindows +Nameestor.dsoWindows +Namestiftestinterface.dsoWindows +Nameusrt2_2.libWindows +Namedfpaeabi.dsoWindows +Namedfprvct2_2.dsoWindows +Namedrtaeabi.dsoWindows +Namescppnwdl.dsoWindows +Namedrtrvct2_2.dsoWindows +NameEDLLSTUB.LIBWindows +NameFavouritesBCTestGCCEUDEB.cwlinkWindows + + +Build AllLinkerNone +TargetnameBuild All + + + +WINSCW UDEB +WINSCW UREL +ARMV5 UDEB +ARMV5 UREL +GCCE UDEB +GCCE UREL + + + +WINSCW UDEB +WINSCW UREL +ARMV5 UDEB +ARMV5 UREL +GCCE UDEB +GCCE UREL +Build All + + + WINSCW UDEBNameFavouritesBCTest.mmpWindows +Source +WINSCW UDEBNameFavouritesBCTestU.defWindows +WINSCW UDEBNameFavouritesBCTest.cppWindows +WINSCW UDEBNameFavouritesItemTestCases.cppWindows +WINSCW UDEBNameFavouritesItemListTestCases.cppWindows +WINSCW UDEBNameFavouritesDbTestCases.cppWindows +WINSCW UDEBNameFavouritesWapApTestCases.cppWindows +WINSCW UDEBNameFavouritesDbIncrementalTestCases.cppWindows +WINSCW UDEBNameFavouritesFileTestCases.cppWindows +WINSCW UDEBNameFavouritesSessionTestCases.cppWindows +WINSCW UDEBNameFavouritesNotifierTestCases.cppWindows +WINSCW UDEBNameFavouritesItemTestData.cppWindows +WINSCW UDEBNameFavouritesDbTestObserver.cppWindows +WINSCW UDEBNameFavouritesBCTest_UID_.cppWindows +ARMV5 URELNameFavouritesBCTestU.defWindows + +Headers +WINSCW UDEBNameFavouritesBCTest.hWindows +WINSCW UDEBNameFavouritesDbTestObserver.hWindows +WINSCW UDEBNameFavouritesItemTestData.hWindows + +Link +WINSCW UDEBNameFavouritesBCTestWINSCWUDEB.cwlinkWindows +WINSCW URELNameFavouritesBCTestWINSCWUREL.cwlinkWindows +ARMV5 URELNameFavouritesBCTestARMV5UREL.cwlinkWindows +ARMV5 UDEBNameFavouritesBCTestARMV5UDEB.cwlinkWindows +GCCE URELNameFavouritesBCTestGCCEUREL.cwlinkWindows +GCCE UDEBNameFavouritesBCTestGCCEUDEB.cwlinkWindows + +Libraries +WINSCW +WINSCW UDEBNameEDLL.LIBWindows +WINSCW UDEBNameeuser.libWindows +WINSCW UDEBNameefsrv.libWindows +WINSCW UDEBNamefavouritesengine.libWindows +WINSCW UDEBNameestor.libWindows +WINSCW UDEBNamestiftestinterface.libWindows +WINSCW URELNameEDLL.LIBWindows + +ARMV5 +ARMV5 URELNameEDLL.LIBWindows +ARMV5 URELNameeuser.libWindows +ARMV5 URELNameefsrv.libWindows +ARMV5 URELNamefavouritesengine.libWindows +ARMV5 URELNameestor.libWindows +ARMV5 URELNamestiftestinterface.libWindows +ARMV5 UDEBNameEDLL.LIBWindows + +GCCE +GCCE URELNameEDLL.LIBWindows +GCCE URELNameeuser.dsoWindows +GCCE URELNameefsrv.dsoWindows +GCCE URELNamefavouritesengine.dsoWindows +GCCE URELNameestor.dsoWindows +GCCE URELNamestiftestinterface.dsoWindows +GCCE URELNameusrt2_2.libWindows +GCCE URELNamedfpaeabi.dsoWindows +GCCE URELNamedfprvct2_2.dsoWindows +GCCE URELNamedrtaeabi.dsoWindows +GCCE URELNamescppnwdl.dsoWindows +GCCE URELNamedrtrvct2_2.dsoWindows +GCCE URELNameEDLLSTUB.LIBWindows +GCCE UDEBNameEDLL.LIBWindows +GCCE UDEBNameusrt2_2.libWindows +GCCE UDEBNameEDLLSTUB.LIBWindows + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/group/FavouritesBCTest_UID_.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/favourites_api/group/FavouritesBCTest_UID_.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,21 @@ +/* +* 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: +* +*/ +// Makmake-generated uid source file +#include +#pragma data_seg(".SYMBIAN") +__EMULATOR_IMAGE_HEADER2(0x10000079,0x1000008d,0x101fb3e7,EPriorityForeground,0x000ffffeu,0x00000000u,0x101fb3e7,0x00000000,0x00010000,0) +#pragma data_seg() diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/sis/Fav.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/web/favourites_api/sis/Fav.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Favourites API +STIF + +The tests involve the Browser Favourites API + + + + -testmodule FavouritesBCTest + + + 102 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Web_FavouritesEngineAPI.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/sis/Web_Favourites.pkg --- a/apicompatanamdw/bcdrivers/mw/web/favourites_api/sis/Web_Favourites.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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: -; -; -; Installation file for FavouritesBCTest STIF module - -;Languages -&EN - -;Header -#{"Browser_FavouritesBCTest"},(0x10282C94),1,0,0 - -;Localised Vendor name -%{"Nokia Corporation"} - -;Unique Vendor name -:"Nokia Corporation" - -;Supports Series 60 v 3.0 -[0x101F7961], 0, 0, 0, {"Series60ProductID"} - -; FavouritesBCTest module -"\epoc32\release\armv5\urel\FavouritesBCTest.dll" -"!:\sys\bin\FavouritesBCTest.dll" -"\epoc32\winscw\c\Fav.bat"-"!:\Fav.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/web/favourites_api/sis/Web_Favourites.sis Binary file apicompatanamdw/bcdrivers/mw/web/favourites_api/sis/Web_Favourites.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/bmarm/hostletconnectionu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/bmarm/hostletconnectionu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2 @@ +EXPORTS + CreateTestSuiteL__Fv @ 1 NONAME R3UNUSED ; CreateTestSuiteL(void) diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/bwins/hostletconnectionbctestu.def Binary file apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/bwins/hostletconnectionbctestu.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/bwins/hostletconnectionu.def Binary file apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/bwins/hostletconnectionu.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/eabi/HostletConnectionBCTestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/eabi/HostletConnectionBCTestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,8 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI12CTestHostlet @ 3 NONAME ; ## + _ZTI13CTestConsumer @ 4 NONAME ; ## + _ZTV12CTestHostlet @ 5 NONAME ; ## + _ZTV13CTestConsumer @ 6 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/group/WSHC.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/group/WSHC.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +WS Hostlet Connection API +STIF + +The tests involve the Web Service Hostlet Connection API + + + +C:\TestFramework\TestFramework_hostlet.iniC:\TestFramework\TestFramework.ini + -testmodule HostletConnectionBCTest -engineini C:\TestFramework\TestFramework.ini + + + 25 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_HostConn.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/group/testhc.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/group/testhc.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_hostlet.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\results - -ATSINTERFACE.EXE -testmodule HostletConnectionBCTest - -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_HostConn.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/sis/WebSrv_hostconn.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/sis/WebSrv_hostconn.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices hostlet"},(0x20015A25),3,0,0,TYPE=SA -[0x101F7961],0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\HostletConnectionBCTest.dll"-"!:\sys\bin\HostletConnectionBCTest.dll" -"\Epoc32\winscw\c\testhc.bat"-"!:\testHC.bat" -"\Epoc32\winscw\c\testframework\testframework_hostlet.ini"-"!:\testframework\testframework_hostlet.ini" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/sis/WebSrv_hostconn.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/hostlet_connection_api/sis/WebSrv_hostconn.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/bmarm/SenServiceConnectionBCTest.def Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/bmarm/SenServiceConnectionBCTest.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/bwins/SenServiceConnectionBCTest.def Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/bwins/SenServiceConnectionBCTest.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/bwins/SenServiceConnectionBCTestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/bwins/SenServiceConnectionBCTestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int SetRequirements(class CTestModuleParam * &, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/eabi/SenServiceConnectionBCTestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/eabi/SenServiceConnectionBCTestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,14 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI13CTestConsumer @ 3 NONAME + _ZTI13CTestProperty @ 4 NONAME + _ZTI13CTestProvider @ 5 NONAME + _ZTI15CTestConnection @ 6 NONAME + _ZTI17CTestFileObserver @ 7 NONAME + _ZTV13CTestConsumer @ 8 NONAME + _ZTV13CTestProperty @ 9 NONAME + _ZTV13CTestProvider @ 10 NONAME + _ZTV15CTestConnection @ 11 NONAME + _ZTV17CTestFileObserver @ 12 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/group/WSC.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/group/WSC.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +WS_Connec_SenServConn_API +STIF + +The tests involve the Web Service Connection API/SenServConn + + + +C:\TestFramework\TestFramework_connection.iniC:\TestFramework\TestFramework.ini + -testmodule CSenServiceConnectionBCTest -engineini C:\TestFramework\TestFramework.ini + + + 55 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_ServiceConnection.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/group/testsc.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/group/testsc.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\testframework_connection.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\results - -ATSINTERFACE.EXE -testmodule CSenServiceConnectionBCTest - -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_ServiceConnection.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/sis/WebSrv_connection.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/sis/WebSrv_connection.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices Connection"},(0x20016BAA),3,0,0,TYPE=SA -[0x101F7961],0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - - -; Files to install and to where -"\Epoc32\Release\armv5\urel\CSenServiceConnectionBCTest.dll"-"!:\sys\bin\CSenServiceConnectionBCTest.dll" -"\Epoc32\winscw\c\testSC_c.bat"-"!:\testSC.bat" -"\Epoc32\winscw\c\testframework\testframework_connection.ini"-"!:\testframework\testframework_connection.ini" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/sis/WebSrv_connection.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/connection/sis/WebSrv_connection.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/bmarm/senutilsbctestu.def Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/bmarm/senutilsbctestu.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/bwins/senutilsbctestu.def Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/bwins/senutilsbctestu.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/eabi/SenUtilsBCTestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/eabi/SenUtilsBCTestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/group/SenUtil.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/group/SenUtil.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +WS_Connec_SenUtils_API +STIF + +The tests involve the Web Service Connection API/SenUtils + + + +C:\TestFramework\TestFramework_senutils.iniC:\TestFramework\TestFramework.ini + -testmodule SenUtilsBCTest -engineini C:\TestFramework\TestFramework.ini + + + 108 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_SenUtils.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/group/testsu.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/group/testsu.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_senutils.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\results - -ATSINTERFACE.EXE -testmodule SenUtilsBCTest - -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_SenUtils.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/sis/WebSrv_senutils.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/sis/WebSrv_senutils.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices Utils"},(0x20016BAB),3,0,0,TYPE=SA -[0x101F7961],0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\SenUtilsBCTest.dll"-"!:\sys\bin\SenUtilsBCTest.dll" -"\Epoc32\winscw\c\testSU.bat"-"!:\testSU.bat" -"\Epoc32\winscw\c\testframework\testframework_senutils.ini"-"!:\testframework\testframework_senutils.ini" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/sis/WebSrv_senutils.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_connection_api/senutils/sis/WebSrv_senutils.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/Bmarm/SenServDescBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/Bmarm/SenServDescBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/Bwins/SenServDescBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/Bwins/SenServDescBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/EABI/SenServDescBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/EABI/SenServDescBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/group/TestSD.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/group/TestSD.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_senservdesc.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule SenServDescBCTest -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_WSDescription.txt - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/group/testframework.ini --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/group/testframework.ini Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,178 +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. -# - Sets a device reset module's dll name(Reboot). -# + If Nokia specific reset module is not available or it is not correct one -# StifHWResetStub module may use as a template for user specific reset -# module. - -[Engine_Defaults] - -TestReportMode= FullReport # Possible values are: 'Empty', '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 - -DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting - -[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= c:\testframework\YYYYYY -# Modules might have several configuration files, like -# TestCaseFile= c:\testframework\NormalCases.txt -# TestCaseFile= c:\testframework\SmokeCases.txt -# TestCaseFile= c:\testframework\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= SenServDescBCTest -[End_Module] - - -# Load testmoduleXXX, optionally with initialization file and/or test case files -#[New_Module] -#ModuleName= testmodulexxx - -#TestModuleXXX used initialization file -#IniFile= c:\testframework\init.txt - -#TestModuleXXX used configuration file(s) -#TestCaseFile= c:\testframework\testcases1.cfg -#TestCaseFile= c:\testframework\testcases2.cfg -#TestCaseFile= c:\testframework\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 \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/TestSD.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/TestSD.bat Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,23 @@ +@rem +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem + +copy C:\TestFramework\TestFramework_senservdesc.ini C:\TestFramework\TestFramework.ini +md e:\BCTest +md e:\BCTest\Results + +ATSINTERFACE.EXE -testmodule SenServDescBCTest +copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_WSDescription.txt + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/WSD.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/WSD.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +WS Description API +STIF + +The tests involve the Web Service Description API + + + +C:\TestFramework\TestFramework_senservdesc.iniC:\TestFramework\TestFramework.ini + -testmodule SenServDescBCTest -engineini C:\TestFramework\TestFramework.ini + + + 87 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_WSDescription.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/WebSrv_WSDescription.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/WebSrv_WSDescription.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices Description"},(0x10282CAB),3,0,0,TYPE=SA -(0x101F7961),0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\SenServDescBCTest.dll"-"!:\sys\bin\SenServDescBCTest.dll" -"\Epoc32\winscw\c\testSD.bat"-"!:\testSD.bat" -"\Epoc32\winscw\c\testframework\testframework_senservdesc.ini"-"!:\testframework\testframework_senservdesc.ini" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/WebSrv_WSDescription.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/WebSrv_WSDescription.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/testframework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_description_api/sis/testframework.ini Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,178 @@ +# +# 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. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', '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 + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +[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= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\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= SenServDescBCTest +[End_Module] + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\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 \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/Bmarm/SenServiceManagerBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/Bmarm/SenServiceManagerBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/Bwins/SenServiceManagerBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/Bwins/SenServiceManagerBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/EABI/SenServiceManagerBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/EABI/SenServiceManagerBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/group/TestSM.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/group/TestSM.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_senservicemanager.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\Results - -ATSINTERFACE.EXE -testmodule SenServiceManagerBCTest -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_WSManager.txt diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/group/testframework.ini --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/group/testframework.ini Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,178 +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. -# - Sets a device reset module's dll name(Reboot). -# + If Nokia specific reset module is not available or it is not correct one -# StifHWResetStub module may use as a template for user specific reset -# module. - -[Engine_Defaults] - -TestReportMode= FullReport # Possible values are: 'Empty', '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 - -DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting - -[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= c:\testframework\YYYYYY -# Modules might have several configuration files, like -# TestCaseFile= c:\testframework\NormalCases.txt -# TestCaseFile= c:\testframework\SmokeCases.txt -# TestCaseFile= c:\testframework\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= SenServiceManagerBCTest -[End_Module] - - -# Load testmoduleXXX, optionally with initialization file and/or test case files -#[New_Module] -#ModuleName= testmodulexxx - -#TestModuleXXX used initialization file -#IniFile= c:\testframework\init.txt - -#TestModuleXXX used configuration file(s) -#TestCaseFile= c:\testframework\testcases1.cfg -#TestCaseFile= c:\testframework\testcases2.cfg -#TestCaseFile= c:\testframework\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 \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/TestSM.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/TestSM.bat Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,22 @@ +@rem +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem + +copy C:\TestFramework\TestFramework_senservicemanager.ini C:\TestFramework\TestFramework.ini +md e:\BCTest +md e:\BCTest\Results + +ATSINTERFACE.EXE -testmodule SenServiceManagerBCTest +copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_WSManager.txt diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/WSM.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/WSM.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Web Service Manager API +STIF + +The tests involve the Web Service Manager API + + + +C:\TestFramework\TestFramework_senservicemanager.iniC:\TestFramework\TestFramework.ini + -testmodule SenServiceManagerBCTest -engineini C:\TestFramework\TestFramework.ini + + + 43 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_WSManager.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/WebSrv_WSManager.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/WebSrv_WSManager.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices Manager"},(0x10282CAC),3,0,0,TYPE=SA -[0x101F7961],0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\SenServiceManagerBCTest.dll"-"!:\sys\bin\SenServiceManagerBCTest.dll" -"\Epoc32\winscw\c\testSM.bat"-"!:\testSM.bat" -"\Epoc32\winscw\c\testframework\testframework_senservicemanager.ini"-"!:\testframework\testframework_senservicemanager.ini" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/WebSrv_WSManager.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/WebSrv_WSManager.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/testframework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_manager_api/sis/testframework.ini Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,178 @@ +# +# 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. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', '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 + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +[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= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\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= SenServiceManagerBCTest +[End_Module] + + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\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 \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/bwins/newsoapclassesbctestu.def Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/bwins/newsoapclassesbctestu.def has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/eabi/NewSoapClassesBCTestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/eabi/NewSoapClassesBCTestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,6 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI16CTestMSenMessage @ 3 NONAME + _ZTV16CTestMSenMessage @ 4 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/group/WSNSC.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/group/WSNSC.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Web Service Messaging API +STIF + +The tests involve the Web Service Messaging API + + + +C:\TestFramework\TestFramework_newsoapclasses.iniC:\TestFramework\TestFramework.ini + -testmodule NewSoapClassesBCTest -engineini C:\TestFramework\TestFramework.ini + + + 84 + C:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_NewSoapClasses.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/group/testnsc.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/group/testnsc.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy C:\TestFramework\TestFramework_newsoapclasses.ini C:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\results - -ATSINTERFACE.EXE -testmodule NewSoapClassesBCTest - -copy C:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_NewSoapClasses.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/sis/WebSrv_newsoapclasses.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/sis/WebSrv_newsoapclasses.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices SoapClasses"},(0x20015A26),3,0,0,TYPE=SA -[0x101F7961],0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\NewSoapClassesBCTest.dll"-"!:\sys\bin\NewSoapClassesBCTest.dll" -"\Epoc32\winscw\c\testNSC.bat"-"!:\testNSC.bat" -"\Epoc32\winscw\c\testframework\testframework_newsoapclasses.ini"-"!:\testframework\testframework_newsoapclasses.ini" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/sis/WebSrv_newsoapclasses.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/web_service_messaging_api/sis/WebSrv_newsoapclasses.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/Bwins/WSTesterU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/Bwins/WSTesterU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/Eabi/WSTesterU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/Eabi/WSTesterU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,7 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI10CSAXTester @ 2 NONAME ; ## + _ZTI9CWSTester @ 3 NONAME ; ## + _ZTV10CSAXTester @ 4 NONAME ; ## + _ZTV9CWSTester @ 5 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/WS.zip Binary file apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/WS.zip has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/sis/WebSrv_WSXML.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/sis/WebSrv_WSXML.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices XMLExtensions"},(0x10282C8A),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\wstester.dll"-"!:\sys\bin\wstester.dll" -"\Epoc32\winscw\c\TestInit.bat"-"!:\TestInit.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/sis/WebSrv_WSXML.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/sis/WebSrv_WSXML.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/sis/XMLExt.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/xml_extensions_api/sis/XMLExt.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,17 @@ + + +XML Extensions API +STIF + +The tests involve the WebSrv XML Extensions API + + + + + + 220 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\Websrv_XMLExtensions.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/bwins/senfragmentbctestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/bwins/senfragmentbctestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int SetRequirements(class CTestModuleParam * &, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/eabi/SenFragmentBCTestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/eabi/SenFragmentBCTestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZN17CTestFragmentBase11AddContentLERK6TDesC8 @ 3 NONAME + _ZN17CTestFragmentBase11SetContentLERK6TDesC8 @ 4 NONAME + _ZN20CTestDomFragmentBase13SetContentOfLERK6TDesC8S2_ @ 5 NONAME + _ZN20CTestDomFragmentBase9ContentOfERK6TDesC8 @ 6 NONAME + _ZTI13CMainFragment @ 7 NONAME ; ## + _ZTI16CMainDomFragment @ 8 NONAME ; ## + _ZTI17CDelegateFragment @ 9 NONAME ; ## + _ZTI17CTestFragmentBase @ 10 NONAME ; ## + _ZTI20CDelegateDomFragment @ 11 NONAME ; ## + _ZTV13CMainFragment @ 12 NONAME ; ## + _ZTV16CMainDomFragment @ 13 NONAME ; ## + _ZTV17CDelegateFragment @ 14 NONAME ; ## + _ZTV17CTestFragmentBase @ 15 NONAME ; ## + _ZTV20CDelegateDomFragment @ 16 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/group/WSSF.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/group/WSSF.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Web Service Fragment API +STIF + +The tests involve the Web Service Fragment API + + + +c:\TestFramework\TestFramework_senfragment.inic:\TestFramework\TestFramework.ini + -testmodule SenFragmentBCTest -engineini c:\TestFramework\TestFramework.ini + + + 82 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\WebSrv_SenFragment.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/group/testsf.bat --- a/apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/group/testsf.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy c:\TestFramework\TestFramework_senfragment.ini c:\TestFramework\TestFramework.ini -md e:\BCTest -md e:\BCTest\results - -ATSINTERFACE.EXE -testmodule SenFragmentBCTest - -copy c:\Logs\TestFramework\TestReport.txt e:\BCTest\results\WebSrv_SenFragment.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/sis/WebSrv_senfragment.pkg --- a/apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/sis/WebSrv_senfragment.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"WebServices Fragment"},(0x20015A27),3,0,0,TYPE=SA -(0x101F7961),0,0,0,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\SenFragmentBCTest.dll"-"!:\sys\bin\SenFragmentBCTest.dll" -"\Epoc32\winscw\c\testSF.bat"-"!:\testSF.bat" -"\Epoc32\winscw\c\testframework\testframework_senfragment.ini"-"!:\testframework\testframework_senfragment.ini" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/sis/WebSrv_senfragment.sis Binary file apicompatanamdw/bcdrivers/mw/websrv/xml_fragment_api/sis/WebSrv_senfragment.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/Bmarm/BCSmsUtilitiesTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/Bmarm/BCSmsUtilitiesTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/Bwins/BCSmsUtilitiesTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/Bwins/BCSmsUtilitiesTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/EABI/BCSmsUtilitiesTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/EABI/BCSmsUtilitiesTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/group/SG.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/group/SG.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +SDK SMS GSM Utilities API +STIF + +The tests involve the RTC-Core Telephony SDK SMS GSM Utilities + + + + -testmodule BCSmsUtilitiesTest + + + 13 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\CellularSrv_SmsGsm.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/sis/CellSrv_SMSGSMUtilities.pkg --- a/apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/sis/CellSrv_SMSGSMUtilities.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"RTC-CT_BCSmsGSMUtilities"},(0x10282CA5),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCSmsUtilitiesTest.dll"-"!:\sys\bin\BCSmsUtilitiesTest.dll" -"\Epoc32\winscw\c\testframework\TestFramework_su.ini"-"!:\TestFramework\TestFramwork_su.ini" -"\epoc32\winscw\c\testSG.bat"-"!:\testSG.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/sis/CellSrv_SMSGSMUtilities.sis Binary file apicompatanamdw/bcdrivers/os/cellularsrv/BCSmsUtilitiesTest/sis/CellSrv_SMSGSMUtilities.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/Bwins/IsvTelephonyTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/Bwins/IsvTelephonyTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int SetRequirements(class CTestModuleParam * &, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/EABI/IsvTelephonyTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/EABI/IsvTelephonyTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,8 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI23CIsvTelephonyTestEngine @ 3 NONAME ; ## + _ZTI23CIsvTelephonyTestParser @ 4 NONAME ; ## + _ZTV23CIsvTelephonyTestEngine @ 5 NONAME ; ## + _ZTV23CIsvTelephonyTestParser @ 6 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/group/ISV.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/group/ISV.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Telephony ISV API +STIF + +The tests involve the RTC-Core Telephony ISV API + + + + -testmodule IsvTelephonyTest -moduleini c:\TestFramework\IsvTelephonyTest.ini + + + 38 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\CellularSrv_IsvTelephony.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/sis/CellSrv_IsvTelephony.pkg --- a/apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/sis/CellSrv_IsvTelephony.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +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: -; -; IsvTelephonyTest.pkg - -; Languages -&EN - -; Header -#{"RTC-CT_BCIsvTelephony"},(0x10282CA6),1,0,0,TYPE=SA - -;Localised Vendor name -%{"Vendor Test EN"} - -;Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -; Target - -"\epoc32\release\armv5\urel\IsvTelephonyTest.dll"-"!:\sys\bin\IsvTelephonyTest.dll" -"\epoc32\release\armv5\urel\IsvTelephonyTest.exe"-"!:\sys\bin\IsvTelephonyTest.exe" -"\epoc32\winscw\c\TestFramework\TestFramework_isv.ini"-"!:\TestFramework\TestFramework_isv.ini" -"\epoc32\winscw\c\TestISV.bat"-"!:\TestISV.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/sis/CellSrv_IsvTelephony.sis Binary file apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/sis/CellSrv_IsvTelephony.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/group/Ecom.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/group/Ecom.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +ECom Plug-in Architecture API +TEF + +The tests involve the DeviceSrv ECom Plug-in Architecture API + + + + \ecom\SYSLIB-ECOM-PublicAPI + + + 66 + c:\Logs\Testexecute\TestResults.htme:\BCTest\results\DeviceSrv_SyslibsECOM.htm + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/group/T_ECOM.mmp --- a/apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/group/T_ECOM.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/group/T_ECOM.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -37,6 +37,8 @@ USERINCLUDE ../../common/inc SYSTEMINCLUDE /epoc32/include +SYSTEMINCLUDE /epoc32/include/platform +SYSTEMINCLUDE /epoc32/include/platform/test SYSTEMINCLUDE /epoc32/include/test LIBRARY euser.lib diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/sis/DevSrv_Ecom.pkg --- a/apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/sis/DevSrv_Ecom.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +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: -; -; -; Install file for T_ECOM.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_ECOM"},(0x2000371C),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\epoc32\RELEASE\armv5\urel\T_ECOM.exe"-"!:\sys\bin\T_ECOM.exe" -"\epoc32\winscw\c\syslibs\t_syslibs.ini"-"!:\syslibs\t_syslibs.ini" -"\epoc32\winscw\c\ecom.bat"-"!:\ecom\ecom.bat" -"\epoc32\winscw\c\ecom\SYSLIB-ECOM-PublicAPI.script"-"!:\ecom\SYSLIB-ECOM-PublicAPI.script" -"\epoc32\winscw\c\ecom\SYSLIB-ECOM-PublicAPI.tcs"-"!:\ecom\SYSLIB-ECOM-PublicAPI.tcs" -"\epoc32\winscw\c\ecom\SYSLIB-ECOM-PublicAPI.ini"-"!:\ecom\SYSLIB-ECOM-PublicAPI.ini" -"\epoc32\RELEASE\armv5\urel\TPCopyFileUtility.exe"-"!:\sys\bin\TPCopyFileUtility.exe" -"\epoc32\RELEASE\armv5\urel\TPDeleteFileUtility.exe"-"!:\sys\bin\TPDeleteFileUtility.exe" -"\epoc32\RELEASE\armv5\urel\TestProduct_PlugIn.dll"-"!:\ecom\TestProduct_PlugIn.dll" -"\epoc32\data\z\ecom\TestProduct_PlugIn.rsc"-"!:\ecom\TestProduct_PlugIn.rsc" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/sis/DevSrv_Ecom.sis Binary file apicompatanamdw/bcdrivers/os/devicesrv/SysLibs/ecom/sis/DevSrv_Ecom.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc50Test/Eabi/SystemSWMisc50Testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc50Test/Eabi/SystemSWMisc50Testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc50Test/sis/systemsw_misc.pkg --- a/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc50Test/sis/systemsw_misc.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"SystemSW_misc50"},(0x20016BA9),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\SystemSWMisc50Test.dll"-"!:\sys\bin\SystemSWMisc50Test.dll" -"\Epoc32\winscw\c\TestFramework\TestFramework_systemswmisc50.ini"-"!:\TestFramework\TestFramework_systemswmisc50.ini" -"\Epoc32\winscw\c\sysmc_c.bat"-"!:\sysmc.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/Bmarm/SystemSWMisc52TestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/Bmarm/SystemSWMisc52TestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/Bwins/SystemSWMisc52TestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/Bwins/SystemSWMisc52TestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/EABI/SystemSWMisc52TestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/EABI/SystemSWMisc52TestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/group/sysmc_c.bat --- a/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/group/sysmc_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - - -copy C:\TestFramework\TestFramework_systemswmisc52.ini C:\TestFramework\TestFramework.ini -md e:\bctest\ -md e:\bctest\results - -ATSINTERFACE.EXE -testmodule SystemSWMisc52Test - -copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\SystemSoftware_misc52.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/group/sysmc_z.bat --- a/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/SystemSWMisc52Test/group/sysmc_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -@rem -@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - - -copy z:\TestFramework\TestFramework_systemswmisc52.ini C:\TestFramework\TestFramework.ini -md e:\bctest\ -md e:\bctest\results - -ATSINTERFACE.EXE -testmodule SystemSWMisc52Test - -copy c:\Logs\TestFramework\TestReport.txt e:\bctest\results\SystemSoftware_misc52.txt \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/accessory_monitoring_api/BWINS/AccMonAPIBCTestsU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/accessory_monitoring_api/BWINS/AccMonAPIBCTestsU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int SetRequirements(class CTestModuleParam * &, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/accessory_monitoring_api/EABI/AccMonAPIBCTestsU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/accessory_monitoring_api/EABI/AccMonAPIBCTestsU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/accessory_monitoring_api/sis/DevSrv_accmonitor.pkg --- a/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/accessory_monitoring_api/sis/DevSrv_accmonitor.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"accmontest"},(0x20015A28),1,1,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\epoc32\Release\armv5\urel\AccMonAPIBCTests.dll"-"!:\sys\bin\AccMonAPIBCTests.dll" -"\epoc32\winscw\c\testacm_c.bat"-"!:\testACM.bat" -"\epoc32\winscw\c\testframework\testframework_accmon.ini"-"!:\testframework\testframework_accmon.ini" - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/central_repository_notification_handler_api/Bmarm/CenRepNotifyHandlerTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/central_repository_notification_handler_api/Bmarm/CenRepNotifyHandlerTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/central_repository_notification_handler_api/Bwins/CenRepNotifyHandlerTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/central_repository_notification_handler_api/Bwins/CenRepNotifyHandlerTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/central_repository_notification_handler_api/Eabi/CenRepNotifyHandlerTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/central_repository_notification_handler_api/Eabi/CenRepNotifyHandlerTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/feature_discovery_api/EABI/featuremanagertestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/feature_discovery_api/EABI/featuremanagertestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/feature_discovery_api/bmarm/featuremanagertestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/feature_discovery_api/bmarm/featuremanagertestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/feature_discovery_api/bwins/featuremanagertestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/feature_discovery_api/bwins/featuremanagertestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCfeaturemanagertest@@XZ @ 1 NONAME ; class Cfeaturemanagertest * LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/find_item_api/EABI/finditemenginetestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/find_item_api/EABI/finditemenginetestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/find_item_api/bmarm/finditemenginetestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/find_item_api/bmarm/finditemenginetestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/find_item_api/bwins/finditemenginetestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/find_item_api/bwins/finditemenginetestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/group/Ssw.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/group/Ssw.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,118 @@ + + +System Software API +STIF + +The tests involve the DeviceSrv System Software + + + + + -testmodule featuremanagertest + + + 3 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_FeatureManager.txt + + + -testmodule finditemenginetest + + + 6 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_FindItemEngine.txt + + + -testmodule light + + + 7 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_Light.txt + + + -testmodule PhoneParserTest + + + 9 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_PhoneParser.txt + + + -testmodule PlatformEnvTest + + + 1 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_PlatformEnv.txt + + + -testmodule PowerStateTest + + + 4 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_PowerState.txt + + + -testmodule sysutiltest + + + 7 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_SysUtil.txt + + + -testmodule stiftextresolvertest + + + 8 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_StifTextResolver.txt + + + -testmodule HwResManTest + + + 10 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_HwResMan.txt + + + -testmodule vibractrltest + + + 20 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_VibraCtrl.txt + + +c:\6edcba99.txtc:\private\10202be9\6edcba99.txt + -testmodule cenrepnotifyhandlertest + + + 10 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_CenRepNotifyHandler.txt + + + -testmodule PlatformVerTest + + + 1 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_PlatformVer.txt + + + -testmodule AccMonAPIBCTests + + + 17 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_accmonitoring.txt + + + -testmodule SystemSWMisc50Test + + + 7 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_SystemSWMisc50Test.txt + + + -testmodule SystemSWMisc52Test + + + 26 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\DeviceSrv_SystemSoftware_SystemSWMisc52Test.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/hwrm_power_state_api/Bmarm/PowerStateTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/hwrm_power_state_api/Bmarm/PowerStateTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/hwrm_power_state_api/Bwins/PowerStateTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/hwrm_power_state_api/Bwins/PowerStateTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/hwrm_power_state_api/EABI/PowerStateTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/hwrm_power_state_api/EABI/PowerStateTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/light_api/Bmarm/lightU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/light_api/Bmarm/lightU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/light_api/Bwins/lightU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/light_api/Bwins/lightU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/light_api/EABI/lightU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/light_api/EABI/lightU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/phone_parser_api/Bmarm/PhoneParserTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/phone_parser_api/Bmarm/PhoneParserTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/phone_parser_api/Bwins/PhoneParserTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/phone_parser_api/Bwins/PhoneParserTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/phone_parser_api/EABI/PhoneParserTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/phone_parser_api/EABI/PhoneParserTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/platform_environment_api/Bmarm/PlatformEnvTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/platform_environment_api/Bmarm/PlatformEnvTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/platform_environment_api/Bwins/PlatformEnvTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/platform_environment_api/Bwins/PlatformEnvTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/platform_environment_api/EABI/PlatformEnvTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/platform_environment_api/EABI/PlatformEnvTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sis/DevSrv_SystemSw.pkg --- a/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sis/DevSrv_SystemSw.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"SystemSW"},(0x10282CA2),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\featuremanagertest.dll"-"!:\sys\bin\featuremanagertest.dll" -"\Epoc32\Release\armv5\urel\finditemenginetest.dll"-"!:\sys\bin\finditemenginetest.dll" -"\Epoc32\Release\armv5\urel\light.dll"-"!:\sys\bin\light.dll" -;"\Epoc32\Release\armv5\urel\NetworkStatusTest.dll"-"!:\sys\bin\NetworkStatusTest.dll" -"\Epoc32\Release\armv5\urel\PhoneParserTest.dll"-"!:\sys\bin\PhoneParserTest.dll" -"\Epoc32\Release\armv5\urel\PlatformEnvTest.dll"-"!:\sys\bin\PlatformEnvTest.dll" -"\Epoc32\Release\armv5\urel\PowerStateTest.dll"-"!:\sys\bin\PowerStateTest.dll" -"\Epoc32\Release\armv5\urel\sysutiltest.dll"-"!:\sys\bin\sysutiltest.dll" -"\Epoc32\Release\armv5\urel\stiftextresolvertest.dll"-"!:\sys\bin\stiftextresolvertest.dll" -"\Epoc32\Release\armv5\urel\HwResManTest.dll"-"!:\sys\bin\HwResManTest.dll" -"\Epoc32\Release\armv5\urel\vibractrltest.dll"-"!:\sys\bin\vibractrltest.dll" -"\Epoc32\Release\armv5\urel\cenrepnotifyhandlertest.dll"-"!:\sys\bin\cenrepnotifyhandlertest.dll" -"\epoc32\release\armv5\urel\z\private\10202be9\6edcba99.txt"-"c:\6edcba99.txt" -"\Epoc32\Release\armv5\urel\PlatformVerTest.dll"-"!:\sys\bin\PlatformVerTest.dll" -"\epoc32\Release\armv5\urel\AccMonAPIBCTests.dll"-"!:\sys\bin\AccMonAPIBCTests.dll" -"\Epoc32\Release\armv5\urel\SystemSWMisc50Test.dll"-"!:\sys\bin\SystemSWMisc50Test.dll" -"\Epoc32\Release\armv5\urel\SystemSWMisc52Test.dll"-"!:\sys\bin\SystemSWMisc52Test.dll" -"\epoc32\winscw\c\TestFramework\TestFramework_syssw.ini"-"!:\TestFramework\TestFramework_syssw.ini" -"\Epoc32\winscw\c\syssw.bat"-"!:\syssw.bat" -"\epoc32\winscw\c\data\others\finditemtestappdata.txt"-"c:\data\others\finditemtestappdata.txt" -"\epoc32\winscw\c\data\others\FindItemTestAppDataReference.txt"-"c:\data\others\FindItemTestAppDataReference.txt" - -"..\preconfigautomation\data\vibration.exe"-"!:\sys\bin\vibration.exe" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sis/DevSrv_SystemSw.sis Binary file apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sis/DevSrv_SystemSw.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sysutil_api/Bmarm/sysutiltestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sysutil_api/Bmarm/sysutiltestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sysutil_api/Bwins/sysutiltestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sysutil_api/Bwins/sysutiltestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sysutil_api/EABI/sysutiltestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/sysutil_api/EABI/sysutiltestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/text_resolver_api/EABI/stiftextresolvertestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/text_resolver_api/EABI/stiftextresolvertestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/text_resolver_api/bmarm/STIFTEXTRESOLVERTESTU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/text_resolver_api/bmarm/STIFTEXTRESOLVERTESTU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/text_resolver_api/bwins/STIFTEXTRESOLVERTESTU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/text_resolver_api/bwins/STIFTEXTRESOLVERTESTU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCStiftextresolvertest@@XZ @ 1 NONAME ; class CStiftextresolvertest * __cdecl LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/version_info_api/Bmarm/platformvertestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/version_info_api/Bmarm/platformvertestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/version_info_api/Bwins/platformvertestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/version_info_api/Bwins/platformvertestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int SetRequirements(class CTestModuleParam * &, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/version_info_api/EABI/platformvertestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/version_info_api/EABI/platformvertestu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_api/Bmarm/HwResManTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_api/Bmarm/HwResManTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_api/Bwins/HwResManTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_api/Bwins/HwResManTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_api/Eabi/HwResManTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_api/Eabi/HwResManTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_control_api/EABI/vibractrltestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_control_api/EABI/vibractrltestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_control_api/bmarm/vibractrltestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_control_api/bmarm/vibractrltestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_control_api/bwins/vibractrltestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/devicesrv/SystemSW/vibra_control_api/bwins/vibractrltestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/graphics/fbserv/group/Gra.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/graphics/fbserv/group/Gra.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Graphics API +TEF + +The tests involve the Symbian Graphics + + + + \graphics\graphics-fbserv-publicapi -tcx \graphics\grphics-fbserv-publicapi.tcs + + + 253 + c:\Logs\Testexecute\TestResults.htme:\BCTest\results\Graphics.htm + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/graphics/fbserv/group/T_FBServAPI.mmp --- a/apicompatanamdw/bcdrivers/os/graphics/fbserv/group/T_FBServAPI.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/graphics/fbserv/group/T_FBServAPI.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -60,6 +60,10 @@ SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/test +SYSTEMINCLUDE /epoc32/include/platform/test +SYSTEMINCLUDE /epoc32/include/platform +SYSTEMINCLUDE /epoc32/include/platform/graphics + APP_LAYER_SYSTEMINCLUDE LIBRARY euser.lib diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/graphics/fbserv/src/T_DataFbsBitmap.cpp --- a/apicompatanamdw/bcdrivers/os/graphics/fbserv/src/T_DataFbsBitmap.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/graphics/fbserv/src/T_DataFbsBitmap.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -25,6 +25,7 @@ // User includes #include "T_DataFbsBitmap.h" #include "T_GraphicsUtil.h" +#include "bitmapuid.h" /*@{*/ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/graphics/sis/Graphics.pkg --- a/apicompatanamdw/bcdrivers/os/graphics/sis/Graphics.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +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: -; -; -; Install file for T_FBServAPI.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"symbian_graphics"},(0x20003720),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_FBServAPI.exe"-"!:\sys\bin\T_FBServAPI.exe" -"\Epoc32\winscw\c\graphics\t_graphics.ini"-"!:\graphics\t_graphics.ini" -"\Epoc32\winscw\c\graphics\graphics.bat"-"!:\graphics\graphics.bat" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-PublicApi.script" - -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-bitmaputil-publicapi.tcs"-"!:\graphics\graphics-fbserv-bitmaputil-publicapi.tcs" -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-fbsbitmap-publicapi.tcs"-"!:\graphics\graphics-fbserv-fbsbitmap-publicapi.tcs" -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-fbscolor256bitmaputil-publicapi.tcs"-"!:\graphics\graphics-fbserv-fbscolor256bitmaputil-publicapi.tcs" -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-fbsfont-publicapi.tcs"-"!:\graphics\graphics-fbserv-fbsfont-publicapi.tcs" -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-fbssession-publicapi.tcs"-"!:\graphics\graphics-fbserv-fbssession-publicapi.tcs" -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-fbstypefacestore-publicapi.tcs"-"!:\graphics\graphics-fbserv-fbstypefacestore-publicapi.tcs" -"\Epoc32\winscw\c\graphics\GRAPHICS-fbserv-publicapi.tcs"-"!:\graphics\graphics-fbserv-publicapi.tcs" - -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini" -"\Epoc32\winscw\c\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini" - -"\Epoc32\winscw\c\graphics\t_fbservapi\empty_file.txt"-"!:\graphics\t_fbservapi\empty_file.txt" -"\Epoc32\winscw\c\graphics\t_fbservapi\testfontfb.gdr"-"!:\graphics\t_fbservapi\testfontfb.gdr" -"\Epoc32\winscw\c\graphics\t_fbservapi\test_bitmap.mbm"-"!:\graphics\t_fbservapi\test_bitmap.mbm" -"\Epoc32\winscw\c\graphics\t_fbservapi\test_bitmap_offset8.mbm"-"!:\graphics\t_fbservapi\test_bitmap_offset8.mbm" -"\Epoc32\winscw\c\graphics\t_fbservapi\scaniline_10bytes.txt"-"!:\graphics\t_fbservapi\scaniline_10bytes.txt" -"\Epoc32\winscw\c\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm"-"!:\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm" -"\Epoc32\winscw\c\graphics\t_fbservapi\test_bitmap_32x8.mbm"-"!:\graphics\t_fbservapi\test_bitmap_32x8.mbm" -"\Epoc32\winscw\c\graphics\t_fbservapi\test_bitmap_rom.rbm"-"!:\graphics\t_fbservapi\test_bitmap_rom.rbm" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/graphics/sis/Graphics.sis Binary file apicompatanamdw/bcdrivers/os/graphics/sis/Graphics.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/kernelhwsrv/base/sis/KernelSrv_Base.pkg --- a/apicompatanamdw/bcdrivers/os/kernelhwsrv/base/sis/KernelSrv_Base.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,105 +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: -; -; -; Install file for t_sfsrv.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"Symbian_Base"},(0x20000F7D),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\t_sfsrv.exe"-"!:\sys\bin\t_sfsrv.exe" -"\Epoc32\release\armv5\urel\t_prompt.exe"-"!:\sys\bin\t_prompt.exe" -"\Epoc32\winscw\c\base\base.bat"-"!:\base\base.bat" -"\Epoc32\release\armv5\urel\T_TESTFSY1.fsy"-"!:\sys\bin\T_TESTFSY1.fsy" -"\Epoc32\release\armv5\urel\T_TestFXT.fxt"-"!:\sys\bin\T_TestFXT.fxt" - - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi.script"-"!:\base\PBASE-F32-RFS-PublicApi.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi.tcs"-"!:\base\PBASE-F32-RFS-PublicApi.tcs" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-ANY.script"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-ANY.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-ANY.tcs"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-ANY.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Mounts-PublicApi-ANY.script"-"!:\base\PBASE-F32-RFS-Mounts-PublicApi-ANY.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Mounts-PublicApi-ANY.tcs"-"!:\base\PBASE-F32-RFS-Mounts-PublicApi-ANY.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Files-PublicApi-ANY.script"-"!:\base\PBASE-F32-RFS-Files-PublicApi-ANY.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Files-PublicApi-ANY.tcs"-"!:\base\PBASE-F32-RFS-Files-PublicApi-ANY.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Misc-PublicApi-ANY.script"-"!:\base\PBASE-F32-RFS-Misc-PublicApi-ANY.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Misc-PublicApi-ANY.tcs"-"!:\base\PBASE-F32-RFS-Misc-PublicApi-ANY.tcs" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi-OS.script"-"!:\base\PBASE-F32-RFS-PublicApi-OS.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi-OS.tcs"-"!:\base\PBASE-F32-RFS-PublicApi-OS.tcs" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-RAM.script"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-RAM.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-RAM.tcs"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-RAM.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Files-PublicApi-RAM.script"-"!:\base\PBASE-F32-RFS-Files-PublicApi-RAM.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Files-PublicApi-RAM.tcs"-"!:\base\PBASE-F32-RFS-Files-PublicApi-RAM.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Misc-PublicApi-RAM.script"-"!:\base\PBASE-F32-RFS-Misc-PublicApi-RAM.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Misc-PublicApi-RAM.tcs"-"!:\base\PBASE-F32-RFS-Misc-PublicApi-RAM.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.script"-"!:\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.tcs"-"!:\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.tcs" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi-ROM.script"-"!:\base\PBASE-F32-RFS-PublicApi-ROM.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi-ROM.tcs"-"!:\base\PBASE-F32-RFS-PublicApi-ROM.tcs" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-REM.script"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-REM.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-REM.tcs"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-REM.tcs" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.script"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.script" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.tcs"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.tcs" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-ANY.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini"-"!:\base\PBASE-F32-RFS-Mounts-PublicApi-ANY.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Files-PublicApi-ANY.ini"-"!:\base\PBASE-F32-RFS-Files-PublicApi-ANY.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini"-"!:\base\PBASE-F32-RFS-Misc-PublicApi-ANY.ini" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi-OS.ini"-"!:\base\PBASE-F32-RFS-PublicApi-OS.ini" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-RAM.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini"-"!:\base\PBASE-F32-RFS-Files-PublicApi-RAM.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini"-"!:\base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini"-"!:\base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-PublicApi-ROM.ini"-"!:\base\PBASE-F32-RFS-PublicApi-ROM.ini" - -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-REM.ini"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-REM.ini" -"\Epoc32\winscw\c\base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini"-"!:\base\PBASE-F32-RFS-Drives-PublicApi-REM-manual.ini" - -"\Epoc32\winscw\c\base\armv5\base_f32_env.ini"-"!:\base\base_f32_env.ini" - -"\Epoc32\winscw\c\base\t_sfsrv\test.txt"-"!:\base\t_sfsrv\test.txt" -"\Epoc32\winscw\c\base\t_sfsrv\USBLOAD.ZIP"-"!:\base\t_sfsrv\USBLOAD.ZIP" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/kernelhwsrv/base/sis/KernelSrv_Base.sis Binary file apicompatanamdw/bcdrivers/os/kernelhwsrv/base/sis/KernelSrv_Base.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/kernelhwsrv/base/validation/f32/sfsrv/group/Base.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/kernelhwsrv/base/validation/f32/sfsrv/group/Base.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Base API +TEF + +The tests involve the KernelSrv Base + + + + \base\PBASE-F32-RFS-PublicApi + + + 281 + c:\Logs\Testexecute\TestResults.htme:\BCTest\results\KernelhwSrv_Base.htm + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/bmarm/testlbslocacquisitionU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/bmarm/testlbslocacquisitionU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/bwins/testlbslocacquisitionu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/bwins/testlbslocacquisitionu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/eabi/testlbslocacquisitionu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/eabi/testlbslocacquisitionu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,13 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZTI15CTestPositioner @ 2 NONAME ; ## + _ZTI17CTestPositionInfo @ 3 NONAME ; ## + _ZTI19CTestPositionServer @ 4 NONAME ; ## + _ZTI23CTestPositionCourseInfo @ 5 NONAME ; ## + _ZTI24CTestPositionGenericInfo @ 6 NONAME ; ## + _ZTV15CTestPositioner @ 7 NONAME ; ## + _ZTV17CTestPositionInfo @ 8 NONAME ; ## + _ZTV19CTestPositionServer @ 9 NONAME ; ## + _ZTV23CTestPositionCourseInfo @ 10 NONAME ; ## + _ZTV24CTestPositionGenericInfo @ 11 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/group/locAqu.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/group/locAqu.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,20 @@ + + +Location Acquisition API +STIF + +The tests involve the Location Acquisition API + + + +C:\TestFramework\TestFramework_locaqu.iniC:\TestFramework\TestFramework.ini +C:\Private\101f97b2\LastKnownPos.dat + -testmodule testscripter -config c:\testframework\testlbslocacquisition.cfg + + + 199 + c:\Logs\TestFramework\TestReport.txte:\bctest\results\Lbs_LocAquisition.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/sis/Lbs_LocAcquisition.SIS Binary file apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/sis/Lbs_LocAcquisition.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/sis/Lbs_LocAcquisition.pkg --- a/apicompatanamdw/bcdrivers/os/lbs/LocAcquisition/sis/Lbs_LocAcquisition.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +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: -; -; LocAquisition_armv5.pkg -;Languages -&EN - -;Header - -#{"LocAquisition"},(0x10282c88),1,0,0,TYPE=SA - -;Localised Vendor name -%{"Vendor-EN"} - -;Unique Vendor name -:"Vendor" - -;Supports Series 60 v 3.0 -[0x101F7961], 3, *, *, {"Series60ProductID"} - -; Install files - -"\epoc32\release\armv5\urel\testlbslocacquisition.dll" -"!:\sys\bin\testlbslocacquisition.dll" -"\Epoc32\winscw\c\testframework\Testframework_LocAqu.ini"-"!:\TestFramework\testframework_LocAqu.ini" -"\Epoc32\winscw\c\testframework\testlbslocacquisition.cfg"-"!:\TestFramework\testlbslocacquisition.cfg" -"\epoc32\winscw\c\locaqu_c.bat"-"!:\locaqu.bat" - -; default NMEA file -;"\epoc32\data\z\resource\default.nme"-"!:\resource\default.nme" - diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/common/src/T_MMUtil.cpp --- a/apicompatanamdw/bcdrivers/os/mm/common/src/T_MMUtil.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/mm/common/src/T_MMUtil.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -18,7 +18,7 @@ #include #include - +#include "midiclientutility.h" // User Includes #include "T_MMUtil.h" #include "DataWrapperBase.h" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/ecam/T_Camera/group/Camera.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/ecam/T_Camera/group/Camera.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Onboard Camera API +TEF + +The tests involve the Multimedia Onboard Camera API + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-ECM-PublicApi + + + 64 + c:\logs\testexecute\testresults.htme:\BCTest\results\MM_t_camera.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/ecam/T_Camera/sis/MM_T_Camera.pkg --- a/apicompatanamdw/bcdrivers/os/mm/ecam/T_Camera/sis/MM_T_Camera.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +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: -; -; -; Install file for T_Camera.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_Camera"},(0x20000F7B),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_Camera.exe"-"!:\sys\bin\T_Camera.exe" -"\Epoc32\winscw\c\multimedia\tcamera.bat"-"!:\multimedia\tcamera.bat" -"\Epoc32\winscw\c\multimedia\MM-ECM-PublicApi.script"-"!:\multimedia\MM-ECM-PublicApi.script" -"\Epoc32\winscw\c\multimedia\MM-ECM-PublicApi.tcs"-"!:\multimedia\MM-ECM-PublicApi.tcs" -"\Epoc32\winscw\c\multimedia\MM-ECM-PublicApi.ini"-"!:\multimedia\MM-ECM-PublicApi.ini" -"\Epoc32\winscw\c\multimedia\102070CC.txt"-"!:\102070CC.txt" - - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/ecam/T_Camera/sis/MM_T_Camera.sis Binary file apicompatanamdw/bcdrivers/os/mm/ecam/T_Camera/sis/MM_T_Camera.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/icl/T_ImageDecoder/group/Dec.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/icl/T_ImageDecoder/group/Dec.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +ImageDecoder API +TEF + +The tests involve the Symbian Image Converter Library API/ImageDecoder + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-ICL-DECDE-PublicApi + + + 165 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_ICLDecoder.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/icl/T_ImageDecoder/sis/MM_ImageDecoder.pkg --- a/apicompatanamdw/bcdrivers/os/mm/icl/T_ImageDecoder/sis/MM_ImageDecoder.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +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: -; -; -; Install file for T_ImageDecoder.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_ImageDecoder"},(0x20000F72),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_ImageDecoder.exe"-"!:\sys\bin\T_ImageDecoder.exe" -"\Epoc32\winscw\c\multimedia\dec.bat"-"!:\multimedia\dec.bat" -"\Epoc32\winscw\c\multimedia\MM-ICL-DECDE-PublicApi.script"-"!:\multimedia\MM-ICL-DECDE-PublicApi.script" -"\Epoc32\winscw\c\multimedia\MM-ICL-DECDE-PublicApi.tcs"-"!:\multimedia\MM-ICL-DECDE-PublicApi.tcs" -"\Epoc32\winscw\c\multimedia\MM-ICL-DECDE-PublicApi.ini"-"!:\multimedia\MM-ICL-DECDE-PublicApi.ini" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.apm"-"!:\multimedia\t_imagedecoder\24bit.apm" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.bmp"-"!:\multimedia\t_imagedecoder\1bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.bmp"-"!:\multimedia\t_imagedecoder\4bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.bmp"-"!:\multimedia\t_imagedecoder\8bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.bmp"-"!:\multimedia\t_imagedecoder\24bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.clp"-"!:\multimedia\t_imagedecoder\24bit.clp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.gif"-"!:\multimedia\t_imagedecoder\1bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\2bit.gif"-"!:\multimedia\t_imagedecoder\2bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.gif"-"!:\multimedia\t_imagedecoder\4bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\6bit.gif"-"!:\multimedia\t_imagedecoder\6bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.gif"-"!:\multimedia\t_imagedecoder\8bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\commented.gif"-"!:\multimedia\t_imagedecoder\commented.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.ico"-"!:\multimedia\t_imagedecoder\4bit.ico" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.ico"-"!:\multimedia\t_imagedecoder\8bit.ico" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.jpg"-"!:\multimedia\t_imagedecoder\8bit.jpg" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.jpg"-"!:\multimedia\t_imagedecoder\24bit.jpg" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\thumbnail.jpg"-"!:\multimedia\t_imagedecoder\thumbnail.jpg" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\commented.jpg"-"!:\multimedia\t_imagedecoder\commented.jpg" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec1bit.mbm"-"!:\multimedia\t_imagedecoder\dec1bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec2bit.mbm"-"!:\multimedia\t_imagedecoder\dec2bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec4bit.mbm"-"!:\multimedia\t_imagedecoder\dec4bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec8bit.mbm"-"!:\multimedia\t_imagedecoder\dec8bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec16bit.mbm"-"!:\multimedia\t_imagedecoder\dec16bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec24bit.mbm"-"!:\multimedia\t_imagedecoder\dec24bit.mbm" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.mng"-"!:\multimedia\t_imagedecoder\24bit.mng" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.ota"-"!:\multimedia\t_imagedecoder\1bit.ota" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.png"-"!:\multimedia\t_imagedecoder\1bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.png"-"!:\multimedia\t_imagedecoder\4bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.png"-"!:\multimedia\t_imagedecoder\8bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.png"-"!:\multimedia\t_imagedecoder\24bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bitG3.tif"-"!:\multimedia\t_imagedecoder\1bitG3.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bitG4.tif"-"!:\multimedia\t_imagedecoder\1bitG4.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.tif"-"!:\multimedia\t_imagedecoder\1bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.tif"-"!:\multimedia\t_imagedecoder\4bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.tif"-"!:\multimedia\t_imagedecoder\8bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.tif"-"!:\multimedia\t_imagedecoder\24bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.wbmp"-"!:\multimedia\t_imagedecoder\1bit.wbmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.wmf"-"!:\multimedia\t_imagedecoder\24bit.wmf" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\corrupted.bmp"-"!:\multimedia\t_imagedecoder\corrupted.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\partial.bmp"-"!:\multimedia\t_imagedecoder\partial.bmp" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/icl/T_ImageDecoder/sis/MM_ImageDecoder.sis Binary file apicompatanamdw/bcdrivers/os/mm/icl/T_ImageDecoder/sis/MM_ImageDecoder.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/icl/T_ImageEncoder/group/Enc.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/icl/T_ImageEncoder/group/Enc.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +ImageEncoder API +TEF + +The tests involve the Symbian Image Converter Library API/ImageEncoder + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-ICL-ENCDE-PublicApi + + + 60 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_ICLEncoder.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/icl/T_ImageEncoder/sis/MM_ImageEncoder.pkg --- a/apicompatanamdw/bcdrivers/os/mm/icl/T_ImageEncoder/sis/MM_ImageEncoder.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +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: -; -; -; Install file for T_ImageEncoder.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_ImageEncoder"},(0x20000F73),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_ImageEncoder.exe"-"!:\sys\bin\T_ImageEncoder.exe" -"\Epoc32\winscw\c\multimedia\enc.bat"-"!:\multimedia\enc.bat" -"\Epoc32\winscw\c\multimedia\MM-ICL-ENCDE-PublicApi.script"-"!:\multimedia\MM-ICL-ENCDE-PublicApi.script" -"\Epoc32\winscw\c\multimedia\MM-ICL-ENCDE-PublicApi.tcs"-"!:\multimedia\MM-ICL-ENCDE-PublicApi.tcs" -"\Epoc32\winscw\c\multimedia\MM-ICL-ENCDE-PublicApi.ini"-"!:\multimedia\MM-ICL-ENCDE-PublicApi.ini" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc1bit.mbm"-"!:\multimedia\t_imageencoder\enc1bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc2bit.mbm"-"!:\multimedia\t_imageencoder\enc2bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc4bit.mbm"-"!:\multimedia\t_imageencoder\enc4bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc8bit.mbm"-"!:\multimedia\t_imageencoder\enc8bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc16bit.mbm"-"!:\multimedia\t_imageencoder\enc16bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc24bit.mbm"-"!:\multimedia\t_imageencoder\enc24bit.mbm" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/icl/T_ImageEncoder/sis/MM_ImageEncoder.sis Binary file apicompatanamdw/bcdrivers/os/mm/icl/T_ImageEncoder/sis/MM_ImageEncoder.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioConvertUtility/group/Acu.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioConvertUtility/group/Acu.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Audio Convert Utility API +TEF + +The tests involve the Multimedia Media Client Audio API Audio Convert Utility + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI + + + 118 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_MMFAudioConvertUtility.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioConvertUtility/sis/MM_AudioConvertUtility.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioConvertUtility/sis/MM_AudioConvertUtility.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +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: -; -; -; Install file for T_MdaAudioConvertUtility.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MdaAudioConvertUtility"},(0x20000F74),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MdaAudioConvertUtility.exe"-"!:\sys\bin\T_MdaAudioConvertUtility.exe" -"\Epoc32\winscw\c\multimedia\tacu.bat"-"!:\multimedia\tacu.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\note.wav"-"!:\multimedia\t_mdaaudioconvertutility\note.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\corrupted.wav"-"!:\multimedia\t_mdaaudioconvertutility\corrupted.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\note.raw"-"!:\multimedia\t_mdaaudioconvertutility\note.raw" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\explode.wav"-"!:\multimedia\t_mdaaudioconvertutility\explode.wav" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioConvertUtility/sis/MM_AudioConvertUtility.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioConvertUtility/sis/MM_AudioConvertUtility.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioInputStream/group/Ais.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioInputStream/group/Ais.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Media Client Audio Input Stream API +TEF + +The tests involve the Multimedia Media Client Audio Input Stream API + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-ACLNT-INPT-PublicAPI + + + 15 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_MMFAudioInputStream.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioInputStream/sis/MM_AudioInputStream.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioInputStream/sis/MM_AudioInputStream.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +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: -; -; -; Install file for T_MdaAudioInputStream.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MdaAudioInputStream"},(0x20000F75),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MdaAudioInputStream.exe"-"!:\sys\bin\T_MdaAudioInputStream.exe" -"\Epoc32\winscw\c\multimedia\tais.bat"-"!:\multimedia\tais.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.ini" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioInputStream/sis/MM_AudioInputStream.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioInputStream/sis/MM_AudioInputStream.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/group/Aos.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/group/Aos.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Media Client Audio Output Stream API +TEF + +The tests involve the Multimedia Media Client Audio Output Stream API + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI + + + 18 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_MMFAudioOutputStream.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/group/T_MdaAudioOutputStream.mmp --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/group/T_MdaAudioOutputStream.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/group/T_MdaAudioOutputStream.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -36,7 +36,11 @@ SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/test +SYSTEMINCLUDE /epoc32/include/platform/test +SYSTEMINCLUDE /epoc32/include/platform SYSTEMINCLUDE /epoc32/include/mmf/plugin +SYSTEMINCLUDE /epoc32/include/mmf/common + APP_LAYER_SYSTEMINCLUDE LIBRARY euser.lib diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/sis/MM_AudioOutputStream.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/sis/MM_AudioOutputStream.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +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: -; -; -; Install file for T_MdaAudioOutputStream.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MdaAudioOutputStream"},(0x20000F76),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MdaAudioOutputStream.exe"-"!:\sys\bin\T_MdaAudioOutputStream.exe" -"\Epoc32\winscw\c\multimedia\taos.bat"-"!:\multimedia\taos.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_mdaaudiooutputstream\MM-MMF-ACLNT-OUTPT-PublicAPI.raw"-"!:\multimedia\t_mdaaudiooutputstream\MM-MMF-ACLNT-OUTPT-PublicAPI.raw" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/sis/MM_AudioOutputStream.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioOutputStream/sis/MM_AudioOutputStream.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioPlayerUtility/group/Apu.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioPlayerUtility/group/Apu.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Audio Player Utility API +TEF + +The tests involve the Multimedia Media Client Audio API Audio Player Utility + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-ACLNT-PLYR-PublicAPI + + + 113 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_MMFAudioPlayerUtility.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioPlayerUtility/sis/MM_AudioPlayerUtility.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioPlayerUtility/sis/MM_AudioPlayerUtility.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +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: -; -; -; Install file for T_MdaAudioPlayerUtility.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MdaAudioPlayerUtility"},(0x20000F77),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MdaAudioPlayerUtility.exe"-"!:\sys\bin\T_MdaAudioPlayerUtility.exe" -"\Epoc32\winscw\c\multimedia\tapu.bat"-"!:\multimedia\tapu.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\test.wav"-"!:\multimedia\t_mdaaudioplayerutility\test.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\test.bad"-"!:\multimedia\t_mdaaudioplayerutility\test.bad" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\test_err.wav"-"!:\multimedia\t_mdaaudioplayerutility\test_err.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\empty.wav"-"!:\multimedia\t_mdaaudioplayerutility\empty.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\answeringmachine.wav"-"!:\multimedia\t_mdaaudioplayerutility\answeringmachine.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\explode.au"-"!:\multimedia\t_mdaaudioplayerutility\explode.au" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioPlayerUtility/sis/MM_AudioPlayerUtility.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioPlayerUtility/sis/MM_AudioPlayerUtility.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioRecorderUtility/group/Aru.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioRecorderUtility/group/Aru.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Audio Recorder Utility API +TEF + +The tests involve the Multimedia Media Client Audio API Audio Recorder Utility + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI + + + 106 + c:\logs\testexecute\testresults.htme:\bctest\results\MM_MMFAudioRecorderUtility.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioRecorderUtility/sis/MM_AudioRecorderUtility.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioRecorderUtility/sis/MM_AudioRecorderUtility.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +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: -; -; -; Install file for T_MdaAudioRecorderUtility.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MdaAudioRecorderUtility"},(0x20000F78),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MdaAudioRecorderUtility.exe"-"!:\sys\bin\T_MdaAudioRecorderUtility.exe" -"\Epoc32\winscw\c\multimedia\taru.bat"-"!:\multimedia\taru.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\T_MdaAudioRecorderUtility\pcm16stereo8khz.wav"-"!:\multimedia\T_MdaAudioRecorderUtility\pcm16stereo8khz.wav" -"\Epoc32\winscw\c\multimedia\T_MdaAudioRecorderUtility\corrupted.wav"-"!:\multimedia\T_MdaAudioRecorderUtility\corrupted.wav" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioRecorderUtility/sis/MM_AudioRecorderUtility.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioRecorderUtility/sis/MM_AudioRecorderUtility.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioToneUtility/group/MdaTone.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioToneUtility/group/MdaTone.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +Media Audio Tone API +TEF + +The tests involve the Multimedia Media Client Audio API MDA Audio Tone Utility + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-ACLNT-TONE-PublicAPI + + + 62 + c:\logs\testexecute\testresults.htme:\BCTest\results\MM_MMFtmdaaudiotoneutility.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioToneUtility/sis/MM_T_MdaAudioToneUtility.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioToneUtility/sis/MM_T_MdaAudioToneUtility.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +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: -; -; -; Install file for T_MdaAudioToneUtility.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MdaAudioToneUtility"},(0x20000F79),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MdaAudioToneUtility.exe"-"!:\sys\bin\T_MdaAudioToneUtility.exe" -"\Epoc32\winscw\c\multimedia\tmdtone.bat"-"!:\multimedia\tmdtone.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_audiotoneutility\sequence1.sqn"-"!:\multimedia\t_audiotoneutility\sequence1.sqn" -"\Epoc32\winscw\c\multimedia\t_audiotoneutility\sequence2.sqn"-"!:\multimedia\t_audiotoneutility\sequence2.sqn" -"\Epoc32\winscw\c\multimedia\t_audiotoneutility\badsequence.sqn"-"!:\multimedia\t_audiotoneutility\badsequence.sqn" -;"\Epoc32\winscw\c\multimedia\t_multimedia.ini"-"!:\multimedia\t_multimedia.ini" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioToneUtility/sis/MM_T_MdaAudioToneUtility.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MdaAudioToneUtility/sis/MM_T_MdaAudioToneUtility.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MidiClientUtility/group/Midi.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/mm/mmf/T_MidiClientUtility/group/Midi.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,19 @@ + + +MidiClient API +TEF + +The tests involve the Multimedia MidiClient API + + + +C:\data\t_multimedia.iniC:\multimedia\t_multimedia.ini + \multimedia\MM-MMF-MIDI-PublicAPI + + + 142 + c:\logs\testexecute\testresults.htme:\BCTest\results\MM_MMFtmidiclientutility.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MidiClientUtility/sis/MM_T_MidiClientUtility.pkg --- a/apicompatanamdw/bcdrivers/os/mm/mmf/T_MidiClientUtility/sis/MM_T_MidiClientUtility.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +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: -; -; -; Install file for T_MidiClientUtility.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MidiClientUtility"},(0x20000F7A),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\Epoc32\release\armv5\urel\T_MidiClientUtility.exe"-"!:\sys\bin\T_MidiClientUtility.exe" -"\Epoc32\winscw\c\multimedia\tmidi.bat"-"!:\multimedia\tmidi.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-MIDI-PublicAPI.script"-"!:\multimedia\MM-MMF-MIDI-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-MIDI-PublicAPI.tcs"-"!:\multimedia\MM-MMF-MIDI-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-MIDI-PublicAPI.ini"-"!:\multimedia\MM-MMF-MIDI-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_midiclientutility\midi.mid"-"!:\multimedia\t_midiclientutility\midi.mid" -"\Epoc32\winscw\c\multimedia\t_midiclientutility\textmidi.mid"-"!:\multimedia\t_midiclientutility\textmidi.mid" -"\Epoc32\winscw\c\multimedia\t_midiclientutility\sample.gm"-"!:\multimedia\t_midiclientutility\sample.gm" -;"\Epoc32\winscw\c\multimedia\t_multimedia.ini"-"!:\multimedia\t_multimedia.ini" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/mmf/T_MidiClientUtility/sis/MM_T_MidiClientUtility.sis Binary file apicompatanamdw/bcdrivers/os/mm/mmf/T_MidiClientUtility/sis/MM_T_MidiClientUtility.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/mm/sis/MM.pkg --- a/apicompatanamdw/bcdrivers/os/mm/sis/MM.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,179 +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: -; -; -; Install file for T_MdaAudioConvertUtility.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_MMCommon"},(0x20000F70),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;T_ImageEncoder -"\Epoc32\release\armv5\urel\T_ImageEncoder.exe"-"!:\sys\bin\T_ImageEncoder.exe" -"\Epoc32\winscw\c\multimedia\enc.bat"-"!:\multimedia\enc.bat" -"\Epoc32\winscw\c\multimedia\MM-ICL-ENCDE-PublicApi.script"-"!:\multimedia\MM-ICL-ENCDE-PublicApi.script" -"\Epoc32\winscw\c\multimedia\MM-ICL-ENCDE-PublicApi.tcs"-"!:\multimedia\MM-ICL-ENCDE-PublicApi.tcs" -"\Epoc32\winscw\c\multimedia\MM-ICL-ENCDE-PublicApi.ini"-"!:\multimedia\MM-ICL-ENCDE-PublicApi.ini" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc1bit.mbm"-"!:\multimedia\t_imageencoder\enc1bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc2bit.mbm"-"!:\multimedia\t_imageencoder\enc2bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc4bit.mbm"-"!:\multimedia\t_imageencoder\enc4bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc8bit.mbm"-"!:\multimedia\t_imageencoder\enc8bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc16bit.mbm"-"!:\multimedia\t_imageencoder\enc16bit.mbm" -"\Epoc32\Data\z\multimedia\t_imageencoder\enc24bit.mbm"-"!:\multimedia\t_imageencoder\enc24bit.mbm" - - -;T_ImageDecoder -"\Epoc32\release\armv5\urel\T_ImageDecoder.exe"-"!:\sys\bin\T_ImageDecoder.exe" -"\Epoc32\winscw\c\multimedia\dec.bat"-"!:\multimedia\dec.bat" -"\Epoc32\winscw\c\multimedia\MM-ICL-DECDE-PublicApi.script"-"!:\multimedia\MM-ICL-DECDE-PublicApi.script" -"\Epoc32\winscw\c\multimedia\MM-ICL-DECDE-PublicApi.tcs"-"!:\multimedia\MM-ICL-DECDE-PublicApi.tcs" -"\Epoc32\winscw\c\multimedia\MM-ICL-DECDE-PublicApi.ini"-"!:\multimedia\MM-ICL-DECDE-PublicApi.ini" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.apm"-"!:\multimedia\t_imagedecoder\24bit.apm" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.bmp"-"!:\multimedia\t_imagedecoder\1bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.bmp"-"!:\multimedia\t_imagedecoder\4bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.bmp"-"!:\multimedia\t_imagedecoder\8bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.bmp"-"!:\multimedia\t_imagedecoder\24bit.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.clp"-"!:\multimedia\t_imagedecoder\24bit.clp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.gif"-"!:\multimedia\t_imagedecoder\1bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\2bit.gif"-"!:\multimedia\t_imagedecoder\2bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.gif"-"!:\multimedia\t_imagedecoder\4bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\6bit.gif"-"!:\multimedia\t_imagedecoder\6bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.gif"-"!:\multimedia\t_imagedecoder\8bit.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\commented.gif"-"!:\multimedia\t_imagedecoder\commented.gif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.ico"-"!:\multimedia\t_imagedecoder\4bit.ico" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.ico"-"!:\multimedia\t_imagedecoder\8bit.ico" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.jpg"-"!:\multimedia\t_imagedecoder\8bit.jpg" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.jpg"-"!:\multimedia\t_imagedecoder\24bit.jpg" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\thumbnail.jpg"-"!:\multimedia\t_imagedecoder\thumbnail.jpg" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\commented.jpg"-"!:\multimedia\t_imagedecoder\commented.jpg" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec1bit.mbm"-"!:\multimedia\t_imagedecoder\dec1bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec2bit.mbm"-"!:\multimedia\t_imagedecoder\dec2bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec4bit.mbm"-"!:\multimedia\t_imagedecoder\dec4bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec8bit.mbm"-"!:\multimedia\t_imagedecoder\dec8bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec16bit.mbm"-"!:\multimedia\t_imagedecoder\dec16bit.mbm" -"\Epoc32\Data\z\multimedia\t_imagedecoder\dec24bit.mbm"-"!:\multimedia\t_imagedecoder\dec24bit.mbm" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.mng"-"!:\multimedia\t_imagedecoder\24bit.mng" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.ota"-"!:\multimedia\t_imagedecoder\1bit.ota" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.png"-"!:\multimedia\t_imagedecoder\1bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.png"-"!:\multimedia\t_imagedecoder\4bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.png"-"!:\multimedia\t_imagedecoder\8bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.png"-"!:\multimedia\t_imagedecoder\24bit.png" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bitG3.tif"-"!:\multimedia\t_imagedecoder\1bitG3.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bitG4.tif"-"!:\multimedia\t_imagedecoder\1bitG4.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.tif"-"!:\multimedia\t_imagedecoder\1bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\4bit.tif"-"!:\multimedia\t_imagedecoder\4bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\8bit.tif"-"!:\multimedia\t_imagedecoder\8bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.tif"-"!:\multimedia\t_imagedecoder\24bit.tif" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\1bit.wbmp"-"!:\multimedia\t_imagedecoder\1bit.wbmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\24bit.wmf"-"!:\multimedia\t_imagedecoder\24bit.wmf" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\corrupted.bmp"-"!:\multimedia\t_imagedecoder\corrupted.bmp" -"\Epoc32\winscw\c\multimedia\t_imagedecoder\partial.bmp"-"!:\multimedia\t_imagedecoder\partial.bmp" - -;T_MdaAudioConvertUtility -"\Epoc32\release\armv5\urel\T_MdaAudioConvertUtility.exe"-"!:\sys\bin\T_MdaAudioConvertUtility.exe" -"\Epoc32\winscw\c\multimedia\tacu.bat"-"!:\multimedia\tacu.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-CNVRT-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\note.wav"-"!:\multimedia\t_mdaaudioconvertutility\note.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\corrupted.wav"-"!:\multimedia\t_mdaaudioconvertutility\corrupted.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\note.raw"-"!:\multimedia\t_mdaaudioconvertutility\note.raw" -"\Epoc32\winscw\c\multimedia\t_mdaaudioconvertutility\explode.wav"-"!:\multimedia\t_mdaaudioconvertutility\explode.wav" - - -;T_MdaAudioInputStream -"\Epoc32\release\armv5\urel\T_MdaAudioInputStream.exe"-"!:\sys\bin\T_MdaAudioInputStream.exe" -"\Epoc32\winscw\c\multimedia\tais.bat"-"!:\multimedia\tais.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-INPT-PublicAPI.ini" - - -;T_MdaAudioOutputStream -"\Epoc32\release\armv5\urel\T_MdaAudioOutputStream.exe"-"!:\sys\bin\T_MdaAudioOutputStream.exe" -"\Epoc32\winscw\c\multimedia\taos.bat"-"!:\multimedia\taos.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-OUTPT-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_mdaaudiooutputstream\MM-MMF-ACLNT-OUTPT-PublicAPI.raw"-"!:\multimedia\t_mdaaudiooutputstream\MM-MMF-ACLNT-OUTPT-PublicAPI.raw" - -;T_MdaAudioPlayerUtility -"\Epoc32\release\armv5\urel\T_MdaAudioPlayerUtility.exe"-"!:\sys\bin\T_MdaAudioPlayerUtility.exe" -"\Epoc32\winscw\c\multimedia\tapu.bat"-"!:\multimedia\tapu.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-PLYR-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\test.wav"-"!:\multimedia\t_mdaaudioplayerutility\test.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\test.bad"-"!:\multimedia\t_mdaaudioplayerutility\test.bad" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\test_err.wav"-"!:\multimedia\t_mdaaudioplayerutility\test_err.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\empty.wav"-"!:\multimedia\t_mdaaudioplayerutility\empty.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\answeringmachine.wav"-"!:\multimedia\t_mdaaudioplayerutility\answeringmachine.wav" -"\Epoc32\winscw\c\multimedia\t_mdaaudioplayerutility\explode.au"-"!:\multimedia\t_mdaaudioplayerutility\explode.au" - -;T_MdaAudioRecorderUtility -"\Epoc32\release\armv5\urel\T_MdaAudioRecorderUtility.exe"-"!:\sys\bin\T_MdaAudioRecorderUtility.exe" -"\Epoc32\winscw\c\multimedia\taru.bat"-"!:\multimedia\taru.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-RCRDR-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\T_MdaAudioRecorderUtility\pcm16stereo8khz.wav"-"!:\multimedia\T_MdaAudioRecorderUtility\pcm16stereo8khz.wav" -"\Epoc32\winscw\c\multimedia\T_MdaAudioRecorderUtility\corrupted.wav"-"!:\multimedia\T_MdaAudioRecorderUtility\corrupted.wav" - -;T_MdaAudioToneUtility -"\Epoc32\release\armv5\urel\T_MdaAudioToneUtility.exe"-"!:\sys\bin\T_MdaAudioToneUtility.exe" -"\Epoc32\winscw\c\multimedia\tmdtone.bat"-"!:\multimedia\tmdtone.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.script"-"!:\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.tcs"-"!:\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.ini"-"!:\multimedia\MM-MMF-ACLNT-TONE-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_audiotoneutility\sequence1.sqn"-"!:\multimedia\t_audiotoneutility\sequence1.sqn" -"\Epoc32\winscw\c\multimedia\t_audiotoneutility\sequence2.sqn"-"!:\multimedia\t_audiotoneutility\sequence2.sqn" -"\Epoc32\winscw\c\multimedia\t_audiotoneutility\badsequence.sqn"-"!:\multimedia\t_audiotoneutility\badsequence.sqn" - -;T_MidiClientUtility -"\Epoc32\release\armv5\urel\T_MidiClientUtility.exe"-"!:\sys\bin\T_MidiClientUtility.exe" -"\Epoc32\winscw\c\multimedia\tmidi.bat"-"!:\multimedia\tmidi.bat" -"\Epoc32\winscw\c\multimedia\MM-MMF-MIDI-PublicAPI.script"-"!:\multimedia\MM-MMF-MIDI-PublicAPI.script" -"\Epoc32\winscw\c\multimedia\MM-MMF-MIDI-PublicAPI.tcs"-"!:\multimedia\MM-MMF-MIDI-PublicAPI.tcs" -"\Epoc32\winscw\c\multimedia\MM-MMF-MIDI-PublicAPI.ini"-"!:\multimedia\MM-MMF-MIDI-PublicAPI.ini" -"\Epoc32\winscw\c\multimedia\t_midiclientutility\midi.mid"-"!:\multimedia\t_midiclientutility\midi.mid" -"\Epoc32\winscw\c\multimedia\t_midiclientutility\textmidi.mid"-"!:\multimedia\t_midiclientutility\textmidi.mid" -"\Epoc32\winscw\c\multimedia\t_midiclientutility\soundbank.gm"-"!:\multimedia\t_midiclientutility\soundbank.gm" - -;T_Camera -"\Epoc32\release\armv5\urel\T_Camera.exe"-"!:\sys\bin\T_Camera.exe" -"\Epoc32\winscw\c\multimedia\tcamera.bat"-"!:\multimedia\tcamera.bat" -"\Epoc32\winscw\c\multimedia\MM-ECM-PublicApi.script"-"!:\multimedia\MM-ECM-PublicApi.script" -"\Epoc32\winscw\c\multimedia\MM-ECM-PublicApi.tcs"-"!:\multimedia\MM-ECM-PublicApi.tcs" -"\Epoc32\winscw\c\multimedia\MM-ECM-PublicApi.ini"-"!:\multimedia\MM-ECM-PublicApi.ini" -"\Epoc32\winscw\c\multimedia\102070CC.txt"-"!:\102070CC.txt" - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/bwins/libmoduletestplugin_aU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/bwins/libmoduletestplugin_aU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + gplugin_a_func1 @ 1 NONAME + gplugin_a_func2 @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/bwins/libmoduletestplugin_bU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/bwins/libmoduletestplugin_bU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + gplugin_b_func1 @ 1 NONAME + gplugin_b_func2 @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/eabi/libmoduletestplugin_aU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/eabi/libmoduletestplugin_aU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + gplugin_a_func1 @ 1 NONAME + gplugin_a_func2 @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/eabi/libmoduletestplugin_bU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/eabi/libmoduletestplugin_bU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + gplugin_b_func1 @ 1 NONAME + gplugin_b_func2 @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/sis/OsSrv_glib.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/sis/OsSrv_glib.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,148 +0,0 @@ -; -; 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 "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: package file for glib libraries -; -; - -;Languages -&EN - -;Header -#{"Open C_Glib_TestApp"},(0x10281F2D),1,0,0 - -;Supports S60 3.0 -[0x101F7961],3,*,*,{"Series60ProductID"} - -;Localised Vendor name -%{"Nokia"} - -;Unique Vendor name -:"Nokia" - -;Files to install - -"\epoc32\winscw\c\temp\tmp\test.txt"-"!:\test.txt" -"\epoc32\winscw\c\temp\tmp\test.txt"-"!:\temp\tmp\test.txt" -"\epoc32\winscw\c\1.gmarkup"-"!:\1.gmarkup" -"\epoc32\winscw\c\iochannel-test-infile"-"!:\iochannel-test-infile" -"\epoc32\winscw\c\casemap.bin"-"!:\casemap.bin" -"\epoc32\winscw\c\casefold.bin"-"!:\casefold.bin" -"\epoc32\winscw\c\utf8.txt"-"!:\utf8.txt" -"\epoc32\winscw\c\casecollate.txt"-"!:\casecollate.txt" -"\epoc32\winscw\c\utf8_hindi.txt"-"!:\utf8_hindi.txt" -"\epoc32\winscw\c\scanfile.txt"-"!:\scanfile.txt" -"\epoc32\winscw\c\NormalizationTest.txt"-"!:\NormalizationTest.txt" -"\epoc32\release\armv5\urel\accumulator.exe"-"c:\sys\bin\accumulator.exe" -"\epoc32\release\armv5\urel\array-test.exe"-"c:\sys\bin\array-test.exe" -"\epoc32\release\armv5\urel\asyncqueue-test.exe"-"c:\sys\bin\asyncqueue-test.exe" -"\epoc32\release\armv5\urel\atomic-test.exe"-"c:\sys\bin\atomic-test.exe" -"\epoc32\release\armv5\urel\child-test1.exe"-"c:\sys\bin\child-test1.exe" - -"\epoc32\release\armv5\urel\child-test2.exe"-"c:\sys\bin\child-test2.exe" -"\epoc32\release\armv5\urel\closure-marshal.exe"-"c:\sys\bin\closure-marshal.exe" -"\epoc32\release\armv5\urel\closures.exe"-"c:\sys\bin\closures.exe" - -"\epoc32\release\armv5\urel\completion-test.exe"-"c:\sys\bin\completion-test.exe" -"\epoc32\release\armv5\urel\convert-test.exe"-"c:\sys\bin\convert-test.exe" -"\epoc32\release\armv5\urel\date-test.exe"-"c:\sys\bin\date-test.exe" - -"\epoc32\release\armv5\urel\defaultiface.exe"-"c:\sys\bin\defaultiface.exe" -"\epoc32\release\armv5\urel\dirname-test.exe"-"c:\sys\bin\dirname-test.exe" -"\epoc32\release\armv5\urel\env-test.exe"-"c:\sys\bin\env-test.exe" - -"\epoc32\release\armv5\urel\error_check_mutexes.exe"-"c:\sys\bin\error_check_mutexes.exe" -"\epoc32\release\armv5\urel\extra_tests.exe"-"c:\sys\bin\extra_tests.exe" -"\epoc32\release\armv5\urel\file-test.exe"-"c:\sys\bin\file-test.exe" - -"\epoc32\release\armv5\urel\gio-test.exe"-"c:\sys\bin\gio-test.exe" -"\epoc32\release\armv5\urel\gvalue-test.exe"-"c:\sys\bin\gvalue-test.exe" -"\epoc32\release\armv5\urel\g_test1.exe"-"c:\sys\bin\g_test1.exe" -"\epoc32\release\armv5\urel\g_test2.exe"-"c:\sys\bin\g_test2.exe" -"\epoc32\release\armv5\urel\hash-test.exe"-"c:\sys\bin\hash-test.exe" -"\epoc32\release\armv5\urel\ifacecheck.exe"-"c:\sys\bin\ifacecheck.exe" -"\epoc32\release\armv5\urel\ifaceinherit.exe"-"c:\sys\bin\ifaceinherit.exe" -"\epoc32\release\armv5\urel\ifaceinit.exe"-"c:\sys\bin\ifaceinit.exe" -"\epoc32\release\armv5\urel\ifaceproperties.exe"-"c:\sys\bin\ifaceproperties.exe" -"\epoc32\release\armv5\urel\iochannel-test.exe"-"c:\sys\bin\iochannel-test.exe" -"\epoc32\release\armv5\urel\keyfile-test.exe"-"c:\sys\bin\keyfile-test.exe" -"\epoc32\release\armv5\urel\list-test.exe"-"c:\sys\bin\list-test.exe" -"\epoc32\release\armv5\urel\mainloop-test.exe"-"c:\sys\bin\mainloop-test.exe" -"\epoc32\release\armv5\urel\mapping-test.exe"-"c:\sys\bin\mapping-test.exe" -"\epoc32\release\armv5\urel\markup-escape-test.exe"-"c:\sys\bin\markup-escape-test.exe" -"\epoc32\release\armv5\urel\markup-test.exe"-"c:\sys\bin\markup-test.exe" -"\epoc32\release\armv5\urel\module-test.exe"-"c:\sys\bin\module-test.exe" -"\epoc32\release\armv5\urel\node-test.exe"-"c:\sys\bin\node-test.exe" -"\epoc32\release\armv5\urel\objects.exe"-"c:\sys\bin\objects.exe" -"\epoc32\release\armv5\urel\objects2.exe"-"c:\sys\bin\objects2.exe" -"\epoc32\release\armv5\urel\option-test.exe"-"c:\sys\bin\option-test.exe" -"\epoc32\release\armv5\urel\override.exe"-"c:\sys\bin\override.exe" -"\epoc32\release\armv5\urel\paramspec-test.exe"-"c:\sys\bin\paramspec-test.exe" -"\epoc32\release\armv5\urel\patterntest.exe"-"c:\sys\bin\patterntest.exe" -"\epoc32\release\armv5\urel\printf-test.exe"-"c:\sys\bin\printf-test.exe" -"\epoc32\release\armv5\urel\properties.exe"-"c:\sys\bin\properties.exe" -"\epoc32\release\armv5\urel\properties2.exe"-"c:\sys\bin\properties2.exe" -"\epoc32\release\armv5\urel\qsort-test.exe"-"c:\sys\bin\qsort-test.exe" -"\epoc32\release\armv5\urel\queue-test.exe"-"c:\sys\bin\queue-test.exe" -"\epoc32\release\armv5\urel\rand-test.exe"-"c:\sys\bin\rand-test.exe" -"\epoc32\release\armv5\urel\references.exe"-"c:\sys\bin\references.exe" -"\epoc32\release\armv5\urel\relation-test.exe"-"c:\sys\bin\relation-test.exe" -"\epoc32\release\armv5\urel\shell-test.exe"-"c:\sys\bin\shell-test.exe" -"\epoc32\release\armv5\urel\signals-multithread.exe"-"c:\sys\bin\signals-multithread.exe" -"\epoc32\release\armv5\urel\signals-singlethread.exe"-"c:\sys\bin\signals-singlethread.exe" -"\epoc32\release\armv5\urel\slist-test.exe"-"c:\sys\bin\slist-test.exe" -"\epoc32\release\armv5\urel\strfunc-test.exe"-"c:\sys\bin\strfunc-test.exe" -"\epoc32\release\armv5\urel\string-test.exe"-"c:\sys\bin\string-test.exe" -"\epoc32\release\armv5\urel\strtod-test.exe"-"c:\sys\bin\strtod-test.exe" -"\epoc32\release\armv5\urel\tasyncqueue.exe"-"c:\sys\bin\tasyncqueue.exe" -"\epoc32\release\armv5\urel\testgdate.exe"-"c:\sys\bin\testgdate.exe" -"\epoc32\release\armv5\urel\testgdateparser.exe"-"c:\sys\bin\testgdateparser.exe" -"\epoc32\release\armv5\urel\testglib.exe"-"c:\sys\bin\testglib.exe" -"\epoc32\release\armv5\urel\testgobject.exe"-"c:\sys\bin\testgobject.exe" -"\epoc32\release\armv5\urel\tgstring.exe"-"c:\sys\bin\tgstring.exe" -"\epoc32\release\armv5\urel\thread-test.exe"-"c:\sys\bin\thread-test.exe" -"\epoc32\release\armv5\urel\threadpool-test.exe"-"c:\sys\bin\threadpool-test.exe" -"\epoc32\release\armv5\urel\timeloop-closure.exe"-"c:\sys\bin\timeloop-closure.exe" -"\epoc32\release\armv5\urel\timeloop.exe"-"c:\sys\bin\timeloop.exe" -"\epoc32\release\armv5\urel\tmanual.exe"-"c:\sys\bin\tmanual.exe" -"\epoc32\release\armv5\urel\tmisc.exe"-"c:\sys\bin\tmisc.exe" -"\epoc32\release\armv5\urel\tnode.exe"-"c:\sys\bin\tnode.exe" -"\epoc32\release\armv5\urel\toption.exe"-"c:\sys\bin\toption.exe" -"\epoc32\release\armv5\urel\tree-test.exe"-"c:\sys\bin\tree-test.exe" -"\epoc32\release\armv5\urel\tscanner.exe"-"c:\sys\bin\tscanner.exe" -"\epoc32\release\armv5\urel\tslist.exe"-"c:\sys\bin\tslist.exe" -"\epoc32\release\armv5\urel\tthread.exe"-"c:\sys\bin\tthread.exe" -"\epoc32\release\armv5\urel\ttrash.exe"-"c:\sys\bin\ttrash.exe" -"\epoc32\release\armv5\urel\ttree.exe"-"c:\sys\bin\ttree.exe" -"\epoc32\release\armv5\urel\tunichar.exe"-"c:\sys\bin\tunichar.exe" -"\epoc32\release\armv5\urel\tutf8.exe"-"c:\sys\bin\tutf8.exe" -"\epoc32\release\armv5\urel\typetest.exe"-"c:\sys\bin\typetest.exe" -"\epoc32\release\armv5\urel\unichar_test.exe"-"c:\sys\bin\unichar_test.exe" -"\epoc32\release\armv5\urel\unicode-caseconv.exe"-"c:\sys\bin\unicode-caseconv.exe" -"\epoc32\release\armv5\urel\unicode-collate.exe"-"c:\sys\bin\unicode-collate.exe" -"\epoc32\release\armv5\urel\unicode-encoding.exe"-"c:\sys\bin\unicode-encoding.exe" -"\epoc32\release\armv5\urel\unicode-normalize.exe"-"c:\sys\bin\unicode-normalize.exe" -"\epoc32\release\armv5\urel\uri-test.exe"-"c:\sys\bin\uri-test.exe" -"\epoc32\release\armv5\urel\utf8-pointer.exe"-"c:\sys\bin\utf8-pointer.exe" -"\epoc32\release\armv5\urel\utf8-validate.exe"-"c:\sys\bin\utf8-validate.exe" -"\epoc32\release\armv5\urel\libmoduletestplugin_a.dll"-"c:\sys\bin\libmoduletestplugin_a.dll" -"\epoc32\release\armv5\urel\libmoduletestplugin_b.dll"-"c:\sys\bin\libmoduletestplugin_b.dll" - - - - -"glibT.bat"-"!:\glibT.bat" - - -; Depends on openc_stdlibs being installed -;(0x10207369), 1, 0, 0, {"Open C Standard Libraries"} diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/sis/OsSrv_glib.sis Binary file apicompatanamdw/bcdrivers/os/ossrv/glib/sis/OsSrv_glib.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/sis/glib.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/sis/glib.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,385 @@ + + +Glib +ConsoleApp + +The tests involve the MRT Glib + + + +c:\spd_logs\xml\*.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +c:\spd_logs\xml\*.xmle:\BCTest\results\glib\*.xml + + + 1 + c:\spd_logs\xml\accumulator.xmle:\BCTest\results\glib\accumulator.xml + + + 1 + c:\spd_logs\xml\array-test.xmle:\BCTest\results\glib\array-test.xml + + + 1 + c:\spd_logs\xml\asyncqueue-test.xmle:\BCTest\results\glib\asyncqueue-test.xml + + + 1 + c:\spd_logs\xml\atomic-test.xmle:\BCTest\results\glib\atomic-test.xml + + + 1 + c:\spd_logs\xml\closure-marshal.xmle:\BCTest\results\glib\closure-marshal.xml + + + 1 + c:\spd_logs\xml\closures.xmle:\BCTest\results\glib\closures.xml + + + 1 + c:\spd_logs\xml\completion-test.xmle:\BCTest\results\glib\completion-test.xml + + + 1 + c:\spd_logs\xml\convert-test.xmle:\BCTest\results\glib\convert-test.xml + + + 1 + c:\spd_logs\xml\date-test.xmle:\BCTest\results\glib\date-test.xml + + + 1 + c:\spd_logs\xml\defaultiface.xmle:\BCTest\results\glib\defaultiface.xml + + + 1 + c:\spd_logs\xml\dirname-test.xmle:\BCTest\results\glib\dirname-test.xml + + + 1 + c:\spd_logs\xml\env-test.xmle:\BCTest\results\glib\env-test.xml + + + 1 + c:\spd_logs\xml\extra_tests.xmle:\BCTest\results\glib\extra_tests.xml + + + 1 + c:\spd_logs\xml\gio-test.xmle:\BCTest\results\glib\gio-test.xml + + + 1 + c:\spd_logs\xml\gvalue-test.xmle:\BCTest\results\glib\gvalue-test.xml + + + 1 + c:\spd_logs\xml\g_test1.xmle:\BCTest\results\glib\g_test1.xml + + + 1 + c:\spd_logs\xml\g_test2.xmle:\BCTest\results\glib\g_test2.xml + + + 1 + c:\spd_logs\xml\hash-test.xmle:\BCTest\results\glib\hash-test.xml + + + 1 + c:\spd_logs\xml\ifacecheck.xmle:\BCTest\results\glib\ifacecheck.xml + + + 1 + c:\spd_logs\xml\ifaceinherit.xmle:\BCTest\results\glib\ifaceinherit.xml + + + 1 + c:\spd_logs\xml\ifaceinit.xmle:\BCTest\results\glib\ifaceinit.xml + + + 1 + c:\spd_logs\xml\ifaceproperties.xmle:\BCTest\results\glib\ifaceproperties.xml + + + 1 + c:\spd_logs\xml\iochannel-test.xmle:\BCTest\results\glib\iochannel-test.xml + + + 1 + c:\spd_logs\xml\keyfile-test.xmle:\BCTest\results\glib\keyfile-test.xml + + + 1 + c:\spd_logs\xml\list-test.xmle:\BCTest\results\glib\list-test.xml + + + 1 + c:\spd_logs\xml\mainloop-test.xmle:\BCTest\results\glib\mainloop-test.xml + + + 1 + c:\spd_logs\xml\markup-escape-test.xmle:\BCTest\results\glib\markup-escape-test.xml + + + 1 + c:\spd_logs\xml\markup-test.xmle:\BCTest\results\glib\markup-test.xml + + + 1 + c:\spd_logs\xml\module-test.xmle:\BCTest\results\glib\module-test.xml + + + 1 + c:\spd_logs\xml\node-test.xmle:\BCTest\results\glib\node-test.xml + + + 1 + c:\spd_logs\xml\objects.xmle:\BCTest\results\glib\objects.xml + + + 1 + c:\spd_logs\xml\objects2.xmle:\BCTest\results\glib\objects2.xml + + + 1 + c:\spd_logs\xml\option-test.xmle:\BCTest\results\glib\option-test.xml + + + 1 + c:\spd_logs\xml\override.xmle:\BCTest\results\glib\override.xml + + + 1 + c:\spd_logs\xml\paramspec-test.xmle:\BCTest\results\glib\paramspec-test.xml + + + 1 + c:\spd_logs\xml\patterntest.xmle:\BCTest\results\glib\patterntest.xml + + + 1 + c:\spd_logs\xml\properties.xmle:\BCTest\results\glib\properties.xml + + + 1 + c:\spd_logs\xml\properties2.xmle:\BCTest\results\glib\properties2.xml + + + 1 + c:\spd_logs\xml\qsort-test.xmle:\BCTest\results\glib\qsort-test.xml + + + 1 + c:\spd_logs\xml\queue-test.xmle:\BCTest\results\glib\queue-test.xml + + + 1 + c:\spd_logs\xml\rand-test.xmle:\BCTest\results\glib\rand-test.xml + + + 1 + c:\spd_logs\xml\references.xmle:\BCTest\results\glib\references.xml + + + 1 + c:\spd_logs\xml\relation-test.xmle:\BCTest\results\glib\relation-test.xml + + + 1 + c:\spd_logs\xml\shell-test.xmle:\BCTest\results\glib\shell-test.xml + + + 1 + c:\spd_logs\xml\signals-multithread.xmle:\BCTest\results\glib\signals-multithread.xml + + + 1 + c:\spd_logs\xml\signals-singlethread.xmle:\BCTest\results\glib\signals-singlethread.xml + + + 1 + c:\spd_logs\xml\slist-test.xmle:\BCTest\results\glib\slist-test.xml + + + 1 + c:\spd_logs\xml\strfunc-test.xmle:\BCTest\results\glib\strfunc-test.xml + + + 1 + c:\spd_logs\xml\string-test.xmle:\BCTest\results\glib\string-test.xml + + + 1 + c:\spd_logs\xml\tasyncqueue.xmle:\BCTest\results\glib\tasyncqueue.xml + + + 1 + c:\spd_logs\xml\testgdate.xmle:\BCTest\results\glib\testgdate.xml + + + 1 + c:\spd_logs\xml\testgdateparser.xmle:\BCTest\results\glib\testgdateparser.xml + + + 1 + c:\spd_logs\xml\testgobject.xmle:\BCTest\results\glib\testgobject.xml + + + 1 + c:\spd_logs\xml\thread-test.xmle:\BCTest\results\glib\thread-test.xml + + + 1 + c:\spd_logs\xml\threadpool-test.xmle:\BCTest\results\glib\threadpool-test.xml + + + 1 + c:\spd_logs\xml\timeloop-closure.xmle:\BCTest\results\glib\timeloop-closure.xml + + + 1 + c:\spd_logs\xml\timeloop.xmle:\BCTest\results\glib\timeloop.xml + + + 1 + c:\spd_logs\xml\tmisc.xmle:\BCTest\results\glib\tmisc.xml + + + 1 + c:\spd_logs\xml\tnode.xmle:\BCTest\results\glib\tnode.xml + + + 1 + c:\spd_logs\xml\toption.xmle:\BCTest\results\glib\toption.xml + + + 1 + c:\spd_logs\xml\tscanner.xmle:\BCTest\results\glib\tscanner.xml + + + 1 + c:\spd_logs\xml\tslist.xmle:\BCTest\results\glib\tslist.xml + + + 1 + c:\spd_logs\xml\tthread.xmle:\BCTest\results\glib\tthread.xml + + + 1 + c:\spd_logs\xml\ttrash.xmle:\BCTest\results\glib\ttrash.xml + + + 1 + c:\spd_logs\xml\ttree.xmle:\BCTest\results\glib\ttree.xml + + + 1 + c:\spd_logs\xml\tunichar.xmle:\BCTest\results\glib\tunichar.xml + + + 1 + c:\spd_logs\xml\tutf8.xmle:\BCTest\results\glib\tutf8.xml + + + 1 + c:\spd_logs\xml\unichar_test.xmle:\BCTest\results\glib\unichar_test.xml + + + 1 + c:\spd_logs\xml\unicode-collate.xmle:\BCTest\results\glib\unicode-collate.xml + + + 1 + c:\spd_logs\xml\unicode-encoding.xmle:\BCTest\results\glib\unicode-encoding.xml + + + 1 + c:\spd_logs\xml\unicode-normalize.xmle:\BCTest\results\glib\unicode-normalize.xml + + + 1 + c:\spd_logs\xml\uri-test.xmle:\BCTest\results\glib\uri-test.xml + + + 1 + c:\spd_logs\xml\utf8-pointer.xmle:\BCTest\results\glib\utf8-pointer.xml + + + 1 + c:\spd_logs\xml\utf8-validate.xmle:\BCTest\results\glib\utf8-validate.xml + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/sis/glibT.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/sis/glibT.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/sis/glibT.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/src/tasyncqueue.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/src/tasyncqueue.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/src/tasyncqueue.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/src/tthread.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/src/tthread.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/src/tthread.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/asyncqueue-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/asyncqueue-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/asyncqueue-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/atomic-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/atomic-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/atomic-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/date-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/date-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/date-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/someobject.h --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/someobject.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/someobject.h Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/testmarshal.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/testmarshal.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/testmarshal.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/testmarshal.h --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/testmarshal.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/gobject/testmarshal.h Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/iochannel-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/iochannel-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/iochannel-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/keyfile-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/keyfile-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/keyfile-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/mainloop-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/mainloop-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/mainloop-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/markup-escape-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/markup-escape-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/markup-escape-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/markup-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/markup-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/markup-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/option-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/option-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/option-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/qsort-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/qsort-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/qsort-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/queue-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/queue-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/queue-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/rand-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/rand-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/rand-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/objects.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/objects.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/objects.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/objects2.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/objects2.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/objects2.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/properties.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/properties.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/properties.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/properties2.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/properties2.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/properties2.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/signals-multithread.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/signals-multithread.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/signals-multithread.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/signals-singlethread.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/signals-singlethread.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/refcount/signals-singlethread.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #include diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/slist-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/slist-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/slist-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/strtod-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/strtod-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/strtod-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/testgdate.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/testgdate.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/testgdate.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/testgdateparser.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/testgdateparser.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/testgdateparser.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/thread-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/thread-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/thread-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/threadpool-test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/threadpool-test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/threadpool-test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/timeloop-closure.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/timeloop-closure.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/timeloop-closure.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/timeloop.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/timeloop.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/timeloop.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-caseconv.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-caseconv.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-caseconv.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-collate.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-collate.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-collate.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-encoding.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-encoding.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-encoding.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-normalize.c --- a/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-normalize.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/glib/tests/unicode-normalize.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ #undef G_DISABLE_ASSERT diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/bmarm/crypto_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/bmarm/crypto_testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/bwins/crypto_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/bwins/crypto_testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/eabi/crypto_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/eabi/crypto_testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/crypto_test.cfg --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/crypto_test.cfg Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/crypto_test.cfg Fri Sep 17 09:37:58 2010 +0100 @@ -89,6 +89,18 @@ delete foobar [Endtest] [Test] +title SHA256_Test(3_50_2_6669) +create crypto_test foobar +foobar SHA256Test +delete foobar +[Endtest] +[Test] +title SHA512_Test(3_50_2_6670) +create crypto_test foobar +foobar SHA512Test +delete foobar +[Endtest] +[Test] title BN_Test(3_50_2_6653) create crypto_test foobar foobar BNTest diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/crypto_test.mmp --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/crypto_test.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/crypto_test.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -29,7 +29,7 @@ DEFFILE crypto_test.def MACRO SYMBIAN - +#include SOURCEPATH ..\src SOURCE crypto_test.cpp SOURCE crypto_testBlocks.cpp @@ -49,7 +49,8 @@ SOURCE rsa_test.c SOURCE shatest.c SOURCE sha1test.c - +SOURCE sha256t.c +SOURCE sha512t.c USERINCLUDE ..\inc @@ -65,6 +66,7 @@ SYSTEMINCLUDE \epoc32\include\stdapis SYSTEMINCLUDE \epoc32\include\stdapis\openssl +MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib LIBRARY stiftestinterface.lib @@ -76,3 +78,5 @@ EPOCALLOWDLLDATA + +SMPSAFE diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/libcrypto_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/libcrypto_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,38 @@ + + + + libcrypto_blr_hw_component + + libcrypto_blr_hw + High + + + + crypto_test.dll + c:\sys\bin\crypto_test.dll + + + + crypto_test.cfg + c:\testFramework\crypto_test.cfg + + + + evptests.txt + c:\evptests.txt + + + + Testframework.ini + c:\testframework\Testframework.ini + + + c:\testframework\Testframework.ini + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/libcrypto_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/libcrypto_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ + + + + libcrypto_blr_winsspd_component + + libcrypto_blr_winsspd + High + + + + crypto_test.dll + z:\sys\bin\crypto_test.dll + + + + crypto_test.cfg + c:\TestFramework\crypto_test.cfg + + + evptests.txt + c:\evptests.txt + + + + Testframework.ini + c:\testframework\Testframework.ini + + + c:\testframework\Testframework.ini + + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/testsession.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/group/testsession.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,25 @@ + + + + + ssl_crypto_blr_component + at + ATSOUTPUT\testsession_results.xml + + + Symbian + ATSINPUT\components\libcrypto\ssl_crypto_blr_winsspd_component.xml + + + + + + Symbian + ATSINPUT\components\libcrypto\ssl_crypto_blr_hw_component.xml + + + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/inc/crypto_test.h --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/inc/crypto_test.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/inc/crypto_test.h Fri Sep 17 09:37:58 2010 +0100 @@ -157,8 +157,8 @@ virtual TInt RsaTest( CStifItemParser& aItem ); virtual TInt ShaTest( CStifItemParser& aItem ); virtual TInt Sha1Test( CStifItemParser& aItem ); - - + virtual TInt Sha256Test( CStifItemParser& aItem ); + virtual TInt Sha512Test( CStifItemParser& aItem ); public: // Data // ?one_line_short_description_of_data diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/inc/tcrypto_test.h --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/inc/tcrypto_test.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/inc/tcrypto_test.h Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ @@ -39,6 +39,8 @@ extern int rsa_main(int argc, char *argv[]); extern int sha_main(int argc, char *argv[]); extern int sha1_main(int argc, char *argv[]); +extern int sha256_main(int argc,char **argv); +extern int sha512_main(int argc,char **argv); #ifdef __cplusplus } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/crypto_testBlocks.cpp --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/crypto_testBlocks.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/crypto_testBlocks.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -119,7 +119,8 @@ ENTRY( "RSATest", Ccrypto_test::RsaTest ), ENTRY( "SHATest", Ccrypto_test::ShaTest ), ENTRY( "SHA1Test", Ccrypto_test::Sha1Test ), - + ENTRY( "SHA256Test", Ccrypto_test::Sha256Test ), + ENTRY( "SHA512Test", Ccrypto_test::Sha512Test ), }; @@ -555,8 +556,44 @@ } +TInt Ccrypto_test::Sha256Test( CStifItemParser& /*aItem */) + { + TInt ret=1; + + if(!cryptotest_init("sha256")) + { + ret = sha256_main(0,NULL); + cryptotest_deinit(); + + } + + if(ret==1&&errno==ENOMEM) + { + return KErrNoMemory; + } + return ret; + + } - +TInt Ccrypto_test::Sha512Test( CStifItemParser& /*aItem */) + { + TInt ret=1; + + if(!cryptotest_init("sha512")) + { + ret = sha512_main(0,NULL); + cryptotest_deinit(); + + } + + if(ret==1&&errno==ENOMEM) + { + return KErrNoMemory; + } + return ret; + + } + // ----------------------------------------------------------------------------- // Ccrypto_test::?member_function diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/rsa_test.c --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/rsa_test.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/rsa_test.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ /* test vectors from p1ovect1.txt */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/sha256t.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/sha256t.c Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,175 @@ +/* crypto/sha/sha256t.c */ +/* ==================================================================== + * Copyright (c) 2004 The OpenSSL Project. All rights reserved. + * ==================================================================== + */ +/* + © Portions copyright (c) 2009 Nokia Corporation. All rights reserved. + */ + +#include +#include +#include + +#include +#include +#include + +#ifdef SYMBIAN +#ifdef stdin +#undef stdin +#endif +#ifdef stdout +#undef stdout +#endif +#ifdef stderr +#undef stderr +#endif + +#define stdin fp_stdin +#define stdout fp_stdout +#define stderr fp_stderr + +extern FILE *fp_stdout; +extern FILE *fp_stderr; +#endif + +#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA256) +int main(int argc, char *argv[]) +{ + printf("No SHA256 support\n"); + return(0); +} +#else + +unsigned char app_b1[SHA256_DIGEST_LENGTH] = { + 0xba,0x78,0x16,0xbf,0x8f,0x01,0xcf,0xea, + 0x41,0x41,0x40,0xde,0x5d,0xae,0x22,0x23, + 0xb0,0x03,0x61,0xa3,0x96,0x17,0x7a,0x9c, + 0xb4,0x10,0xff,0x61,0xf2,0x00,0x15,0xad }; + +unsigned char app_b2[SHA256_DIGEST_LENGTH] = { + 0x24,0x8d,0x6a,0x61,0xd2,0x06,0x38,0xb8, + 0xe5,0xc0,0x26,0x93,0x0c,0x3e,0x60,0x39, + 0xa3,0x3c,0xe4,0x59,0x64,0xff,0x21,0x67, + 0xf6,0xec,0xed,0xd4,0x19,0xdb,0x06,0xc1 }; + +unsigned char app_b3[SHA256_DIGEST_LENGTH] = { + 0xcd,0xc7,0x6e,0x5c,0x99,0x14,0xfb,0x92, + 0x81,0xa1,0xc7,0xe2,0x84,0xd7,0x3e,0x67, + 0xf1,0x80,0x9a,0x48,0xa4,0x97,0x20,0x0e, + 0x04,0x6d,0x39,0xcc,0xc7,0x11,0x2c,0xd0 }; + +unsigned char addenum_1[SHA224_DIGEST_LENGTH] = { + 0x23,0x09,0x7d,0x22,0x34,0x05,0xd8,0x22, + 0x86,0x42,0xa4,0x77,0xbd,0xa2,0x55,0xb3, + 0x2a,0xad,0xbc,0xe4,0xbd,0xa0,0xb3,0xf7, + 0xe3,0x6c,0x9d,0xa7 }; + +unsigned char addenum_2[SHA224_DIGEST_LENGTH] = { + 0x75,0x38,0x8b,0x16,0x51,0x27,0x76,0xcc, + 0x5d,0xba,0x5d,0xa1,0xfd,0x89,0x01,0x50, + 0xb0,0xc6,0x45,0x5c,0xb4,0xf5,0x8b,0x19, + 0x52,0x52,0x25,0x25 }; + +unsigned char addenum_3[SHA224_DIGEST_LENGTH] = { + 0x20,0x79,0x46,0x55,0x98,0x0c,0x91,0xd8, + 0xbb,0xb4,0xc1,0xea,0x97,0x61,0x8a,0x4b, + 0xf0,0x3f,0x42,0x58,0x19,0x48,0xb2,0xee, + 0x4e,0xe7,0xad,0x67 }; + +#ifndef SYMBIAN +int main (int argc,char **argv) +#else +int sha256_main(int argc,char **argv) +#endif +{ unsigned char md[SHA256_DIGEST_LENGTH]; + int i; + EVP_MD_CTX evp; + + fprintf(stdout,"Testing SHA-256 "); + + EVP_Digest ("abc",3,md,NULL,EVP_sha256(),NULL); + if (memcmp(md,app_b1,sizeof(app_b1))) + { fflush(stdout); + fprintf(stderr,"\nTEST 1 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_Digest ("abcdbcde""cdefdefg""efghfghi""ghijhijk" + "ijkljklm""klmnlmno""mnopnopq",56,md,NULL,EVP_sha256(),NULL); + if (memcmp(md,app_b2,sizeof(app_b2))) + { fflush(stdout); + fprintf(stderr,"\nTEST 2 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_MD_CTX_init (&evp); + EVP_DigestInit_ex (&evp,EVP_sha256(),NULL); + for (i=0;i<1000000;i+=160) + EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", + (1000000-i)<160?1000000-i:160); + EVP_DigestFinal_ex (&evp,md,NULL); + EVP_MD_CTX_cleanup (&evp); + + if (memcmp(md,app_b3,sizeof(app_b3))) + { fflush(stdout); + fprintf(stderr,"\nTEST 3 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + fprintf(stdout," passed.\n"); fflush(stdout); + + fprintf(stdout,"Testing SHA-224 "); + + EVP_Digest ("abc",3,md,NULL,EVP_sha224(),NULL); + if (memcmp(md,addenum_1,sizeof(addenum_1))) + { fflush(stdout); + fprintf(stderr,"\nTEST 1 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_Digest ("abcdbcde""cdefdefg""efghfghi""ghijhijk" + "ijkljklm""klmnlmno""mnopnopq",56,md,NULL,EVP_sha224(),NULL); + if (memcmp(md,addenum_2,sizeof(addenum_2))) + { fflush(stdout); + fprintf(stderr,"\nTEST 2 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_MD_CTX_init (&evp); + EVP_DigestInit_ex (&evp,EVP_sha224(),NULL); + for (i=0;i<1000000;i+=64) + EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", + (1000000-i)<64?1000000-i:64); + EVP_DigestFinal_ex (&evp,md,NULL); + EVP_MD_CTX_cleanup (&evp); + + if (memcmp(md,addenum_3,sizeof(addenum_3))) + { fflush(stdout); + fprintf(stderr,"\nTEST 3 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + fprintf(stdout," passed.\n"); fflush(stdout); + + return 0; +} +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/sha512t.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/crypto_test/src/sha512t.c Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,209 @@ +/* crypto/sha/sha512t.c */ +/* ==================================================================== + * Copyright (c) 2004 The OpenSSL Project. All rights reserved. + * ==================================================================== + */ +#include +#include +#include + +#include +#include +#include +#include + +#ifdef SYMBIAN +#ifdef stdin +#undef stdin +#endif +#ifdef stdout +#undef stdout +#endif +#ifdef stderr +#undef stderr +#endif + +#define stdin fp_stdin +#define stdout fp_stdout +#define stderr fp_stderr + +extern FILE *fp_stdout; +extern FILE *fp_stderr; +#endif + +#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA512) +int main(int argc, char *argv[]) +{ + printf("No SHA512 support\n"); + return(0); +} +#else + +unsigned char app_c1[SHA512_DIGEST_LENGTH] = { + 0xdd,0xaf,0x35,0xa1,0x93,0x61,0x7a,0xba, + 0xcc,0x41,0x73,0x49,0xae,0x20,0x41,0x31, + 0x12,0xe6,0xfa,0x4e,0x89,0xa9,0x7e,0xa2, + 0x0a,0x9e,0xee,0xe6,0x4b,0x55,0xd3,0x9a, + 0x21,0x92,0x99,0x2a,0x27,0x4f,0xc1,0xa8, + 0x36,0xba,0x3c,0x23,0xa3,0xfe,0xeb,0xbd, + 0x45,0x4d,0x44,0x23,0x64,0x3c,0xe8,0x0e, + 0x2a,0x9a,0xc9,0x4f,0xa5,0x4c,0xa4,0x9f }; + +unsigned char app_c2[SHA512_DIGEST_LENGTH] = { + 0x8e,0x95,0x9b,0x75,0xda,0xe3,0x13,0xda, + 0x8c,0xf4,0xf7,0x28,0x14,0xfc,0x14,0x3f, + 0x8f,0x77,0x79,0xc6,0xeb,0x9f,0x7f,0xa1, + 0x72,0x99,0xae,0xad,0xb6,0x88,0x90,0x18, + 0x50,0x1d,0x28,0x9e,0x49,0x00,0xf7,0xe4, + 0x33,0x1b,0x99,0xde,0xc4,0xb5,0x43,0x3a, + 0xc7,0xd3,0x29,0xee,0xb6,0xdd,0x26,0x54, + 0x5e,0x96,0xe5,0x5b,0x87,0x4b,0xe9,0x09 }; + +unsigned char app_c3[SHA512_DIGEST_LENGTH] = { + 0xe7,0x18,0x48,0x3d,0x0c,0xe7,0x69,0x64, + 0x4e,0x2e,0x42,0xc7,0xbc,0x15,0xb4,0x63, + 0x8e,0x1f,0x98,0xb1,0x3b,0x20,0x44,0x28, + 0x56,0x32,0xa8,0x03,0xaf,0xa9,0x73,0xeb, + 0xde,0x0f,0xf2,0x44,0x87,0x7e,0xa6,0x0a, + 0x4c,0xb0,0x43,0x2c,0xe5,0x77,0xc3,0x1b, + 0xeb,0x00,0x9c,0x5c,0x2c,0x49,0xaa,0x2e, + 0x4e,0xad,0xb2,0x17,0xad,0x8c,0xc0,0x9b }; + +unsigned char app_d1[SHA384_DIGEST_LENGTH] = { + 0xcb,0x00,0x75,0x3f,0x45,0xa3,0x5e,0x8b, + 0xb5,0xa0,0x3d,0x69,0x9a,0xc6,0x50,0x07, + 0x27,0x2c,0x32,0xab,0x0e,0xde,0xd1,0x63, + 0x1a,0x8b,0x60,0x5a,0x43,0xff,0x5b,0xed, + 0x80,0x86,0x07,0x2b,0xa1,0xe7,0xcc,0x23, + 0x58,0xba,0xec,0xa1,0x34,0xc8,0x25,0xa7 }; + +unsigned char app_d2[SHA384_DIGEST_LENGTH] = { + 0x09,0x33,0x0c,0x33,0xf7,0x11,0x47,0xe8, + 0x3d,0x19,0x2f,0xc7,0x82,0xcd,0x1b,0x47, + 0x53,0x11,0x1b,0x17,0x3b,0x3b,0x05,0xd2, + 0x2f,0xa0,0x80,0x86,0xe3,0xb0,0xf7,0x12, + 0xfc,0xc7,0xc7,0x1a,0x55,0x7e,0x2d,0xb9, + 0x66,0xc3,0xe9,0xfa,0x91,0x74,0x60,0x39 }; + +unsigned char app_d3[SHA384_DIGEST_LENGTH] = { + 0x9d,0x0e,0x18,0x09,0x71,0x64,0x74,0xcb, + 0x08,0x6e,0x83,0x4e,0x31,0x0a,0x4a,0x1c, + 0xed,0x14,0x9e,0x9c,0x00,0xf2,0x48,0x52, + 0x79,0x72,0xce,0xc5,0x70,0x4c,0x2a,0x5b, + 0x07,0xb8,0xb3,0xdc,0x38,0xec,0xc4,0xeb, + 0xae,0x97,0xdd,0xd8,0x7f,0x3d,0x89,0x85 }; + +#ifndef SYMBIAN +int main (int argc,char **argv) +#else +int sha512_main(int argc,char **argv) +#endif + +{ unsigned char md[SHA512_DIGEST_LENGTH]; + int i; + EVP_MD_CTX evp; + +#ifdef OPENSSL_IA32_SSE2 + /* Alternative to this is to call OpenSSL_add_all_algorithms... + * The below code is retained exclusively for debugging purposes. */ + { char *env; + + if ((env=getenv("OPENSSL_ia32cap"))) + OPENSSL_ia32cap = strtoul (env,NULL,0); + } +#endif + + fprintf(stdout,"Testing SHA-512 "); + + EVP_Digest ("abc",3,md,NULL,EVP_sha512(),NULL); + if (memcmp(md,app_c1,sizeof(app_c1))) + { fflush(stdout); + fprintf(stderr,"\nTEST 1 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_Digest ("abcdefgh""bcdefghi""cdefghij""defghijk" + "efghijkl""fghijklm""ghijklmn""hijklmno" + "ijklmnop""jklmnopq""klmnopqr""lmnopqrs" + "mnopqrst""nopqrstu",112,md,NULL,EVP_sha512(),NULL); + if (memcmp(md,app_c2,sizeof(app_c2))) + { fflush(stdout); + fprintf(stderr,"\nTEST 2 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_MD_CTX_init (&evp); + EVP_DigestInit_ex (&evp,EVP_sha512(),NULL); + for (i=0;i<1000000;i+=288) + EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", + (1000000-i)<288?1000000-i:288); + EVP_DigestFinal_ex (&evp,md,NULL); + EVP_MD_CTX_cleanup (&evp); + + if (memcmp(md,app_c3,sizeof(app_c3))) + { fflush(stdout); + fprintf(stderr,"\nTEST 3 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + fprintf(stdout," passed.\n"); fflush(stdout); + + fprintf(stdout,"Testing SHA-384 "); + + EVP_Digest ("abc",3,md,NULL,EVP_sha384(),NULL); + if (memcmp(md,app_d1,sizeof(app_d1))) + { fflush(stdout); + fprintf(stderr,"\nTEST 1 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_Digest ("abcdefgh""bcdefghi""cdefghij""defghijk" + "efghijkl""fghijklm""ghijklmn""hijklmno" + "ijklmnop""jklmnopq""klmnopqr""lmnopqrs" + "mnopqrst""nopqrstu",112,md,NULL,EVP_sha384(),NULL); + if (memcmp(md,app_d2,sizeof(app_d2))) + { fflush(stdout); + fprintf(stderr,"\nTEST 2 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + EVP_MD_CTX_init (&evp); + EVP_DigestInit_ex (&evp,EVP_sha384(),NULL); + for (i=0;i<1000000;i+=64) + EVP_DigestUpdate (&evp, "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa" + "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", + (1000000-i)<64?1000000-i:64); + EVP_DigestFinal_ex (&evp,md,NULL); + EVP_MD_CTX_cleanup (&evp); + + if (memcmp(md,app_d3,sizeof(app_d3))) + { fflush(stdout); + fprintf(stderr,"\nTEST 3 of 3 failed.\n"); + return 1; + } + else + fprintf(stdout,"."); fflush(stdout); + + fprintf(stdout," passed.\n"); fflush(stdout); + + return 0; +} +#endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/sis/bccrypto.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/sis/bccrypto.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/sis/bccrypto.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/sis/openssl.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/sis/openssl.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/sis/openssl.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/bmarm/openssl_appU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/bmarm/openssl_appU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/bwins/openssl_appU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/bwins/openssl_appU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/eabi/openssl_appU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/eabi/openssl_appU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltcrl_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltcrl_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + + libcrypto_topenssltcrl_blr_hw_component + + + libcrypto_topenssltcrl_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testcrl.pem + c:\testcrl.pem + + + + tcrl.txt + c:\tcrl.txt + + + + c:\sys\bin\openssl.exe + c:/tcrl.txt + + c:\spd_logs\xml\tcrl(3_50_2_6744).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltcrl_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltcrl_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + + libcrypto_topenssltcrl_blr_winsspd_component + + + libcrypto_topenssltcrl_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testcrl.pem + c:\testcrl.pem + + + + tcrl.txt + c:\tcrl.txt + + + + Z:\sys\bin\openssl.exe + c:/tcrl.txt + + c:\spd_logs\xml\tcrl(3_50_2_6744).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestenc_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestenc_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,87 @@ + + + + + libcrypto_topenssltestenc_blr_hw_component + + + openssl_topenssltestenc_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + CAss.cnf + c:\CAss.cnf + + + reqCA.ss + c:\reqCA.ss + + + keyCA.ss + c:\CAss.cnf + + + certCA.ss + c:\certCA.ss + + + + openssl.cnf + c:\openssl.cnf + + + + reqCA.ss2 + c:\reqCA.ss2 + + + Uss.cnf + c:\Uss.cnf + + + keyU.ss + c:\keyU.ss + + + reqU.ss + c:\reqU.ss + + + certU.ss + c:\certU.ss + + + P1ss.cnf + c:\P1ss.cnf + + + + P2ss.cnf + c:\P2ss.cnf + + + Makefile + c:\Makefile + + + testenc.txt + c:\testenc.txt + + + + c:\sys\bin\openssl.exe + c:/testenc.txt + + c:\spd_logs\xml\testenc(3_50_2_6732).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestenc_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestenc_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,85 @@ + + + libcrypto_topenssltestenc_blr_winsspd_component + + + libcrypto_topenssltestenc_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + CAss.cnf + c:\CAss.cnf + + + reqCA.ss + c:\reqCA.ss + + + keyCA.ss + c:\CAss.cnf + + + certCA.ss + c:\certCA.ss + + + + openssl.cnf + c:\openssl.cnf + + + + reqCA.ss2 + c:\reqCA.ss2 + + + Uss.cnf + c:\Uss.cnf + + + keyU.ss + c:\keyU.ss + + + reqU.ss + c:\reqU.ss + + + certU.ss + c:\certU.ss + + + P1ss.cnf + c:\P1ss.cnf + + + + P2ss.cnf + c:\P2ss.cnf + + + Makefile + c:\Makefile + + + testenc.txt + c:\testenc.txt + + + + Z:\sys\bin\openssl.exe + c:/testenc.txt + + c:\spd_logs\xml\testenc(3_50_2_6732).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestgen_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestgen_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ + + + libcrypto_topenssltestgen_blr_hw_component + + + libcrypto_topenssltestgen_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + test.cnf + C:\test.cnf + + + + testreq.pem + c:\testreq.pem + + + + + testgen.txt + c:\testgen.txt + + + + c:\sys\bin\openssl.exe + c:/testgen.txt + + c:\spd_logs\xml\testgen(3_50_2_6733).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestgen_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestgen_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ + + + libcrypto_topenssltestgen_blr_winsspd_component + + + libcrypto_topenssltestgen_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + test.cnf + C:\test.cnf + + + + testreq.pem + c:\testreq.pem + + + + + testgen.txt + c:\testgen.txt + + + + Z:\sys\bin\openssl.exe + c:/testgen.txt + + c:\spd_logs\xml\testgen(3_50_2_6733).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestss_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestss_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,64 @@ + + + + + libcrypto_topenssltestss_blr_hw_component + + + libcrypto_topenssltestss_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + CAss.cnf + c:\CAss.cnf + + + + keyCA.ss + c:\keyCA.ss + + + + openssl.cnf + c:\openssl.cnf + + + + Uss.cnf + c:\Uss.cnf + + + keyU.ss + c:\keyU.ss + + + + P1ss.cnf + c:\P1ss.cnf + + + P2ss.cnf + c:\P2ss.cnf + + + + testss.txt + c:\testss.txt + + + c:\sys\bin\openssl.exe + c:/testss.txt + + c:\spd_logs\xml\testss(3_50_2_6735).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestss_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestss_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,63 @@ + + + + libcrypto_topenssltestss_blr_winsspd_component + + + libcrypto_topenssltestss_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + CAss.cnf + c:\CAss.cnf + + + + keyCA.ss + c:\keyCA.ss + + + + openssl.cnf + c:\openssl.cnf + + + + Uss.cnf + c:\Uss.cnf + + + keyU.ss + c:\keyU.ss + + + + P1ss.cnf + c:\P1ss.cnf + + + P2ss.cnf + c:\P2ss.cnf + + + + testss.txt + c:\testss.txt + + + Z:\sys\bin\openssl.exe + c:/testss.txt + + c:\spd_logs\xml\testss(3_50_2_6735).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestverify_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestverify_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,92 @@ + + + + libcrypto_topenssltestverify_blr_hw_component + + + libcrypto_topenssltestverify_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + argena.pem + c:\argena.pem + + + argeng.pem + c:\argeng.pem + + + eng1.pem + c:\eng1.pem + + + eng2.pem + c:\eng2.pem + + + eng3.pem + c:\eng3.pem + + + + eng4.pem + c:\eng4.pem + + + eng5.pem + c:\eng5.pem + + + RegTP-5R.pem + c:\RegTP-5R.pem + + + RegTP-6R.pem + c:\RegTP-6R.pem + + + thawteCb.pem + c:\thawteCb.pem + + + thawteCp.pem + c:\thawteCp.pem + + + vsign1.pem + c:\vsign1.pem + + + vsign3.pem + c:\vsign3.pem + + + vsignss.pem + c:\vsignss.pem + + + wellsfgo.pem + c:\wellsfgo.pem + + + test_verify.txt + c:\test_verify.txt + + + + c:\sys\bin\openssl.exe + c:/test_verify.txt + + c:\spd_logs\xml\test_verify(3_50_2_6745).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestverify_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltestverify_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,93 @@ + + + + + libcrypto_topenssltestverify_blr_winsspd_component + + + libcrypto_topenssltestverify_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + argena.pem + c:\argena.pem + + + argeng.pem + c:\argeng.pem + + + eng1.pem + c:\eng1.pem + + + eng2.pem + c:\eng2.pem + + + eng3.pem + c:\eng3.pem + + + eng4.pem + c:\eng4.pem + + + + eng5.pem + c:\eng5.pem + + + RegTP-5R.pem + c:\RegTP-5R.pem + + + RegTP-6R.pem + c:\RegTP-6R.pem + + + thawteCb.pem + c:\thawteCb.pem + + + thawteCp.pem + c:\thawteCp.pem + + + vsign1.pem + c:\vsign1.pem + + + vsign3.pem + c:\vsign3.pem + + + vsignss.pem + c:\vsignss.pem + + + wellsfgo.pem + c:\wellsfgo.pem + + + test_verify.txt + c:\test_verify.txt + + + + Z:\sys\bin\openssl.exe + c:/test_verify.txt + + c:\spd_logs\xml\test_verify(3_50_2_6745).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ + + + + + libcrypto_topenssltpkcs7_blr_hw_component + + + libcrypto_topenssltpkcs7_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testp7.pem + c:\testp7.pem + + + + tpkcs7.txt + c:\tpkcs7.txt + + + + c:\sys\bin\openssl.exe + c:/tpkcs7.txt + + c:\spd_logs\xml\tpkcs7(3_50_2_6734).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ + + + + + libcrypto_topenssltpkcs7_blr_winsspd_component + + + libcrypto_topenssltpkcs7_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testp7.pem + c:\testp7.pem + + + + tpkcs7.txt + c:\tpkcs7.txt + + + + Z:\sys\bin\openssl.exe + c:/tpkcs7.txt + + c:\spd_logs\xml\tpkcs7(3_50_2_6734).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7d_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7d_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ + + + libcrypto_topenssltpkcs7d_blr_hw_component + + + libcrypto_topenssltpkcs7d_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + pkcs7-1.pem + c:\pkcs7-1.pem + + + + tpkcs7d.txt + c:\tpkcs7d.txt + + + + c:\sys\bin\openssl.exe + c:/tpkcs7d.txt + + c:\spd_logs\xml\tpkcs7d(3_50_2_6736).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7d_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltpkcs7d_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ + + + libcrypto_topenssltpkcs7d_blr_winsspd_component + + + libcrypto_topenssltpkcs7d_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + pkcs7-1.pem + c:\pkcs7-1.pem + + + + tpkcs7d.txt + c:\tpkcs7d.txt + + + + Z:\sys\bin\openssl.exe + c:/tpkcs7d.txt + + c:\spd_logs\xml\tpkcs7d(3_50_2_6736).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq2_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq2_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ + + + + libcrypto_topenssltreq2_blr_hw_component + + + libcrypto_topenssltreq2_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testreq2.pem + c:\testreq2.pem + + + + openssl.cnf + c:\openssl.cnf + + + + treq2.txt + c:\treq2.txt + + + + c:\sys\bin\openssl.exe + c:/treq2.txt + + c:\spd_logs\xml\treq2(3_50_2_6738).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq2_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq2_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,41 @@ + + + + libcrypto_topenssltreq2_blr_winsspd_component + + + libcrypto_topenssltreq2_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testreq2.pem + c:\testreq2.pem + + + + openssl.cnf + c:\openssl.cnf + + + + treq2.txt + c:\treq2.txt + + + + Z:\sys\bin\openssl.exe + c:/treq2.txt + + c:\spd_logs\xml\treq2(3_50_2_6738).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ + + + + libcrypto_topenssltreq_blr_hw_component + + + libcrypto_topenssltreq_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testreq.pem + c:\testreq.pem + + + + + treq.txt + c:\treq.txt + + + + openssl.cnf + c:\openssl.cnf + + + + c:\sys\bin\openssl.exe + c:/treq.txt + + c:\spd_logs\xml\treq(3_50_2_6737).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltreq_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,42 @@ + + + + libcrypto_topenssltreq_blr_winsspd_component + + + libcrypto_topenssltreq_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testreq.pem + c:\testreq.pem + + + + + treq.txt + c:\treq.txt + + + + openssl.cnf + c:\openssl.cnf + + + + Z:\sys\bin\openssl.exe + c:/treq.txt + + c:\spd_logs\xml\treq(3_50_2_6737).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltrsa_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltrsa_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + + libcrypto_topenssltrsa_blr_hw_component + + + libcrypto_topenssltrsa_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testrsa.pem + c:\testrsa.pem + + + + trsa.txt + c:\trsa.txt + + + + c:\sys\bin\openssl.exe + c:/trsa.txt + + c:\spd_logs\xml\trsa(3_50_2_6739).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltrsa_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltrsa_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + + libcrypto_topenssltrsa_blr_winsspd_component + + + libcrypto_topenssltrsa_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testrsa.pem + c:\testrsa.pem + + + + trsa.txt + c:\trsa.txt + + + + Z:\sys\bin\openssl.exe + c:/trsa.txt + + c:\spd_logs\xml\trsa(3_50_2_6739).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltsid_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltsid_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + libcrypto_topenssltsid_blr_hw_component + + + libcrypto_topenssltsid_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testsid.pem + c:\testsid.pem + + + + + tsid.txt + c:\tsid.txt + + + + c:\sys\bin\openssl.exe + c:/tsid.txt + + c:\spd_logs\xml\tsid(3_50_2_6740).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltsid_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltsid_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + libcrypto_topenssltsid_blr_winsspd_component + + + libcrypto_topenssltsid_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testsid.pem + c:\testsid.pem + + + + + tsid.txt + c:\tsid.txt + + + + Z:\sys\bin\openssl.exe + c:/tsid.txt + + c:\spd_logs\xml\tsid(3_50_2_6740).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5091_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5091_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,37 @@ + + + + libcrypto_topenssltx5091_blr_hw_component + + + libcrypto_topenssltx5091_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + + v3-cert1.pem + c:\v3-cert1.pem + + + + tx5091.txt + c:\tx5091.txt + + + + c:\sys\bin\openssl.exe + c:/tx5091.txt + + c:\spd_logs\xml\tx509_1(3_50_2_6742).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5091_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5091_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + libcrypto_topenssltx5091_blr_winsspd_component + + + libcrypto_topenssltx5091_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + + v3-cert1.pem + c:\v3-cert1.pem + + + + tx5091.txt + c:\tx5091.txt + + + + Z:\sys\bin\openssl.exe + c:/tx5091.txt + + c:\spd_logs\xml\tx509_1(3_50_2_6742).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5092_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5092_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ + + + libcrypto_topenssltx5092_blr_hw_component + + + libcrypto_topenssltx5092_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + v3-cert2.pem + c:\v3-cert2.pem + + + + tx5092.txt + c:\tx5092.txt + + + + c:\sys\bin\openssl.exe + c:/tx5092.txt + + c:\spd_logs\xml\tx509_2(3_50_2_6743).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5092_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx5092_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ + + + libcrypto_topenssltx5092_blr_winsspd_component + + + libcrypto_topenssltx5092_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + v3-cert2.pem + c:\v3-cert2.pem + + + + tx5092.txt + c:\tx5092.txt + + + + Z:\sys\bin\openssl.exe + c:/tx5092.txt + + c:\spd_logs\xml\tx509_2(3_50_2_6743).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx509_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx509_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + libcrypto_topenssltx509_blr_hw_component + + + libcrypto_topenssltx509_blr + High + + + openssl.exe + c:\sys\bin\openssl.exe + + + testx509.pem + C:\testx509.pem + + + + + tx509.txt + c:\tx509.txt + + + + c:\sys\bin\openssl.exe + c:/tx509.txt + + c:\spd_logs\xml\tx509(3_50_2_6741).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx509_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/group/libcrypto_topenssltx509_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,36 @@ + + + libcrypto_topenssltx509_blr_winsspd_component + + + libcrypto_topenssltx509_blr + High + + + openssl.exe + z:\sys\bin\openssl.exe + + + testx509.pem + C:\testx509.pem + + + + + tx509.txt + c:\tx509.txt + + + + Z:\sys\bin\openssl.exe + c:/tx509.txt + + c:\spd_logs\xml\tx509(3_50_2_6741).xml + + 600 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/inc/progs.h --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/inc/progs.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/inc/progs.h Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ /* apps/progs.h */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/inc/testdsa.h --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/inc/testdsa.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/inc/testdsa.h Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ /* NOCW */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/src/passwd.c --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/src/passwd.c Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/libcrypto/topenssl/src/passwd.c Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ * * Contributors: * -* Description: +* Description: * */ /* apps/passwd.c */ diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/OsSrv_ssl.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/OsSrv_ssl.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,114 +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 -#{"libssl_testapps"},(0xE0207900),1,0,0 - -;Supports S60 3.0 -[0x101F7961],3,*,*,{"Series60ProductID"} - -;Localised Vendor name -%{"Nokia Testing EN"} - -;Unique Vendor name -:"Vendor" - -;Files to install - -;**********************************libc related tests*********************************** -;libcrypto & OpenSSL -"\epoc32\winscw\c\TestFramework\crypto_test\testframework.ini"-"!:\testframework\crypto_test\testframework.ini" -"\epoc32\winscw\c\TestFramework\crypto_test.cfg"-"!:\testframework\crypto_test.cfg" -"\epoc32\winscw\c\TestFramework\evptests.txt"-"!:\evptests.txt" -"\epoc32\winscw\c\tpkcs7d.txt"-"!:\tpkcs7d.txt" -"\epoc32\winscw\c\tpkcs7.txt"-"!:\tpkcs7.txt" -"\epoc32\winscw\c\treq2.txt"-"!:\treq2.txt" -"\epoc32\winscw\c\treq.txt"-"!:\treq.txt" -"\epoc32\winscw\c\trsa.txt"-"!:\trsa.txt" -"\epoc32\winscw\c\tsid.txt"-"!:\tsid.txt" -"\epoc32\winscw\c\tx5091.txt"-"!:\tx5091.txt" -"\epoc32\winscw\c\tx5092.txt"-"!:\tx5092.txt" -"\epoc32\winscw\c\tx509.txt"-"!:\tx509.txt" -"\epoc32\winscw\c\tcrl.txt"-"!:\tcrl.txt" -"\epoc32\winscw\c\testenc.txt"-"!:\testenc.txt" -"\epoc32\winscw\c\testgen.txt"-"!:\testgen.txt" -"\epoc32\winscw\c\testss.txt"-"!:\testss.txt" -"\epoc32\winscw\c\test_verify.txt"-"!:\test_verify.txt" -"\epoc32\winscw\c\CAss.cnf"-"!:\CAss.cnf" -"\epoc32\winscw\c\openssl.cnf"-"!:\openssl.cnf" -"\epoc32\winscw\c\P1ss.cnf"-"!:\P1ss.cnf" -"\epoc32\winscw\c\P2ss.cnf"-"!:\P2ss.cnf" -"\epoc32\winscw\c\test.cnf"-"!:\test.cnf" -"\epoc32\winscw\c\Uss.cnf"-"!:\Uss.cnf" -"\epoc32\winscw\c\argena.pem"-"!:\argena.pem" -"\epoc32\winscw\c\argeng.pem"-"!:\argeng.pem" -"\epoc32\winscw\c\eng1.pem"-"!:\eng1.pem" -"\epoc32\winscw\c\eng2.pem"-"!:\eng2.pem" -"\epoc32\winscw\c\eng3.pem"-"!:\eng3.pem" -"\epoc32\winscw\c\eng4.pem"-"!:\eng4.pem" -"\epoc32\winscw\c\eng5.pem"-"!:\eng5.pem" -"\epoc32\winscw\c\pkcs7-1.pem"-"!:\pkcs7-1.pem" -"\epoc32\winscw\c\RegTP-5R.pem"-"!:\RegTP-5R.pem" -"\epoc32\winscw\c\RegTP-6R.pem"-"!:\RegTP-6R.pem" -"\epoc32\winscw\c\testcrl.pem"-"!:\testcrl.pem" -"\epoc32\winscw\c\testp7.pem"-"!:\testp7.pem" -"\epoc32\winscw\c\testreq.pem"-"!:\testreq.pem" -"\epoc32\winscw\c\testreq2.pem"-"!:\testreq2.pem" -"\epoc32\winscw\c\testrsa.pem"-"!:\testrsa.pem" -"\epoc32\winscw\c\testsid.pem"-"!:\testsid.pem" -"\epoc32\winscw\c\testx509.pem"-"!:\testx509.pem" -"\epoc32\winscw\c\thawteCb.pem"-"!:\thawteCb.pem" -"\epoc32\winscw\c\thawteCp.pem"-"!:\thawteCp.pem" -"\epoc32\winscw\c\v3-cert1.pem"-"!:\v3-cert1.pem" -"\epoc32\winscw\c\v3-cert2.pem"-"!:\v3-cert2.pem" -"\epoc32\winscw\c\vsign1.pem"-"!:\vsign1.pem" -"\epoc32\winscw\c\vsign3.pem"-"!:\vsign3.pem" -"\epoc32\winscw\c\vsignss.pem"-"!:\vsignss.pem" -"\epoc32\winscw\c\wellsfgo.pem"-"!:\wellsfgo.pem" -"\epoc32\winscw\c\certCA.ss"-"!:\certCA.ss" -"\epoc32\winscw\c\certU.ss"-"!:\certU.ss" -"\epoc32\winscw\c\keyCA.ss"-"!:\keyCA.ss" -"\epoc32\winscw\c\keyU.ss"-"!:\keyU.ss" -"\epoc32\winscw\c\reqCA.ss"-"!:\reqCA.ss" -"\epoc32\winscw\c\reqU.ss"-"!:\reqU.ss" -"\epoc32\winscw\c\reqCA.ss2"-"!:\reqCA.ss2" -"\epoc32\winscw\c\certP1.ss"-"!:\certP1.ss" -"\epoc32\winscw\c\certP2.ss"-"!:\certP2.ss" -"\epoc32\winscw\c\intP1.ss"-"!:\intP1.ss" -"\epoc32\winscw\c\intP2.ss"-"!:\intP2.ss" -"\epoc32\winscw\c\keyP1.ss"-"!:\keyP1.ss" -"\epoc32\winscw\c\keyP2.ss"-"!:\keyP2.ss" -"\epoc32\winscw\c\reqP1.ss"-"!:\reqP1.ss" -"\epoc32\winscw\c\reqP2.ss"-"!:\reqP2.ss" -"\epoc32\winscw\c\tmp_intP2.ss"-"!:\tmp_intP2.ss" -"\epoc32\winscw\c\Makefile"-"!:\Makefile" - -"\epoc32\release\armv5\urel\crypto_test.dll"-"!:\sys\bin\crypto_test.dll" -"\epoc32\release\armv5\urel\openssl.exe"-"!:\sys\bin\openssl.exe" -"..\libcrypto\sis\openssl.bat"-"!:\openssl.bat" -"..\libcrypto\sis\bccrypto.bat"-"!:\bccrypto.bat" - - -;ssl_test -"\epoc32\release\armv5\urel\ssltest.exe"-"!:\sys\bin\ssltest.exe" -"\epoc32\winscw\c\ca_cert.der"-"!:\ca_cert.der" -"\epoc32\winscw\c\ca_cert.pem"-"!:\ca_cert.pem" -"\epoc32\winscw\c\server.pem" -"!:\server.pem" -"\epoc32\winscw\c\server2.pem"-"!:\server2.pem" -"..\ssl_test\sis\bcssltest.bat"-"!:\bcssltest.bat" -".\sslt.bat"-"!:\sslt.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/OsSrv_ssl.sis Binary file apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/OsSrv_ssl.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/ssl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/ssl.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,256 @@ + + +SSL +ConsoleApp + +The tests involve the MRT SSL + + + +c:\spd_logs\xml\*.xml + c:\tpkcs7d.txt + c:\treq2.txt + c:\treq.txt + c:\trsa.txt + c:\tsid.txt + c:\tx5091.txt + c:\tx5092.txt + c:\tx509.txt + c:\tcrl.txt + c:\testenc.txt + c:\testgen.txt + c:\testss.txt + c:\test_verify.txt + c:\tpkcs7.txt + ssltest(3_19_2_6669) -test_cipherlist + ssltest(3_19_2_6670) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 + ssltest(3_19_2_6671) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6672) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6673) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6674) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 + ssltest(3_19_2_6675) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6676) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6677) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6678) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss + ssltest(3_19_2_6679) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -server_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6680) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6681) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -server_auth -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6682) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + ssltest(3_19_2_6683) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -server_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6684) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6685) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6686) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + ssltest(3_19_2_6687) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + ssltest(3_19_2_6688) -key C:/keyU.ss -cert C:/certU.ss -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + ssltest(3_19_2_6689) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + ssltest(3_19_2_6690) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss + ssltest(3_19_2_6691) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -no_dhe + ssltest(3_19_2_6692) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -dhe1024dsa -v + ssltest(3_19_2_6693) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6694) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6695) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -client_auth -CAfile C:/certCA.ss + ssltest(3_19_2_6696) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -client_auth -app_verify -CAfile C:/certCA.ss + ssltest(3_19_2_6697) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time + ssltest(3_19_2_6698) -v -bio_pair -tls1 -cert C:/server2.pem -no_dhe -num 10-f -time + ssltest(3_19_2_6699) -v -bio_pair -tls1 -cert c:/server2.pem -dhe1024dsa -num 10 -f -time + ssltest(3_19_2_6773) -symstore + -testmodule testscripter -config C:\testframework\crypto_test.cfg +c:\spd_logs\xml\*.xmle:\BCTest\results\ssl\*.xml +c:\Logs\TestFramework\TestReport.txte:\BCTest\results\ssl\crypto_test.txt + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6669).xmle:\BCTest\results\ssl\ssltest(3_19_2_6669).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6670).xmle:\BCTest\results\ssl\ssltest(3_19_2_6670).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6671).xmle:\BCTest\results\ssl\ssltest(3_19_2_6671).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6672).xmle:\BCTest\results\ssl\ssltest(3_19_2_6672).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6673).xmle:\BCTest\results\ssl\ssltest(3_19_2_6673).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6674).xmle:\BCTest\results\ssl\ssltest(3_19_2_6674).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6675).xmle:\BCTest\results\ssl\ssltest(3_19_2_6675).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6676).xmle:\BCTest\results\ssl\ssltest(3_19_2_6676).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6677).xmle:\BCTest\results\ssl\ssltest(3_19_2_6677).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6678).xmle:\BCTest\results\ssl\ssltest(3_19_2_6678).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6679).xmle:\BCTest\results\ssl\ssltest(3_19_2_6679).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6680).xmle:\BCTest\results\ssl\ssltest(3_19_2_6680).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6681).xmle:\BCTest\results\ssl\ssltest(3_19_2_6681).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6682).xmle:\BCTest\results\ssl\ssltest(3_19_2_6682).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6683).xmle:\BCTest\results\ssl\ssltest(3_19_2_6683).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6684).xmle:\BCTest\results\ssl\ssltest(3_19_2_6684).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6685).xmle:\BCTest\results\ssl\ssltest(3_19_2_6685).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6686).xmle:\BCTest\results\ssl\ssltest(3_19_2_6686).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6687).xmle:\BCTest\results\ssl\ssltest(3_19_2_6687).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6688).xmle:\BCTest\results\ssl\ssltest(3_19_2_6688).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6689).xmle:\BCTest\results\ssl\ssltest(3_19_2_6689).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6690).xmle:\BCTest\results\ssl\ssltest(3_19_2_6690).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6691).xmle:\BCTest\results\ssl\ssltest(3_19_2_6691).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6692).xmle:\BCTest\results\ssl\ssltest(3_19_2_6692).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6693).xmle:\BCTest\results\ssl\ssltest(3_19_2_6693).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6694).xmle:\BCTest\results\ssl\ssltest(3_19_2_6694).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6695).xmle:\BCTest\results\ssl\ssltest(3_19_2_6695).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6696).xmle:\BCTest\results\ssl\ssltest(3_19_2_6696).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6697).xmle:\BCTest\results\ssl\ssltest(3_19_2_6697).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6698).xmle:\BCTest\results\ssl\ssltest(3_19_2_6698).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6699).xmle:\BCTest\results\ssl\ssltest(3_19_2_6699).xml + + + 1 + c:\spd_logs\xml\ssltest(3_19_2_6773).xmle:\BCTest\results\ssl\ssltest(3_19_2_6773).xml + + + 1 + c:\spd_logs\xml\tcrl(3_50_2_6744).xmle:\BCTest\results\ssl\tcrl(3_50_2_6744).xml + + + 1 + c:\spd_logs\xml\testenc(3_50_2_6732).xmle:\BCTest\results\ssl\testenc(3_50_2_6732).xml + + + 1 + c:\spd_logs\xml\testgen(3_50_2_6733).xmle:\BCTest\results\ssl\testgen(3_50_2_6733).xml + + + 1 + c:\spd_logs\xml\testss(3_50_2_6735).xmle:\BCTest\results\ssl\testss(3_50_2_6735).xml + + + 1 + c:\spd_logs\xml\test_verify(3_50_2_6745).xmle:\BCTest\results\ssl\test_verify(3_50_2_6745).xml + + + 1 + c:\spd_logs\xml\tpkcs7(3_50_2_6734).xmle:\BCTest\results\ssl\tpkcs7(3_50_2_6734).xml + + + 1 + c:\spd_logs\xml\tpkcs7d(3_50_2_6736).xmle:\BCTest\results\ssl\tpkcs7d(3_50_2_6736).xml + + + 1 + c:\spd_logs\xml\treq(3_50_2_6737).xmle:\BCTest\results\ssl\treq(3_50_2_6737).xml + + + 1 + c:\spd_logs\xml\treq2(3_50_2_6738).xmle:\BCTest\results\ssl\treq2(3_50_2_6738).xml + + + 1 + c:\spd_logs\xml\trsa(3_50_2_6739).xmle:\BCTest\results\ssl\trsa(3_50_2_6739).xml + + + 1 + c:\spd_logs\xml\tsid(3_50_2_6740).xmle:\BCTest\results\ssl\tsid(3_50_2_6740).xml + + + 1 + c:\spd_logs\xml\tx509(3_50_2_6741).xmle:\BCTest\results\ssl\tx509(3_50_2_6741).xml + + + 1 + c:\spd_logs\xml\tx509_1(3_50_2_6742).xmle:\BCTest\results\ssl\tx509_1(3_50_2_6742).xml + + + 1 + c:\spd_logs\xml\tx509_2(3_50_2_6743).xmle:\BCTest\results\ssl\tx509_2(3_50_2_6743).xml + + + 16 + c:\spd_logs\xml\testscripter.xmle:\BCTest\results\ssl\testscripter.xml + +STIF + + 16 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\ssl\crypto_test.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/sslt.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/sslt.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/sis/sslt.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/sis/bcssltest.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/sis/bcssltest.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/sis/bcssltest.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/bmarm/ssl_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/bmarm/ssl_testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/bwins/ssl_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/bwins/ssl_testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/eabi/ssl_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/eabi/ssl_testu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/libssl_blr_hw_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/libssl_blr_hw_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1088 @@ + + + libssl_blr_hw_component + + + + libssl_ssltest_3_19_2_6669_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6669) -test_cipherlist + + c:\spd_logs\xml\ssltest(3_19_2_6669).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6670_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6670) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6670).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6671_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6671) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6671).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6672_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6672) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6672).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6673_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6673) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6673).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6674_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6674) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6674).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6675_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6675) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6675).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6676_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6676) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6676).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6677_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6677) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6677).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6678_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6678) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss + + c:\spd_logs\xml\ssltest(3_19_2_6678).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6679_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6679) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6679).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6680_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6680) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6680).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6681_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6681) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6681).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6682_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6682) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6682).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6683_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6683) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6683).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6684_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6684) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6684).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6685_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6685) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6685).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6686_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6686) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6686).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6687_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6687) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6687).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6688_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6688) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6688).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6689_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6689) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6689).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6690_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6690) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss + + c:\spd_logs\xml\ssltest(3_19_2_6690).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6691_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6691) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -no_dhe + + c:\spd_logs\xml\ssltest(3_19_2_6691).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6692_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6692) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -dhe1024dsa -v + + c:\spd_logs\xml\ssltest(3_19_2_6692).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6693_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6693) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6693).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6694_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6694) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6694).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6695_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6695) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6695).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6696_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6696) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -client_auth -app_verify -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6696).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6697_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6697) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6697).xml + + 300 + + + + + + + + + libssl_ssltest_3_19_2_6698_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + server2.pem + c:\server2.pem + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6698) -v -bio_pair -tls1 -cert C:/server2.pem -no_dhe -num 10 -f -time + + c:\spd_logs\xml\ssltest(3_19_2_6698).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6699_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + server2.pem + c:\server2.pem + + + + c:\sys\bin\ssltest.exe + ssltest(3_19_2_6699) -v -bio_pair -tls1 -cert c:/server2.pem -dhe1024dsa -num 10 -f -time + + c:\spd_logs\xml\ssltest(3_19_2_6699).xml + + 300 + + + + + + libssl_symstore_3_19_2_6773_blr + High + + ssltest.exe + c:\sys\bin\ssltest.exe + + + server.pem + c:\server.pem + + + c:\sys\bin\ssltest.exe + symstore(3_19_2_6773) -symstore + + c:\spd_logs\xml\symstore(3_19_2_6773).xml + + 300 + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/libssl_blr_winsspd_component.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/libssl_blr_winsspd_component.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,1089 @@ + + + libssl_blr_winsspd_component + + + + libssl_ssltest_3_19_2_6669_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6669) -test_cipherlist + + c:\spd_logs\xml\ssltest(3_19_2_6669).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6670_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6670) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6670).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6671_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6671) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6671).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6672_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6672) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6672).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6673_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6673) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6673).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6674_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6674) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl3 + + c:\spd_logs\xml\ssltest(3_19_2_6674).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6675_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6675) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl3 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6675).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6676_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6676) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl3 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6676).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6677_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6677) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -ssl3 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6677).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6678_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6678) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss + + c:\spd_logs\xml\ssltest(3_19_2_6678).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6679_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6679) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6679).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6680_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6680) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6680).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6681_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6681) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6681).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6682_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6682) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 + + c:\spd_logs\xml\ssltest(3_19_2_6682).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6683_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6683) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6683).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6684_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6684) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6684).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6685_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6685) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl2 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6685).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6686_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6686) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl3 + + c:\spd_logs\xml\ssltest(3_19_2_6686).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6687_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6687) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl3 -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6687).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6688_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6688) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl3 -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6688).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6689_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6689) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -ssl3 -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6689).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6690_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6690) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss + + c:\spd_logs\xml\ssltest(3_19_2_6690).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6691_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6691) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -no_dhe + + c:\spd_logs\xml\ssltest(3_19_2_6691).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6692_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6692) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -dhe1024dsa -v + + c:\spd_logs\xml\ssltest(3_19_2_6692).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6693_blr + High + + ssltest.exe + Z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6693) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6693).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6694_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6694) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6694).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6695_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6695) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -client_auth -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6695).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6696_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6696) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -bio_pair -server_auth -client_auth -app_verify -CAfile C:/certCA.ss + + c:\spd_logs\xml\ssltest(3_19_2_6696).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6697_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6697) -key C:/keyU.ss -cert C:/certU.ss -c_key C:/keyU.ss -c_cert C:/certU.ss -v -bio_pair -tls1 -cipher ADH -dhe1024dsa -num 10 -f -time + + c:\spd_logs\xml\ssltest(3_19_2_6697).xml + + 300 + + + + + + + + + libssl_ssltest_3_19_2_6698_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + server2.pem + c:\server2.pem + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6698) -v -bio_pair -tls1 -cert C:/server2.pem -no_dhe -num 10 -f -time + + c:\spd_logs\xml\ssltest(3_19_2_6698).xml + + 300 + + + + + + libssl_ssltest_3_19_2_6699_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + keyU.ss + c:\keyU.ss + + + + certU.ss + c:\certU.ss + + + + certCA.ss + c:\certCA.ss + + + + server2.pem + c:\server2.pem + + + + Z:\sys\bin\ssltest.exe + ssltest(3_19_2_6699) -v -bio_pair -tls1 -cert c:/server2.pem -dhe1024dsa -num 10 -f -time + + c:\spd_logs\xml\ssltest(3_19_2_6699).xml + + 300 + + + + + + libssl_symstore_3_19_2_6773_blr + High + + ssltest.exe + z:\sys\bin\ssltest.exe + + + server.pem + c:\server.pem + + + Z:\sys\bin\ssltest.exe + symstore(3_19_2_6773) -symstore + + c:\spd_logs\xml\symstore(3_19_2_6773).xml + + 300 + + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/ssl_test.mmp --- a/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/ssl_test.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/ssl/ssl_test/ssl_test/group/ssl_test.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -64,3 +64,5 @@ //START RESOURCE helloworld_reg.rss //TARGETPATH \private\10003a3f\apps //END + +SMPSAFE diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/Bmarm/BCCSRuntimeSupU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/Bmarm/BCCSRuntimeSupU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/Bwins/BCCSRuntimeSupU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/Bwins/BCCSRuntimeSupU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/EABI/BCCSRuntimeSupU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/EABI/BCCSRuntimeSupU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/group/run_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/group/run_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/group/run_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/group/run_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/group/run_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/group/run_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/sis/mrt_csruntime.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCSRuntimeSup/sis/mrt_csruntime.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_mathoperations"},(0x20015A17),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCCSRuntimeSup.dll"-"!:\sys\bin\BCCSRuntimeSup.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtruntime.ini"-"!:\TestFramework\testframework_mrtruntime.ini" -"\Epoc32\winscw\c\testframework\BCCSRuntimeSup.cfg"-"!:\TestFramework\BCCSRuntimeSup.cfg" -"\epoc32\winscw\c\run_c.bat"-"!:\run.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/EABI/BCCppWrapu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/EABI/BCCppWrapu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/group/cpw_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/group/cpw_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/group/cpw_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/group/cpw_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/group/cpw_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/group/cpw_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/sis/mrt_cppwrap.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCCppWrap/sis/mrt_cppwrap.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_cppwrapper"},(0x20015A16),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\bccppwrap.dll"-"!:\sys\bin\bccppwrap.dll" -"\Epoc32\winscw\c\testframework\testframework_cppwrap.ini"-"!:\TestFramework\testframework_cppwrap.ini" -"\Epoc32\winscw\c\testframework\bccppwrap.cfg"-"!:\TestFramework\bccppwrap.cfg" -"\epoc32\winscw\c\cpw_c.bat"-"!:\cpw.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/Bmarm/BCExceptionU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/Bmarm/BCExceptionU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/Bwins/BCExceptionU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/Bwins/BCExceptionU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/EABI/BCExceptionU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/EABI/BCExceptionU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/group/exp_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/group/exp_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/group/exp_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/group/exp_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/group/exp_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/group/exp_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/sis/mrt_exception.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCException/sis/mrt_exception.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_exceptions"},(0x20015A18),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCException.dll"-"!:\sys\bin\BCException.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtexp.ini"-"!:\TestFramework\testframework_mrtexp.ini" -"\Epoc32\winscw\c\testframework\BCException.cfg"-"!:\TestFramework\BCException.cfg" -"\epoc32\winscw\c\exp_c.bat"-"!:\exp.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/Bmarm/BCNoNamespaceU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/Bmarm/BCNoNamespaceU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/Bwins/BCNoNamespaceU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/Bwins/BCNoNamespaceU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/EABI/BCNoNamespaceU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/EABI/BCNoNamespaceU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/group/ns_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/group/ns_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/group/ns_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/group/ns_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/group/ns_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/group/ns_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/sis/mrt_NoNamespace.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCNoNamespace/sis/mrt_NoNamespace.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_nonamespace"},(0x20015A19),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCNoNamespace.dll"-"!:\sys\bin\BCNoNamespace.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtnons.ini"-"!:\TestFramework\testframework_mrtnons.ini" -"\Epoc32\winscw\c\testframework\BCNoNamespace.cfg"-"!:\TestFramework\BCNoNamespace.cfg" -"\epoc32\winscw\c\ns_c.bat"-"!:\ns.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/Bmarm/BCOpenCHeadersU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/Bmarm/BCOpenCHeadersU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/Bwins/BCOpenCHeadersU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/Bwins/BCOpenCHeadersU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/EABI/BCOpenCHeadersU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/EABI/BCOpenCHeadersU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/group/och_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/group/och_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/group/och_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/group/och_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/group/och_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/group/och_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/sis/mrt_opencheaders.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCHeaders/sis/mrt_opencheaders.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_opencheaders"},(0x20015A1A),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCOpenCHeaders.dll"-"!:\sys\bin\BCOpenCHeaders.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtopench.ini"-"!:\TestFramework\testframework_mrtopench.ini" -"\Epoc32\winscw\c\testframework\BCOpenCHeaders.cfg"-"!:\TestFramework\BCOpenCHeaders.cfg" -"\epoc32\winscw\c\och_c.bat"-"!:\och.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/Bmarm/BCOpenCWrapU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/Bmarm/BCOpenCWrapU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/Bwins/BCOpenCWrapU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/Bwins/BCOpenCWrapU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/EABI/BCOpenCWrapU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/EABI/BCOpenCWrapU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/group/ocw_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/group/ocw_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/group/ocw_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/group/ocw_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/group/ocw_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/group/ocw_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/sis/mrt_opencwrap.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCOpenCWrap/sis/mrt_opencwrap.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_opencwrappers"},(0x20015A1B),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCOpenCWrap.dll"-"!:\sys\bin\BCOpenCWrap.dll" -"\Epoc32\winscw\c\testframework\testframework_ocw.ini"-"!:\TestFramework\testframework_ocw.ini" -"\Epoc32\winscw\c\testframework\BCOpenCWrap.cfg"-"!:\TestFramework\BCOpenCWrap.cfg" -"\epoc32\winscw\c\ocw_c.bat"-"!:\ocw.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/Bmarm/BCThreadU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/Bmarm/BCThreadU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/Bwins/BCThreadU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/Bwins/BCThreadU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/EABI/BCThreadU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/EABI/BCThreadU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/group/thrd_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/group/thrd_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/group/thrd_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/group/thrd_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/group/thrd_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/group/thrd_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/sis/mrt_thread.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCThread/sis/mrt_thread.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_thread"},(0x20015A1C),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCThread.dll"-"!:\sys\bin\BCThread.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmath.ini"-"!:\TestFramework\testframework_mrtmath.ini" -"\Epoc32\winscw\c\testframework\BCThread.cfg"-"!:\TestFramework\BCThread.cfg" -"\epoc32\winscw\c\thrd_c.bat"-"!:\thrd.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/Bmarm/BCTypeAttribU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/Bmarm/BCTypeAttribU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/Bwins/BCTypeAttribU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/Bwins/BCTypeAttribU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/EABI/BCTypeAttribU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/EABI/BCTypeAttribU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/group/typa_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/group/typa_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/group/typa_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/group/typa_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/group/typa_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/group/typa_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/sis/mrt_typeattrib.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeAttrib/sis/mrt_typeattrib.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_typeattrib"},(0x20015A1D),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTypeAttrib.dll"-"!:\sys\bin\BCTypeAttrib.dll" -"\Epoc32\winscw\c\testframework\testframework_mrttypea.ini"-"!:\TestFramework\testframework_mrttypea.ini" -"\Epoc32\winscw\c\testframework\BCTypeAttrib.cfg"-"!:\TestFramework\BCTypeAttrib.cfg" -"\epoc32\winscw\c\typa_c.bat"-"!:\typa.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/Bmarm/BCTypeInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/Bmarm/BCTypeInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/Bwins/BCTypeInfoU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/Bwins/BCTypeInfoU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/EABI/BCTypeInfoU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/EABI/BCTypeInfoU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/group/typi_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/group/typi_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/group/typi_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/group/typi_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/group/typi_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/group/typi_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/sis/mrt_typeinfo.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/BCTypeInfo/sis/mrt_typeinfo.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_typeinfo"},(0x20015A1E),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCTypeInfo.dll"-"!:\sys\bin\BCTypeInfo.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmath.ini"-"!:\TestFramework\testframework_mrttypei.ini" -"\Epoc32\winscw\c\testframework\BCTypeInfo.cfg"-"!:\TestFramework\BCTypeInfo.cfg" -"\epoc32\winscw\c\typi_c.bat"-"!:\typi.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/Bmarm/chartypesU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/Bmarm/chartypesU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/Bwins/chartypesU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/Bwins/chartypesU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/EABI/chartypesU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/EABI/chartypesU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/group/char_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/group/char_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/group/char_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/group/char_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/group/char_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/group/char_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/sis/mrt_chartypes.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/chartypes/sis/mrt_chartypes.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_chartypes"},(0x20015A1F),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\chartypes.dll"-"!:\sys\bin\chartypes.dll" -"\Epoc32\winscw\c\testframework\testframework_ct.ini"-"!:\TestFramework\testframework_ct.ini" -"\epoc32\winscw\c\char_c.bat"-"!:\char.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/bwins/tiostreamsu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/bwins/tiostreamsu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/eabi/tiostreamsu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/eabi/tiostreamsu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,72 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZNKSt8ios_base6getlocEv @ 2 NONAME + _ZNSdC1EPSt15basic_streambufIcSt11char_traitsIcEE @ 3 NONAME + _ZNSdC2EPSt15basic_streambufIcSt11char_traitsIcEE @ 4 NONAME + _ZNSdD0Ev @ 5 NONAME + _ZNSdD1Ev @ 6 NONAME + _ZNSdD2Ev @ 7 NONAME + _ZNSdD9Ev @ 8 NONAME + _ZNSiC1EPSt15basic_streambufIcSt11char_traitsIcEE @ 9 NONAME + _ZNSiC2EPSt15basic_streambufIcSt11char_traitsIcEE @ 10 NONAME + _ZNSiD0Ev @ 11 NONAME + _ZNSiD1Ev @ 12 NONAME + _ZNSiD2Ev @ 13 NONAME + _ZNSiD9Ev @ 14 NONAME + _ZNSo3putEc @ 15 NONAME + _ZNSo5writeEPKci @ 16 NONAME + _ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE @ 17 NONAME + _ZNSoC2EPSt15basic_streambufIcSt11char_traitsIcEE @ 18 NONAME + _ZNSoD0Ev @ 19 NONAME + _ZNSoD1Ev @ 20 NONAME + _ZNSoD2Ev @ 21 NONAME + _ZNSoD9Ev @ 22 NONAME + _ZNSs6appendEjc @ 23 NONAME + _ZNSs6insertEPcjc @ 24 NONAME + _ZNSs7replaceEPcS_jc @ 25 NONAME + _ZNSs7reserveEj @ 26 NONAME + _ZNSsC1EPKcRKSaIcE @ 27 NONAME + _ZNSsC1ERKSs @ 28 NONAME + _ZNSsC1Ev @ 29 NONAME + _ZNSsC2EPKcRKSaIcE @ 30 NONAME + _ZNSsC2ERKSs @ 31 NONAME + _ZNSsC2Ev @ 32 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED0Ev @ 33 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev @ 34 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED2Ev @ 35 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED9Ev @ 36 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE3strERKSs @ 37 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE5uflowEv @ 38 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE6setbufEPci @ 39 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE6xsputnEPKci @ 40 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE7seekoffElii @ 41 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE7seekposESt4fposI11_mb_state_tEi @ 42 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE8overflowEi @ 43 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE9pbackfailEi @ 44 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE9underflowEv @ 45 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEEC1ERKSsi @ 46 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEEC1Ei @ 47 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEEC2ERKSsi @ 48 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEEC2Ei @ 49 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev @ 50 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED1Ev @ 51 NONAME + _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev @ 52 NONAME + _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ei @ 53 NONAME + _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC2Ei @ 54 NONAME + _ZTISd @ 55 NONAME ; ## + _ZTISi @ 56 NONAME ; ## + _ZTISo @ 57 NONAME ; ## + _ZTISt13basic_filebufIcSt11char_traitsIcEE @ 58 NONAME ; ## + _ZTISt13basic_fstreamIcSt11char_traitsIcEE @ 59 NONAME ; ## + _ZTVSd @ 60 NONAME ; ## + _ZTVSi @ 61 NONAME ; ## + _ZTVSo @ 62 NONAME ; ## + _ZTVSt13basic_filebufIcSt11char_traitsIcEE @ 63 NONAME ; ## + _ZTVSt13basic_fstreamIcSt11char_traitsIcEE @ 64 NONAME ; ## + _ZThn8_NSdD0Ev @ 65 NONAME ; ## + _ZThn8_NSdD1Ev @ 66 NONAME ; ## + _ZThn8_NSdD9Ev @ 67 NONAME ; ## + _ZThn8_NSt13basic_fstreamIcSt11char_traitsIcEED0Ev @ 68 NONAME ; ## + _ZThn8_NSt13basic_fstreamIcSt11char_traitsIcEED1Ev @ 69 NONAME ; ## + _ZThn8_NSt13basic_fstreamIcSt11char_traitsIcEED9Ev @ 70 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/group/ios_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/group/ios_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/group/ios_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/group/ios_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/group/ios_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/group/ios_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/sis/50_mrt_tiostreams.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/sis/50_mrt_tiostreams.pkg Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,52 @@ +; +; 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 +; none - English only by default +&EN + +; Installation header +; Only one component name as we only support English +; UID is the main app's UID + +#{"mrt_tiosteams"},(0x10282CA8),1,0,0,TYPE=SA +(0x101F7961),3,*,*,{"Series60ProductID"} + +; Non-localised vendor name +:"Nokia Corporation" + +; Localised vendor names +%{"Nokia Corporation"} + +; Files to install and to where +"\Epoc32\Release\armv5\urel\tiostreams.dll"-"!:\sys\bin\tiostreams.dll" +"\Epoc32\winscw\c\testframework\testframework_tiostreams.ini"-"!:\TestFramework\testframework_tiostreams.ini" +"\Epoc32\winscw\c\testframework\tiostreams.cfg"-"!:\TestFramework\tiostreams.cfg" +"\epoc32\winscw\c\ios_c.bat"-"!:\ios.bat" + +"\epoc32\WINSCW\C\TestFramework\docs\basicfilebuf.txt"-"!:\TestFramework\docs\basicfilebuf.txt" +"\epoc32\WINSCW\C\TestFramework\docs\basicistream.txt"-"!:\TestFramework\docs\basicistream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\example.txt"-"!:\TestFramework\docs\example.txt" +"\epoc32\WINSCW\C\TestFramework\docs\filebuf.txt"-"!:\TestFramework\docs\filebuf.txt" +"\epoc32\WINSCW\C\TestFramework\docs\fpos_state.txt"-"!:\TestFramework\docs\fpos_state.txt" +"\epoc32\WINSCW\C\TestFramework\docs\fstream.txt"-"!:\TestFramework\docs\fstream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\istream.txt"-"!:\TestFramework\docs\istream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\ostream.txt"-"!:\TestFramework\docs\ostream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\streambuf.txt"-"!:\TestFramework\docs\streambuf.txt" +"\epoc32\WINSCW\C\TestFramework\docs\wfstream.txt"-"!:\TestFramework\docs\wfstream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\wifstream.txt"-"!:\TestFramework\docs\wifstream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\wistream.txt"-"!:\TestFramework\docs\wistream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\wostream.txt"-"!:\TestFramework\docs\wostream.txt" +"\epoc32\WINSCW\C\TestFramework\docs\wstreambuf.txt"-"!:\TestFramework\docs\wstreambuf.txt" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/sis/mrt_tiostreams.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tiostreams/sis/mrt_tiostreams.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_tiosteams"},(0x10282CA8),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\tiostreams.dll"-"!:\sys\bin\tiostreams.dll" -"\Epoc32\winscw\c\testframework\testframework_tiostreams.ini"-"!:\TestFramework\testframework_tiostreams.ini" -"\Epoc32\winscw\c\testframework\tiostreams.cfg"-"!:\TestFramework\tiostreams.cfg" -"\epoc32\winscw\c\ios_c.bat"-"!:\ios.bat" - -"\epoc32\WINSCW\C\TestFramework\docs\basicfilebuf.txt"-"!:\TestFramework\docs\basicfilebuf.txt" -"\epoc32\WINSCW\C\TestFramework\docs\basicistream.txt"-"!:\TestFramework\docs\basicistream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\example.txt"-"!:\TestFramework\docs\example.txt" -"\epoc32\WINSCW\C\TestFramework\docs\filebuf.txt"-"!:\TestFramework\docs\filebuf.txt" -"\epoc32\WINSCW\C\TestFramework\docs\fpos_state.txt"-"!:\TestFramework\docs\fpos_state.txt" -"\epoc32\WINSCW\C\TestFramework\docs\fstream.txt"-"!:\TestFramework\docs\fstream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\istream.txt"-"!:\TestFramework\docs\istream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\ostream.txt"-"!:\TestFramework\docs\ostream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\streambuf.txt"-"!:\TestFramework\docs\streambuf.txt" -"\epoc32\WINSCW\C\TestFramework\docs\wfstream.txt"-"!:\TestFramework\docs\wfstream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\wifstream.txt"-"!:\TestFramework\docs\wifstream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\wistream.txt"-"!:\TestFramework\docs\wistream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\wostream.txt"-"!:\TestFramework\docs\wostream.txt" -"\epoc32\WINSCW\C\TestFramework\docs\wstreambuf.txt"-"!:\TestFramework\docs\wstreambuf.txt" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/bwins/hide tlocaleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/bwins/hide tlocaleu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,9 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) + ??0?$basic_string@DV?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z @ 2 NONAME ; std::basic_string, class std::allocator >::basic_string, class std::allocator >(char const *, class std::allocator const &) + ??0?$basic_string@DV?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ @ 3 NONAME ; std::basic_string, class std::allocator >::basic_string, class std::allocator >(void) + ??0?$basic_string@_WV?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WABV?$allocator@_W@1@@Z @ 4 NONAME ; std::basic_string, class std::allocator >::basic_string, class std::allocator >(wchar_t const *, class std::allocator const &) + ??0facet@locale@std@@AAE@ABV012@@Z @ 5 NONAME ; std::locale::facet::facet(class std::locale::facet const &) + ??0facet@locale@std@@IAE@I@Z @ 6 NONAME ; std::locale::facet::facet(unsigned int) + ??_Efacet@locale@std@@UAE@I@Z @ 7 NONAME ; std::locale::facet::~facet(unsigned int) + ?getloc@ios_base@std@@QBE?AVlocale@2@XZ @ 8 NONAME ; class std::locale std::ios_base::getloc(void) const diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/bwins/tlocaleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/bwins/tlocaleu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,2 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/eabi/tlocaleu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/eabi/tlocaleu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,10 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZNKSt8ios_base6getlocEv @ 2 NONAME + _ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_ @ 3 NONAME + _ZNSbIwSt11char_traitsIwESaIwEEC2EPKwRKS1_ @ 4 NONAME + _ZNSsC1EPKcRKSaIcE @ 5 NONAME + _ZNSsC1Ev @ 6 NONAME + _ZNSsC2EPKcRKSaIcE @ 7 NONAME + _ZNSsC2Ev @ 8 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/group/loc_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/group/loc_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/group/loc_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/group/loc_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/group/loc_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/group/loc_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/sis/mrt_tlocale.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/sis/mrt_tlocale.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_tlocale"},(0x20016BC8),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\tlocale.dll"-"!:\sys\bin\tlocale.dll" -"\Epoc32\winscw\c\testframework\testframework_tlocale.ini"-"!:\TestFramework\testframework_tlocale.ini" -"\Epoc32\winscw\c\testframework\tlocale.cfg"-"!:\TestFramework\tlocale.cfg" -"\epoc32\winscw\c\loc_c.bat"-"!:\loc.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/sis/mrt_tlocale.sis Binary file apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tlocale/sis/mrt_tlocale.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/bwins/tmath_operationsu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/bwins/tmath_operationsu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/eabi/tmath_operationsu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/eabi/tmath_operationsu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/group/math_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/group/math_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/group/math_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/group/math_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/group/math_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/group/math_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/sis/mrt_mathoperations.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmath_operations/sis/mrt_mathoperations.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_mathoperations"},(0x20015A20),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\tmath_operations.dll"-"!:\sys\bin\tmath_operations.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmath.ini"-"!:\TestFramework\testframework_mrtmath.ini" -"\Epoc32\winscw\c\testframework\tmath_operations.cfg"-"!:\TestFramework\math_operations.cfg" -"\epoc32\winscw\c\math_c.bat"-"!:\math.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/bwins/tmemoryu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/bwins/tmemoryu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/eabi/tmemoryu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/eabi/tmemoryu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/group/mem_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/group/mem_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/group/mem_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/group/mem_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/group/mem_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/group/mem_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/sis/mrt_memory.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tmemory/sis/mrt_memory.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_memory"},(0x20015A21),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\tmemory.dll"-"!:\sys\bin\tmemory.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmem.ini"-"!:\TestFramework\testframework_mrtmem.ini" -"\Epoc32\winscw\c\testframework\tmemory.cfg"-"!:\TestFramework\tmemory.cfg" -"\epoc32\winscw\c\mem_c.bat"-"!:\mem.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/eabi/tstl_1u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/eabi/tstl_1u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,50 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZNKSt8ios_base6getlocEv @ 2 NONAME + _ZNSdC1EPSt15basic_streambufIcSt11char_traitsIcEE @ 3 NONAME + _ZNSdC2EPSt15basic_streambufIcSt11char_traitsIcEE @ 4 NONAME + _ZNSdD0Ev @ 5 NONAME + _ZNSdD1Ev @ 6 NONAME + _ZNSdD2Ev @ 7 NONAME + _ZNSdD9Ev @ 8 NONAME + _ZNSiC1EPSt15basic_streambufIcSt11char_traitsIcEE @ 9 NONAME + _ZNSiC2EPSt15basic_streambufIcSt11char_traitsIcEE @ 10 NONAME + _ZNSiD0Ev @ 11 NONAME + _ZNSiD1Ev @ 12 NONAME + _ZNSiD2Ev @ 13 NONAME + _ZNSiD9Ev @ 14 NONAME + _ZNSoC1EPSt15basic_streambufIcSt11char_traitsIcEE @ 15 NONAME + _ZNSoC2EPSt15basic_streambufIcSt11char_traitsIcEE @ 16 NONAME + _ZNSoD0Ev @ 17 NONAME + _ZNSoD1Ev @ 18 NONAME + _ZNSoD2Ev @ 19 NONAME + _ZNSoD9Ev @ 20 NONAME + _ZNSsC1EPKcRKSaIcE @ 21 NONAME + _ZNSsC1ERKSs @ 22 NONAME + _ZNSsC1Ev @ 23 NONAME + _ZNSsC2EPKcRKSaIcE @ 24 NONAME + _ZNSsC2ERKSs @ 25 NONAME + _ZNSsC2Ev @ 26 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev @ 27 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEEC2Ev @ 28 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED0Ev @ 29 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev @ 30 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED2Ev @ 31 NONAME + _ZNSt13basic_fstreamIcSt11char_traitsIcEED9Ev @ 32 NONAME + _ZTISd @ 33 NONAME ; ## + _ZTISi @ 34 NONAME ; ## + _ZTISo @ 35 NONAME ; ## + _ZTISt13basic_filebufIcSt11char_traitsIcEE @ 36 NONAME ; ## + _ZTISt13basic_fstreamIcSt11char_traitsIcEE @ 37 NONAME ; ## + _ZTVSd @ 38 NONAME ; ## + _ZTVSi @ 39 NONAME ; ## + _ZTVSo @ 40 NONAME ; ## + _ZTVSt13basic_filebufIcSt11char_traitsIcEE @ 41 NONAME ; ## + _ZTVSt13basic_fstreamIcSt11char_traitsIcEE @ 42 NONAME ; ## + _ZThn8_NSdD0Ev @ 43 NONAME ; ## + _ZThn8_NSdD1Ev @ 44 NONAME ; ## + _ZThn8_NSdD9Ev @ 45 NONAME ; ## + _ZThn8_NSt13basic_fstreamIcSt11char_traitsIcEED0Ev @ 46 NONAME ; ## + _ZThn8_NSt13basic_fstreamIcSt11char_traitsIcEED1Ev @ 47 NONAME ; ## + _ZThn8_NSt13basic_fstreamIcSt11char_traitsIcEED9Ev @ 48 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/group/stl_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/group/stl_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/group/stl_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/group/stl_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/group/stl_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/group/stl_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/sis/mrt_tstl.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/sis/mrt_tstl.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_tstl"},(0x20016BC7),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\tstl_1.dll"-"!:\sys\bin\tstl_1.dll" -"\Epoc32\winscw\c\testframework\testframework_tstl_1.ini"-"!:\TestFramework\testframework_tstl_1.ini" -"\Epoc32\winscw\c\testframework\tstl_1.cfg"-"!:\TestFramework\tstl_1.cfg" -"\epoc32\winscw\c\stl_c.bat"-"!:\stl.bat" -"\epoc32\winscw\c\resource\locales.txt"-"!:\resource\locales.txt" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/sis/mrt_tstl.sis Binary file apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tstl_1/sis/mrt_tstl.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/bwins/tutilityu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/bwins/tutilityu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/eabi/tutilityu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/eabi/tutilityu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/group/util_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/group/util_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/group/util_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/group/util_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/group/util_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/group/util_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/sis/mrt_utility.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/tutility/sis/mrt_utility.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_utility"},(0x20015A22),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\tutility.dll"-"!:\sys\bin\tutility.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtutil.ini"-"!:\TestFramework\testframework_mrtutil.ini" -"\Epoc32\winscw\c\testframework\tutility.cfg"-"!:\TestFramework\tutility.cfg" -"\epoc32\winscw\c\util_c.bat"-"!:\util.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/Bmarm/widecharclassapiBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/Bmarm/widecharclassapiBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/Bwins/widecharclassapiBCTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/Bwins/widecharclassapiBCTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/EABI/widecharclassapiBCTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/EABI/widecharclassapiBCTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/group/wide_c.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/group/wide_c.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/group/wide_c.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/group/wide_z.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/group/wide_z.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/group/wide_z.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/sis/mrt_widecharclass.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/apps/widecharclassapiBCTest/sis/mrt_widecharclass.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -; -; Copyright (c) 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" -; 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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"mrt_widecharclass"},(0x20015A23),1,0,0,TYPE=SA -(0x101F7961),3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\widecharclassapiBCTest.dll"-"!:\sys\bin\widecharclassapiBCTest.dll" -"\epoc32\winscw\c\TestFramework\testframework_wc.ini"-"!:\TestFramework\testframework_wc.ini" -"\epoc32\winscw\c\testwc_c.bat"-"!:\testwc.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/OsSrv_stdcpp.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/OsSrv_stdcpp.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,135 +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 -#{"stdcppapps"},(0x20015A24),1,0,0 - -;Supports S60 3.0 -[0x101F7961], 0, 0, 0, {"Series60ProductID"} - -;Localised Vendor name -%{"Nokia Testing EN"} - -;Unique Vendor name -:"Vendor" - -;Files to install - -;**********************************stdcpp related tests*********************************** -;BCCppWrap -"\Epoc32\Release\armv5\urel\bccppwrap.dll"-"!:\sys\bin\bccppwrap.dll" -"\Epoc32\winscw\c\testframework\testframework_cppwrap.ini"-"!:\TestFramework\testframework_cppwrap.ini" -"\Epoc32\winscw\c\testframework\bccppwrap.cfg"-"!:\TestFramework\bccppwrap.cfg" -"\epoc32\winscw\c\cpw_c.bat"-"!:\cpw.bat" - -;BCCSRuntimeSup -"\Epoc32\Release\armv5\urel\BCCSRuntimeSup.dll"-"!:\sys\bin\BCCSRuntimeSup.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtruntime.ini"-"!:\TestFramework\testframework_mrtruntime.ini" -"\Epoc32\winscw\c\testframework\BCCSRuntimeSup.cfg"-"!:\TestFramework\BCCSRuntimeSup.cfg" -"\epoc32\winscw\c\run_c.bat"-"!:\run.bat" - -;BCException -"\Epoc32\Release\armv5\urel\BCException.dll"-"!:\sys\bin\BCException.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtexp.ini"-"!:\TestFramework\testframework_mrtexp.ini" -"\Epoc32\winscw\c\testframework\BCException.cfg"-"!:\TestFramework\BCException.cfg" -"\epoc32\winscw\c\exp_c.bat"-"!:\exp.bat" - -;BCNoNamespace -"\Epoc32\Release\armv5\urel\BCNoNamespace.dll"-"!:\sys\bin\BCNoNamespace.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtnons.ini"-"!:\TestFramework\testframework_mrtnons.ini" -"\Epoc32\winscw\c\testframework\BCNoNamespace.cfg"-"!:\TestFramework\BCNoNamespace.cfg" -"\epoc32\winscw\c\ns_c.bat"-"!:\ns.bat" - -;BCOpenCHeaders -"\Epoc32\Release\armv5\urel\BCOpenCHeaders.dll"-"!:\sys\bin\BCOpenCHeaders.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtopench.ini"-"!:\TestFramework\testframework_mrtopench.ini" -"\Epoc32\winscw\c\testframework\BCOpenCHeaders.cfg"-"!:\TestFramework\BCOpenCHeaders.cfg" -"\epoc32\winscw\c\och_c.bat"-"!:\och.bat" - -;BCOpenCWrap -"\Epoc32\Release\armv5\urel\BCOpenCWrap.dll"-"!:\sys\bin\BCOpenCWrap.dll" -"\Epoc32\winscw\c\testframework\testframework_ocw.ini"-"!:\TestFramework\testframework_ocw.ini" -"\Epoc32\winscw\c\testframework\BCOpenCWrap.cfg"-"!:\TestFramework\BCOpenCWrap.cfg" -"\epoc32\winscw\c\ocw_c.bat"-"!:\ocw.bat" - -;BCThread -"\Epoc32\Release\armv5\urel\BCThread.dll"-"!:\sys\bin\BCThread.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmath.ini"-"!:\TestFramework\testframework_mrtmath.ini" -"\Epoc32\winscw\c\testframework\BCThread.cfg"-"!:\TestFramework\BCThread.cfg" -"\epoc32\winscw\c\thrd_c.bat"-"!:\thrd.bat" - -;BCTypeAttrib -"\Epoc32\Release\armv5\urel\BCTypeAttrib.dll"-"!:\sys\bin\BCTypeAttrib.dll" -"\Epoc32\winscw\c\testframework\testframework_mrttypea.ini"-"!:\TestFramework\testframework_mrttypea.ini" -"\Epoc32\winscw\c\testframework\BCTypeAttrib.cfg"-"!:\TestFramework\BCTypeAttrib.cfg" -"\epoc32\winscw\c\typa_c.bat"-"!:\typa.bat" - -;BCTypeInfo -"\Epoc32\Release\armv5\urel\BCTypeInfo.dll"-"!:\sys\bin\BCTypeInfo.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmath.ini"-"!:\TestFramework\testframework_mrttypei.ini" -"\Epoc32\winscw\c\testframework\BCTypeInfo.cfg"-"!:\TestFramework\BCTypeInfo.cfg" -"\epoc32\winscw\c\typi_c.bat"-"!:\typi.bat" - -;chartypes -"\Epoc32\Release\armv5\urel\chartypes.dll"-"!:\sys\bin\chartypes.dll" -"\Epoc32\winscw\c\testframework\testframework_ct.ini"-"!:\TestFramework\testframework_ct.ini" -"\epoc32\winscw\c\char_c.bat"-"!:\char.bat" - -;tmath_operations -"\Epoc32\Release\armv5\urel\tmath_operations.dll"-"!:\sys\bin\tmath_operations.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmath.ini"-"!:\TestFramework\testframework_mrtmath.ini" -"\Epoc32\winscw\c\testframework\tmath_operations.cfg"-"!:\TestFramework\tmath_operations.cfg" -"\epoc32\winscw\c\math_c.bat"-"!:\math.bat" - -;tmemory -"\Epoc32\Release\armv5\urel\tmemory.dll"-"!:\sys\bin\tmemory.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtmem.ini"-"!:\TestFramework\testframework_mrtmem.ini" -"\Epoc32\winscw\c\testframework\tmemory.cfg"-"!:\TestFramework\tmemory.cfg" -"\epoc32\winscw\c\mem_c.bat"-"!:\mem.bat" - -;tutility -"\Epoc32\Release\armv5\urel\tutility.dll"-"!:\sys\bin\tutility.dll" -"\Epoc32\winscw\c\testframework\testframework_mrtutil.ini"-"!:\TestFramework\testframework_mrtutil.ini" -"\Epoc32\winscw\c\testframework\tutility.cfg"-"!:\TestFramework\tutility.cfg" -"\epoc32\winscw\c\util_c.bat"-"!:\util.bat" - -;widecharclassapiBCTest -"\Epoc32\Release\armv5\urel\widecharclassapiBCTest.dll"-"!:\sys\bin\widecharclassapiBCTest.dll" -"\epoc32\winscw\c\TestFramework\testframework_wc.ini"-"!:\TestFramework\testframework_wc.ini" -"\epoc32\winscw\c\wide_c.bat"-"!:\wide.bat" - -;tlocale -"\Epoc32\Release\armv5\urel\tlocale.dll"-"!:\sys\bin\tlocale.dll" -"\Epoc32\winscw\c\testframework\testframework_tlocale.ini"-"!:\TestFramework\testframework_tlocale.ini" -"\Epoc32\winscw\c\testframework\tlocale.cfg"-"!:\TestFramework\tlocale.cfg" -"\epoc32\winscw\c\loc_c.bat"-"!:\loc.bat" - -;tstl_1 -"\Epoc32\Release\armv5\urel\tstl_1.dll"-"!:\sys\bin\tstl_1.dll" -"\Epoc32\winscw\c\testframework\testframework_tstl_1.ini"-"!:\TestFramework\testframework_tstl_1.ini" -"\Epoc32\winscw\c\testframework\tstl_1.cfg"-"!:\TestFramework\tstl_1.cfg" -"\epoc32\winscw\c\stl_c.bat"-"!:\stl.bat" - -;file needed for locale -IF NOT EXISTS ("Z:\resource\locales.txt") -"\epoc32\winscw\c\resource\locales.txt"-"!:\resource\locales.txt" - -ENDIF - -; Batch file to run all testapps at one go -"stdcpp.bat"-"!:\stdcpp.bat" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/OsSrv_stdcpp.sis Binary file apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/OsSrv_stdcpp.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/stdcpp.bat --- a/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/stdcpp.bat Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/stdcpp.bat Fri Sep 17 09:37:58 2010 +0100 @@ -11,7 +11,7 @@ @rem @rem Contributors: @rem -@rem Description: +@rem Description: @rem diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/stdcpp.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdcpp/sis/stdcpp.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,110 @@ + + +StdCpp API +STIF + +The tests involve the MRT StdCpp + + + +C:\TestFramework\TestFramework_cppwrap.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\bccppwrap.cfg -engineini C:\TestFramework\TestFramework.ini + + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_cppwrap.txt + +C:\TestFramework\TestFramework_mrtruntime.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\bccsruntimesup.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_csruntime.txt + +C:\TestFramework\TestFramework_mrtexp.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\BCException.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_exception.txt + +C:\TestFramework\TestFramework_mrtnons.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\BCNoNamespace.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_nonamespace.txt + +C:\TestFramework\TestFramework_mrtopenc.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\BCOpenCHeaders.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_opencheaders.txt + +C:\TestFramework\TestFramework_ocw.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\BCOpenCWrap.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_opencwrap.txt + +C:\TestFramework\TestFramework_mrtthread.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\bcthread.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_thread.txt + +C:\TestFramework\TestFramework_mrttypea.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\BCTypeAttrib.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_typeattrib.txt + +C:\TestFramework\TestFramework_mrttypei.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\BCTypeInfo.cfg -engineini C:\TestFramework\TestFramework.ini + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_typeinfo.txt + +C:\TestFramework\TestFramework_ct.iniC:\TestFramework\TestFramework.ini + -testmodule chartypes -engineini C:\TestFramework\TestFramework.ini + + 3 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_chartypes.txt + +C:\TestFramework\TestFramework_mrtmath.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\tmath_operations.cfg -engineini C:\TestFramework\TestFramework.ini + + 145 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_mathoperations.txt + +C:\TestFramework\TestFramework_mrtmem.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\tmemory.cfg -engineini C:\TestFramework\TestFramework.ini + + 4 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_tmemory.txt + +C:\TestFramework\TestFramework_mrtutil.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\tutility.cfg -engineini C:\TestFramework\TestFramework.ini + + 4 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_utility.txt + +C:\TestFramework\testframework_wc.iniC:\TestFramework\TestFramework.ini + -testmodule widecharclassapiBCTest -engineini C:\TestFramework\TestFramework.ini + + 5 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_widecharclass.txt + +C:\TestFramework\TestFramework_tstl_1.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\tstl_1.cfg -engineini C:\TestFramework\TestFramework.ini + + 84 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_tstl.txt + +C:\TestFramework\TestFramework_tlocale.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config C:\TestFramework\tlocale.cfg -engineini C:\TestFramework\TestFramework.ini + + 25 + 23 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\OsSrv_Stdcpp_tlocale.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper1/bwins/arithmeticoper1u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper1/bwins/arithmeticoper1u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,34 @@ +EXPORTS + add @ 1 NONAME + square @ 2 NONAME + ?uid@@3UTEmulatorImageHeader@@A @ 3 NONAME ; struct TEmulatorImageHeader uid + ??2@YAPAXI@Z @ 4 NONAME ; void * operator new(unsigned int) + ??2@YAPAXII@Z @ 5 NONAME ; void * operator new(unsigned int, unsigned int) + ??_U@YAPAXI@Z @ 6 NONAME ; void * operator new[](unsigned int) + ?CleanupCWRuntime@@YAHXZ @ 7 NONAME ; int CleanupCWRuntime(void) + ?InitCWRuntime@@YAHXZ @ 8 NONAME ; int InitCWRuntime(void) + UDiv64 @ 9 NONAME + _Win32DllMain@12 @ 10 NONAME + __xp_a @ 11 NONAME + _alldiv @ 12 NONAME + _alldvrm @ 13 NONAME + _allmul @ 14 NONAME + _allrem @ 15 NONAME + _allshl @ 16 NONAME + _allshr @ 17 NONAME + _aulldiv @ 18 NONAME + _aulldvrm @ 19 NONAME + _aullrem @ 20 NONAME + _aullshr @ 21 NONAME + _purecall @ 22 NONAME + udiv64_divby0 @ 23 NONAME + ?__xc_a@@3PAP6AXXZA @ 24 NONAME ; void (* *__xc_a)(void) + ?__xc_z@@3PAP6AXXZA @ 25 NONAME ; void (* *__xc_z)(void) + ?__xi_a@@3PAP6AXXZA @ 26 NONAME ; void (* *__xi_a)(void) + ?__xt_a@@3PAP6AXXZA @ 27 NONAME ; void (* *__xt_a)(void) + ?__xi_z@@3PAP6AXXZA @ 28 NONAME ; void (* *__xi_z)(void) + ?__xp_a@@3PAP6AXXZA @ 29 NONAME ; void (* *__xp_a)(void) + ?__xt_z@@3PAP6AXXZA @ 30 NONAME ; void (* *__xt_z)(void) + ?DEListHead@@3PAUSDestructorEntry@@A @ 31 NONAME ; struct SDestructorEntry * DEListHead + ?__xp_z@@3PAP6AXXZA @ 32 NONAME ; void (* *__xp_z)(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper1/eabi/arithmeticoper1u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper1/eabi/arithmeticoper1u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + add @ 1 NONAME + square @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper2/bwins/arithmeticoper2u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper2/bwins/arithmeticoper2u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,33 @@ +EXPORTS + mult @ 1 NONAME + ?uid@@3UTEmulatorImageHeader@@A @ 2 NONAME ; struct TEmulatorImageHeader uid + ??2@YAPAXI@Z @ 3 NONAME ; void * operator new(unsigned int) + ??2@YAPAXII@Z @ 4 NONAME ; void * operator new(unsigned int, unsigned int) + ??_U@YAPAXI@Z @ 5 NONAME ; void * operator new[](unsigned int) + ?CleanupCWRuntime@@YAHXZ @ 6 NONAME ; int CleanupCWRuntime(void) + ?InitCWRuntime@@YAHXZ @ 7 NONAME ; int InitCWRuntime(void) + UDiv64 @ 8 NONAME + _Win32DllMain@12 @ 9 NONAME + __xp_a @ 10 NONAME + _alldiv @ 11 NONAME + _alldvrm @ 12 NONAME + _allmul @ 13 NONAME + _allrem @ 14 NONAME + _allshl @ 15 NONAME + _allshr @ 16 NONAME + _aulldiv @ 17 NONAME + _aulldvrm @ 18 NONAME + _aullrem @ 19 NONAME + _aullshr @ 20 NONAME + _purecall @ 21 NONAME + udiv64_divby0 @ 22 NONAME + ?__xi_a@@3PAP6AXXZA @ 23 NONAME ; void (* *__xi_a)(void) + ?__xt_a@@3PAP6AXXZA @ 24 NONAME ; void (* *__xt_a)(void) + ?__xc_a@@3PAP6AXXZA @ 25 NONAME ; void (* *__xc_a)(void) + ?__xi_z@@3PAP6AXXZA @ 26 NONAME ; void (* *__xi_z)(void) + ?__xp_a@@3PAP6AXXZA @ 27 NONAME ; void (* *__xp_a)(void) + ?DEListHead@@3PAUSDestructorEntry@@A @ 28 NONAME ; struct SDestructorEntry * DEListHead + ?__xt_z@@3PAP6AXXZA @ 29 NONAME ; void (* *__xt_z)(void) + ?__xc_z@@3PAP6AXXZA @ 30 NONAME ; void (* *__xc_z)(void) + ?__xp_z@@3PAP6AXXZA @ 31 NONAME ; void (* *__xp_z)(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper2/eabi/arithmeticoper2u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper2/eabi/arithmeticoper2u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + mult @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper3/bwins/arithmeticoper3u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper3/bwins/arithmeticoper3u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +EXPORTS + dec @ 1 NONAME + g_val @ 2 NONAME + get @ 3 NONAME + ?uid@@3UTEmulatorImageHeader@@A @ 4 NONAME ; struct TEmulatorImageHeader uid + ??2@YAPAXI@Z @ 5 NONAME ; void * operator new(unsigned int) + ??2@YAPAXII@Z @ 6 NONAME ; void * operator new(unsigned int, unsigned int) + ??_U@YAPAXI@Z @ 7 NONAME ; void * operator new[](unsigned int) + ?CleanupCWRuntime@@YAHXZ @ 8 NONAME ; int CleanupCWRuntime(void) + ?InitCWRuntime@@YAHXZ @ 9 NONAME ; int InitCWRuntime(void) + UDiv64 @ 10 NONAME + _Win32DllMain@12 @ 11 NONAME + __xp_a @ 12 NONAME + _alldiv @ 13 NONAME + _alldvrm @ 14 NONAME + _allmul @ 15 NONAME + _allrem @ 16 NONAME + _allshl @ 17 NONAME + _allshr @ 18 NONAME + _aulldiv @ 19 NONAME + _aulldvrm @ 20 NONAME + _aullrem @ 21 NONAME + _aullshr @ 22 NONAME + _purecall @ 23 NONAME + udiv64_divby0 @ 24 NONAME + ?__xc_a@@3PAP6AXXZA @ 25 NONAME ; void (* *__xc_a)(void) + ?__xc_z@@3PAP6AXXZA @ 26 NONAME ; void (* *__xc_z)(void) + ?__xi_a@@3PAP6AXXZA @ 27 NONAME ; void (* *__xi_a)(void) + ?__xt_a@@3PAP6AXXZA @ 28 NONAME ; void (* *__xt_a)(void) + ?__xi_z@@3PAP6AXXZA @ 29 NONAME ; void (* *__xi_z)(void) + ?__xp_a@@3PAP6AXXZA @ 30 NONAME ; void (* *__xp_a)(void) + ?__xt_z@@3PAP6AXXZA @ 31 NONAME ; void (* *__xt_z)(void) + ?DEListHead@@3PAUSDestructorEntry@@A @ 32 NONAME ; struct SDestructorEntry * DEListHead + ?__xp_z@@3PAP6AXXZA @ 33 NONAME ; void (* *__xp_z)(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper3/eabi/arithmeticoper3u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper3/eabi/arithmeticoper3u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + dec @ 1 NONAME + g_val @ 2 NONAME DATA 4 + get @ 3 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper4/bwins/arithmeticoper4u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper4/bwins/arithmeticoper4u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,35 @@ +EXPORTS + g_val @ 1 NONAME + get @ 2 NONAME + subt @ 3 NONAME + ?uid@@3UTEmulatorImageHeader@@A @ 4 NONAME ; struct TEmulatorImageHeader uid + ??2@YAPAXI@Z @ 5 NONAME ; void * operator new(unsigned int) + ??2@YAPAXII@Z @ 6 NONAME ; void * operator new(unsigned int, unsigned int) + ??_U@YAPAXI@Z @ 7 NONAME ; void * operator new[](unsigned int) + ?CleanupCWRuntime@@YAHXZ @ 8 NONAME ; int CleanupCWRuntime(void) + ?InitCWRuntime@@YAHXZ @ 9 NONAME ; int InitCWRuntime(void) + UDiv64 @ 10 NONAME + _Win32DllMain@12 @ 11 NONAME + __xp_a @ 12 NONAME + _alldiv @ 13 NONAME + _alldvrm @ 14 NONAME + _allmul @ 15 NONAME + _allrem @ 16 NONAME + _allshl @ 17 NONAME + _allshr @ 18 NONAME + _aulldiv @ 19 NONAME + _aulldvrm @ 20 NONAME + _aullrem @ 21 NONAME + _aullshr @ 22 NONAME + _purecall @ 23 NONAME + udiv64_divby0 @ 24 NONAME + ?__xc_a@@3PAP6AXXZA @ 25 NONAME ; void (* *__xc_a)(void) + ?__xc_z@@3PAP6AXXZA @ 26 NONAME ; void (* *__xc_z)(void) + ?__xi_a@@3PAP6AXXZA @ 27 NONAME ; void (* *__xi_a)(void) + ?__xt_a@@3PAP6AXXZA @ 28 NONAME ; void (* *__xt_a)(void) + ?__xi_z@@3PAP6AXXZA @ 29 NONAME ; void (* *__xi_z)(void) + ?__xp_a@@3PAP6AXXZA @ 30 NONAME ; void (* *__xp_a)(void) + ?__xt_z@@3PAP6AXXZA @ 31 NONAME ; void (* *__xt_z)(void) + ?DEListHead@@3PAUSDestructorEntry@@A @ 32 NONAME ; struct SDestructorEntry * DEListHead + ?__xp_z@@3PAP6AXXZA @ 33 NONAME ; void (* *__xp_z)(void) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper4/eabi/arithmeticoper4u.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/arithmeticoper4/eabi/arithmeticoper4u.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,5 @@ +EXPORTS + g_val @ 1 NONAME DATA 4 + get @ 2 NONAME + subt @ 3 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/dll1/bwins/dll1.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/dll1/bwins/dll1.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + abs @ 1 NONAME + strcmp @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/dll1/eabi/dll1.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libdl/dll1/eabi/dll1.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + abs @ 1 NONAME + strcmp @ 2 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/bwins/libpthreadU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/bwins/libpthreadU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +EXPORTS + pthread_attr_destroy @ 1 NONAME + pthread_attr_getdetachstate @ 2 NONAME + pthread_attr_getschedparam @ 3 NONAME + pthread_attr_getschedpolicy @ 4 NONAME + pthread_attr_getscope @ 5 NONAME + pthread_attr_getstacksize @ 6 NONAME + pthread_attr_init @ 7 NONAME + pthread_attr_setdetachstate @ 8 NONAME + pthread_attr_setschedparam @ 9 NONAME + pthread_attr_setschedpolicy @ 10 NONAME + pthread_attr_setscope @ 11 NONAME + pthread_attr_setstacksize @ 12 NONAME + pthread_cond_broadcast @ 13 NONAME + pthread_cond_destroy @ 14 NONAME + pthread_cond_init @ 15 NONAME + pthread_cond_signal @ 16 NONAME + pthread_cond_timedwait @ 17 NONAME + pthread_cond_wait @ 18 NONAME + pthread_condattr_destroy @ 19 NONAME + pthread_condattr_init @ 20 NONAME + pthread_create @ 21 NONAME + pthread_detach @ 22 NONAME + pthread_equal @ 23 NONAME + pthread_exit @ 24 NONAME + pthread_getschedparam @ 25 NONAME + pthread_getspecific @ 26 NONAME + pthread_join @ 27 NONAME + pthread_key_create @ 28 NONAME + pthread_key_delete @ 29 NONAME + pthread_mutex_destroy @ 30 NONAME + pthread_mutex_init @ 31 NONAME + pthread_mutex_lock @ 32 NONAME + pthread_mutex_timedlock @ 33 NONAME + pthread_mutex_trylock @ 34 NONAME + pthread_mutex_unlock @ 35 NONAME + pthread_mutexattr_destroy @ 36 NONAME + pthread_mutexattr_getpshared @ 37 NONAME + pthread_mutexattr_gettype @ 38 NONAME + pthread_mutexattr_init @ 39 NONAME + pthread_mutexattr_setpshared @ 40 NONAME + pthread_mutexattr_settype @ 41 NONAME + pthread_once @ 42 NONAME + pthread_self @ 43 NONAME + pthread_setschedparam @ 44 NONAME + pthread_setspecific @ 45 NONAME + sem_destroy @ 46 NONAME + sem_getvalue @ 47 NONAME + sem_init @ 48 NONAME + sem_post @ 49 NONAME + sem_timedwait @ 50 NONAME + sem_trywait @ 51 NONAME + sem_wait @ 52 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/eabi/libpthreadU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/eabi/libpthreadU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,54 @@ +EXPORTS + pthread_attr_destroy @ 1 NONAME + pthread_attr_getdetachstate @ 2 NONAME + pthread_attr_getschedparam @ 3 NONAME + pthread_attr_getschedpolicy @ 4 NONAME + pthread_attr_getscope @ 5 NONAME + pthread_attr_getstacksize @ 6 NONAME + pthread_attr_init @ 7 NONAME + pthread_attr_setdetachstate @ 8 NONAME + pthread_attr_setschedparam @ 9 NONAME + pthread_attr_setschedpolicy @ 10 NONAME + pthread_attr_setscope @ 11 NONAME + pthread_attr_setstacksize @ 12 NONAME + pthread_cond_broadcast @ 13 NONAME + pthread_cond_destroy @ 14 NONAME + pthread_cond_init @ 15 NONAME + pthread_cond_signal @ 16 NONAME + pthread_cond_timedwait @ 17 NONAME + pthread_cond_wait @ 18 NONAME + pthread_condattr_destroy @ 19 NONAME + pthread_condattr_init @ 20 NONAME + pthread_create @ 21 NONAME + pthread_detach @ 22 NONAME + pthread_equal @ 23 NONAME + pthread_exit @ 24 NONAME + pthread_getschedparam @ 25 NONAME + pthread_getspecific @ 26 NONAME + pthread_join @ 27 NONAME + pthread_key_create @ 28 NONAME + pthread_key_delete @ 29 NONAME + pthread_mutex_destroy @ 30 NONAME + pthread_mutex_init @ 31 NONAME + pthread_mutex_lock @ 32 NONAME + pthread_mutex_timedlock @ 33 NONAME + pthread_mutex_trylock @ 34 NONAME + pthread_mutex_unlock @ 35 NONAME + pthread_mutexattr_destroy @ 36 NONAME + pthread_mutexattr_getpshared @ 37 NONAME + pthread_mutexattr_gettype @ 38 NONAME + pthread_mutexattr_init @ 39 NONAME + pthread_mutexattr_setpshared @ 40 NONAME + pthread_mutexattr_settype @ 41 NONAME + pthread_once @ 42 NONAME + pthread_self @ 43 NONAME + pthread_setschedparam @ 44 NONAME + pthread_setspecific @ 45 NONAME + sem_destroy @ 46 NONAME + sem_getvalue @ 47 NONAME + sem_init @ 48 NONAME + sem_post @ 49 NONAME + sem_timedwait @ 50 NONAME + sem_trywait @ 51 NONAME + sem_wait @ 52 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testharness/bmarm/testharnessu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testharness/bmarm/testharnessu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + LoadHarnessActual__FP14HarnessCommandP15CTestModuleBase @ 1 NONAME R3UNUSED ; LoadHarnessActual(HarnessCommand *, CTestModuleBase *) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testharness/bwins/testharnessu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testharness/bwins/testharnessu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LoadHarnessActual@@YAHPAUHarnessCommand@@PAVCTestModuleBase@@@Z @ 1 NONAME ; int LoadHarnessActual(struct HarnessCommand *, class CTestModuleBase *) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testharness/eabi/testharnessu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testharness/eabi/testharnessu.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z17LoadHarnessActualP14HarnessCommandP15CTestModuleBase @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/data/tmutex.ini --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/data/tmutex.ini Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/data/tmutex.ini Fri Sep 17 09:37:58 2010 +0100 @@ -177,8 +177,8 @@ Parameter5 = 1 Parameter6 = 0 Parameter7 = 0 -Parameter8 = 0 -Parameter9 = 0 +Parameter8 = 1 +Parameter9 = 1 Parameter10 = 0 Parameter11 = 0 [Section_IntgTest24_3] @@ -291,7 +291,7 @@ Parameter5 = 1 Parameter6 = 0 Parameter7 = 0 -Parameter8 = 0 +Parameter8 = 1 Parameter9 = 0 Parameter10 = 0 [Section_IntgTest35_3] diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/group/tmutex.mmp --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/group/tmutex.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/group/tmutex.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -20,7 +20,7 @@ CAPABILITY All -TCB TARGETTYPE exe -UID 0x1000008D 0x2001FC49 +UID 0x1000008D 0x1028308C SOURCEPATH ../src SOURCE tmutexserver.cpp diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/inc/tmutex.h --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/inc/tmutex.h Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/inc/tmutex.h Fri Sep 17 09:37:58 2010 +0100 @@ -36,6 +36,8 @@ #include #include #include +#include +#include _LIT(KPThreadMutexDestroy, "PThreadMutexDestroy"); _LIT(KPThreadMutexLock, "PThreadMutexLock"); @@ -82,6 +84,7 @@ _LIT(KPThreadAttrStaticInitUnlockL, "PThreadAttrStaticInitUnlockL"); _LIT(KWaitForThreadCompleteL, "WaitForThreadCompleteL"); + _LIT(KIntgTest1, "IntgTest1"); _LIT(KIntgTest2, "IntgTest2"); _LIT(KIntgTest3, "IntgTest3"); @@ -121,6 +124,8 @@ _LIT(KIntgTest37, "IntgTest37"); _LIT(KIntgTest38, "IntgTest38"); _LIT(KIntgTest39, "IntgTest39"); +_LIT(KPThreadMutexTryLockWait1, "PThreadMutexTryLockWait1"); +_LIT(KPThreadMutexTryLockWait2, "PThreadMutexTryLockWait2"); class CTestMutex : public CTestStep { @@ -541,6 +546,8 @@ TInt IntgTest37(); TInt IntgTest38(); TInt IntgTest39(); + TInt PThreadMutexTryLockWait1(); + TInt PThreadMutexTryLockWait2(); }; #endif diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/scripts/tmutex.script --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/scripts/tmutex.script Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/scripts/tmutex.script Fri Sep 17 09:37:58 2010 +0100 @@ -18,53 +18,305 @@ CONSECUTIVE +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0001 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0001 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest1 \tstdapis\tmutex.ini Section_IntgTest1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0001 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0002 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0002 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest2 \tstdapis\tmutex.ini Section_IntgTest2 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0002 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0003 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0003 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest3 \tstdapis\tmutex.ini Section_IntgTest3 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0003 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0004 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0004 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest4 \tstdapis\tmutex.ini Section_IntgTest4 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0004 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0005 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0005 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest5 \tstdapis\tmutex.ini Section_IntgTest5 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0005 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0006 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0006 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest6 \tstdapis\tmutex.ini Section_IntgTest6 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0006 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0007 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0007 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest7 \tstdapis\tmutex.ini Section_IntgTest7 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0007 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0008 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0008 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest1 \tstdapis\tmutex.ini Section_IntgTest1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0008 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0009 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0009 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest8 \tstdapis\tmutex.ini Section_IntgTest8 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0009 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0010 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0010 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest9 \tstdapis\tmutex.ini Section_IntgTest9 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0010 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0011 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0011 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest10 \tstdapis\tmutex.ini Section_IntgTest10 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0011 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0012 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0012 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest11 \tstdapis\tmutex.ini Section_IntgTest11 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0012 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0013 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0013 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest12 \tstdapis\tmutex.ini Section_IntgTest12 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0013 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0014 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0014 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest13 \tstdapis\tmutex.ini Section_IntgTest13 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0014 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0015 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0015 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest14 \tstdapis\tmutex.ini Section_IntgTest14 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0015 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0016 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0016 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest15 \tstdapis\tmutex.ini Section_IntgTest15 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0016 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0017 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0017 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest16 \tstdapis\tmutex.ini Section_IntgTest16 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0017 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0018 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0018 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest17 \tstdapis\tmutex.ini Section_IntgTest17 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0018 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0019 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0019 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest18 \tstdapis\tmutex.ini Section_IntgTest18 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0019 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0020 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0020 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest19 \tstdapis\tmutex.ini Section_IntgTest19 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0020 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0021 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0021 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest20 \tstdapis\tmutex.ini Section_IntgTest20_1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0021 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0022 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0022 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest21 \tstdapis\tmutex.ini Section_IntgTest21 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0022 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0023 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0023 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest22 \tstdapis\tmutex.ini Section_IntgTest22 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0023 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0024 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0024 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest20 \tstdapis\tmutex.ini Section_IntgTest20_2 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0024 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0025 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0025 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest20 \tstdapis\tmutex.ini Section_IntgTest20_3 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0025 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0026 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0026 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest23 \tstdapis\tmutex.ini Section_IntgTest23 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0026 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0027 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0027 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest24 \tstdapis\tmutex.ini Section_IntgTest24_1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0027 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0028 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0028 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest24 \tstdapis\tmutex.ini Section_IntgTest24_2 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0028 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0029 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0029 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex PThreadAttrStaticInitL +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0029 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0030 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0030 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest25 \tstdapis\tmutex.ini Section_IntgTest25 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0030 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0031 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0031 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest26 \tstdapis\tmutex.ini Section_IntgTest26 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0031 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0032 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0032 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest27 \tstdapis\tmutex.ini Section_IntgTest27 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0032 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0033 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0033 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest28 \tstdapis\tmutex.ini Section_IntgTest28 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0033 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0034 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0034 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest29 \tstdapis\tmutex.ini Section_IntgTest29 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0034 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0035 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0035 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest30 \tstdapis\tmutex.ini Section_IntgTest30 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0035 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0036 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0036 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest31 \tstdapis\tmutex.ini Section_IntgTest31_1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0036 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0037 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0037 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest31 \tstdapis\tmutex.ini Section_IntgTest31_2 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0037 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0038 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0038 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest32 \tstdapis\tmutex.ini Section_IntgTest32 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0038 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0039 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0039 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex PThreadAttrStaticInitTryLockL +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0039 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0040 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0040 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest33 \tstdapis\tmutex.ini Section_IntgTest33 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0040 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0041 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0041 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest34 \tstdapis\tmutex.ini Section_IntgTest34 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0041 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0042 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0042 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest35 \tstdapis\tmutex.ini Section_IntgTest35_1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0042 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0043 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0043 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest35 \tstdapis\tmutex.ini Section_IntgTest35_2 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0043 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0044 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0044 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest35 \tstdapis\tmutex.ini Section_IntgTest35_3 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0044 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0045 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0045 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest36 \tstdapis\tmutex.ini Section_IntgTest36 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0045 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0046 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0046 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest37 \tstdapis\tmutex.ini Section_IntgTest37_1 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0046 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0047 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0047 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest37 \tstdapis\tmutex.ini Section_IntgTest37_2 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0047 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0048 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0048 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest37 \tstdapis\tmutex.ini Section_IntgTest37_3 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0048 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0049 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0049 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest38 \tstdapis\tmutex.ini Section_IntgTest38 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0049 + +START_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0050 +//! @SYMTestCaseID OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0050 +//! @SYMTestStatus 3.Released RUN_TEST_STEP !Result=0 5 tmutex IntgTest39 \tstdapis\tmutex.ini Section_IntgTest39 +END_TESTCASE OPENENV-LIBPTHREAD-CIT-TESTMUTEX-0050 + +RUN_TEST_STEP !Result=0 10 tmutex PThreadMutexTryLockWait1 +RUN_TEST_STEP !Result=0 20 tmutex PThreadMutexTryLockWait2 diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutex.cpp --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutex.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutex.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -445,6 +445,18 @@ err = IntgTest39(); SetTestStepResult(err ? static_cast(err) : EPass); } + else if(TestStepName() == KPThreadMutexTryLockWait1) + { + INFO_PRINTF1(_L("PThreadMutexTryLockWait1():")); + err = PThreadMutexTryLockWait1(); + SetTestStepResult(err ? static_cast(err) : EPass); + } + else if(TestStepName() == KPThreadMutexTryLockWait2) + { + INFO_PRINTF1(_L("PThreadMutexTryLockWait2():")); + err = PThreadMutexTryLockWait2(); + SetTestStepResult(err ? static_cast(err) : EPass); + } return TestStepResult(); diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutexblocks.cpp --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutexblocks.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutexblocks.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -32,6 +32,11 @@ #define WITHOUT_ERROR 0 #define WITH_ERROR 0 + +#define CHECK(a) if (!(a)) INFO_PRINTF2(_L("Unexpected failure at line %d\n"), __LINE__); +pthread_t myThread,myThread1,myThread2,myThread3; +pthread_mutex_t myMutex1,myMutex2; + TInt CTestMutex::PThreadAttrStaticInitUnlockL(TInt val, TInt errVal ) { _LIT(KFunc, "In PThreadAttrStaticInitUnlockL"); @@ -369,7 +374,7 @@ CTestMutex *self = static_cast (arg); TInt err = pthread_mutex_unlock (&(self->iMutex)); - if ( err) + if ( err != EPERM ) { self->iErroCode = 1; self->ERR_PRINTF2( _L("pthread_mutex_unlock returned %d"), err); @@ -614,11 +619,12 @@ CTestMutex *self = static_cast (arg); TInt err = pthread_mutex_unlock (&(self->iMutex)); - if ( err ) - { - self->iErroCode = 1; - self->ERR_PRINTF2( _L("pthread_mutex_unlock returned %d"), err); - } + + if ( err != EPERM ) + { + self->iErroCode = 1; + self->ERR_PRINTF2( _L("pthread_mutex_unlock returned %d"), err); + } else { while (!(self->iExitValueL)) @@ -5033,6 +5039,148 @@ } return err; } + +void* thread_entry_func(void * /*arg*/) +{ + int ret = pthread_mutex_lock(&myMutex1); + User::After(TTimeIntervalMicroSeconds32(2000000)); + ret = pthread_mutex_unlock(&myMutex1); + ret = pthread_mutex_trylock(&myMutex1); // waits here forever if deadlock occurs + if (ret == EBUSY) + { + // Process continue processing the part of the problem that we can without the lock. We do not want to waste time blocking. + printf("Lock is acquired by the other thread , so the message displayed is EBUSY\n"); + } + printf("Out of trylock\n"); + return 0; +} + + LOCAL_C void MainL1() +{ + printf("Starting mutex test\n"); + int ret = pthread_mutex_init(&myMutex1, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + ret = pthread_mutex_init(&myMutex1, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + ret = pthread_create(&myThread, NULL, &thread_entry_func, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + User::After(TTimeIntervalMicroSeconds32(1000000)); + ret = pthread_mutex_lock(&myMutex1); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + printf("Got Mutex\n"); + pthread_join(myThread, 0); +} + + // Checking pthread_mutex_trylock() for waiting indefinitely leading to deadlock + TInt CTestMutex::PThreadMutexTryLockWait1(void) + +{ + INFO_PRINTF1(_L("Hello Open C!\n")) ; + MainL1(); + INFO_PRINTF1(_L("Out of Trylock!!\n")) ; + return 0; +} + + + void* thread_entry_func3(void* /*arg*/) + { + int ret = pthread_mutex_lock(&myMutex2); + // This lock will get semaphore but might wait for mutex in case of deadlock situation + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + printf("out of Lock within third thread \n") ; + User::After(TTimeIntervalMicroSeconds32(2000000)); + return 0; + } + + void* thread_entry_func2(void* /*arg*/) + { + int ret = pthread_mutex_lock(&myMutex2); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + printf("out of Lock within second thread \n"); + User::After(TTimeIntervalMicroSeconds32(3000000)); + + ret = pthread_mutex_unlock(&myMutex2); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + + ret = pthread_mutex_trylock(&myMutex2); // This trylock will get mutex but might wait for semaphore in case of deadlock situation + if (ret == EBUSY) + { + // Process continue processing the part of the problem that we can without the lock. We do not want to waste time blocking. + printf("Lock is acquired by the other thread , so the message displayed is EBUSY\n"); + } + printf("Out of second trylock\n"); + return 0; + } + + void* thread_entry_func1(void* /*arg*/) + { + int ret = pthread_mutex_lock(&myMutex2); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + User::After(TTimeIntervalMicroSeconds32(2000000)); + + ret = pthread_mutex_trylock(&myMutex2); + if (ret == EBUSY) + { + // Process continue processing the part of the problem that we can without the lock. We do not want to waste time blocking. + printf("Lock is acquired by the other thread , so the message displayed is EBUSY\n") ; + } + printf("Out of first trylock\n") ; + User::After(TTimeIntervalMicroSeconds32(1000000)); + + ret = pthread_mutex_unlock(&myMutex2); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + User::After(TTimeIntervalMicroSeconds32(1000000)); + return 0; + } + + LOCAL_C void MainL2() + { + printf("Starting mutex test\n") ; + int ret = pthread_mutex_init(&myMutex2, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + ret = pthread_create(&myThread1, NULL, &thread_entry_func1, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + User::After(TTimeIntervalMicroSeconds32(1000000)); + + ret = pthread_create(&myThread2, NULL, &thread_entry_func2, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + User::After(TTimeIntervalMicroSeconds32(1500000)); + + ret = pthread_create(&myThread3, NULL, &thread_entry_func3, NULL); + if ( !ret ) + printf("Unexpected failure at line %d\n", __LINE__); + User::After(TTimeIntervalMicroSeconds32(2000000)); + //INFO_PRINTF1(_L("Got Mutex\n")) ; + pthread_join(myThread3, 0); + pthread_join(myThread2, 0); + pthread_join(myThread1, 0); + } + + // Checking pthread_mutex_trylock() for waiting indefinitely leading to deadlock + TInt CTestMutex::PThreadMutexTryLockWait2(void) + { + INFO_PRINTF1(_L("Hello Open C!\n")) ; + MainL2(); + INFO_PRINTF1(_L("Out of both the Trylocks!!\n")) ; + return 0; + } + + + + + // ========================== OTHER EXPORTED FUNCTIONS ========================= // None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutexserver.cpp --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutexserver.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libpthread/testmutex/src/tmutexserver.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -132,283 +132,291 @@ { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadMutexLockRecursive) + else if(aStepName == KPThreadMutexLockRecursive) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadMutexLockErrorCheck) + else if(aStepName == KPThreadMutexLockErrorCheck) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadMutexTimedlock) + else if(aStepName == KPThreadMutexTimedlock) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadMutexTrylock) + else if(aStepName == KPThreadMutexTrylock) + { + testStep = new CTestMutex(aStepName); + } + else if(aStepName == KPThreadMutexUnlock) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadMutexUnlock) + else if(aStepName == KPThreadOnce) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadOnce) + else if(aStepName == KPThreadMutexattrSettype) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadMutexattrSettype) + else if(aStepName == KSemInit) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemInit) + else if(aStepName == KSemDestroy) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemDestroy) + else if(aStepName == KSemTryWait) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemTryWait) + else if(aStepName == KSemWait) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemWait) + else if(aStepName == KSemTimedWait) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemTimedWait) + else if(aStepName == KSemPost) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemPost) + else if(aStepName == KSemClose) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemClose) + else if(aStepName == KSemUnlink) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemUnlink) + else if(aStepName == KSemGetValue) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemGetValue) + else if(aStepName == KSemMicroSleepwaitNP) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemMicroSleepwaitNP) + else if(aStepName == KSemPostMultiple) { testStep = new CTestMutex(aStepName); } - if(aStepName == KSemPostMultiple) + else if(aStepName == KPThreadCondAttrInit) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondAttrInit) + else if(aStepName == KPThreadCondAttrDestroy) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondAttrDestroy) + else if(aStepName == KPThreadCondInit) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondInit) + else if(aStepName == KPThreadCondDestroy) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondDestroy) + else if(aStepName == KPThreadCondTimedwait) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondTimedwait) + else if(aStepName == KPThreadCondWait) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondWait) + else if(aStepName == KPThreadCondSignal) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondSignal) + else if(aStepName == KPThreadCondBroadcast) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadCondBroadcast) + else if(aStepName == KDelay) { testStep = new CTestMutex(aStepName); } - if(aStepName == KDelay) + else if(aStepName == KPThreadAttrStaticInitL) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadAttrStaticInitL) + else if(aStepName == KPThreadAttrStaticInitTimedLockL) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadAttrStaticInitTimedLockL) + else if(aStepName == KPThreadAttrStaticInitTryLockL) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadAttrStaticInitTryLockL) + else if(aStepName == KPThreadAttrStaticInitUnlockL) { testStep = new CTestMutex(aStepName); } - if(aStepName == KPThreadAttrStaticInitUnlockL) + else if(aStepName == KIntgTest1) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest1) + else if(aStepName == KIntgTest2) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest2) + else if(aStepName == KIntgTest3) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest3) + else if(aStepName == KIntgTest4) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest4) + else if(aStepName == KIntgTest5) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest5) + else if(aStepName == KIntgTest6) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest6) + else if(aStepName == KIntgTest7) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest7) + else if(aStepName == KIntgTest8) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest8) + else if(aStepName == KIntgTest9) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest9) + else if(aStepName == KIntgTest10) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest10) + else if(aStepName == KIntgTest11) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest11) + else if(aStepName == KIntgTest12) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest12) + else if(aStepName == KIntgTest13) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest13) + else if(aStepName == KIntgTest14) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest14) + else if(aStepName == KIntgTest15) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest15) + else if(aStepName == KIntgTest16) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest16) + else if(aStepName == KIntgTest17) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest17) + else if(aStepName == KIntgTest18) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest18) + else if(aStepName == KIntgTest19) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest19) + else if(aStepName == KIntgTest20) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest20) + else if(aStepName == KIntgTest21) + { + testStep = new CTestMutex(aStepName); + } + else if(aStepName == KIntgTest22) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest21) + else if(aStepName == KIntgTest23) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest22) + else if(aStepName == KIntgTest24) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest23) + else if(aStepName == KIntgTest25) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest24) + else if(aStepName == KIntgTest26) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest25) + else if(aStepName == KIntgTest27) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest26) + else if(aStepName == KIntgTest28) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest27) + else if(aStepName == KIntgTest29) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest28) + else if(aStepName == KIntgTest30) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest29) + else if(aStepName == KIntgTest31) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest30) + else if(aStepName == KIntgTest32) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest31) + else if(aStepName == KIntgTest33) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest32) + else if(aStepName == KIntgTest34) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest33) + else if(aStepName == KIntgTest35) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest34) + else if(aStepName == KIntgTest36) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest35) + else if(aStepName == KIntgTest37) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest36) + else if(aStepName == KIntgTest38) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest37) + else if(aStepName == KIntgTest39) { testStep = new CTestMutex(aStepName); } - if(aStepName == KIntgTest38) - { - testStep = new CTestMutex(aStepName); - } - if(aStepName == KIntgTest39) + else if(aStepName == KPThreadMutexTryLockWait1) + { + testStep = new CTestMutex(aStepName); + } + else if(aStepName == KPThreadMutexTryLockWait2) { testStep = new CTestMutex(aStepName); } diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/group/Stdlib.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/group/Stdlib.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,376 @@ + + +Stdlibs +TEF + +The tests involve the Symbian Stdlibs + + + + \tstdapis\tcomport.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tcomport.htm + \tstdapis\tctype.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tctype.htm + \tstdapis\tdb_blr.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdb_blr.htm + \tstdapis\tftw.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tftw.htm + \tstdapis\tglob_test.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tglob_test.htm + \tstdapis\tlibcwchar.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tlibcwchar.htm + \tstdapis\tlink.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tlink.htm + \tstdapis\tloc_blr.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tloc_blr.htm + \tstdapis\tmkfifo.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tmkfifo.htm + \tstdapis\tmmap.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tmmap.htm + \tstdapis\tprogname.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tprogname.htm + \tstdapis\tregex.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tregex.htm + \tstdapis\tselect.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tselect.htm + \tstdapis\tsemaphore.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsemaphore.htm + \tstdapis\tshm.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tshm.htm + \tstdapis\tstdio_auto.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tstdio_auto.htm + \tstdapis\tstdio_fileop.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tstdio_fileop.htm + \tstdapis\tstring.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tstring.htm + \tstdapis\tsyscalls.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyscalls.htm + \tstdapis\tsyscalls1.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyscalls1.htm + \tstdapis\tsyscalls2.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyscalls2.htm + \tstdapis\tsyssim.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyssim.htm + \tstdapis\tsysunistd.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsysunistd.htm + \tstdapis\twchar.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twchar.htm + \tstdapis\twcharapi.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twcharapi.htm + \tstdapis\twctype.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twctype.htm + \tstdapis\twideapis.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twideapis.htm + \tstdapis\ttime_blr.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_testtime_blr.htm + \tstdapis\tdl.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_dl.htm + \tstdapis\tdouble_blr.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdouble_blr.htm + \tstdapis\tdouble_pow.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdouble_pow.htm + \tstdapis\tdouble_misc.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdouble_misc.htm + \tstdapis\tldouble_blr.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tldouble_blr.htm + \tstdapis\tldouble_pow.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tldouble_pow.htm + \tstdapis\tldouble_misc.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tldouble_misc.htm + \tstdapis\tfloat_blr.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tfloat_blr.htm + \tstdapis\tcondbroadcast.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondbroadcast.htm + \tstdapis\tconddestroy.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tconddestroy.htm + \tstdapis\tcondinit.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondinit.htm + \tstdapis\tcondsignal.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondsignal.htm + \tstdapis\tcondwait.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondwait.htm + \tstdapis\tmutex.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tmutex.htm + \tstdapis\tpthread.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tpthread.htm + \tstdapis\tpthreadonce.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tpthreadonce.htm + \tstdapis\tsemdestroy.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemdestroy.htm + \tstdapis\tsemgetvalue.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemgetvalue.htm + \tstdapis\tseminit.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tseminit.htm + \tstdapis\tsemopen.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemopen.htm + \tstdapis\tsempost.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsempost.htm + \tstdapis\tsemtimedwait.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemtimedwait.htm + \tstdapis\tsemtrywait.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemtrywait.htm + \tstdapis\tsemwait.script +c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemwait.htm + + + 1 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tcomport.htm + + \tstdapis\tctype.script + + 54 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tctype.htm + + \tstdapis\tdb_blr.script + + 16 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdb_blr.htm + + \tstdapis\tftw.script + + 7 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tftw.htm + + \tstdapis\tglob_test.script + + 6 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tglob_test.htm + + \tstdapis\tlibcwchar.script + + 590 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tlibcwchar.htm + + \tstdapis\tlink.script + + 19 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tlink.htm + + \tstdapis\tloc_blr.script + + 489 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tloc_blr.htm + + \tstdapis\tmkfifo.script + + 15 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tmkfifo.htm + + \tstdapis\tmmap.script + + 18 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tmmap.htm + + \tstdapis\tprogname.script + + 18 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tprogname.htm + + \tstdapis\tregex.script + + 21 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tregex.htm + + \tstdapis\tselect.script + + 10 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tselect.htm + + \tstdapis\tsemaphore.script + + 81 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsemaphore.htm + + \tstdapis\tshm.script + + 40 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tshm.htm + + \tstdapis\tstdio_auto.script + + 1036 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tstdio_auto.htm + + \tstdapis\tstdio_fileop.script + + 6 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tstdio_fileop.htm + + \tstdapis\tstring.script + + 204 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tstring.htm + + \tstdapis\tsyscalls.script + + 148 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyscalls.htm + + \tstdapis\tsyscalls1.script + + 58 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyscalls1.htm + + \tstdapis\tsyscalls2.script + + 55 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyscalls2.htm + + \tstdapis\tsyssim.script + + 23 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsyssim.htm + + \tstdapis\tsysunistd.script + + 32 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tsysunistd.htm + + \tstdapis\twchar.script + + 60 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twchar.htm + + \tstdapis\twcharapi.script + + 30 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twcharapi.htm + + \tstdapis\twctype.script + + 294 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twctype.htm + + \tstdapis\twideapis.script + + 18 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_twideapis.htm + + \tstdapis\ttime_blr.script + + 36 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_testtime_blr.htm + + \tstdapis\tdl.script + + 8 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_dl.htm + + \tstdapis\tdouble_blr.script + + 920 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdouble_blr.htm + + \tstdapis\tdouble_pow.script + + 69 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdouble_pow.htm + + \tstdapis\tdouble_misc.script + + 10 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tdouble_misc.htm + + \tstdapis\tldouble_blr.script + + 907 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tldouble_blr.htm + + \tstdapis\tldouble_pow.script + + 69 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tldouble_pow.htm + + \tstdapis\tldouble_misc.script + + 10 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tldouble_misc.htm + + \tstdapis\tfloat_blr.script + + 974 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_tfloat_blr.htm + + \tstdapis\tcondbroadcast.script + + 10 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondbroadcast.htm + + \tstdapis\tconddestroy.script + + 2 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tconddestroy.htm + + \tstdapis\tcondinit.script + + 3 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondinit.htm + + \tstdapis\tcondsignal.script + + 10 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondsignal.htm + + \tstdapis\tcondwait.script + + 8 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tcondwait.htm + + \tstdapis\tmutex.script + + 50 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tmutex.htm + + \tstdapis\tpthread.script + + 39 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tpthread.htm + + \tstdapis\tpthreadonce.script + + 8 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tpthreadonce.htm + + \tstdapis\tsemdestroy.script + + 2 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemdestroy.htm + + \tstdapis\tsemgetvalue.script + + 5 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemgetvalue.htm + + \tstdapis\tseminit.script + + 5 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tseminit.htm + + \tstdapis\tsemopen.script + + 1 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemopen.htm + + \tstdapis\tsempost.script + + 7 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsempost.htm + + \tstdapis\tsemtimedwait.script + + 7 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemtimedwait.htm + + \tstdapis\tsemtrywait.script + + 5 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemtrywait.htm + + \tstdapis\tsemwait.script + + 4 + c:\Logs\Testexecute\TestResults.htme:\bctest\results\OsSrv_Stdlibs_pthread_tsemwait.htm + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/preconfigautomation/sis/ConfTimeZone.SIS Binary file apicompatanamdw/bcdrivers/os/ossrv/stdlibs/preconfigautomation/sis/ConfTimeZone.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/preconfigautomation/src/ConfTimeZone.cpp --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/preconfigautomation/src/ConfTimeZone.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/preconfigautomation/src/ConfTimeZone.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -50,7 +50,9 @@ TFileName path( _L("c:\\logs\\TestFramework\\STDLIBS\\Stdlibs_Preconfig.txt")); RFile file; RFs fileSession; - TInt err = fileSession.Connect(); + User::LeaveIfError(fileSession.Connect()); + CleanupClosePushL (fileSession); + TInt err; fileSession.MkDirAll(_L("c:\\logs\\TestFramework\\STDLIBS\\")); err = file.Replace(fileSession, path, EFileStreamText | EFileWrite); @@ -66,10 +68,8 @@ TPtrC arg = args->Arg(1); if( arg.Compare(_L("1")) == 0) { - RFs rfs; - rfs.Connect(); RFileWriteStream outStream; - TInt err = outStream.Replace(rfs, KZoneSettingsFile, EFileWrite|EFileShareAny); + TInt err = outStream.Replace(fileSession, KZoneSettingsFile, EFileWrite|EFileShareAny); CleanupClosePushL(outStream); if(err != KErrNone) { @@ -104,20 +104,15 @@ else { file.Write(_L8("preconfig result : passed\n")); - } - - + } } } - CleanupStack::PopAndDestroy(); - rfs.Close(); + CleanupStack::PopAndDestroy();//outStream } else if( arg.Compare(_L("2")) == 0) { - RFs rfs; - rfs.Connect(); RFileReadStream inStream; - TInt err = inStream.Open(rfs, KZoneSettingsFile, EFileRead|EFileShareAny); + TInt err = inStream.Open(fileSession, KZoneSettingsFile, EFileRead|EFileShareAny); CleanupClosePushL(inStream); if(err != KErrNone) { @@ -147,16 +142,16 @@ } } - CleanupStack::PopAndDestroy(); - rfs.Close(); + CleanupStack::PopAndDestroy(); //inStream } } else { console->Write(_L("No arg was Passed!\n")); } + CleanupStack::PopAndDestroy(args); - + CleanupStack::PopAndDestroy();//fileSession } LOCAL_C void DoStartL() diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/sis/OsSrv_Stdlibs.pkg --- a/apicompatanamdw/bcdrivers/os/ossrv/stdlibs/sis/OsSrv_Stdlibs.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,243 +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: -; -; -; Install file for Stdlibs Test Cases -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"Symbian_StdLibs"},(0x20000F7F),1,2,3,TYPE=SA -[0x2001FCA3], *, *, *, {"Series60ProductID"} - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -"\Epoc32\winscw\c\tstdapis\stdlib.bat"-"!:\tstdapis\stdlib.bat" -"..\preconfigautomation\data\ConfTimeZone.exe"-"!:\sys\bin\ConfTimeZone.exe" - -;libm -"\Epoc32\release\armv5\urel\tdouble_blr.exe"-"!:\sys\bin\tdouble_blr.exe" -"\Epoc32\release\armv5\urel\tldouble_blr.exe"-"!:\sys\bin\tldouble_blr.exe" -"\Epoc32\release\armv5\urel\tfloat_blr.exe"-"!:\sys\bin\tfloat_blr.exe" -"\epoc32\winscw\c\tstdapis\tdouble_blr.ini"-"!:\tstdapis\tdouble_blr.ini" -"\Epoc32\winscw\c\tstdapis\tdouble_blr.script"-"!:\tstdapis\tdouble_blr.script" -"\Epoc32\winscw\c\tstdapis\tdouble_pow.script"-"!:\tstdapis\tdouble_pow.script" -"\Epoc32\winscw\c\tstdapis\tdouble_misc.script"-"!:\tstdapis\tdouble_misc.script" -"\epoc32\winscw\c\tstdapis\tfloat_blr.script"-"!:\tstdapis\tfloat_blr.script" -"\epoc32\winscw\c\tstdapis\tfloat_blr.ini"-"!:\tstdapis\tfloat_blr.ini" -"\epoc32\winscw\c\tstdapis\tldouble_blr.script"-"!:\tstdapis\tldouble_blr.script" -"\epoc32\winscw\c\tstdapis\tldouble_pow.script"-"!:\tstdapis\tldouble_pow.script" -"\epoc32\winscw\c\tstdapis\tldouble_misc.script"-"!:\tstdapis\tldouble_misc.script" -"\epoc32\winscw\c\tstdapis\tldouble_blr.ini"-"!:\tstdapis\tldouble_blr.ini" - -"\Epoc32\winscw\c\tstdapis\libm.bat"-"!:\tstdapis\libm.bat" - -;libpthread -"\Epoc32\release\armv5\urel\tcondbroadcast.exe"-"!:\sys\bin\tcondbroadcast.exe" -"\epoc32\winscw\c\tstdapis\tcondbroadcast.script"-"!:\tstdapis\tcondbroadcast.script" -"\Epoc32\release\armv5\urel\tconddestroy.exe"-"!:\sys\bin\tconddestroy.exe" -"\epoc32\winscw\c\tstdapis\tconddestroy.script"-"!:\tstdapis\tconddestroy.script" -"\Epoc32\release\armv5\urel\tcondinit.exe"-"!:\sys\bin\tcondinit.exe" -"\epoc32\winscw\c\tstdapis\tcondinit.script"-"!:\tstdapis\tcondinit.script" -"\Epoc32\release\armv5\urel\tcondsignal.exe"-"!:\sys\bin\tcondsignal.exe" -"\epoc32\winscw\c\tstdapis\tcondsignal.script"-"!:\tstdapis\tcondsignal.script" -"\Epoc32\release\armv5\urel\tcondwait.exe"-"!:\sys\bin\tcondwait.exe" -"\epoc32\winscw\c\tstdapis\tcondwait.script"-"!:\tstdapis\tcondwait.script" -"\Epoc32\release\armv5\urel\tmutex.exe"-"!:\sys\bin\tmutex.exe" -"\epoc32\winscw\c\tstdapis\tmutex.script"-"!:\tstdapis\tmutex.script" -"\epoc32\winscw\c\tstdapis\tmutex.ini"-"!:\tstdapis\tmutex.ini" -"\Epoc32\release\armv5\urel\tpthread.exe"-"!:\sys\bin\tpthread.exe" -"\epoc32\winscw\c\tstdapis\tpthread.ini"-"!:\tstdapis\tpthread.ini" -"\epoc32\winscw\c\tstdapis\tpthread.script"-"!:\tstdapis\tpthread.script" -"\Epoc32\release\armv5\urel\tpthreadonce.exe"-"!:\sys\bin\tpthreadonce.exe" -"\epoc32\winscw\c\tstdapis\tpthreadonce.script"-"!:\tstdapis\tpthreadonce.script" -"\Epoc32\release\armv5\urel\tsemdestroy.exe"-"!:\sys\bin\tsemdestroy.exe" -"\epoc32\winscw\c\tstdapis\tsemdestroy.script"-"!:\tstdapis\tsemdestroy.script" -"\Epoc32\release\armv5\urel\tsemgetvalue.exe"-"!:\sys\bin\tsemgetvalue.exe" -"\epoc32\winscw\c\tstdapis\tsemgetvalue.script"-"!:\tstdapis\tsemgetvalue.script" -"\Epoc32\release\armv5\urel\tseminit.exe"-"!:\sys\bin\tseminit.exe" -"\epoc32\winscw\c\tstdapis\tseminit.script"-"!:\tstdapis\tseminit.script" -"\Epoc32\release\armv5\urel\tsemopen.exe"-"!:\sys\bin\tsemopen.exe" -"\epoc32\winscw\c\tstdapis\tsemopen.script"-"!:\tstdapis\tsemopen.script" -"\Epoc32\release\armv5\urel\tsempost.exe"-"!:\sys\bin\tsempost.exe" -"\epoc32\winscw\c\tstdapis\tsempost.script"-"!:\tstdapis\tsempost.script" -"\Epoc32\release\armv5\urel\tsemtimedwait.exe"-"!:\sys\bin\tsemtimedwait.exe" -"\epoc32\winscw\c\tstdapis\tsemtimedwait.script"-"!:\tstdapis\tsemtimedwait.script" -"\Epoc32\release\armv5\urel\tsemtrywait.exe"-"!:\sys\bin\tsemtrywait.exe" -"\epoc32\winscw\c\tstdapis\tsemtrywait.script"-"!:\tstdapis\tsemtrywait.script" -"\Epoc32\release\armv5\urel\tsemwait.exe"-"!:\sys\bin\tsemwait.exe" -"\epoc32\winscw\c\tstdapis\tsemwait.script"-"!:\tstdapis\tsemwait.script" -"\epoc32\winscw\c\tstdapis\pthread.bat"-"!:\tstdapis\pthread.bat" - -"\Epoc32\winscw\c\tstdapis\pthread.bat"-"!:\tstdapis\pthread.bat" - -;libdl -"\Epoc32\release\armv5\urel\tdl.exe"-"!:\sys\bin\tdl.exe" -"\epoc32\winscw\c\tstdapis\tdl.script"-"!:\tstdapis\tdl.script" -"\epoc32\winscw\c\tstdapis\tdl.ini"-"!:\tstdapis\tdl.ini" -"\Epoc32\release\armv5\urel\arithmeticoper1.dll"-"!:\sys\bin\arithmeticoper1.dll" -"\Epoc32\release\armv5\urel\arithmeticoper2.dll"-"!:\sys\bin\arithmeticoper2.dll" -"\Epoc32\release\armv5\urel\arithmeticoper3.dll"-"!:\sys\bin\arithmeticoper3.dll" -"\Epoc32\release\armv5\urel\arithmeticoper4.dll"-"!:\sys\bin\arithmeticoper4.dll" -"\Epoc32\release\armv5\urel\dll1.dll"-"!:\sys\bin\dll1.dll" - -"\Epoc32\winscw\c\tstdapis\tdl.bat"-"!:\tstdapis\tdl.bat" - -;libc - -"\Epoc32\release\armv5\urel\tcomport.exe"-"!:\sys\bin\tcomport.exe" -"\epoc32\winscw\c\tstdapis\tcomport.script"-"!:\tstdapis\tcomport.script" -"\epoc32\winscw\c\system\data\config.ini"-"!:\system\data\config.ini" - -"\Epoc32\release\armv5\urel\tctype.exe"-"!:\sys\bin\tctype.exe" -"\epoc32\winscw\c\tstdapis\tctype.script"-"!:\tstdapis\tctype.script" - -"\Epoc32\release\armv5\urel\tdb_blr.exe"-"!:\sys\bin\tdb_blr.exe" -"\epoc32\winscw\c\tstdapis\tdb_blr.script"-"!:\tstdapis\tdb_blr.script" -"\epoc32\winscw\c\tstdapis\tdb_blr.ini"-"!:\tstdapis\tdb_blr.ini" - -"\Epoc32\release\armv5\urel\tftw.exe"-"!:\sys\bin\tftw.exe" -"\epoc32\winscw\c\tstdapis\tftw.script"-"!:\tstdapis\tftw.script" -"\epoc32\winscw\c\tstdapis\tftw.ini"-"!:\tstdapis\tftw.ini" - -"\Epoc32\release\armv5\urel\tlibcwchar.exe"-"!:\sys\bin\tlibcwchar.exe" -"\epoc32\winscw\c\tstdapis\tlibcwchar.script"-"!:\tstdapis\tlibcwchar.script" - -"\Epoc32\release\armv5\urel\tlink.exe"-"!:\sys\bin\tlink.exe" -"\epoc32\winscw\c\tstdapis\tlink.script"-"!:\tstdapis\tlink.script" -"\epoc32\winscw\c\tstdapis\tlink.ini"-"!:\tstdapis\tlink.ini" - -;"\Epoc32\release\armv5\urel\tlocalsocket.exe"-"!:\sys\bin\tlocalsocket.exe" -;"\epoc32\winscw\c\tstdapis\tlocalsocket.ini"-"!:\tstdapis\tlocalsocket.ini" -;"\epoc32\winscw\c\tstdapis\tlocalsocket.script"-"!:\tstdapis\tlocalsocket.script" -;"\epoc32\winscw\c\tstdapis\tlocalsocket_hw.script"-"!:\tstdapis\tlocalsocket_hw.script" - -"\Epoc32\release\armv5\urel\tloc_blr.exe"-"!:\sys\bin\tloc_blr.exe" -"\epoc32\winscw\c\tstdapis\tloc_blr.script"-"!:\tstdapis\tloc_blr.script" -"\epoc32\winscw\c\tstdapis\tloc_blr_iconv.ini"-"!:\tstdapis\tloc_blr_iconv.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_posix.ini"-"!:\tstdapis\tloc_blr_posix.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr1.ini"-"!:\tstdapis\tloc_blr1.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr2.ini"-"!:\tstdapis\tloc_blr2.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant1.ini"-"!:\tstdapis\tloc_blr_variant1.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant2.ini"-"!:\tstdapis\tloc_blr_variant2.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant3.ini"-"!:\tstdapis\tloc_blr_variant3.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant4.ini"-"!:\tstdapis\tloc_blr_variant4.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant5.ini"-"!:\tstdapis\tloc_blr_variant5.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant6.ini"-"!:\tstdapis\tloc_blr_variant6.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant7.ini"-"!:\tstdapis\tloc_blr_variant7.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant8.ini"-"!:\tstdapis\tloc_blr_variant8.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant9.ini"-"!:\tstdapis\tloc_blr_variant9.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant10.ini"-"!:\tstdapis\tloc_blr_variant10.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant11.ini"-"!:\tstdapis\tloc_blr_variant11.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant13.ini"-"!:\tstdapis\tloc_blr_variant13.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant14.ini"-"!:\tstdapis\tloc_blr_variant14.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant15.ini"-"!:\tstdapis\tloc_blr_variant15.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant16.ini"-"!:\tstdapis\tloc_blr_variant16.ini" -"\epoc32\winscw\c\tstdapis\tloc_blr_variant17.ini"-"!:\tstdapis\tloc_blr_variant17.ini" - -"\Epoc32\release\armv5\urel\tmkfifo.exe"-"!:\sys\bin\tmkfifo.exe" -"\epoc32\winscw\c\tstdapis\tmkfifo.script"-"!:\tstdapis\tmkfifo.script" -"\epoc32\winscw\c\tstdapis\tmkfifo.ini"-"!:\tstdapis\tmkfifo.ini" - -"\Epoc32\release\armv5\urel\tmmap.exe"-"!:\sys\bin\tmmap.exe" -"\epoc32\winscw\c\tstdapis\tmmap.script"-"!:\tstdapis\tmmap.script" -"\epoc32\winscw\c\tstdapis\tmmap.ini"-"!:\tstdapis\tmmap.ini" - -"\Epoc32\release\armv5\urel\tprogname.exe"-"!:\sys\bin\tprogname.exe" -"\epoc32\winscw\c\tstdapis\tprogname.script"-"!:\tstdapis\tprogname.script" - -"\Epoc32\release\armv5\urel\tregex.exe"-"!:\sys\bin\tregex.exe" -"\epoc32\winscw\c\tstdapis\tregex.script"-"!:\tstdapis\tregex.script" -"\epoc32\winscw\c\tstdapis\tregex.ini"-"!:\tstdapis\tregex.ini" - -"\Epoc32\release\armv5\urel\tselect.exe"-"!:\sys\bin\tselect.exe" -"\epoc32\winscw\c\tstdapis\tselect.script"-"!:\tstdapis\tselect.script" - -"\Epoc32\release\armv5\urel\tsemaphore.exe"-"!:\sys\bin\tsemaphore.exe" -"\epoc32\winscw\c\tstdapis\tsemaphore.script"-"!:\tstdapis\tsemaphore.script" -"\epoc32\winscw\c\tstdapis\tsemaphore.ini"-"!:\tstdapis\tsemaphore.ini" - -"\Epoc32\release\armv5\urel\tshm.exe"-"!:\sys\bin\tshm.exe" -"\epoc32\winscw\c\tstdapis\tshm.script"-"!:\tstdapis\tshm.script" -"\epoc32\winscw\c\tstdapis\tshm.ini"-"!:\tstdapis\tshm.ini" - -"\Epoc32\release\armv5\urel\tstdio.exe"-"!:\sys\bin\tstdio.exe" -"\epoc32\winscw\c\tstdapis\tstdio_auto.script"-"!:\tstdapis\tstdio_auto.script" -"\epoc32\winscw\c\tstdapis\tstdio_manual.script"-"!:\tstdapis\tstdio_manual.script" -"\epoc32\winscw\c\tstdapis\tstdio_fileop.script"-"!:\tstdapis\tstdio_fileop.script" -"\epoc32\winscw\c\tstdapis\tstdio.ini"-"!:\tstdapis\tstdio.ini" - -"\Epoc32\release\armv5\urel\tstring.exe"-"!:\sys\bin\tstring.exe" -"\epoc32\winscw\c\tstdapis\tstring.script"-"!:\tstdapis\tstring.script" -"\epoc32\winscw\c\tstdapis\tstring.ini"-"!:\tstdapis\tstring.ini" - -"\Epoc32\release\armv5\urel\tsyscalls.exe"-"!:\sys\bin\tsyscalls.exe" -"\epoc32\winscw\c\tstdapis\tsyscalls.script"-"!:\tstdapis\tsyscalls.script" -"\epoc32\winscw\c\tstdapis\tsyscalls1.script"-"!:\tstdapis\tsyscalls1.script" -"\epoc32\winscw\c\tstdapis\tsyscalls2.script"-"!:\tstdapis\tsyscalls2.script" -"\epoc32\winscw\c\tstdapis\tsyscalls.ini"-"!:\tstdapis\tsyscalls.ini" - -"\Epoc32\release\armv5\urel\tsyssim.exe"-"!:\sys\bin\tsyssim.exe" -"\epoc32\winscw\c\tstdapis\tsyssim.script"-"!:\tstdapis\tsyssim.script" - -"\Epoc32\release\armv5\urel\tsysunistd.exe"-"!:\sys\bin\tsysunistd.exe" -"\epoc32\winscw\c\tstdapis\tsysunistd.script"-"!:\tstdapis\tsysunistd.script" -"\epoc32\winscw\c\tstdapis\tsysunistd.ini"-"!:\tstdapis\tsysunistd.ini" - -"\Epoc32\release\armv5\urel\twchar.exe"-"!:\sys\bin\twchar.exe" -"\epoc32\winscw\c\tstdapis\twchar.script"-"!:\tstdapis\twchar.script" - -"\Epoc32\release\armv5\urel\twcharapi.exe"-"!:\sys\bin\twcharapi.exe" -"\epoc32\winscw\c\tstdapis\twcharapi.script"-"!:\tstdapis\twcharapi.script" -"\epoc32\winscw\c\tstdapis\twcharapi.ini"-"!:\tstdapis\twcharapi.ini" - -"\Epoc32\release\armv5\urel\twctype.exe"-"!:\sys\bin\twctype.exe" -"\epoc32\winscw\c\tstdapis\twctype.script"-"!:\tstdapis\twctype.script" -"\epoc32\winscw\c\tstdapis\twctype.ini"-"!:\tstdapis\twctype.ini" - -"\Epoc32\release\armv5\urel\twideapis.exe"-"!:\sys\bin\twideapis.exe" -"\epoc32\winscw\c\tstdapis\twideapis.script"-"!:\tstdapis\twideapis.script" -"\epoc32\winscw\c\tstdapis\twideapis.ini"-"!:\tstdapis\twideapis.ini" - -;"\Epoc32\release\armv5\urel\tchildpopendisp.exe"-"!:\sys\bin\tchildpopendisp.exe" - - -"\Epoc32\release\armv5\urel\tglob.exe"-"!:\sys\bin\tglob.exe" -"\epoc32\winscw\c\tstdapis\tglob_test.script"-"!:\tstdapis\tglob_test.script" - -"\Epoc32\release\armv5\urel\ttime_blr.exe"-"!:\sys\bin\ttime_blr.exe" -"\epoc32\winscw\c\tstdapis\ttime_blr.script"-"!:\tstdapis\ttime_blr.script" -"\epoc32\winscw\c\tstdapis\ttime_blr.ini"-"!:\tstdapis\ttime_blr.ini" - - - -"\Epoc32\winscw\c\tstdapis\libc.bat"-"!:\tstdapis\libc.bat" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/ossrv/stdlibs/sis/OsSrv_Stdlibs.sis Binary file apicompatanamdw/bcdrivers/os/ossrv/stdlibs/sis/OsSrv_Stdlibs.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/Bmarm/BCLogEngineTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/Bmarm/BCLogEngineTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + LibEntryL__Fv @ 1 NONAME R3UNUSED ; LibEntryL(void) + SetRequirements__FRP16CTestModuleParamRUl @ 2 NONAME R3UNUSED ; SetRequirements(CTestModuleParam *&, unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/Bwins/BCLogEngineTestU.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/Bwins/BCLogEngineTestU.DEF Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void) + ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/EABI/BCLogEngineTestU.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/EABI/BCLogEngineTestU.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,10 @@ +EXPORTS + _Z9LibEntryLv @ 1 NONAME + _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME + _ZTI16CActiveLogEngine @ 3 NONAME ; ## + _ZTV16CActiveLogEngine @ 4 NONAME ; ## + _ZTI12CMyLogActive @ 5 NONAME ; ## + _ZTI12CMyLogClient @ 6 NONAME ; ## + _ZTV12CMyLogActive @ 7 NONAME ; ## + _ZTV12CMyLogClient @ 8 NONAME ; ## + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/group/LE.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/group/LE.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Log Engine API +STIF + +The tests involve the Persistant Data Telephony Log Engine API + + + + -testmodule BCLogEngineTest + + + 12 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\PersistentData_LogEngine.txt + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/sis/PersData_LogEngine.pkg --- a/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/sis/PersData_LogEngine.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +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 -; none - English only by default -&EN - -; Installation header -; Only one component name as we only support English -; UID is the main app's UID - -#{"RTC-CT_BCLogEngine"},(0x10282CA4),1,0,0,TYPE=SA -[0x101F7961],3,*,*,{"Series60ProductID"} - -; Non-localised vendor name -:"Nokia Corporation" - -; Localised vendor names -%{"Nokia Corporation"} - -; Files to install and to where -"\Epoc32\Release\armv5\urel\BCLogEngineTest.dll"-"!:\sys\bin\BCLogEngineTest.dll" -"\Epoc32\winscw\c\testframework\testframework_le.ini"-"!:\TestFramework\testframework_le.ini" -"\epoc32\winscw\c\testLE.bat"-"!:\testLE.bat" \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/sis/PersData_LogEngine.sis Binary file apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/sis/PersData_LogEngine.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/src/BCLogEngineTestCases.cpp --- a/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/src/BCLogEngineTestCases.cpp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/persistent_data/BCLogEngineTest/src/BCLogEngineTestCases.cpp Fri Sep 17 09:37:58 2010 +0100 @@ -23,9 +23,11 @@ #include #include "BCLogEngineTest.h" #include -#include -#include -#include +#include +#include +//#include +//#include +//#include // EXTERNAL DATA STRUCTURES //extern ?external_data; @@ -64,6 +66,12 @@ _LIT8(KTestData1, "ABCDEFGH"); _LIT8(KTestData2, "IJKLMNOPQRSTUVWXYZ"); +const TLogRecentList KLogNullRecentList = -1; +const TInt KLogMaxDirectionLength = 64; +const TLogDurationType KLogDurationNone = 0; +const TLogDurationType KLogDurationValid = 1; +const TLogDurationType KLogDurationData = 2; +#define KLogRecentIncomingCalls 1 // ============================= LOCAL FUNCTIONS =============================== // ----------------------------------------------------------------------------- // Create_Console diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/group/BTsa.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/group/BTsa.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,18 @@ + + +Bluetooth Sockets API +TEF + +The tests involve the ShortlinkSrv Bluetooth Sockets API + + + + \bluetooth\BT-SOCK-ADDR-PublicApi + + + 40 + c:\Logs\Testexecute\TestResults.htme:\BCTest\results\ShortlinkSrv_BTSockAddr.htm + + + + \ No newline at end of file diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/group/T_BTSockAddrAPI.mmp --- a/apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/group/T_BTSockAddrAPI.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/group/T_BTSockAddrAPI.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -48,6 +48,7 @@ SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/test +SYSTEMINCLUDE /epoc32/include/platform/test APP_LAYER_SYSTEMINCLUDE LIBRARY euser.lib diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/sis/ShortSrv_BTSockAddr.pkg --- a/apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/sis/ShortSrv_BTSockAddr.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +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: -; -; -; Install file for T_BTSockAddrAPI.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_BTSockAddrAPI"},(0x20003718),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - -;Supports S60 3rd Edition -[0x101F7961], 3, *, *, {"Series60ProductID"} - -"\epoc32\RELEASE\armv5\urel\T_BTSockAddrAPI.exe"-"!:\sys\bin\T_BTSockAddrAPI.exe" -"..\group\tsa.bat"-"!:\bluetooth\tsa.bat" -"\epoc32\winscw\c\bluetooth\BT-SOCK-ADDR-PublicApi.script"-"!:\bluetooth\BT-SOCK-ADDR-PublicApi.script" -"\epoc32\winscw\c\bluetooth\BT-SOCK-ADDR-PublicApi.tcs"-"!:\bluetooth\BT-SOCK-ADDR-PublicApi.tcs" -"\epoc32\winscw\c\bluetooth\BT-SOCK-ADDR-PublicApi.ini"-"!:\bluetooth\BT-SOCK-ADDR-PublicApi.ini" - - -; Required files -; None - -; Component .sis files -; None diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/sis/ShortSrv_BTSockAddr.sis Binary file apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/T_BTSockAddrAPI/sis/ShortSrv_BTSockAddr.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/bwinscw/xedombctester.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/bwinscw/xedombctester.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &) + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/TestFramework.zip Binary file apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/TestFramework.zip has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/TestFramework/XMLDOM.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/TestFramework/XMLDOM.xml Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,96 @@ + + +XML Engine DOM API +STIF + +The tests involve the ASP XML Engine DOM API + + + +C:\TestFramework\TestFramework_xmleng.iniC:\TestFramework\TestFramework.ini + -testmodule testscripter -config c:\testframework\DomBinCont.cfg + + + 67 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_BinCont.txt + + + -testmodule testscripter -config c:\testframework\DomFileCont.cfg + + + 25 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_FileCont.txt + + + -testmodule testscripter -config c:\testframework\DomChunkCont.cfg + + + 26 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_ChunkCont.txt + + + -testmodule testscripter -config c:\testframework\DomNotWF.cfg + + + 187 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_NotWF.txt + + + -testmodule testscripter -config c:\testframework\DomChunkparser.cfg + + + 24 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomChunkparser.txt + + + -testmodule testscripter -config c:\testframework\DomElem.cfg + + + 6 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomElem.txt + + + -testmodule testscripter -config c:\testframework\DomEncoding.cfg + + + 10 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomEncoding.txt + + + -testmodule testscripter -config c:\testframework\DomModif.cfg + + + 47 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomModif.txt + + + -testmodule testscripter -config c:\testframework\DomWF.cfg + + + 115 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_WF.txt + + + -testmodule testscripter -config c:\testframework\DomXmlId.cfg + + + 9 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomXmlId.txt + + + -testmodule testscripter -config c:\testframework\DomNodeFilter.cfg + + + 1 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomNodeFilter.txt + + + -testmodule testScripter -config c:\testframework\DomXPath.cfg + + + 11 + c:\Logs\TestFramework\TestReport.txte:\BCTest\results\XmlSrv_XMLEngDOM_DomXPath.txt + + + + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/XMLTest.zip Binary file apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/XMLTest.zip has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/XMLTest/input/filecontainer/Thumbs.db Binary file apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/data/XMLTest/input/filecontainer/Thumbs.db has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/eabi/xedombctester.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/eabi/xedombctester.def Fri Sep 17 09:37:58 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/group/xedombctester.mmp --- a/apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/group/xedombctester.mmp Mon Aug 30 11:09:21 2010 +0530 +++ b/apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/group/xedombctester.mmp Fri Sep 17 09:37:58 2010 +0100 @@ -21,7 +21,7 @@ TARGETTYPE dll UID 0x1000008D 0x10282CAA -CAPABILITY CAP_GENERAL_DLL +CAPABILITY ALL-TCB #if defined(ARMCC) DEFFILE ..\eabi\xedombctester.def diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/sis/XmlSrv_XmlDom.pkg --- a/apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/sis/XmlSrv_XmlDom.pkg Mon Aug 30 11:09:21 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,816 +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: -; -; -; Installation file for XeDomBCTester application - -; Languages, (English only) -&EN - -; UID is the app's UID -#{"XeDomBCTester"},(0x10282CAA),1,0,0,TYPE=SA - -;S60 v3.2 -[0x102752AE], 0, 0, 0, {"S60ProductID"} - -; Localised Vendor name -%{"Vendor-EN"} - -; Unique Vendor name -:"Vendor" - -; -; Files to install -; - -"\epoc32\RELEASE\armv5\UREL\XeDomBCTester.dll"-"!:\sys\bin\XeDomBCTester.dll" -"..\data\TestFramework\TestXE_c.bat"-"!:\TestXE.bat" -"..\data\TestFramework\DomBinCont.cfg"-"!:\TestFramework\DomBinCont.cfg" -"..\data\TestFramework\DomChunkCont.cfg"-"!:\TestFramework\DomChunkCont.cfg" -"..\data\TestFramework\DomChunkParser.cfg"-"!:\TestFramework\DomChunkParser.cfg" -"..\data\TestFramework\DomElem.cfg"-"!:\TestFramework\DomElem.cfg" -"..\data\TestFramework\DomEncoding.cfg"-"!:\TestFramework\DomEncoding.cfg" -"..\data\TestFramework\DomFileCont.cfg"-"!:\TestFramework\DomFileCont.cfg" -"..\data\TestFramework\DomModif.cfg"-"!:\TestFramework\DomModif.cfg" -"..\data\TestFramework\DomNodeFilter.cfg"-"!:\TestFramework\DomNodeFilter.cfg" -"..\data\TestFramework\DomNotWF.cfg"-"!:\TestFramework\DomNotWF.cfg" -"..\data\TestFramework\DomWF.cfg"-"!:\TestFramework\DomWF.cfg" -"..\data\TestFramework\DomXmlId.cfg"-"!:\TestFramework\DomXmlId.cfg" -"..\data\TestFramework\DomXPath.cfg"-"!:\TestFramework\DomXPath.cfg" -"..\data\XMLTest\XMLTest.out"-"!:\spd_logs\xml\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\chunkparser\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\dom\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\Encoding\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\xmlconf\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\appcontents\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\contents\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\copy\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\create\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\move\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\remove\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\bincont\correct\partial\replace\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\xmlconf\xmltest\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\xmlconf\xmltest\not_wf\XMLTest.out" -"..\data\XMLTest\XMLTest.out"-"e:\XMLTest\output\xmlconf\xmltest\wf\XMLTest.out" -"..\data\XMLTest\input\bincont\CreateSequenceSec.xml"-"e:\XMLTest\input\bincont\CreateSequenceSec.xml" -"..\data\XMLTest\input\bincont\signed-doc.xml"-"e:\XMLTest\input\bincont\signed-doc.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_00.xml"-"e:\XMLTest\input\chunk\XML_not_wf_00.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_01.xml"-"e:\XMLTest\input\chunk\XML_not_wf_01.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_02.xml"-"e:\XMLTest\input\chunk\XML_not_wf_02.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_03.xml"-"e:\XMLTest\input\chunk\XML_not_wf_03.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_04.xml"-"e:\XMLTest\input\chunk\XML_not_wf_04.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_05.xml"-"e:\XMLTest\input\chunk\XML_not_wf_05.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_06.xml"-"e:\XMLTest\input\chunk\XML_not_wf_06.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_07.xml"-"e:\XMLTest\input\chunk\XML_not_wf_07.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_09.xml"-"e:\XMLTest\input\chunk\XML_not_wf_09.xml" -"..\data\XMLTest\input\chunk\XML_not_wf_10.xml"-"e:\XMLTest\input\chunk\XML_not_wf_10.xml" -"..\data\XMLTest\input\chunk\XML_wf_01.xml"-"e:\XMLTest\input\chunk\XML_wf_01.xml" -"..\data\XMLTest\input\chunk\XML_wf_02.xml"-"e:\XMLTest\input\chunk\XML_wf_02.xml" -"..\data\XMLTest\input\chunk\XML_wf_03.xml"-"e:\XMLTest\input\chunk\XML_wf_03.xml" -"..\data\XMLTest\input\chunk\XML_wf_04.xml"-"e:\XMLTest\input\chunk\XML_wf_04.xml" -"..\data\XMLTest\input\chunk\XML_wf_05.xml"-"e:\XMLTest\input\chunk\XML_wf_05.xml" -"..\data\XMLTest\input\chunk\XML_wf_06.xml"-"e:\XMLTest\input\chunk\XML_wf_06.xml" -"..\data\XMLTest\input\chunk\XML_wf_07.xml"-"e:\XMLTest\input\chunk\XML_wf_07.xml" -"..\data\XMLTest\input\chunk\XML_wf_08.xml"-"e:\XMLTest\input\chunk\XML_wf_08.xml" -"..\data\XMLTest\input\chunk\XML_wf_09.xml"-"e:\XMLTest\input\chunk\XML_wf_09.xml" -"..\data\XMLTest\input\chunk\XML_wf_10.xml"-"e:\XMLTest\input\chunk\XML_wf_10.xml" -"..\data\XMLTest\input\chunk\XML_wf_11.xml"-"e:\XMLTest\input\chunk\XML_wf_11.xml" -"..\data\XMLTest\input\containers\ascii.bin"-"e:\XMLTest\input\containers\ascii.bin" -"..\data\XMLTest\input\containers\entities.txt"-"e:\XMLTest\input\containers\entities.txt" -"..\data\XMLTest\input\containers\errors.doc"-"e:\XMLTest\input\containers\errors.doc" -"..\data\XMLTest\input\containers\html.zip"-"e:\XMLTest\input\containers\html.zip" -"..\data\XMLTest\input\containers\login.gif"-"e:\XMLTest\input\containers\login.gif" -"..\data\XMLTest\input\containers\not-escaped.txt"-"e:\XMLTest\input\containers\not-escaped.txt" -"..\data\XMLTest\input\containers\petit.jpg"-"e:\XMLTest\input\containers\petit.jpg" -"..\data\XMLTest\input\containers\picture.jpg"-"e:\XMLTest\input\containers\picture.jpg" -"..\data\XMLTest\input\containers\zip.bin"-"e:\XMLTest\input\containers\zip.bin" -"..\data\XMLTest\input\dom\DOM_elem_000.xml"-"e:\XMLTest\input\dom\DOM_elem_000.xml" -"..\data\XMLTest\input\dom\DOM_elem_001.xml"-"e:\XMLTest\input\dom\DOM_elem_001.xml" -"..\data\XMLTest\input\dom\DOM_elem_002.xml"-"e:\XMLTest\input\dom\DOM_elem_002.xml" -"..\data\XMLTest\input\dom\DOM_elem_003.xml"-"e:\XMLTest\input\dom\DOM_elem_003.xml" -"..\data\XMLTest\input\dom\DOM_elem_004.xml"-"e:\XMLTest\input\dom\DOM_elem_004.xml" -"..\data\XMLTest\input\dom\DOM_elem_005.xml"-"e:\XMLTest\input\dom\DOM_elem_005.xml" -"..\data\XMLTest\input\dom\DOM_elem_006.xml"-"e:\XMLTest\input\dom\DOM_elem_006.xml" -"..\data\XMLTest\input\dom\DOM_ID_01.xml"-"e:\XMLTest\input\dom\DOM_ID_01.xml" -"..\data\XMLTest\input\dom\DOM_modif_01.xml"-"e:\XMLTest\input\dom\DOM_modif_01.xml" -"..\data\XMLTest\input\dom\DOM_modif_02.xml"-"e:\XMLTest\input\dom\DOM_modif_02.xml" -"..\data\XMLTest\input\dom\DOM_modif_03.xml"-"e:\XMLTest\input\dom\DOM_modif_03.xml" -"..\data\XMLTest\input\dom\DOM_modif_04.xml"-"e:\XMLTest\input\dom\DOM_modif_04.xml" -"..\data\XMLTest\input\dom\DOM_modif_05.xml"-"e:\XMLTest\input\dom\DOM_modif_05.xml" -"..\data\XMLTest\input\dom\DOM_modif_06.xml"-"e:\XMLTest\input\dom\DOM_modif_06.xml" -"..\data\XMLTest\input\dom\DOM_modif_07.xml"-"e:\XMLTest\input\dom\DOM_modif_07.xml" -"..\data\XMLTest\input\dom\DOM_modif_08.xml"-"e:\XMLTest\input\dom\DOM_modif_08.xml" -"..\data\XMLTest\input\dom\DOM_modif_09.xml"-"e:\XMLTest\input\dom\DOM_modif_09.xml" -"..\data\XMLTest\input\dom\DOM_modif_10.xml"-"e:\XMLTest\input\dom\DOM_modif_10.xml" -"..\data\XMLTest\input\dom\DOM_nodefilter.xml"-"e:\XMLTest\input\dom\DOM_nodefilter.xml" -"..\data\XMLTest\input\dom\xpath_01.xml"-"e:\XMLTest\input\dom\xpath_01.xml" -"..\data\XMLTest\input\dom\xpath_02.xml"-"e:\XMLTest\input\dom\xpath_02.xml" -"..\data\XMLTest\input\correct\XML_correct_012.xml"-"e:\XMLTest\input\correct\XML_correct_012.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_001.xml"-"e:\XMLTest\input\Encoding\XML_encoding_001.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_002.xml"-"e:\XMLTest\input\Encoding\XML_encoding_002.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_003.xml"-"e:\XMLTest\input\Encoding\XML_encoding_003.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_004.xml"-"e:\XMLTest\input\Encoding\XML_encoding_004.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_005.xml"-"e:\XMLTest\input\Encoding\XML_encoding_005.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_006.xml"-"e:\XMLTest\input\Encoding\XML_encoding_006.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_007.xml"-"e:\XMLTest\input\Encoding\XML_encoding_007.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_008.xml"-"e:\XMLTest\input\Encoding\XML_encoding_008.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_009.xml"-"e:\XMLTest\input\Encoding\XML_encoding_009.xml" -"..\data\XMLTest\input\Encoding\XML_encoding_010.xml"-"e:\XMLTest\input\Encoding\XML_encoding_010.xml" -"..\data\XMLTest\input\filecontainer\icon.gif"-"e:\XMLTest\input\filecontainer\icon.gif" -"..\data\XMLTest\input\filecontainer\test.doc"-"e:\XMLTest\input\filecontainer\test.doc" -"..\data\XMLTest\input\filecontainer\test.jpg"-"e:\XMLTest\input\filecontainer\test.jpg" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_001.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_001.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_002.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_002.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_003.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_003.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_004.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_004.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_005.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_005.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_006.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_006.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_007.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_007.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_008.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_008.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_009.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_009.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_010.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_010.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_011.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_011.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_012.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_012.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_013.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_013.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_014.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_014.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_015.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_015.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_016.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_016.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_017.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_017.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_018.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_018.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_019.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_019.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_020.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_020.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_021.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_021.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_022.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_022.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_023.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_023.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_024.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_024.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_025.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_025.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_026.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_026.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_027.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_027.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_028.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_028.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_029.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_029.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_030.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_030.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_031.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_031.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_032.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_032.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_033.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_033.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_034.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_034.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_035.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_035.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_036.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_036.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_037.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_037.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_038.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_038.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_039.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_039.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_040.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_040.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_041.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_041.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_042.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_042.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_043.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_043.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_044.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_044.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_045.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_045.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_046.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_046.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_047.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_047.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_048.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_048.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_049.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_049.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_050.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_050.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_051.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_051.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_052.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_052.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_053.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_053.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_054.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_054.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_055.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_055.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_056.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_056.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_057.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_057.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_058.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_058.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_059.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_059.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_060.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_060.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_061.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_061.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_062.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_062.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_063.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_063.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_064.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_064.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_065.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_065.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_066.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_066.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_067.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_067.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_068.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_068.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_069.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_069.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_070.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_070.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_071.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_071.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_072.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_072.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_073.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_073.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_074.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_074.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_075.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_075.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_076.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_076.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_077.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_077.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_078.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_078.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_079.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_079.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_080.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_080.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_081.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_081.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_082.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_082.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_083.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_083.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_084.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_084.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_085.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_085.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_086.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_086.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_087.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_087.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_088.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_088.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_089.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_089.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_090.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_090.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_091.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_091.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_092.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_092.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_093.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_093.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_094.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_094.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_095.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_095.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_096.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_096.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_097.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_097.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_098.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_098.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_099.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_099.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_100.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_100.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_101.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_101.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_102.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_102.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_103.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_103.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_104.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_104.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_105.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_105.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_106.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_106.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_107.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_107.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_108.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_108.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_109.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_109.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_110.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_110.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_111.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_111.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_112.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_112.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_113.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_113.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_114.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_114.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_115.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_115.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_116.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_116.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_117.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_117.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_118.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_118.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_119.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_119.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_120.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_120.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_121.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_121.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_122.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_122.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_123.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_123.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_124.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_124.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_125.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_125.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_126.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_126.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_127.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_127.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_128.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_128.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_129.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_129.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_130.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_130.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_131.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_131.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_132.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_132.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_133.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_133.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_134.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_134.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_135.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_135.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_136.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_136.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_137.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_137.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_138.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_138.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_139.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_139.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_140.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_140.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_141.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_141.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_142.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_142.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_143.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_143.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_144.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_144.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_145.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_145.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_146.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_146.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_147.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_147.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_148.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_148.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_149.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_149.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_150.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_150.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_151.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_151.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_152.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_152.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_153.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_153.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_154.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_154.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_155.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_155.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_156.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_156.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_157.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_157.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_158.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_158.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_159.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_159.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_160.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_160.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_161.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_161.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_162.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_162.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_163.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_163.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_164.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_164.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_165.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_165.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_166.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_166.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_167.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_167.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_168.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_168.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_169.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_169.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_170.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_170.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_171.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_171.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_172.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_172.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_173.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_173.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_174.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_174.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_175.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_175.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_176.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_176.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_177.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_177.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_178.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_178.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_179.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_179.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_180.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_180.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_181.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_181.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_182.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_182.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_183.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_183.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_184.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_184.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_185.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_185.xml" -"..\data\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_186.xml" -"e:\XMLTest\input\xmlconf\xmltest\not_wf\XML_not_wf_186.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_001.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_001.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_002.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_002.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_003.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_003.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_004.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_004.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_005.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_005.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_006.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_006.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_007.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_007.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_008.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_008.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_009.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_009.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_010.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_010.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_011.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_011.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_012.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_012.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_013.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_013.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_014.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_014.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_015.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_015.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_016.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_016.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_017.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_017.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_018.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_018.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_019.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_019.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_020.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_020.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_021.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_021.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_022.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_022.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_023.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_023.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_024.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_024.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_025.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_025.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_026.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_026.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_027.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_027.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_028.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_028.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_029.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_029.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_030.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_030.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_031.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_031.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_032.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_032.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_033.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_033.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_034.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_034.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_035.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_035.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_036.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_036.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_037.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_037.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_038.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_038.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_039.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_039.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_040.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_040.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_041.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_041.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_042.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_042.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_043.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_043.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_044.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_044.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_045.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_045.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_046.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_046.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_047.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_047.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_048.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_048.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_049.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_049.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_050.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_050.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_051.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_051.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_052.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_052.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_053.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_053.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_054.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_054.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_055.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_055.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_056.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_056.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_057.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_057.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_058.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_058.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_059.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_059.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_060.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_060.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_061.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_061.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_062.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_062.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_063.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_063.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_064.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_064.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_065.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_065.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_066.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_066.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_067.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_067.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_068.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_068.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_070.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_070.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_071.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_071.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_072.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_072.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_073.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_073.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_074.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_074.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_075.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_075.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_077.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_077.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_078.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_078.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_079.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_079.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_080.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_080.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_081.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_081.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_082.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_082.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_083.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_083.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_084.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_084.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_085.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_085.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_086.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_086.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_087.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_087.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_088.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_088.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_089.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_089.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_092.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_092.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_093.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_093.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_094.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_094.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_095.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_095.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_096.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_096.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_097.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_097.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_098.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_098.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_099.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_099.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_100.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_100.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_101.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_101.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_102.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_102.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_103.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_103.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_104.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_104.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_105.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_105.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_106.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_106.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_107.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_107.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_108.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_108.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_109.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_109.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_110.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_110.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_111.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_111.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_112.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_112.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_113.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_113.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_114.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_114.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_115.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_115.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_116.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_116.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_117.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_117.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_118.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_118.xml" -"..\data\XMLTest\input\xmlconf\xmltest\wf\XML_wf_119.xml" -"e:\XMLTest\input\xmlconf\xmltest\wf\XML_wf_119.xml" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_01.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_01.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_02.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_02.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_03.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_03.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_04.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_04.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_05.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_05.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_06.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_06.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_07.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_07.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_08.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_08.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_09.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_09.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_10.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_10.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_11.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_11.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_12.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_not_wf_12.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_01.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_01.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_02.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_02.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_03.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_03.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_04.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_04.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_05.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_05.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_06.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_06.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_07.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_07.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_08.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_08.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_09.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_09.ref" -"..\data\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_10.ref" -"e:\XMLTest\pattern\chunkparser\DOM_XML_chunk_wf_10.ref" -"..\data\XMLTest\pattern\dom\DOM_elem_001.ref" -"e:\XMLTest\pattern\dom\DOM_elem_001.ref" -"..\data\XMLTest\pattern\dom\DOM_elem_002.ref" -"e:\XMLTest\pattern\dom\DOM_elem_002.ref" -"..\data\XMLTest\pattern\dom\DOM_elem_003.ref" -"e:\XMLTest\pattern\dom\DOM_elem_003.ref" -"..\data\XMLTest\pattern\dom\DOM_elem_004.ref" -"e:\XMLTest\pattern\dom\DOM_elem_004.ref" -"..\data\XMLTest\pattern\dom\DOM_elem_005.ref" -"e:\XMLTest\pattern\dom\DOM_elem_005.ref" -"..\data\XMLTest\pattern\dom\DOM_elem_006.ref" -"e:\XMLTest\pattern\dom\DOM_elem_006.ref" -"..\data\XMLTest\pattern\dom\DOM_inner_01.ref" -"e:\XMLTest\pattern\dom\DOM_inner_01.ref" -"..\data\XMLTest\pattern\dom\DOM_inner_02.ref" -"e:\XMLTest\pattern\dom\DOM_inner_02.ref" -"..\data\XMLTest\pattern\dom\DOM_inner_03.ref" -"e:\XMLTest\pattern\dom\DOM_inner_03.ref" -"..\data\XMLTest\pattern\dom\DOM_inner_04.ref" -"e:\XMLTest\pattern\dom\DOM_inner_04.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_001.ref" -"e:\XMLTest\pattern\dom\DOM_modif_001.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_002.ref" -"e:\XMLTest\pattern\dom\DOM_modif_002.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_003.ref" -"e:\XMLTest\pattern\dom\DOM_modif_003.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_004.ref" -"e:\XMLTest\pattern\dom\DOM_modif_004.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_005.ref" -"e:\XMLTest\pattern\dom\DOM_modif_005.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_006.ref" -"e:\XMLTest\pattern\dom\DOM_modif_006.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_008.ref" -"e:\XMLTest\pattern\dom\DOM_modif_008.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_009.ref" -"e:\XMLTest\pattern\dom\DOM_modif_009.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_010.ref" -"e:\XMLTest\pattern\dom\DOM_modif_010.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_011.ref" -"e:\XMLTest\pattern\dom\DOM_modif_011.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_012.ref" -"e:\XMLTest\pattern\dom\DOM_modif_012.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_013.ref" -"e:\XMLTest\pattern\dom\DOM_modif_013.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_014.ref" -"e:\XMLTest\pattern\dom\DOM_modif_014.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_015.ref" -"e:\XMLTest\pattern\dom\DOM_modif_015.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_016.ref" -"e:\XMLTest\pattern\dom\DOM_modif_016.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_017.ref" -"e:\XMLTest\pattern\dom\DOM_modif_017.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_018.ref" -"e:\XMLTest\pattern\dom\DOM_modif_018.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_019.ref" -"e:\XMLTest\pattern\dom\DOM_modif_019.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_020.ref" -"e:\XMLTest\pattern\dom\DOM_modif_020.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_021.ref" -"e:\XMLTest\pattern\dom\DOM_modif_021.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_022.ref" -"e:\XMLTest\pattern\dom\DOM_modif_022.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_034.ref" -"e:\XMLTest\pattern\dom\DOM_modif_034.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_035.ref" -"e:\XMLTest\pattern\dom\DOM_modif_035.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_036.ref" -"e:\XMLTest\pattern\dom\DOM_modif_036.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_041.ref" -"e:\XMLTest\pattern\dom\DOM_modif_041.ref" -"..\data\XMLTest\pattern\dom\DOM_modif_046.ref" -"e:\XMLTest\pattern\dom\DOM_modif_046.ref" -"..\data\XMLTest\pattern\dom\DOM_nodefilter_01.ref" -"e:\XMLTest\pattern\dom\DOM_nodefilter_01.ref" -"..\data\XMLTest\pattern\dom\DOM_outer_01.ref" -"e:\XMLTest\pattern\dom\DOM_outer_01.ref" -"..\data\XMLTest\pattern\dom\DOM_outer_02.ref" -"e:\XMLTest\pattern\dom\DOM_outer_02.ref" -"..\data\XMLTest\pattern\dom\DOM_outer_03.ref" -"e:\XMLTest\pattern\dom\DOM_outer_03.ref" -"..\data\XMLTest\pattern\dom\DOM_outer_04.ref" -"e:\XMLTest\pattern\dom\DOM_outer_04.ref" -"..\data\XMLTest\pattern\dom\DOM_save_01.ref" -"e:\XMLTest\pattern\dom\DOM_save_01.ref" -"..\data\XMLTest\pattern\dom\DOM_save_02.ref" -"e:\XMLTest\pattern\dom\DOM_save_02.ref" -"..\data\XMLTest\pattern\dom\DOM_save_03.ref" -"e:\XMLTest\pattern\dom\DOM_save_03.ref" -"..\data\XMLTest\pattern\dom\DOM_xmlid_08.ref" -"e:\XMLTest\pattern\dom\DOM_xmlid_08.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_001.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_001.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_002.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_002.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_003.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_003.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_004.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_004.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_005.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_005.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_006.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_006.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_007.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_007.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_008.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_008.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_009.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_009.ref" -"..\data\XMLTest\pattern\Encoding\DOM_XML_encoding_010.ref" -"e:\XMLTest\pattern\Encoding\DOM_XML_encoding_010.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_001.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_001.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_001b.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_001b.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_002.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_002.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_003.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_003.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_004.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_004.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_005.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_005.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_006.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_006.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_007.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_007.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_008.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_008.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_009.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_009.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_010.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_010.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_011.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_011.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_012.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_012.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_013.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_013.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_014.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_014.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_015.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_015.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_016.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_016.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_017.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_017.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_018.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_018.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_019.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_019.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_020.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_020.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_021.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_021.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_022.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_022.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_023.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_023.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_024.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_024.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_025.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_025.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_026.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_026.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_027.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_027.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_028.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_028.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_029.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_029.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_030.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_030.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_031.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_031.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_032.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_032.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_033.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_033.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_034.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_034.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_035.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_035.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_036.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_036.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_037.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_037.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_038.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_038.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_039.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_039.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_040.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_040.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_041.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_041.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_042.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_042.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_043.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_043.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_044.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_044.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_045.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_045.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_046.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_046.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_047.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_047.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_048.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_048.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_049.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_049.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_050.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_050.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_051.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_051.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_052.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_052.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_053.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_053.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_054.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_054.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_055.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_055.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_056.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_056.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_057.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_057.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_058.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_058.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_059.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_059.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_060.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_060.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_061.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_061.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_062.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_062.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_063.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_063.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_064.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_064.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_065.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_065.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_066.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_066.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_067.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_067.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_068.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_068.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_069.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_069.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_070.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_070.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_071.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_071.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_072.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_072.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_073.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_073.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_074.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_074.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_075.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_075.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_076.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_076.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_077.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_077.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_078.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_078.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_079.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_079.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_080.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_080.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_081.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_081.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_082.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_082.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_083.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_083.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_084.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_084.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_085.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_085.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_086.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_086.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_087.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_087.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_088.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_088.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_089.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_089.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_090.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_090.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_091.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_091.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_092.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_092.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_093.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_093.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_094.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_094.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_095.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_095.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_096.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_096.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_097.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_097.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_098.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_098.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_099.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_099.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_100.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_100.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_101.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_101.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_102.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_102.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_103.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_103.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_104.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_104.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_105.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_105.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_106.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_106.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_107.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_107.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_108.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_108.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_109.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_109.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_110.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_110.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_111.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_111.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_112.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_112.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_113.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_113.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_114.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_114.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_115.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_115.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_116.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_116.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_117.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_117.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_118.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_118.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_119.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_119.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_120.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_120.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_121.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_121.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_122.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_122.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_123.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_123.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_124.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_124.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_125.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_125.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_126.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_126.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_127.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_127.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_128.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_128.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_129.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_129.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_130.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_130.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_131.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_131.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_132.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_132.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_133.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_133.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_134.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_134.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_135.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_135.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_136.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_136.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_137.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_137.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_138.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_138.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_139.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_139.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_140.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_140.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_141.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_141.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_142.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_142.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_143.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_143.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_144.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_144.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_145.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_145.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_146.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_146.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_147.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_147.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_148.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_148.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_149.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_149.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_150.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_150.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_151.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_151.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_152.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_152.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_153.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_153.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_154.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_154.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_155.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_155.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_156.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_156.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_157.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_157.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_158.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_158.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_159.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_159.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_160.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_160.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_161.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_161.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_162.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_162.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_163.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_163.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_164.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_164.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_165.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_165.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_166.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_166.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_167.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_167.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_168.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_168.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_169.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_169.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_170.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_170.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_171.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_171.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_172.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_172.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_173.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_173.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_174.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_174.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_175.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_175.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_176.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_176.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_177.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_177.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_178.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_178.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_179.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_179.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_180.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_180.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_181.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_181.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_182.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_182.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_183.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_183.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_184.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_184.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_185.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_185.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_186.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\not_wf\DOM_XML_not_wf_186.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_001.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_001.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_002.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_002.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_003.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_003.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_004.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_004.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_005.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_005.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_006.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_006.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_007.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_007.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_008.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_008.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_009.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_009.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_010.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_010.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_011.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_011.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_012.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_012.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_013.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_013.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_014.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_014.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_015.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_015.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_016.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_016.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_017.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_017.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_018.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_018.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_019.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_019.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_020.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_020.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_021.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_021.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_022.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_022.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_023.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_023.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_024.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_024.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_025.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_025.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_026.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_026.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_027.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_027.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_028.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_028.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_029.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_029.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_030.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_030.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_031.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_031.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_032.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_032.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_033.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_033.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_034.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_034.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_035.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_035.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_036.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_036.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_037.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_037.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_038.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_038.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_039.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_039.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_040.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_040.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_041.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_041.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_042.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_042.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_043.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_043.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_044.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_044.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_045.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_045.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_046.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_046.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_047.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_047.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_048.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_048.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_049.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_049.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_050.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_050.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_051.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_051.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_052.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_052.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_053.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_053.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_054.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_054.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_055.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_055.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_056.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_056.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_057.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_057.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_058.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_058.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_059.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_059.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_060.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_060.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_061.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_061.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_062.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_062.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_063.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_063.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_064.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_064.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_065.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_065.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_066.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_066.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_067.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_067.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_068.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_068.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_070.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_070.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_071.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_071.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_072.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_072.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_073.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_073.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_074.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_074.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_075.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_075.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_077.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_077.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_078.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_078.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_079.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_079.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_080.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_080.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_081.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_081.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_082.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_082.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_083.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_083.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_084.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_084.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_085.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_085.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_086.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_086.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_087.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_087.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_088.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_088.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_089.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_089.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_092.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_092.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_093.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_093.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_094.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_094.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_095.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_095.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_096.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_096.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_097.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_097.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_098.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_098.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_099.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_099.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_100.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_100.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_101.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_101.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_102.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_102.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_103.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_103.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_104.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_104.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_105.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_105.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_106.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_106.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_107.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_107.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_108.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_108.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_109.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_109.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_110.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_110.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_111.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_111.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_112.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_112.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_113.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_113.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_114.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_114.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_115.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_115.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_116.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_116.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_117.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_117.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_118.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_118.ref" -"..\data\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_119.ref" -"e:\XMLTest\pattern\xmlconf\xmltest\wf\DOM_XML_wf_119.ref" diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/sis/XmlSrv_XmlDom.sis Binary file apicompatanamdw/bcdrivers/os/xmlsrv/xml_engine_dom_api/sis/XmlSrv_XmlDom.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/sis/LogFileReader.SIS Binary file apicompatanamdw/bcdrivers/sis/LogFileReader.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/AccessPoint.sis Binary file apicompatanamdw/bcdrivers/utilities/testtools/AccessPoint.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/FileBrowser_S60-30.sis Binary file apicompatanamdw/bcdrivers/utilities/testtools/FileBrowser_S60-30.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/Launcher_S60-30.sis Binary file apicompatanamdw/bcdrivers/utilities/testtools/Launcher_S60-30.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/LocationUI.SIS Binary file apicompatanamdw/bcdrivers/utilities/testtools/LocationUI.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/Stif.sis Binary file apicompatanamdw/bcdrivers/utilities/testtools/Stif.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/Stifui.sis Binary file apicompatanamdw/bcdrivers/utilities/testtools/Stifui.sis has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/eShell.SIS Binary file apicompatanamdw/bcdrivers/utilities/testtools/eShell.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/simulationpsy.SIS Binary file apicompatanamdw/bcdrivers/utilities/testtools/simulationpsy.SIS has changed diff -r 3c3a10a3f974 -r 7d36b1d361d2 apicompatanamdw/bcdrivers/utilities/testtools/testexecute.SIS Binary file apicompatanamdw/bcdrivers/utilities/testtools/testexecute.SIS has changed